301
301
= 17
20
X1 = 0.85
In eqn. (iii)
|5| > |1| + |2| => 5 > 3
X X0 X1 X2 … …. …. Xn
Y Y0 Y1 Y2 … … … Yn
X 1 2 3 … …. …. 10
Y=f(X) Y0 Y1 Y2 … … … Yn
• Newton’s forward difference interpolation formula
If the point for which the value of function is to be
interpolated lies in the upper half of the table. Then
forward difference interpolation formula will give better
approximation to the value of function.
• Newton’s Backward difference interpolation formula
If the point lies in the lower half then the backward
difference interpolation formula will give better
approximation.
But if the point lies somewhere in the middle of the
table then any one will work better.
• When difference is unequal :
(i) Lagrange's interpolation formula
(ii) Newton’s divided difference interpolation formula
(iii) Lagrange's inverse interpolation formula
Lagrange's interpolation formula
• In order to derive a general formula for lagrangian
interpolation , we consider a second order polynomial of
type
Y(X) = a1 (X – X2)(X – X3) + a2 (X – X1)(X – X3) +
a3 (X – X1)(X – X2) …. (i)
• Passing through the points (X1 , Y1) , (X2 , Y2) and
(X3 , Y3).
• Where a1 , a2 , a3 are unknown constants whose values
are determined as follows :
• At X = X1 ,
Y(X1) = a1 (X1 – X2)(X1 – X3) = Y1
a1 = Y1
(X1 – X2)(X1 – X3)
• At X = X2 ,
Y(X2) = a2 (X2 – X1)(X2 – X3) = Y2
a2 = Y2
(X2 – X1)(X2 – X3)
• At X = X3 ,
Y(X3) = a3 (X3 – X1)(X3 – X2) = Y3
a3 = Y3
(X3 – X1)(X3 – X2)
• Put the values of a1 , a2 , a3 in eqn. (i)
Y(X) = Y1 * (X – X2)(X – X3) +
(X1 – X2)(X1 – X3)
Y2 * (X –X1)(X –X3) +
(X2 – X1)(X2 – X3)
Y3 * (X – X1)(X – X2)
(X3 – X1)(X3 – X2)
Y(X) = Y1 (X – X2)(X – X3) +
(X1 – X2)(X1 – X3)
Y2 (X – X1)(X – X3) +
(X2 – X1)(X2 – X3)
Y3 (X – X1)(X – X2)
(X3 – X1)(X3 – X2)
• Using the product and summation , the above
expression can be written as
• In general ,
Lagrange’s Inverse Interpolation Formula
• If Y is an independent variable and X as a function of Y
then ,