You are on page 1of 3

Higher TechnologicalInstitute

Tenth of Ramadan City


Department of Basic Science.

Subject: Numerical method (MTH 103) Term: Nov2014


Examiner: Examiners Committee Time: 90 mins.
Mid Term Examination

Answer the following questions:


Question 1 (15 points)
a) Use Newton's method to approximate to within10 the root of the
-4

following equation in the given interval x2-sin3x-4=0, [1,2].

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

this polynomial to approximate f(0.05) and .

Course Examiners Committee ‫مع تمنياتي لكم بالنجاح‬


Model Answer

a) Use Newton's method to approximate to within10 -4 the root of the


following equation in the given interval x2-sin3x-4=0, [1,2].
Xn+1=xn-( xn2-sin3xn-4)/(2xn-3cos3xn)
X0=1.5
i 1 2 3 4 5
xi 1.712661756 1.783999727 1.79244853 1.792555063 1.792555079
E=|(1.792555063-1.792555079)/1.792555079|=9.0275*10-9<10-4

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

2-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

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

this polynomial to approximate f(0.05) and .

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

You might also like