Professional Documents
Culture Documents
Polynomial Interpolation
pn (t) = a0 + a1 t + · · · + an tn .
Then the above interpolation conditions lead to the following system of linear equa-
tions
a0 f
0
2 n
1 t0 t0 · · · t0
a f
n 1 1
2
1 t1 · · · t1
1 t
a2 = f2
· · · · ·
· ·
2 n
1 tn tn · · · tn
an fn
Assume that the ti are distinct. Then the above coefficient matrix, called the
Vandermonde matrix, is nonsingular, Hence, the interpolating polynomial pn (t) exists
and is unique.
Given the existence of the interpolation polynomial pn (t), there is another way
of verifying its uniqueness. Suppose that there are two different polynomials pn (t)
and qn (t) both interpolating the fi , i.e., pn (ti ) = qn (ti ) = fi , i = 0, 1, 2, · · · , n. Then
the polynomial g(t) = pn (t) − qn (t) is not identically zero, has degree at most n and
vanishes at the n + 1 distinct points, i.e., the ti . But this contradicts the fact that a
polynomial of degree k has at most k real zeros. Hence, g(t) must be identically zero.
That is, pn (x) ≡ qn (x).
Lagrange interpolation
where n
Y t − tk
`n,i (t) =
k=0, k6=i ti − tk
Scientific Computing– LESSON 10: Polynomial Interpolation - Computational Methods 2
With the above properties of the basis function `n,i (t), it is easy to see that the
Lagrange polynomial is exactly the interpolation polynomial we are seeking. The
explicit expression of the Lagrange polynomial gives an existence proof of the inter-
polation polynomial, so we do not need to solve a linear system with a full matrix in
order to find the interpolation polynomial.
Newton interpolation
pn (t) = c0 + c1 (t − t0 ) + c2 (t − t0 )(t − t1 )
n−1
Y
+ . . . + cn (t − tj ).
j=0
With this form, the coefficient matrix of the linear system resulting from the inter-
polation conditions will be lower triangular. Therefore it takes only O(n2 ) operations
to solve the equations to determine the coefficients ci of the Newton interpolant.
Clearly, the first Newton interpolant for the first point (t0 , f0 ) is p0 (t) = f0 . Let
pi (t) denote the Newton interpolant for i + 1 points (tk , fk ), k = 0, 1, 2, · · · , i, 0 ≤ i <
n. Denote φi (t) = i−1 k=0 (t − tk ). Then the polynomial
Q
also interpolates the first i + 1 points, and we may choose ci+1 to make pi+1 (t) further
interpolate the next point (ti+1 , fi+1 ) by setting pi+1 (ti+1 ) = fi+1 . This leads to
or
fi+1 − pi (ti+1 )
ci+1 = .
φi+1 (ti+1 )
The above step can be repeated to produce the Newton form of the interpolation
polynomial for n + 1 points. This procedure uses also O(n2 ) operations.
By this incremental construction, we see that when a new point (ti+1 , fi+1 ) is added
as an interpolation condition, only an extra term needs to be added to the expression
of the Newton interpolant and the previous lower degree terms remain unchanged.
This allows the use of Horner’s rule to evaluate the polynomial p(t) in O(n) operations
for a particular value of t.
f [ti ] = fi , i = 0, 1, . . . , n.
We next show that the leading coefficient cn in the Newton interpolant for n + 1
points (ti , fi ), i = 0, 1, . . . , n, is given by the divided difference
cn = f [t0 , t1 , . . . , tn ].
Then, clearly,
t − t0 tn − t
pn (t) = qn−1 (t) + rn−1 (t).
tn − t0 tn − t0
Since the leading coefficients of qn−1 (t) and rn−1 (t) are assumed to be
The relationship between the divided difference and the Newton interpolant pro-
vides another way of computing the coefficients of the Newton interpolant as the
following diagram suggests
f0 = f [t0 ]
f1 = f [t1 ] f [t0 , t1 ]
f2 = f [t2 ] f [t1 , t2 ] f [t0 , t1 , t2 ]
f3 = f [t3 ] f [t2 , t3 ] f [t1 , t2 , t3 ] f [t0 , t1 , t2 , t3 ]
The interpolant’s coefficients can be read out from the diagonal of this diagram.
Obviously, this procedure also takes O(n2 ) operations.