(i) y5 if y1 = 4, y3 = 120, y4 = 340, y5 = 2544
Answer y5=2544
y5 if y1 = 4, y3 = 120, y4 = 340, y6 = 2544
Here the intervals are unequal.
x0=1,y0=4,x1=3,y1=120,x2=4,y2=340,x3=6y3=2544
By Lagrange’s interpolation formula we have
y=f(x)=(x0−x1)(x0−x2)(x0−x3)(x−x1)(x−x2)(x−x3)×y0
+(x1−x0)(x1−x2)(x1−x3)(x−x0)(x−x2)(x−x3)×y1
+(x2−x0)(x2−x1)(x2−x3)(x−x0)(x−x1)(x−x3)×y2
+(x3−x0)(x3−x1)(x3−x2)(x−x0)(x−x1)(x−x2)×y3
Put x=5
f(5)=(1−3)(1−4)(1−6)(5−3)(5−4)(5−6)×4+(3−1)(3−4)(3−6)(5−1)(5−4)(5−6)×120
+(4−1)(4−3)(4−6)(5−1)(5−3)(5−6)×340
+(6−1)(6−3)(6−4)(5−1)(5−3)(5−4)×2544
=1052 y5=1052
(ii)
Here the intervals are unequal.
x0=−30,y0=30,x1=−12,y1=34,x2=3,y2=38,x3=18y3=42
By Lagrange’s interpolation formula we have
y=f(x)=(x0−x1)(x0−x2)(x0−x3)(x−x1)(x−x2)(x−x3)×y0
+(x1−x0)(x1−x2)(x1−x3)(x−x0)(x−x2)(x−x3)×y1
+(x2−x0)(x2−x1)(x2−x3)(x−x0)(x−x1)(x−x3)×y2
+(x3−x0)(x3−x1)(x3−x2)(x−x0)(x−x1)(x−x2)×y3
Put x=0
f(0)=(−30+12)(−30−3)(−30−18)(0+12)(0−3)(0−18)×30
+(−12+30)(−12−3)(−12−18)(0+30)(0−3)(0−18)×34
+(3+30)(3+12)(3−18)(0+30)(0+12)(0−18)×38
+(18+30)(18+12)(18−3)(0+30)(0+12)(0−3)×42
=11409 y0=11409
Comments