If you know n + 1 points for an nth degree polynomial, then you can use a system of equations.

If you know extrema points, then you know the value of the derivative there is zero, likewise if you know points of inflection, then you know the second derivative is zero there. All of this information will given you a system of linear equations.