Professional Documents
Culture Documents
Numerical Analysis - MTH603 Handouts Lecture 21 PDF
Numerical Analysis - MTH603 Handouts Lecture 21 PDF
Example:
Evaluate f (15), given the following table of values:
Solution:
The forward differences are tabulated as
Example
Find Newton’s forward difference, interpolating polynomial for the following data:
Solution;
The forward difference table to the given data is
rd th
Since, 3 and 4 leading differences are zero, we have Newton’s forward difference
interpolating formula as
p( p − 1) 2
y = y0 + p∆y0 + ∆ y0
2
In this problem,
x0 = 0.1, y0 = 1.40,
∆y0 = 0.16, ∆ 2 y0 = 0.04,
and
x − 0.1
p= = 10 x − 1
0.1
Substituting these values,
(10 x − 1)(10 x − 2)
y = f ( x) = 1.40 + (10 x − 1)(0.16) + (0.04)
2
This is the required Newton’s interpolating polynomial.
Example
Estimate the missing figure in the following table:
Solution
Since we are given four entries in the table, the function y = f (x) can be represented by a
polynomial of degree three.
∆ 3 f ( x) = Constant
and ∆ 4 f ( x) = 0, ∀x
In particular,
∆ 4 f ( x0 ) = 0
Equivalently,
( E − 1) 4 f ( x0 ) = 0
Expanding, we have
( E 4 − 4 E 3 + 6 E 2 − 4 E + 1) f ( x0 ) = 0
That is,
f ( x4 ) − 4 f ( x3 ) + 6 f ( x2 ) − 4 f ( x1 ) + f ( x0 ) = 0
x y = f ( x) ∆y ∆2 y ∆3 y ∆4 y
0.2 0.2304 0.0484 -0.005 0.0011 -0.0005
0.3 0.2788 0.0434 -0.0039 0.0006
0.4 0.3222 0.0395 -0.0033
0.5 0.3617 0.0362
0.6 0.3979
p( p −1) 2 p( p −1)( p − 2) 3
yx = y0 + p∆y0 + ∆ y0 + ∆ y0
2! 3!
p( p −1)( p − 2)( p − 3) 4 p( p −1)( p − 2)........( p − n +1) n
+ ∆ y0 +"+ ∆ y0
4! n!
Where
x0 = 0.2, y0 = 0.2304, ∆y0 = 0.0484, x − x0 0.36 − 0.2
p= = = 1.6
∆ y0 = −0.005, ∆ y0 = 0.0011 , ∆ y0 = −.0005
2 3 4
h 0.1
Example
Find a cubic polynomial in x which takes on the values
-3, 3, 11, 27, 57 and 107, when x = 0, 1, 2, 3, 4 and 5 respectively.
Solution
Here, the observations are given at equal intervals of unit width.
To determine the required polynomial, we first construct the difference table
Difference Table
th
Since the 4 and higher order differences are zero, the required Newton’s interpolation
formula
p ( p − 1) 2 p ( p − 1)( p − 2) 3
f ( x0 + ph) = f ( x0 ) + p∆f ( x0 ) + ∆ f ( x0 ) + ∆ f ( x0 )
2 6
Here
x − x0 x − 0
p= = =x
h 1
∆f ( x0 ) = 6
∆ 2 f ( x0 ) = 2
∆ 3 f ( x0 ) = 6
Substituting these values into the formula, we have
x( x − 1) x( x − 1)( x − 2)
f ( x) = −3 + 6 x + (2) + (6)
2 6
f ( x) = x 3 − 2 x 2 + 7 x − 3,
The required cubic polynomial.