9.2 Simple iterative methods, cobweb and staircase diagrams — Learn
Prerequisites: rearranging an equation from Chapter 2; reading the graph of a function from Section 2.9; differentiating a power from Section 7.3; logarithms from Section 6.3.
By the end of this section you can: rearrange an equation into the form ; use the recurrence to find a root approximately; draw and read a cobweb or staircase diagram; and explain why a rearrangement converges or diverges.
1. From an equation to a recurrence
Change of sign traps a root but does not find it to many decimal places. The next method finds the value by repeating the same calculation.
Start with an equation written as . A value that satisfies it is a fixed point of the function , because sends the value back to itself. From any starting value , apply the rule again and again:
This is a recurrence relation, also called an iterative method. Each output becomes the next input.
Example 1. Rearrange into the form .
Take the term to the other side, so becomes . Divide both sides by :
Now , and the recurrence is .
2. Iterating to a root
Example 2. Use with . Find , , and , and describe what happens.
Substitute each value into the right-hand side in turn:
The values climb towards . In fact the fixed point is , because . The iterations approach it from below.
Example 3. Use with . Find , and .
The values are , and . They close in on the fixed point from both sides.
3. Cobweb and staircase diagrams
A cobweb diagram shows the iteration on one picture. Draw the line and the curve . From the starting value, move vertically to the curve, then horizontally to the line . Repeat.
Each vertical move applies , and each horizontal move carries the new value back to the line as the next input. The shape of the path depends on the gradient of near the fixed point.
- a staircase steps towards the fixed point from one side, and happens when ;
- a cobweb spirals in from alternating sides, and happens when ;
- a spiral outwards moves away from the fixed point, and happens when .
So the iteration converges to the fixed point when near it, and diverges when . The condition is a local one: it is checked at the fixed point, not across the whole curve.
Example 4. For , find and use it to explain why the iteration in Example 2 converges.
Differentiate term by term:
The gradient has magnitude everywhere, and in particular at the fixed point . Each step closes of the remaining gap, so the values converge quickly. The path is a staircase.
4. When an iteration fails
A rearrangement can converge or diverge, depending on which one you choose.
Example 5. The recurrence has the fixed point , because . Take and find the first three values.
The values run away from . The gradient is , and , so the iteration diverges.
Example 6. Returning to , the rearrangement also comes from moving the terms across. Take :
The values jump about and do not settle. Here , and at the root the magnitude is about , so this rearrangement diverges. The rearrangement from Example 1 converges for the same root, because there is about . The equation has not changed; only the rearrangement has.
Watch out. Three mistakes are common.
Blindly substituting into a rearrangement that diverges. A recurrence can be set up correctly and still run away from the root. Re-check: work out at the root and confirm that before you iterate.
Stopping too early. Two successive values that agree to three decimal places do not guarantee three correct decimal places in the root. Agreement is a practical signal to stop, not a proof. Improve the accuracy by iterating more, or check the bracket with a change of sign.
Rounding at every step. Keep the full value in the calculator and round only the value you write down. Rounding each iterate to two decimal places can change the answer the method reaches.
5. Try it: cobweb and staircase
Predict first. The figure shows and for three different rearrangements, each with the same fixed point. Before you move anything, predict which one steps neatly towards the fixed point and which one spirals away.
Test. Choose each rearrangement from the list and move the starting-value slider. Watch the first four iterates in the readout and the path drawn on the diagram.
Explain. Write two sentences. The first explains why the gradient of at the fixed point decides whether the iteration converges. The second explains why a staircase and a cobweb look different even though both converge.
Progress check
Return to the chapter problem. The drone's height is , and it lands when . Divide both sides of by to get .
- Show that this rearranges to .
- Use the recurrence with . Work out , and to four decimal places.
- The values do not settle quickly. Section 9.3 uses a faster method.
You should now be able to
- rearrange an equation into the form ;
- explain what a fixed point of is;
- use a recurrence relation to produce successive approximations to a root;
- draw and read a cobweb or staircase diagram;
- find at a fixed point and use to explain convergence;
- explain why one rearrangement can converge while another diverges;
- explain why a slow method or early rounding can give a poor answer.