First, we need to select the points that determine our polynomial. (The maximum degree of the polynomial is always one less than the number of points.) Suppose we choose the first four points.
If the cubic is
, we can write four equations involving the unknown coefficients , and ;
Solving these equations gives
and our polynomial is
At , the estimated value is 20.212.
if we want a new polynomial that is also made to fit at the point ?
or if we want to see what difference it would make to use a quadratic instead of a cubic?