Lagrange Interpolation
Lagrange Interpolation
Numerical
Methods
Module 3 part 3
By Carlos Hortinela IV
1
30 Mar 2020
Curve Fitting
Interpolation
Interpolation is the most common method to estimate
intermediate values between precise data point. The
common method used for this purpose is polynomial
interpolation. Recall the formula for the nth order
polynomial is
f n ( x) a0 a1 x a 2 x 2 a3 x 3 ... a n x n
For n + 1 data points, there is only one polynomial of
order n that passes through all the points. Polynomial
interpolation consists of determining the unique nth-
order polynomial that fits n + 1 data points.
2
30 Mar 2020
Curve Fitting
3
30 Mar 2020
Curve Fitting
n x xj
Li( x)
j 0; j i xi x j
4
30 Mar 2020
Curve Fitting
5
30 Mar 2020
Curve Fitting
6
30 Mar 2020
Curve Fitting
7
30 Mar 2020
Curve Fitting
8
30 Mar 2020
Curve Fitting
9
30 Mar 2020
Curve Fitting
10
30 Mar 2020
Curve Fitting
11
30 Mar 2020
Curve Fitting
( x x1 )( x x2 )( x x3 ) ( x x0 )( x x2 )( x x3 )
f 3 ( x) f ( x0 ) f ( x1 )
( x0 x1 )( x0 x2 )( x0 x3 ) ( x1 x0 )( x1 x2 )( x1 x3 )
( x x0 )( x x1 )( x x3 ) ( x x0 )( x x1 )( x x2 )
f ( x2 ) f ( x3 )
( x2 x0 )( x2 x1 )( x2 x3 ) ( x3 x0 )( x3 x1 )( x3 x2 )
12
30 Mar 2020
Curve Fitting
13