Numerical Analysis: Interpolation and Approximation

Verified

Added on  2023/06/03

|2
|692
|377
AI Summary
This text covers the topics of interpolation and approximation in numerical analysis. It includes solved examples and formulas for Lagrange interpolation, Newton's divided difference method, and more.

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
Ans 1.
(a)
y= y0+ ( y1 y0 ) xx0
x1x0
y=1+ 1x+1
1 y=1+ x +1=x y=x
(b)
f ( x )=f ( x2 ) + ( x x2 ) ( f ( x3 )f ( x1 ) )
2 x + ( xx2 )2
[ f ( x1 )2f ( x2 ) +f ( x3 ) ]
2 x2
f ( x ) =0+ ( x 0 ) ( 1+1 )
2 + x2 [ 10+1 ]
2 f ( x ) =x
(c)
Let ,f ( x )=ax3 +bx2+cx +d So ,1=a+bc +d0=d1=a+b+ c+d 32=8 a+4 b+2 c+ d
1=a+bc1=a+b+ c Adding we get ,0=a+ bc+ a+b+ c=2b¿ , b=0So , we get
1=ac 32=8a+2cSo ,8=8 a8 c Adding the previous two equations we get ,
328=8 a+2 c8 a8 c24=6 c c=4So ,1=a+04 +0a=5 So , we get theequation as
f ( x )=5x34x
(d)
y= y0+ ( y1 y0 ) xx0
x1x0
¿ , y=1+ ( 321 ) ( x1 )
1 y=1+31 x31 y=31 x30
(e)
f ( x )=f ( x2 ) + ( x x2 ) ( f ( x3 )f ( x1 ) )
2 x + ( xx2 )2
[ f ( x1 )2f ( x2 ) +f ( x3 ) ]
2 x2
f ( x ) =1+ ( x1 ) ( 321 )
2 + ( x1 ) 2 [ 021+32 ]
2 f ( x ) =1+ 31 ( x 1 )
2 + ( x1 ) 2 30
2
f ( x ) =1+ 31 ( x 1 )
2 +15( x1 ) 2
Ans 2.
P1 ( x ) =a0 +a1 ( xx0 ) P1 ( x ) =2+0.4 ( x2 ) P1 ( x ) =2+0.4 x0.8 P1 ( x ) =2.8+0.4 x
So , at x=2.7P1 ( x ) =2.8+1.08=1.72

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
P2 ( x ) =a0 +a1 ( xx0 ) + a2 ( x x0 ) ( xx1 )¿2+0.4( x2 ) +1.5( x2 ) ( x3 )
¿2+0.4 x0.8+1.5x27.5x+ 9¿ 1.5x2 7.1x6.2 So , at x=2.7 we have ,
P2 ( x ) =1.093519.176.2¿24.2765
P3 ( x ) =a0 + a1 ( xx0 ) + a2 ( xx0 ) ( x x1 ) +a3 ( x x0 ) ( x x1 ) ( xx2 )
P3 ( x ) =2+0.4( x2 ) +1.5( x2 ) ( x3 )0.4( x2 ) ( x3 ) ( x5 )
¿2+0.4 x0.8+ 1.5x27.5x+90.4x3 +3.6x210.4x9.6
¿0.4x3+ 5.1x217.5x3.4
So , at x=2.7 ; P3 ( x ) =7.8732+37.17947.253.4=21.3442
P4 ( x ) =a0 +a1 ( xx0 ) +a2 ( xx0 ) ( xx1 ) +a3 ( xx0 ) ( xx1 ) ( xx2 ) +a4 ( xx0 ) ( xx1 ) ( xx2 ) ( xx3 )
¿0.4x3+ 5.1x217.5x3.4+0.0005( x39x2+26x24 ) ( x5 )
¿0.4x3+5.1x217.5x3.4+0.0005x40.007x3 +0.0225x2+ 0.001x0.005
¿ 0.0005x40.407x3 +5.1225x217.499x3.405 isthe required equation
Therefore at x=2.7 we get ,
P4 ( x )=0.026578.01098+37.3430347.11233.405=21.15868
Ans3.
a b f(a) f(b) c=(a+b)/2 f(c) Update new b-a
1 2 -4 -1 1.5 -2.75 c=a=1.5 0.5
1.5 2 -2.75 -1 1.75 -1.9375 c=a=1.75 0.25
1.75 2 -1.9375 -1 1.875 -1.48438 c=a=1.875 0.125
1.875 2 -1.48438 -1 1.9375 -1.2461 c=a=1.9375 0.0625
1.9375 2 -1.2461 -1 1.96875 -1.124 c=a=1.96875 0.03125
1.96875 2 -1.124 -1 1.98438 -1.062 c=a=1.98438 0.01562
1.98438 2 -1.06224 -1 1.99219 -1.03118 c=a=1.99219 0.00781
1 out of 2
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]