3 The Newton-Raphson method
You may recall (e.g. HELM booklet 13.3) that the Newton-Raphson method (often simply called Newton’s method) for approximating a zero of the function is given by
where denotes the first derivative of and where is an initial guess to the zero of . A graphical way of interpreting how this method works is shown in Figure 14.
Figure 14
At each approximation to the zero of we extrapolate so that the tangent to the curve meets the -axis. This point on the -axis is the new approximation to the zero of . As is clear from both the figure and the mathematical statement of the method above, we require that for .
Example 26
Let us consider the example we met earlier in Example 24. We know that the single positive zero of
lies between and . Use the Newton-Raphson method to approximate the zero of .
Solution
We must work out the derivative of to use Newton-Raphson. Now
on differentiating a product and recalling that . (To evaluate on a calculator recall that .)
We must choose a starting value for the iteration and, given that we know the zero to be between 1.5 and 2, we take . The first iteration of Newton-Raphson gives
where 6 decimal places are shown. The second iteration gives
Clearly this method lends itself to implementation on a computer and, for example, using a spreadsheet package, it is not hard to compute a few more iterations. Here is output from Microsoft Excel where we have included the two lines of hand-calculation above:
and all subsequent lines are equal to the last line here. The method has converged (very quickly!) to 1.543405, to six decimal places.
Earlier, in Example 25, we found that the bisection method would require 19 iterations to achieve 6 decimal place accuracy. The Newton-Raphson method gave an answer good to this number of places in just two or three iterations.
Task!
Use the starting value in an implementation of the Newton-Raphson method for approximating the zero of
(If you are doing these calculations by hand then just perform two or three iterations. Don’t forget to use radians.)
The derivative of is . The first iteration is
and the second iteration is
and so on. There is little to be gained in our understanding by doing more iterations by hand, but using a spreadsheet we find that the method converges rapidly:
It is often necessary to find zeros of polynomials when studying transfer functions. Here is a Task involving a polynomial.
Task!
The function has a single zero near . Use this value of to perform two iterations of the Newton-Raphson method.
Using the starting value you should find that and . This leads to
The second iteration should give you
Subsequent iterations will home in on the zero of . Using a computer spreadsheet gives:
where we have recomputed the hand calculations for the first two iterations.
We see that the method converges to the value .