Professional Documents
Culture Documents
Tutorial8 Newton Method
Tutorial8 Newton Method
A. Derivation
The Newton-Raphson method is based on the principle that if the initial guess of the root of
f ( x) 0 is at xn , then if one draws the tangent to the curve at f ( xn ) , the point xn 1 where
the tangent crosses the x -axis is an improved estimate of the root (Figure 1).
Using the definition of the slope of a function, at x xn
f xn = tan θ
f xn 0
= ,
xn xn 1
which gives
f xn
xn 1 = xn (1)
f xn
Equation (1) is called the Newton-Raphson formula for solving nonlinear equations of the
form f x 0 . So starting with an initial guess, xn , one can find the next guess, xn 1 , by
using Equation (1). One can repeat this process until one finds the root within a desirable
tolerance.
Algorithm
The steps of the Newton-Raphson method to find the root of an equation f x 0 are
1. Evaluate f x symbolically
2. Use an initial guess of the root, xn , to estimate the new value of the root, xn 1 , as
f xn
xn 1 = xn
f xn
3. Compare and find out if the satisfies , else stop the process, if not, then go to Step
2 Also, check if the number of iterations are within requires decimal positions. If
so, one needs to terminate the process and verify the answer.
1
Newton-Raphson Method 03.04.2
f (x)
f (xn+1)
θ
x
xn+2 xn+1 xn
C. Example:
Use the Newton-Raphson method of finding roots of equation to show three iteration on the
function given by
f x x 3 0.165x 2 3.993 10 4
2
Newton-Raphson Method 03.04.3
Solution
f x x 3 0.165x 2 3.993 10 4
f x 3x 2 0.33x
Let us assume the initial guess of the root of f x 0 is x0 0.05 m. this is a reasonable
guess (discuss why x 0 and x 0.11 m are not good choices) as the extreme values of the
depth x would be 0 and the diameter (0.11 m) of the ball.
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
Iteration 2
The estimate of the root is
f x1
x2 x1
f x1
0.06242
0.062423 0.1650.062422 3.993 10 4
30.06242 0.330.06242
2
3.97781 10 7
0.06242
8.90973 10 3
0.06242 4.4646 10 5
0.06238
Iteration 3
The estimate of the root is
f x2
x3 x 2
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 109
0.06238
3
Newton-Raphson Method 03.04.4
D. Newton-Raphson Exercises
Use Newton-Raphson method to obtain the positive roots of the following equations
(questions 1 – 7) to the degrees of accuracy stated.
Determine the value of t near to 4.2, correct to 3 significant digits, when the magnitude
y of the oscillation is zero
10. The critical speeds of oscillation, of a loaded beam are given by the equation:
3 3.2502 0.063 0
Determine the value of which is approximately equal to 3.0 correct to 4 decimal
places
Answers