NUMERICAL METHOD (ESEB4194)
TEST (15%)
NAME : ANNATASIA
MATRIC NO :
INSTRUCTIONS TO CANDIDATES:
1. Please read the instruction under of the section carefully.
2. Candidates are required to answer ALL questions.
(This Question Paper consists of 2 pages including front page)
1
There are THREE (3) questions. Answer ALL questions.
QUESTION 1
Apply Newton’s method to solve the algebraic equation f ( x )=x 3 + x−1=0 correct to 6
decimal places. (Start with x 0=1).
Solution: (5 Marks)
3
f ( x )=x + x−1
1 2
f ( x )=3 x +1
3
f ( 1 ) =1 + 1−1 = 1
1 2
f ( 1 )=3 ( 1 ) +1=4
1
For n = 0, x 1=1− =0.75
4
f ( 0.75 )=0.753 +0.75−1 = 0.171875
1 2
f ( 0.75 )=3 ( 0.75 ) +1=2.6875
0.171875
For n = 1, x 2=0.75− =0.686047
2.6875
3
f ( 0.686047 )=0.686047 + 0.686047−1 = 0.008942
1 2
f ( 0.686047 )=3 ( 0.686047 ) +1=¿2.411981
0.008942
For n = 2, x 3=0.686047− =¿0.682340
2.411981
3
f ( 0.682340 )=0.682340 + 0.682340−1 = 0.000029
1 2
f ( 0.682340 )=3 ( 0.682340 ) +1=¿ 2.396764
0.000029
For n = 3, x 4 =0.682340− =0.682328
2.396764
3
f ( 0.682328 )=0.682328 + 0.682328−1 = 0.000001
1 2
f ( 0.682328 )=3 ( 0.682328 ) +1=¿ 2.396714
2
0.000001
For n = 4, x 5=0.682328− =0.682328
2.396714
n Xn 3
f ( x )=x + x−1
1 2
f ( x )=3 x +1
0 1 1 4
1 0.75 0.171875 2.6875
2 0.686047 0.008942 2.411981
3 0.682340 0.000029 2.396764
4 0.682328 0.000001 2.396714
5 0.682328
The roots estimate accurate to 6 decimal places is 0.682328
QUESTION 2
Approximate the derivative of ln (5 x )at x=3 , for the various values of given h below using a
Central Difference Formula. All computations must be rounded off to 8 decimal places and
determine the accuracy levels.
a) h=0.1
b) h=0.01
c) h=0.001
d) h=0.0001
3
Solution: (10 Marks)
1 f ( 3+ 0.1 )−f ( 3−0.1 )
a) f ( x )=
2 ( 0.1 )
f ( 3.1 )−f ( 2.9 )
f 1 ( x )=
0.2
f ( x )=¿ ( 5 (3.1) ) −¿ ¿ ¿
1
1
f ( x )=0.33345687
therefore, the accuracy level is 3 decimal places.
1 f ( 3+ 0.01 )−f ( 3−0.01 )
b) f ( x )=
2 ( 0.01 )
f ( 3.01 ) −f ( 2.99 )
f 1 ( x )=
0.02
f ( x )=¿ ( 5 (3.01) ) −¿ ¿ ¿
1
1
f ( x )=0.33333457
therefore, the accuracy level is 5 decimal places.
1 f ( 3+ 0.001 )−f ( 3−0.001 )
c) f ( x )=
2 ( 0.001 )
f ( 3.001 ) −f ( 2.999 )
f 1 ( x )=
0.002
f ( x )=¿ ( 5 (3.001) ) −¿ ¿ ¿
1
1
f ( x )=0.33333335
4
therefore, the accuracy level is 7 decimal places.
1 f ( 3+ 0.0001 )−f ( 3−0.0001 )
d) f ( x )=
2 ( 0.0001 )
f ( 3.0001 )−f ( 2.9999 )
f 1 ( x )=
0.0002
f ( x )=¿ ( 5 (3.0001) ) −¿ ¿ ¿
1
1
f ( x )=0.33333333
therefore, the accuracy level is 8 decimal places.
QUESTION 3
5
Approximate ∫ √1+ x dx by using trapezoidal rule with n=4 sub-intervals, giving your answer
3
correct to three decimal places
Solution: (10 Marks)
Interval (3,5)
n=4
5−3 2
h= h= h=0.5
4 4
f ( x )= √1+ x
i Xi Yi=√ 1+ Xi Coefficient Coefficient*Yi
0 x 0=3.00 4 1 4
1 x 1=3.50 4.5 2 9
2 x 2=4.00 5 2 10
3 x 3=4.50 5.5 2 11
4 x 4 =5.00 6 1 6
5
5
10
∫ √1+ x dx ≈ T
3
h 0.5
T= T= ( 4+ 9+10+11+6 ) T =10
2 2
*** END OF QUESTION ***
Q1
Q2
Q3
Total ❑ ×15=¿
25