Solved Examples 2
14/12/2020
Mansoura University Mechatronics Engineering Programs
Faculty of Engineering
Prof. Dr. Magdi S. El-Azab Numerical Analysis (MTH 201) .
1. Solve the equation correct to five decimal places.
Answer.
( )
0 1 2 3
( )
There is at least one root in ( ).
Newton- simple
n False-position Bisection
Raphson iteratio
method method method method
n x x x f (x ) a (- ) b (+ ) x f (x )
0 3 2 2 -37 2 3 2.500000 -21.562
1 2.888889 2.698167876 3 9 2.500000 3 2.750000 -8.605
2 2.881317 2.835504275 2.804348 -5.206144444 2.750000 3 2.875000 -0.443
3 2.881284 2.869483491 2.876049 -0.369369695 2.875000 3 2.937500 4.110
4 2.881284 2.878219944 2.880936 -0.024619083 2.875000 2.937500 2.906250 1.792
5 2.880486886 2.881261 -0.001622512 2.875000 2.906250 2.890625 0.6647
6 2.881076491 2.881284 5.26735E-06 2.875000 2.890625 2.882813 0.1083
7 2.881229933 2.881284 5.26735E-06 2.882813 2.882813 2.882813 0.1083
8 2.881269871 2.882813 2.882813 2.882813 0.1083
9 2.881280267 2.882813 2.882813 2.8828 0.1074
10 2.881282973 2.8828 2.882813 2.882807 0.1079
11 2.8828 2.882807 2.882804 0.1077
12 2.8828 2.882804 2.882802 0.1075
13 2.8828 2.882802 2.882801 0.1075
14 2.8828 2.882801 2.882801 0.1075
2. Use Newton-Raphson formula to solve numerically for the equation
,
correct to five decimal places.
Answer.
( )
0 1 2 3 3.1 3.2
( ) 9.78 9.05 6.35 0.15 -0.0053 0.04496
There is at least one root in the interval ( ), ( ). So
Newton-Raphson method
n x x
0 3 3.2
Dr Magdi S. El-Azab Solved Examples 2 Page 1/2
1 3.06097561 3.172840401
2 3.085135537 3.164068087
3 3.091514857 3.16296161
4 3.092052477 3.162943622
5 3.092056383 3.162943617
6 3.092056383 3.162943617
3. Derive the false position formula to solve the equation ( ) . Hence use this method to
find the smallest positive root of the equation
⁄
,
correct to five decimal places. Compare your results with those which are obtained if we use
the bisection method.
⁄
Answer. ( ) ( ) ( )
There is at least one root in ( ).
the false position method theBisection method
n 0 3.0000 n a (+ ) b (- ) x f (x )
1 -0.2840 0 0 1 0.5 1.1169
1 0.9135201 -0.0761 1 0.5 1 0.75 0.3563
1 -0.2840 2 0.75 1 0.875 0.0211
2 0.8818649 0.0036 3 0.875 1 0.9375 -0.1352
1 -0.2840 4 0.875 0.9375 0.90625 -0.0580
3 0.8833436 -0.0002 5 0.875 0.90625 0.890625 -0.0187
1 -0.2840 6 0.875 0.890625 0.8828125 0.0012
4 0.8832614 0.0000 7 0.8828125 0.890625 0.8867188 -0.0088
1 -0.2840 8 0.882813 0.886719 0.8847656 -0.0038
5 0.8832614 0.0000 9 0.8828125 0.8847656 0.8837891 -0.0013
1 -0.2840 10 0.8828125 0.8837891 0.8833008 -0.0001
6 0.8832614 0.0000 11 0.8828125 0.8833008 0.8830566 0.0005
12 0.883057 0.883301 0.8831787 0.0002
13 0.883179 0.883301 0.8832397 0.0001
14 0.88324 0.883301 0.8832703 0.0000
15 0.88327 0.883301 0.8832855 0.0000
16 0.883286 0.883301 0.8832932 -0.0001
17 0.883286 0.883293 0.8832893 -0.0001
18 0.883286 0.883289 0.8832874 -0.0001
19 0.883286 0.883287 0.8832865 -0.0001
20 0.883286 0.883286 0.883286 -0.0001
Dr Magdi S. El-Azab Solved Examples 2 Page 2/2