Lecture05 - Polynomial Interpolation
Lecture05 - Polynomial Interpolation
Statistics
Lecture 5:
Polynomial Interpolation
Objectives
Introduction
Newton’s Divided Difference Method
i. Linear interpolation
ii. Quadratic interpolation
iii. General Form of Newton’s Interpolation
Lagrange Interpolation
f1 ( x) f ( x0 ) f ( x1 ) f ( x0 )
x x0 x1 x0
f ( x1 ) f ( x0 )
f1 ( x) f ( x0 ) ( x x0 )
x1 x0
f ( x1 ) f ( x0 )
f1 ( x) f ( x0 ) ( x x0 )
x1 x0
Linear interpolation
f ( x1 ) f ( x0 )
f1 ( x) f ( x0 ) ( x x0 )
x1 x0
1. Using ln1 and ln6
1.791759 0
f1 (2) 0 (2 1) 0.3583519 εt=48.3%
6 1
f ( x1 ) f ( x0 )
Evaluate f at x = x1 b1
x1 x0
f ( x2 ) f ( x1 ) f ( x1 ) f ( x0 )
x2 x1 x1 x0
b2
Evaluate f at x = x2 x2 x0
f ( x1 ) f ( x0 ) ln 4 ln 1 1.386294 0
b1 0.4620981
x1 x0 4 1 3
f ( x2 ) f ( x1 ) f ( x1 ) f ( x0 ) 1.791759 1.386294
0.4620981
x2 x1 x1 x0 64
b2
x2 x0 6 1
0.0518731
Then
f 3 (2) 0.6287686 t 9.3%
where n x xj
Li ( x)
j 0 xi x j
j i
x0 = 1 f (x0) = 0
x1 = 4 f (x1) = 1.386294
x2 = 6 f (x2) = 1.791759
x 1 2 3 5 6
x 1 2 3 5 6
f (x) 4.75 4 5.25 19.75 36
Computational Methods
Statistics