Lec 1 Lagrange Interpolation
Lec 1 Lagrange Interpolation
Time (s) 5 10 20 30 50
Velocity 20 30 12 40 50
(m/s)
1. Velocity at 17 sec??
2. Acceleration after 17
sec??
To Think…
Taylor
approximation is
• accurate near 0.
• Not accurate
around x=3
Lagrange Interpolation:
x
f(x) f() f()
Two data points
The polynomial should satisfy the given data, so we can write it
as a combination of function value at and
f()+
f()+ f()
Activity:
Can you quickly check, Does satisfy the given data set??
Can you follow a pattern in Lagrange Coefficient??
Generalized form of Lagrange Polynomial
Lagrange
Polynomial curve
matching with
actual function
curve on the
interval [2,4]
To Think…
• Will Taylor series expansion about x=1 match the actual curve
1/x on the interval [2,4]??
• If there are 6 data points, Order of Lagrange polynomial is??
• If there are n data points, Order of Lagrange polynomial is ??
• What is the relation between number of data points and
Lagrange polynomial??
• Is it possible to construct 3rd order polynomial, If 7 data points
are given? If possible, How??
• Is Lagrange applicable to equally spaced data set or unequally
spaced data??
• Can we construct a 2nd or higher order Lagrange polynomial
using two data points??
A sensor measures the position f(t) of a particle t (microseconds)
after a collision as given in the table. Use Lagrange to estimate
value of f(6).
t 3 5 10 12
f(t) 3 8 14 16