Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

Higher TechnologicalInstitute

Tenth of Ramadan City


Department of Basic Science.

Subject: Numerical method (MTH 103) Term: Jan 2015


Examiner: Examiners Committee Time: 90 mins.
Term Examination

Answer the following questions:


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

following equation in the given interval =0, [0,1].


Question 2. (18 points)
a)Use Lagrange's method to Construct polynomial of degree two
using the following table, and hence calculate f(1.5) and f '(1.5)
X 0 2 3
F(x) 1.0 9 27

a) Consider the following table to approximate f(0.5),f(4.3),f(9.8),f '(4.3)


and f ''(4.3)
X 0 2 4 6 8 10
F(x) 3 5 9 16 30 48
Question 3. (7 points)

Use Simpson's rules integration to compute the following integral

.Take h=0.25.

Question 4. (8 points)
Use Runge Kutta method of order two to approximate the solution of the
initial value problem y '= (y2+y)/t where 1 ≤ t ≤ 3 and y(1)=-2 with h=0.5
The model Answer:
Question 1
Use Newton's method to approximate to within10 the root of the
-4

following equation in the given interval =0, [0,1].


xi+1=xi-(xi-2-3xi)/(1+3(ln2)2-3xi)
i 0 1 2 3 4
x 0.5 0.4156021502 0.4186816112 0.4186862198 0.4186862198

Question 2. (10 points)


a)Use Lagrange's method to Construct polynomial of degree two
using the following table, and hence calculate f(1.5) and f
'(1.5)

X 0 2 3
F(x) 1.0 9 27

a) Consider the following table to approximate f(0.5),f(4.3),f(9.8),f '(4.3)


and f ''(4.3)
X 0 2 4 6 8 10
F(x) 3 5 9 16 30 48

X F(x)
0 3
2
2 5 2
4 1
4 9 3 3
7 4 10-
6 16 7 7-
14 -3
8 30 4
18
10 48

h=2,r=(.5-0)/2=0.25

f(0.5)=3+0.25*2+0.25*-0.75*2/2+0.25*-0.75*-1.75*1/6+0.25*-0.75*-
1.75*-2.75*3/24+0.25*-0.75*-1.75*-2.75*-3.75*-
10/120=3217/1024=2.972412109
h=2,r=(9.8-10)/2=-0.1

f(9.8)=48-0.1*18-0.1*0.9*4/2-0.1*0.9*1.9*-3/6-0.1*0.9*1.9*2.9*-7/24-
0.1*0.9*1.9*2.9*3.9*-10/120=46.411305
h=2,r=(4.3-4)/2=0.15

Question 3. (10 points)

b) Use Simpson's rules integration to compute the following integral


Take h=0.25.

X 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3


F(x) 2.718282 5.9634165 14.231604 37.41665 109.196300 355.466217 1295.032062 5292.790612 24309.25178

I=0.25(2.718282+24309.25178+4{5.9634165+37.41665+355.466217+5292.
790612}+2[14.231604+109.196300+1295.032062])/3=4159.619798

Question 4. (10 points)


Use Runge Kutta method of order two to approximate the solution of the
initial value problem y '= (y2+y)/t where 1 ≤ t ≤ 3 and y(1)=-2 with h=0.5
k1=0.5(-22-2)/1=1
k2=0.5(-12-1)/1.5=0
kave=0.5
y=-2+0.5=-1.5

k1=0.5(-1.52-1.5)/1.5=0.25
k2=0.5(-1.252-1.25)/2=5/64
kave=21/128=0.1640625
y=-171/128=-1.3359375

k1=0.5((-171/128)2-171/128))/2=0.112197876
k2=0.05475980868
kave=0.08347884234
y=-1.252458658

k1=0.5(-1.2524586582--1.252458658)/2.5=0.0632388063
k2=0.03750400066
kave=0.05037140348
y=-1.202087254

You might also like