Professional Documents
Culture Documents
b) Use fixed point iteration to find a solution accurate to within 10-4 for
f(x)=x3-x-2, 1 2
Question 2. (15points)
a)Use the following values to Construct a Lagrange polynomial of
degree two. Find an approximation to f (2.3)
X 1 2 3
F(x) 0.5103757 0.5207843 0.5104147
b) Obtain the third Taylor polynomial for f(x)=(1+x)-2 about x0=0 and use
Use fixed point iteration to find a solution accurate to within 10-4 for
f(x)=x3-x-2, 1 2
G(x)= (x+2)1/3,G'(x)=(x+2)-2/3/3, G'(1.5)=0.144599<1
xn+1=(xn+2)1/3
i 1 2 3 4 5
xi 1.518294486 1.520935263 1.521315698 1.521370489 1.521378379
E=|(1.521378379-1.521370489)/1.1.521378379|=5.186*10-6<10-4
P2(x)=
0.5103757(x-2)(x-3)/(1-2)(1-3)+0.5207843(x-1)
(x-3)/(2-1)(2-3)+0.5104147(x-1)(x-2)/(3-1)(3-2)=
-0.0103891x2+0.0415759x+0.4791889
F(2.3)= -0.0103891(2.3)2+0.0415759(2.3)+0.4791889=
0.5103757(2.3-2)(2.3-3)/(1-2)(1-3)+0.5207843(2.3-
1)(2.3-3)/(2-1)(2-3)+0.5104147(2.3-1)(2.3-2)
/(3-1)(3-2)=0.519855131
b) Obtain the third Taylor polynomial for f(x)=(1+x)-2 about x0=0 and use
f(x)=(1+x)-2 f(0)=1
f'(x)=-2(1+x)-3 f'(0)=-2
f''(x)=6(1+x)-4 f''(0)=6
f'''(x)=-24(1+x)-5 f'''(0)=-24
f(x)=1-2x+6x2/2!-24x3/3!=1-2x+3x2-4x3
f(0.05)=0.907