MTH603 Assignment 1 by KK
MTH603 Assignment 1 by KK
Question 1 10 Marks
Use Newton Raphson method to find the root of f ( x )=x −2 x +2
3
Solution:1
Derivative: f ¿ ( x )=3 x 2−2
Iteration:1
f ( x0)
x 1=x o−
f ¿ ( x0)
0.008−0.4+ 2
x 1=0.2−
0.12−2
1.592
x 1=0.2−
−1.88
x 1 ≈ 0.9851
Iteration 2:
f ( x1)
x 2=x 1−
f ¿ ( x1)
0.9154
x 2=0.9851−
−1.7393
x 2 ≈ 1.5312
Iteration:3
f ( x2)
x 3=x 2−
f ¿ ( x2)
x 3 ≈ 1.6789
3
f ( x )=x −2 x +2 ≈ 1.6789
Question.2
−x +20 y + z=21
Solution:2
10 x+ y+ z=24 ≫ ≫ x 1=1/10(24− y −z)
[ ] [ ] []
10 1 1 24 0
0
−1 20 1 , b= 21 ,∧x = 0
−1 −2 100 300 0
Iteration.1
1 1
x 1= ( 24−( 1.0+1.0 ) )=2.4
10
1 1
x 2= ( 21−(−1.0+1.0 ) ) =1.05
20
1 1
x 3= ( 300−(−1.0+2.0 )) =3
100
Iteration.2
2 1
x 1= ( 24−( 1 ∙2. 4+1 ∙1.05 )) ≈ 1.69
10
2 1
x 2= ( 21−(−1∙ 2 . 4+1 ∙ 3 ) ) ≈1. 2
20
2 1
x 3= ( 300−(−1 ∙1.05+2 ∙ 3 ) ) ≈ 2.98
100
So, after the first iteration vector is x 2 ≈ [ 1.69 , 1.2, 2.98 ]