Professional Documents
Culture Documents
Interpolation
What is Interpolation ?
Given (x0,y0), (x1,y1), …… (xn,yn), find the
value of ‘y’ at a value of ‘x’ that is not given.
2 http://numericalmethods.eng.usf.edu
Interpolants
Polynomials are the most common
choice of interpolants because they
are easy to:
Evaluate
Differentiate, and
Integrate.
3 http://numericalmethods.eng.usf.edu
Lagrangian Interpolation
Lagrangian interpolating polynomial is given by
n
f n ( x) Li ( x) f ( xi )
i 0
where ‘ n ’ in f n (x) stands for the n th order polynomial that approximates the function y f (x)
4 http://numericalmethods.eng.usf.edu
Example-1
Certain corresponding values of x and log10 x are
xi f(xi)
Form formula
300
300, 2.4771 ,
2.4771
304 2.4829
305 2.4843
307 2.4871
Ln x
x x1 x x2 ....... x xn
y0
x x0 x x2 ....... x xn
y1 ........
x0 x1 x0 x2 ........ x0 xn x1 x0 x1 x2 ........ x1 xn
301 304 301 305 301 307 301 300 301 305 301 307
log10 301 2.4771 2.4829
300 304300 305300 307 304 300 304 305304 307
301 300301 304 301 307 2.4843 301 300 301 304 301 305 2.4871
305 300305 304 305 307 307 300 307 304 307 305
3 4 6 1 4 6
log10 301 2.4771 2.4829
4 5 7 4 1 3
1 3 6 1 3 4
2.4843 2.4871
51 2 7 3 2
2.4786
6
Example-2
Find the Lagrange interpolating polynomial of degree 2
approximating the function y ln x defined by the following
table of values. 2 0.69315
2.5 0.91629
3.0 1.09861