Numerical Method
Numerical Method
Numerical Method
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.
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
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
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
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 ( x )=¿ ( 5 (3.1) ) −¿ ¿ ¿
1
1
f ( x )=0.33345687
f ( 3.01 ) −f ( 2.99 )
f 1 ( x )=
0.02
f ( x )=¿ ( 5 (3.01) ) −¿ ¿ ¿
1
1
f ( x )=0.33333457
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.
f ( x )=¿ ( 5 (3.0001) ) −¿ ¿ ¿
1
1
f ( x )=0.33333333
QUESTION 3
5
Approximate ∫ √1+ x dx by using trapezoidal rule with n=4 sub-intervals, giving your answer
3
5
5
10
∫ √1+ x dx ≈ T
3
h 0.5
T= T= ( 4+ 9+10+11+6 ) T =10
2 2
Q1
Q2
Q3
Total ❑ ×15=¿
25