Numerical Analysis Module 06
Numerical Analysis Module 06
OBJECTIVE:
1
NEWTON FORWARD DIFFERENCE INTERPOLATION POLYNOMIAL
(NFDIP)
𝑃 (𝑃 − 1) 2 𝑃(𝑃 − 1)(𝑃 − 2) 3
𝑦𝑝 = 𝑦0 + 𝑃∆𝑦0 + ∆ 𝑦0 + ∆ 𝑦0
2! 3!
𝑃(𝑃 − 1)(𝑃 − 2)(𝑃 − 3) 4
+ ∆ 𝑦0 + ⋯
4!
𝑃(𝑃 − 1) … [𝑃 − (𝑛 − 1)] 𝑛
+ ∆ 𝑦0
𝑛!
𝑥−𝑥0
Where 𝑦𝑝 = 𝑦(𝑥0 +Ph) and 𝑃 =
ℎ
Where x is the value being interpolated for and h is the step size along x.𝑥0 is any
value above the value being interpolated for on the difference table. The further
away the 𝑥0 is from the value being interpolated the more accurate the result is.
The following data indicates the speeds of a ship. It gives I,V and knots the speed.
Find I when V=9
𝑉 8 10 12 14 16
𝐼 1000 1900 3250 5400 8950
2
Solution
𝑥 − 𝑥0 9 − 8
𝑃= = = 0.5
ℎ 2
𝑃 (𝑃 − 1) 2 𝑃(𝑃 − 1)(𝑃 − 2) 3
𝑦𝑝 = 𝑦0 + 𝑃∆𝑦0 + ∆ 𝑦0 + ∆ 𝑦0
2! 3!
𝑃(𝑃 − 1)(𝑃 − 2)(𝑃 − 3) 4
+ ∆ 𝑦0
4!
1 1 1 1 1 1
I(9) = 1000 + (900) + ( − 1) (450) + ( − 1) ( − 2) (350)
2 4 2 12 2 2
1 1 1 1
+ ( − 1) ( − 2) ( − 3) (250)
48 2 2 2
3
= 1406
We use NFDI to interpolate for the values nearer to the beginning of the table
values.
We use NBDI to interpolate for values towards the end of the table of values
𝑃 (𝑃 + 1) 2 𝑃(𝑃 + 1)(𝑃 + 2) 3
𝑦𝑝 = 𝑦0 + 𝑃∇𝑦0 + ∇ 𝑦0 + ∇ 𝑦0
2! 3!
𝑃(𝑃 + 1)(𝑃 + 2)(𝑃 + 3) 4
+ ∇∇ 𝑦0 + ⋯
4!
𝑃(𝑃 + 1) … [𝑃 + (𝑛 + 1)] 𝑛
+ ∇ 𝑦0
𝑛!
𝑥𝑛 is the value below the value being interpolated for on the difference table.
Solution
4
𝑥 − 𝑥0 15 − 16
𝑃= = = −0.5
ℎ 2
1 1 1
I(15) = 8950 − (3550) − (− + 1) (1400)
2 4 2
1 1 1
− (− + 1) (− + 2) (600)
12 2 2
1 1 1 1
− (− + 1) (− + 2) (− + 3) (250)
48 2 2 2
= 6953
Find the Newton Forward Difference Interpolating Polynomial for the data below
taking
𝑥0 = 0.1
Solution
5
0.4 2.00 0.24 0.01 −0.03
𝑥 − 𝑥0 𝑥 − 1
𝑃= = = 10𝑥 − 1
ℎ 0.1
𝑃 (𝑃 − 1) 2 𝑃(𝑃 − 1)(𝑃 − 2) 3
𝑦𝑝 = 𝑦0 + 𝑃∆𝑦0 + ∆ 𝑦0 + ∆ 𝑦0
2! 3!
𝑃(𝑃 − 1)(𝑃 − 2)(𝑃 − 3) 4
+ ∆ 𝑦0 + ⋯
4!
𝑃(𝑃 − 1) … [𝑃 − (𝑛 − 1)] 𝑛
+ ∆ 𝑦0
𝑛!
1
y = 1.40 + (10x − 1)(0.16) + (10x − 1)(10x − 2)0.04
2
1
+ (10x − 1)(10x − 2)(10x − 3)0
6
1
+ (10x − 1)(10x − 2)(10x − 3)(10 − 4)(−0.03)
24
6
Using Newton Backward Difference Interpolating polynomial, find the pressure of
the stream at 1750 𝑐
Solution
𝑥 − 𝑥0 180 − 170
𝑃= = = −0.5
ℎ 10
7
1 1 1
y(175) = 10.225 − (2.149) − (− + 1) (0.375)
2 4 2
1 1 1
− (− + 1) (− + 2) (0.049)
12 2 2
1 1 1 1
− (− + 1) (− + 2) (− + 3) (0.002)
48 2 2 2
= 9.1005
Tutorial problems
1. The population of a certain town obtained from a census was shown in the
table below
2. The population of a certain town obtained from a census was shown in the
table below
8
Obtain the value of A when
(i) 𝑡=4
(ii) t=9