Professional Documents
Culture Documents
Roots of Equation
Asifur Rahman
CEN 205 Numerical Methods Asifur Rahman January 22, 2017 1/5
Newton’s Method Newton’s Method
Steps
1. Find initial estimate of root, xi .
2. Then determine f0 (x) and evaulate f0 (xi )
3. Determine next root, xi+1
4. Goto step 2
CEN 205 Numerical Methods Asifur Rahman January 22, 2017 2/5
Example 1 Newton’s Method
Newton’s Method
i xo f(xo ) f0 (xo ) xn a
1 2.5000 31.1150 39.3650 1.7096 46.2350
2 1.7096 7.8212 21.3107 1.3426 27.3363
3 1.3426 1.0652 15.7131 1.2748 5.3178
4 1.2748 0.0310 14.8045 1.2727 0.1645
CEN 205 Numerical Methods Asifur Rahman January 22, 2017 3/5
Example 2 Newton’s Method
i xo f(xo ) f0 (xo ) xn a
1 0.2500 0.5112 −1.7261 0.5462 54.2257
2 0.5462 0.0695 −1.2745 0.6007 9.0809
3 0.6007 0.0020 −1.2024 0.6024 0.2734
Ans. x = 0.6024 km
CEN 205 Numerical Methods Asifur Rahman January 22, 2017 4/5
Example 3 Newton’s Method
First Iteration
Ques. Solve the following equation using Newton’s xo = 2.5
method. Approximate error should be less than 1 percent.
f(xo ) = 2.5 sin 2.5 + cos 2.5 = 0.6950
f(x) = x sin x + cos x 0
f (xo ) = 2.5 cos 2.5 = −2.0029
Solution. f(xo ) 0.6950
xn = xo − = 2.5 − = 2.8470
The derivative of the funciton is, f0 (xo ) −2.0029
0
f (x) = x cos x + sin x − sin x 2.8470 − 2.5
a = = 12.1890
2.8470
0
f (x) = x cos x
Newton’s Method
i xo f(xo ) f0 (xo ) xn a
1 2.5000 0.6950 −2.0029 2.8470 12.1890
2 2.8470 −0.1304 −2.7244 2.7992 1.7093
3 2.7992 −0.0021 −2.6367 2.7984 0.0282
CEN 205 Numerical Methods Asifur Rahman January 22, 2017 5/5