Newton's Divided Difference Interpolation Formula
Newton's Divided Difference Interpolation Formula
Newton's Divided Difference Interpolation Formula
x0 , y 0 and x1 , y1 is
Px a0 a1 x x0
Px a0 a1 x x0
Set x x0
P x0 y0 a0
Set x x1
P x1 y1 a0 a1 x1 x0
y1 y 0
a1
x1 x0
Newton’s equation of a function that passes
through three points
P x a0 a1 x x0
a2 x x0 x x1
a3 x x0 x x1 x x2
P x a0 a1 x x0
a2 x x0 x x1
a3 x x0 x x1 x x2
f xi f xi
The divided difference of a function, f
with respect to xi and xi 1
f xi 1 f xi
f xi , xi 1
xi 1 xi
The divided difference of a function, f
with respect to xi , xi 1 and xi 2
f xi 1 , xi 2 f xi , xi 1
f xi , xi 1 , xi 2
xi 2 xi
The third divided difference with respect to
x i
, x i 1
, xi 2 and x i 3
f xi , xi 1 , xi 2 , xi 3
f xi 1 , xi 2 , xi 3 f xi , xi 1 , xi 2
xi 3 xi
The coefficients of Newton’s interpolating polynomial
are:
a0 f x0
a1 f x0 , x1
a2 f x0 , x1 , x2
a3 f x0 , x1 , x2 , x3
a4 f x0 , x1 , x2 , x3 , x4 and so on.
Example - 1
Find Newton’s interpolating polynomial to approximate
a function whose 5 data points are given below also
find 𝒇(𝟐. 𝟖).
x f x
2.0 0.85467
2.3 0.75682
2.6 0.43126
2.9 0.22364
3.2 0.08567
𝒙𝒊 𝒇[𝒙𝒊 ] 𝒇 𝒙𝒊−𝟏 , 𝒙𝒊 𝒇 𝒙𝒊−𝟐 , 𝒙𝒊−𝟏 , 𝒙𝒊 𝒇 𝒙𝒊−𝟑 , … , 𝒙𝒊 𝒇 𝒙𝒊−𝟒 , … , 𝒙𝒊
2.0 0.85467
-0.32617
-1.08520 2.1336
-0.6921 -0.2980
-0.45990
3.2 0.08567
The 5 coefficients of the Newton’s interpolating
polynomial are:
a0 f x0 0.85467
a1 f x0 , x1 0.32617
a2 f x0 , x1 , x2 1.26505
a3 f x0 , x1 , x2 , x3 2.13363
a4 f x0 , x1 , x2 , x3 , x4 2.02642
P x a0 a1 x x0
a2 x x0 x x1
a3 x x0 x x1 x x2
a4 x x0 x x1 x x2 x x3
P x 0.85467 0.32617 x 2.0
-1.26505 x 2.0 x 2.3
2.13363 x 2.0 x 2.3 x 2.6
2.02642 x 2.0 x 2.3 x 2.6 x 2.9
𝑃 𝑥 = −100.1147 + 155.7512 ∙ 𝑥
−88.5126 ∙ 𝑥2 + 21.9925 ∙ 𝑥3 − 2.02642 ∙ 𝑥4
𝑃 2.8 = −100.1147 + 155.7512 ∙ 2.8
−88.5126 ∙ 2.8 2 + 21.9925 ∙ 2.8 3
− 2.02642 ∙ 2.8 4
x f x
1.0 0
2.0 1
4.0 2
0.5 -1
𝒙𝒊 𝒇[𝒙𝒊 ] 𝒇 𝒙𝒊−𝟏 , 𝒙𝒊 𝒇 𝒙𝒊−𝟐 , 𝒙𝒊−𝟏 , 𝒙𝒊 𝒇 𝒙𝒊−𝟑 , … , 𝒙𝒊
1.0 0
2.0 1 -0.1667
0.5 0.1428
4.0 2 -0.2381
0.8571
0.5 -1
The 4 coefficients of the Newton’s interpolating
polynomial are:
𝑎0 = 𝑓 𝑥0 = 0
𝑎1 = 𝑓 𝑥0 , 𝑥1 = 1
𝑎2 = 𝑓 𝑥0 , 𝑥1 , 𝑥2 = −0.1667
𝑎3 = 𝑓[𝑥0 , 𝑥1 , 𝑥2 , 𝑥3 ] = 0.1428
𝑃 𝑥 = 𝑎0 + 𝑎1 𝑥 − 𝑥0
+𝑎2 𝑥 − 𝑥0 𝑥 − 𝑥1
+𝑎3 𝑥 − 𝑥0 𝑥 − 𝑥1 𝑥 − 𝑥2
𝑃 𝑥 = 0 + 1 𝑥 − 1.0
−0.1667 𝑥 − 1.0 𝑥 − 2.0
+0.1428 𝑥 − 1.0 𝑥 − 2.0 (𝑥 − 4.0)
𝑃 𝑥 = −2.4758 + 3.4993 ∙ x
2
−1.1663 ∙ x + 0.1428 ∙ x 3
Example-3
The upward velocity of a rocket is given as a function of time in
Table 1. Find the velocity at t=16 seconds using the Newton Divided
Difference method.
Given 𝑣 16 = 392 𝑚/𝑠, calculate the absolute relative error.
Table. Velocity as a
function of time
So
16
s16 s11 v t dt
11
16
( 4.2541 21.265t 0.13204t 2 0.0054347t 3 ) dt
11
16
t2 t3 t4
4.2541t 21.265 0.13204 0.0054347
2 3 4 11
1605 m
Acceleration from Velocity Profile
29.664 m / s 2