9.3 Newton–Raphson and other recurrence relations — Learn
Prerequisites: differentiating powers, exponentials and logarithms from Section 7.3; the tangent to a curve from Section 7.5; rearranging an equation into the form from Section 9.2; bracketing a root by change of sign from Section 9.1.
By the end of this section you can: use the Newton–Raphson formula to find a root to a required accuracy; explain where the formula comes from; recognise a recurrence relation that is Newton–Raphson in disguise; and explain three ways the method can fail.
1. From a tangent to a formula
Section 9.2 found a root by rearranging an equation and iterating. That works, but it can be slow. The Newton–Raphson method uses the tangent instead.
Suppose is a root of , so the graph crosses the axis at . Pick a first estimate near . Draw the tangent to the curve at the point . Near that point the tangent follows the curve closely, so it meets the axis near . Call that meeting point .
The tangent through has gradient , so its equation is
At the point where the tangent meets the axis, and . Substitute both values:
Divide both sides by and add :
Repeat the same step with in place of . The Newton–Raphson formula is
Each step needs the value of the function and the value of its derivative at the current estimate. The method is also called the Newton–Raphson iteration.
2. Using the formula
Example 1. Use Newton–Raphson with to find a root of to four decimal places.
Write and differentiate:
Now apply the formula. Keep the full value in the calculator at every step.
The values settle after three steps. The root is to four decimal places. Compare this with Section 9.1, where the same root needed four halving steps to reach two decimal places.
3. A recurrence relation in disguise
Some recurrences look unlike Newton–Raphson but turn out to be the same method. Check a recurrence by writing it as and looking for .
Example 2. Show that the recurrence is Newton–Raphson applied to . Use it with to find .
Take , so . Then
This is the given recurrence, so the recurrence is Newton–Raphson for . The root it finds is .
Now iterate from :
The value agrees with to six decimal places. Newton–Raphson reaches the value in three steps because it uses the gradient, not only the height.
4. Exponential and logarithmic equations
The same formula works for any differentiable function. Bring every term to one side before you start, so the equation reads .
Example 3. Use Newton–Raphson with to find a root of to four decimal places.
Rearrange to and write . Then . Substitute :
Apply the formula:
Repeat with :
The root is to four decimal places.
The equation has a second root near , because and . Starting from finds that root instead. The starting value decides which root the method reaches.
5. When Newton–Raphson fails
Three things can go wrong. Each one has a clear cause.
A stationary point at the starting value. If , the formula divides by zero. The tangent is horizontal, so it never meets the axis. For , the starting value gives . The method breaks down at the first step.
The iterates settle into a cycle. The formula can jump back and forth without reaching the root. For from :
The values repeat for ever. The method never settles, even though the formula was applied correctly.
The gradient leads the estimate far away. A step can overshoot. For with a starting value far from a root, the first tangent can cross the axis a long way from the root. The next step then starts from a poor value. A sketch of the curve shows the danger before you iterate.
Watch out. Three mistakes are common.
Dividing by a zero derivative. If , the step is undefined. Re-check: work out before you begin. Choose a starting value where the derivative is not zero.
Assuming the method always works. Newton–Raphson can cycle, overshoot or find a different root from the one you expected. Re-check: bracket the root by change of sign first, so you know which root you are aiming for.
Rounding every iterate. Rounding each value to three decimal places can change the value the method settles on. Re-check: keep the full value in the calculator and round only the value you write down.
6. Try it: the tangent and the next estimate
Predict first. The figure shows a curve, a movable starting value and the tangent at that point. Before you move the slider, predict whether the first estimate lies to the left or to the right of a root. Write down your prediction.
Test. Choose each equation and move the starting-value slider. Watch the first estimate, the list of iterates and the message about what the method is doing.
Explain. Write two sentences. The first explains why the tangent gives a better estimate than the starting value. The second describes what happens when the starting value sits at a stationary point.
Progress check
Return to the chapter problem. The drone's height is .
- Differentiate to find .
- Use Newton–Raphson with to find to four decimal places.
- Continue to find and . Give the landing time to three decimal places.
You should now be able to
- explain how the tangent to a curve produces the Newton–Raphson formula;
- use to find a root;
- keep full precision in the calculator and round only the answer;
- show that a recurrence relation is Newton–Raphson for a chosen function;
- explain why a zero derivative, a cycle or a distant starting value makes the method fail;
- compare Newton–Raphson with the simple iteration of Section 9.2.