Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

MTH 603

ASSIGNMENT NO 01

STD ID: MC190201820 STD Name: Naman Ahmad

Question NO.1

Find a root of the given equation using Newton-Raphson Method Keep values correct to
four decimal places.

Solution:

x3  2 x 2 10 x  20  0
Solution :
f ( x)  x3  2 x2 10 x  20
f ' ( x)  3x2  4 x 10
As x 0  1.5
then values of f (1.5) and f ' (1.5) will be
f (x 0 )  (1.5)3  2(1.5)  10(1.5)  20
 2.875
f ' (x 0 )  3(1.5)3  4(1.5)  10
 22.75
1st Ietration:
f ( x0 )
x1  x0 
f ' ( x0 )
2.875
 1.5 
22.75
 1.5  0.12637
x1  1.3736
2nd Ietration:
x1  1.3736
f ( x1 )  (1.3736)3  2(1.3736)2  10(1.3736)  20
 0.10117
f ' ( x1 )  3(1.3736)2  4(1.3736)  10
 21.1547
Now
f ( x1 )
x2  x1 
f ' ( x1 )
0.10117
 1.3736 
21.15473
 1.3736  0.00478
 1.3688
3rd Ietration:
x2  1.3688
f ( x2 )  (1.3688)3  2(1.3688) 2  10(1.3688)  20
 20.0002  20
 0.0002
f ' ( x2 )  3(1.3688)2  4(1.3688)  10
 21.0963

x3  x2 
f ( x2 )
f ' ( x2 )
0.0002
 1.3688 
21.0963
 1.3688  0.0000094
 1.3688
Since, values of 2 nd and 3rd ietration are correct
So the required solution is "1.3688"

Question NO.2
Find the root of the given equation using three iterations by Bisection method
x 3  x  11  0 Identify the initial bracket (x0 , x1 ) First
Solution:

x 0 1 2 3
F(x) -11 -11 -5 -13

x 3  x  11  0
f ( x)  x 3  x  11
for value of x 0 and x1
f (0)  11, f (1)  11
f (2)  5, f (3)  13
f (2)  0 and f (3)  0 so root lies between 2 and 3
x 0  2 and x1  3
1st iteration :
x +x
x2  0 1
2
23 5
x2    2.5
2 2
f (2.5)  (2.5)3  (2.5)  11
 2.125  0
f (2)  0 and f (2.5)  0
So root lies between f (2) and f (2.5)
2nd iteration :
x +x
x3  0 2
2
2  2.5 4.5
x3    2.25
2 2
f (2.25)  (2.25) 3  (2.25)  11
 1.859375
f (2.5)  0 and f (2.25)  0
root lies between 2.5 and 2.25
3rd iteration :
x +x
x4  2 3
2
2.5  2.25 4.75
   2.375
2 2
f (2.375)  (2.375)3  (2.375)  11
 0.02148
f (2.375)  0, f (2.25)  0
So root lies between 2.375 and 2.25

You might also like