Professional Documents
Culture Documents
Fet 222 A4 Interpolation
Fet 222 A4 Interpolation
PART A4 INTERPOLATION
MEANING OF INTERPOLATION
Many times, data is given only at discrete points such as x0 , y0 , . x1 , y1 , … xn1 , yn1 , xn , yn .
So, how then does one find the value of at any other value of x ? Well, a continuous function f x
may be used to represent the data values with f x passing through the points (Fig. 1).
Then one can find the value of y at any other value of x . This is called interpolation.
Of course, if x falls outside the range of x for which the data is given, it is no longer interpolation but
instead is called extrapolation..
What kind of function should one choose? A polynomial is a common choice for an interpolating
function because polynomials are easy to
(A) evaluate,
(B) differentiate, and
(C) integrate
Page 1 of 5
The points x0 , x1 , … , xn 1 , xn are called the interpolation points. The process of “passing through
these points” is referred to as interpolating the data. The function that interpolates the data is an
interpolant or an interpolating polynomial (or whatever function is being used)
Some of the methods of interpolation are the direct method, Newton’s divided difference polynomial
method and the Lagrangian interpolation method.
To find the value of y at a given value of x, simply substitute the value of in Equation 1.
The general form of the Newton’s divided difference polynomial for n+1 data points, x0 , y0 , . x1 , y1 ,
… xn1 , yn1 , xn , yn . is given by
f x b0 b1 x x0 b2 x x0 x x1 ... bn x x0 x x1 ... x xn1
where b0 , b1 , b2 ...bn are the first , second , third and nth finite divided differences respectively. They
are defined respectively in terms of the given data as
Page 2 of 5
Using this notation we have
Page 3 of 5
Divided differences used in the Newton’s Interpolating Polynomials can be presented in a table form.
This makes the calculations much simpler.
Let us consider the points (x0, y0), (x1, y1), (x2, y2) and (x3, y3) where y = f(x).The divided difference
table can be written as shown in table 3
xi f xi f x j , xi f xk , x j , xi f xl , xk , x j , xi
x0 f x0
f x1 f x0
= x
x1 x0
yx
x1 f x1 f x2 , x1 , x0 =P
x2 x0
QP
f x2 f x1 f x3 , x2 , x1 , x0
=y x3 x0
x2 x1
zy
x2 f x2 f x3 , x2 , x1 =Q
x3 x1
f x3 f x2
=z
x3 x2
x3 f x3
The Lagrangian interpolating polynomial for n+1 data points, x0 , y0 , . x1 , y1 , … xn1 , yn1 , xn , yn .
is given by
f n x L0 f x0 L1 f x1 L2 f x2 ... Ln f xn
where
L0
x x1 x x2 ... x xn
x0 x1 x0 x2 ... x0 xn
L1
x x0 x x2 ... x xn
x1 x0 x1 x2 ... x1 xn
L2
x x0 x x1 ... x xn
x2 x0 x2 x3 ... x2 xn
Ln
x x0 x x1 ... x xn1
xn x0 xn x2 ... xn xn1
Page 4 of 5
This can be rewritten more compactly as
Page 5 of 5