Newton-Raphson Method: Numerical Analysis
Newton-Raphson Method: Numerical Analysis
Lecture 2
Newton-Raphson Method
Prepared by:
Dr. Rana M. Taha 1
Newton-Raphson Method
f(x)
f(xi) x f x
i, i f(xi )
xi 1 = xi -
f (xi )
f(xi-1)
xi+2 xi+1 xi X
AB
f(xi) B tan(
AC
f ( xi )
f ' ( xi )
xi xi 1
C A X f ( xi )
xi+1 xi xi 1 xi
f ( xi )
3
Figure 2 Derivation of the Newton-Raphson method.
Algorithm for Newton-Raphson Method
4
Step 1
5
Step 2
6
Example 1
Use the Newton’s method of finding roots of equations to find the depth ‘x’
to which the ball is submerged under water. Conduct three iterations to
estimate the root of the above equation with an accuracy of 10^-3.
8 http://numericalmethods.eng.usf.edu
Solve for f ' x
9
Iteration 1
The estimate of the root is
f x0
x1 x0
f ' x0
0.05
0.05 0.1650.05 3.993 10 4
3 2
30.05 0.330.05
2
1.118 10 4
0.05
9 10 3
0.05 0.01242
0.06242
10
Iteration 2
The estimate of the root is
f x1
x2 x1
f ' x1
0.06242
0.06242 0.1650.06242 3.993 10 4
3 2
30.06242 0.330.06242
2
3.97781 10 7
0.06242
8.90973 10 3
0.06242 4.4646 10 5
0.06238
11
Iteration 3
The estimate of the root is
f x2
x3 x2
f ' x2
0.06238
0.06238 0.1650.06238 3.993 10 4
3 2
30.06238 0.330.06238
2
4.44 10 11
0.06238
8.91171 10 3
0.06238 4.9822 10 9
0.06238 12
Example 2:
Let's approximate the root of the following function with
Newton Raphson Method f(x)= e^-x –X, error <0.005
13
Homework
Find the root of the equation x^2 - 4x - 7 near x =5 to the
nearest thousandth.
14