0% found this document useful (0 votes)
27 views

1 Motivation For Newton Interpolation

This document summarizes a lecture on Newton interpolation. It introduces Newton interpolation as an alternative to Lagrange interpolation that has advantages for evaluating derivatives and adding new points incrementally. Newton polynomials are defined recursively based on the input points. Divided differences are used to find the coefficients of the Newton polynomials, representing the solution to polynomial interpolation problems. Examples are provided to demonstrate finding a quadratic polynomial that interpolates three points using the Newton method and divided differences.

Uploaded by

gaurav_kZ
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

1 Motivation For Newton Interpolation

This document summarizes a lecture on Newton interpolation. It introduces Newton interpolation as an alternative to Lagrange interpolation that has advantages for evaluating derivatives and adding new points incrementally. Newton polynomials are defined recursively based on the input points. Divided differences are used to find the coefficients of the Newton polynomials, representing the solution to polynomial interpolation problems. Examples are provided to demonstrate finding a quadratic polynomial that interpolates three points using the Newton method and divided differences.

Uploaded by

gaurav_kZ
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

cs412: introduction to numerical analysis 09/30/10

Lecture 7: Newton Interpolation

Instructor: Professor Amos Ron Scribes: Yunpeng Li, Mark Cowlishaw, Nathanael Fillmore

1 Motivation for Newton interpolation


Recall the polynomial interpolation problem we have been studying for the last few lectures. Given
~ = (x0 , x1 , · · · , xn ) and the value of f at the given points F~ = (f (x0 ), f (x1 ), · · · , f (xn )), find the
X
polynomial p ∈ Πn so that p|X~ = F~ . We proved in the previous lecture that the solution to this
problem always exists and is unique.
We introduced two methods for solving the polynomial interpolation problem, based on two
different representations of the polynomial solution:

1. We can represent the solution as a linear combination of monomials.

P (t) = a1 xn + a2 xn−1 + · · · + an x + an+1

Using this representation, the problem is equivalent to solving a system of linear equations

V ~a = F~

Where V is the Vandermonde matrix, ~a is the column vector of (unknown) polynomial coef-
fcients, and F~ is the column vector of function values at the interpolation points.
As we have seen, solving this system is not a good method for solving the polynomial inter-
polation problem. However, this representation is important, since we were able to use it to
conclude that the solution to a polynomial interpolation problem is unique.

2. We can represent the solution using Lagrange polynomials.

P (t) = f (x0 ) · `0 (t) + f (x1 ) · `1 (t) + · · · + f (xn ) · `n (t)

Using this representation, we showed that it is easy to find a solution p, and this led to
the important conclusion that the polynomial interpolation problem always has a soluton.
However, a solution written in Lagrange form may be difficult to use.

1.1 Problems with the Lagrange Representation


Our goal when solving a polynomial interpolation problem is to find a polynomial function p that
approximates the function f , which we may know nothing about, other than its value at a few
points. Once we have this polynomial function p, we may want to use it to study f in various ways.

1
Evaluation We may want to use p to approximate f at points outside the set of interpolation
points. The Lagrange representation may be problematic for this purpose if we have in-
terpolation points (xa , xb ) that are very close together. Recall the formula for a Lagrange
polynomial `i (t).
Yn µ ¶
(t − xj )
`i (t) =
j=0
(xi − xj )
j6=i

Those Lagrange polynomials that include (xa − xb ) or (xb − xa ) in the denominator will be
quite large, and may suffer from loss of significance.
Evaluation of Derivative The symbolic differentiation of a Lagrange polynomial, using the prod-
uct rule, will have n separate terms, each involving n − 1 multiplications. Sine the solution
to the polynomial interpolation problem p contains n + 1 different Lagrange poynomials,
evaluating the derivative could be very inefficient.
Clearly, the Lagrange representation is not ideal for some uses of the polynomial p.
Additionally, there is another problem with the Lagrange representation, it doesn’t take advan-
tage of the inductive structure of a polynomial interpolation problem. Polynomial interpolation is
often an iterative process where we add points one at a time until we reach an acceptable solution.
Given a particular solution p to a polynomial interpolation problem with n points, we would like
to add an additional point and find a new solution p0 without too much additional cost. In other
words, we would like to reuse p to help us find p0 .
It is easy to see that the Lagrange representation will not meet this requirement. Using the
Lagrange representation, we can find a solution to a polynomial interpolation problem with n points
X = (x0 , x1 , . . . , xn−2 , xn−1 ) easily, but, if we add a single additional point xn , we have to throw
out our previous solution and recalculate the solution to the new problem from scratch. This is
because every interpolation point is used in every term of the Lagrange representation.
We shall now discuss a polynomial representation that makes use of the inductive structure of
the problem. However, note that, despite these shortcomings, the Lagrange representation is not a
bad way to represent polynomials.

2 Newton Polynomials
We introduce Newton polynomials with a series of examples.
Example 2.1. Given a set of points X ~ = (1, 3, 0) and the corresponding function values F =
(2, 7, −8), find a quadratic polynomial that interpolates this data.

Step 1 The order of the points does not matter (as long as each point is matched to the corre-
sponding function value), but we will consider the first point X0 = 1, F0 = 2, and find a zero
order polynomial p0 that interpolates this point.

N0 (t) = 1
p0 = 2 · N0 (t)

We call N0 the zero order Newton polynomial.

2
Step 2 We use our previous solution p0 and the first order Newton polynomial N1 to interpolate
the first two points (1, 2) and (3, 7).

N1 (t) = (t − 1)
p1 (t) = p0 (t) + 2 · N1 (t)

We need to find the value of 2 given the two constraints that p1 (1) = 2 and p1 (3) = 7.

p1 (1) = p0 (1) + 2 · (1 − 1) = 2 + 0 = 2ˇ
p1 (3) = p0 (3) + 2 · (3 − 1)
7 =2+2·2
2 = 5/2

Thus, p1 (t) = p0 (t) + 5/2 · N1 (t).

Step 3 We use our previous solution p1 and the second order Newton polynomial N2 to interpolate
all three points.

N2 (t) = (t − 1) · (t − 3)
P2 (t) = p1 (t) + 2 · N2 (t)

Solving for the three constraints (1, 2), (3, 7), and (0, −8), we obtain:

p2 (1) = p1 (1) + 2 · 0ˇ
p2 (3) = p1 (3) + 2 · 0ˇ
P2 (0) = p1 (0) + 2 · 3
−8 = −1/2 + 2 · 3
2 = −5/2

Yielding the final solution, P2 (t) = −5/2 · N2 (t)

To solve polynomial interpolation problems using this iterative method, we need the polynomials
Ni (t). We call these Newton polynomials.
~ = (X0 , X1 , . . . , Xn ),
Definition 2.1 (Newton Polynomials). Given a set of n + 1 input points X
we define the n + 1 Newton polynomials.

N0 (t) =1
N1 (t) = t − X0
.. ..
. .
Nn (t) = (t − X0 ) · (t − X1 ) · · · · · (t − Xn−1 )

3
Note that the Newton polynomials for a polynomial interpolation depend only on the input
~ = (X0 , X1 , . . . , xn ), and not on the associated function values F~ = (f (X0 ), f (X1 ), . . . , f (Xn ).
points X
Given these Newton polynomials, we can define a recurrence for pn (t):

pn (t) = pn−1 (t) + 2 · Nn (t) (1)

At first, the basis of Newton polynomials doesn’t look any better than Lagrange in terms of
computation: Nn (t) has n factors, similar to the number of factors in a Lagrange polynomial. This
is a valid concern; however, as we will see in future lectures, it turns out that there are very efficient
linear-time algorithms to both evaluate and find derivatives of polynomials in the Newton basis.
We can find the coefficient 2 for each Newton polynomial using the method of divided differences.

3 Divided Differences
Definition 3.1 (Divided Differences). Given a set of n+1 input points X ~ = (X0 , X1 , . . . , Xn ), and
the corresponding function values F~ = (f (X0 ), f (X1 ), . . . , f (Xn )), and the Newton representation
of the polynomial interpolant pn (t) = a0 N0 (t) + a1 N1 (t) + · · · + an Nn (t), the coefficient an of the
nth Newton polynomial Nn (t) is called the divided difference (or D.D.) of f at (X0 , X1 , . . . , Xn )
and is denoted by f [X0 , X1 , . . . , Xn ]
~ = (1, 3, 0) and F~ = (2, 7, −8), then
Example 3.1. Given X

p0 (t) = f [1] · N0 (t) (2)


p1 (t) = p0 (t) + f [1, 3] · N1 (t) (3)
p2 (t) = p1 (t) + f [1, 3, 0] · N2 (t) (4)

Note that a polynomial interpolation problem is invariant over the ordering of the input points.
If we rewrote P2 (t) in equation 4 in monomial form, the coefficient of t2 would be the divided
difference f [1, 3, 0]. If we were to reorder the input points as (3, 0, 1) and solve the problem using
Newton polynomials, the coefficient of t2 would be f [3, 0, 1]. Since these problems are equivalent,
this means that f [1, 3, 0] = f [3, 0, 1]. In general, the final coefficnet in the Newton representation of
a polynomial interpolant is always the same under any ordering of the input points. This means that
the divided difference f [x0 , x1 , . . . , xn ] is invariant over the ordering of the points (x0 , x1 , . . . , xn ).
Finally, we define the order of a divided difference.
Definition 3.2. The order of a divided difference f [X0 , X1 , . . . , Xn ] is one less then the number
of points in the divided difference.
A divided difference of order k, f (X0 , X1 , . . . , Xk ) is the coefficient of the final (order k) Newton
polynomial in the interpolant of (X0 , X1 , . . . , Xk ).

3.1 Computing Divided Differences


Given a polynomial interpolation problem X~ = (X0 , X1 , . . . , Xn ), F~ = (f (X0 ), f (X1 ), . . . , f (Xn )),
we compute the divided differences by constructing a special half-table, with the rows indexed by
~ and the columns indexed by the order of the divided difference. The values in
the input points X

4
the first column (column 0) are simply the function values F~ . Each successive value D[i, j] (the ith
row and jth column of the table) is calculated as a quotient. The numerator is the difference of the
values immediately left (D[i, j −1]) and immediately on the downward left diagonal (D[i+1, j −1]).
The denominator is the difference between the input value xi labeling the ith row, and the input
value xi+j labeling the i + jth row. More formally, given a polynomial interpolation problem with
n + 1 input points, we define the following table D:

x0 D[0, 0] D[0, 1] ... D[0, N ]


x1 D[1, 0] ... D[1, N − 1]
..
.
xN D[N, 0]
we can calculate the individual values D[i, j] in the table D as follows.
(
xi if j = 0
f [xi , xi+j ] = D[i, j] = D[i,j−1]−D[i+1,j−1]] (5)
xi −xi+j Otherwise

~ = (2, 6, 7, 0) and F~ = (1, −1, 0, 2), we generate the divided


For example, if we are given X
difference array D as
2 1 1−(−1)
2−6 = −0.5
3
10
3
70
−1−0 3
6 -1 6−7 = 1 14
0−2 −2
7 0 7−0 = 7
0 2
Note that the first row is f [2], f [2, 6], f [2, 6, 7] and f [2, 6, 7, 0]. In general, we only need the first
row to construct the Newton representation of the polynomial interpolant.
~ = (1, 0, −1) and F~ = (2, 4, 8), we create the divided difference table as
Example 3.2. For X

1 2 -2 1
0 4 -4
-1 8

and we have

p(t) = 2 · 1 − 2 · (t − 1) + 1 · (t − 1)(t − 0)

as the solution.

Now when we add one more point and value, say, X ~ = (1, 0, −1, 2) and F~ = (2, 4, 8, 2), we
construct a new array, with the above array as the upper left corner.

1 2 -2 1 -2
1 2 -2 1
0 4 -4 -1
0 4 -4 ⇒
-1 8 -2
-1 8
2 -2

You might also like