Interpolation: Presented by Parkhe Ravindra Ambadas
Interpolation: Presented by Parkhe Ravindra Ambadas
Presented by
PARKHE RAVINDRA AMBADAS
PARKHE R A INTERPOLATION 1
Interpolation
Interpolation is defined as calculating of given function
at intermediate value of independent variable.
Interpolation is classified as
Interpolation
PARKHE R A INTERPOLATION 2
Interpolation
X Y
x1=12 y1=25 find value of Y at given X
where X is 12<X<27
x2=15 y1=30 Here for example it will be asked to
x1=18 y1=25 find Y at 15.5
x2=21 y1=35
x1=24 y1=40
x2=27 y1=50
PARKHE R A INTERPOLATION 3
Newton's Forward Difference interpolation
X x1 x2 x3 x4 x5 x6 find value of Y at given Xg
Y y1 y2 y3 y4 y5 y6 where X g is X0<Xg<Xn
h=(x2-x1)=(x3-x2)
u=(xg-x1)/h
PARKHE R A INTERPOLATION 4
Calculate f (3.5) using forward difference formula.
x 2 3 4 5 6 7 8 9
y 19 48 99 178 291 444 643 894
yg=70.3750
PARKHE R A INTERPOLATION 5
Newton's Backward Difference interpolation
X x1 x2 x3 x4 x5 x6 find value of Y at given Xg
Y y1 y2 y3 y4 y5 y6 where X g is X0<Xg<Xn
h=(x2-x1)=(x3-x2)
u=(xg-x1)/h
PARKHE R A INTERPOLATION 6
Calculate f (4.12) using Backward difference formula.
x 0 1 2 3 4 5
f(x) 1 2 4 8 16 32
yg=11.279167
PARKHE R A INTERPOLATION 7
Lagrange's Interpolation
Lagrange’s Interpolation formula is applicable for any kind
of step size i.e. step size is equally spaced or unequally
spaced
X x1 x2 x3 x4 find value of Y at given Xg
Y y1 y2 y3 y4 where X g is X0<Xg<Xn
PARKHE R A INTERPOLATION 8
•Using Langranges interpolation formula for given set of values find y(1.5)
X 0 1 2 5
Y=f(x) 2 3 12 147
ሺ1.5−1ሻሺ1.5−2ሻ(1.5−5)
𝐿0 = ሺ0−1ሻሺ0−2ሻ(0−5)
= -0.0875 yg=L0×y0+ L1×y1+ L2×y2+ L3×y3
ሺ1.5−0ሻሺ1.5−2ሻ(1.5−5)
𝐿1 = ሺ1−0ሻሺ1−2ሻ(1−5)
= 0.6562 yg= (-0.0875× 2) +(0.6562×3 )+(0.4375×12 )+( -0.00625×147 )
ሺ1.5−0ሻሺ1.5−1ሻ(1.5−5)
𝐿2 = ሺ2−0ሻሺ2−1ሻ(2−5)
= 0.4375 yg=6.125
ሺ1.5−0ሻሺ1.5−1ሻ(1.5−2)
𝐿3 = ሺ5−0ሻሺ5−1ሻ(5−2)
= -0.00625
PARKHE R A INTERPOLATION 9
QUESTIONS FOR REVIEW:
1. What is INTERPOLATION?
2. What is the difference between forward difference and backward difference method?
3. Which method is useful for problems with unequal spacing in x values.
4. Write short note on INVERSE INTERPOLATION.
7. A set of values of x and f(x) are given below. Using Lagrange’s interpolation formula,
find f (9).
PARKHE R A INTERPOLATION 10
1. For following data using Forward difference polynomials. Interpolate at x=0.25
PARKHE R A INTERPOLATION 11
Thank You
PARKHE R A INTERPOLATION 12