Week 4 Numericals
Week 4 Numericals
Interpolation
CONTENTS
1.Numerical Interpolation
2 .Lagrange
Interpolation
3 . N e w t o n's Divided
Difference
Interpolation
NUMERICAL
INTERPOLATION
NUMERICAL
INTERPOLATION
Linear
Interpolation
Things to
ponder on
It is also known as a quadratic polynomial or a parabola
Quadratic
Interpolation Collecting the terms:
How do we solve the b coefficients?
Things to Substitute bo to
ponder on
Substitute bo and b1 to
General Form of the
Newton's Divided
Difference
Interpolation
Divided differences are symmetric with respect to the arguments ,i.e, independent of
the order of arguments.
so, f[x0, x1]=f[x1, x0]
f[x0, x1, x2]=f[x2, x1, x0]=f[x1, x2, x0]
By using first divided difference, second divided difference as so on .A table is formed
which is called the divided difference table.
Things to
ponder on
bo
b1
1st-order 2nd-order
Example xo x1 x2 x3
bo
b1
b2
Insert the resulting b coefficients to the general equation of the polynomial.Then solve for x at
7.
LAGRANGE
INTERPOLATION
Lagrange Interpolation
Solution:
x = 0 ; x0 = -2 ; x1 = 1 ; x2= 3 ; x3 = 7 ; y0 = 5 ; y1 = 7 ; y2 = 11 ; y3 = 34
y = (x−x1)(x−x2)…..(x−xn)(x0−x1)(x0−x2)…..(x0−xn) y0 + (x−x0)(x−x2)…..(x−xn)(x1−x0)(x1−x2)…..(x1−xn) y1 + …. +
(x−x1)(x−x1)…..(x−xn−1)(xn−x0)(x0−x1)…..(xn−xn−1) yn
y = (0−1)(0−3)(0−7)(−2−1)(−2−3)(−2−7) × 5 + (0+2)(0−3)(0−7)(1+2)(1−3)(1−7) × 7 + (0+2)(0−1)(0−7)(3+2)(3−1)(3−7) ×
11 + (0+2)(0−1)(0−3)(7+2)(7−1)(7−3) × 34
y = 1087180
References
Chapra, S. C., & Canale, R. P. (2010). Numerical Methods for Engineers (6th Edition ed.). New York City:
McGrawHill. Lagrange's Interpolation - GeeksforGeeks