Salam Academy
Learn9MA0Paper 2 · Pure Mathematics 2Numerical methodsRearrangements, staircases and cobwebs
Numerical methods · Subtopic 3 of 4

Rearrangements, Staircases and Cobwebs

One equation can be rearranged into x=F(x)x=F(x) in many ways, and they do not all work. See why some iterations close in on a root, some zigzag towards it, and some run away, and learn to find the equation a limit satisfies.

Cambridge 9709 Paper 2Cambridge 9709 Paper 3Edexcel YMA01 WMA13Edexcel 9MA0 Paper 1Edexcel 9MA0 Paper 2AQA 7357 Paper 1≈ 40 minRevision 6 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Rearrange an equation f(x)=0f(x)=0 into the form x=F(x)x=F(x) in more than one way.
  • Find the equation, and sometimes the exact value, that the limit of an iteration satisfies.
  • Draw and read staircase and cobweb diagrams.
  • Use the gradient F′(α)F'(\alpha) to explain why an iteration converges or diverges.
Pause and think

x3−2x−5=0x^3-2x-5=0 can be written as x=2x+53x=\sqrt[3]{2x+5} or as x=x3−52x=\dfrac{x^3-5}{2}. Both are true at the root. Start each iteration at x1=2x_1=2. What happens?

Section 2 of 14

Core idea

Start hereWhy some iterations run away

x2−3x+2=0x^2-3x+2=0 has roots 11 and 22. The iteration xn+1=xn2+23x_{n+1}=\frac{x_n^2+2}3 finds 11 beautifully, but start it near 22 and it flees: 2.2,2.28,2.40,2.59…2.2,2.28,2.40,2.59\ldots The deciding factor is the gradient of gg at the root.

The big idea

xn+1=g(xn)x_{n+1}=g(x_n) converges to α\alpha (from nearby) if ∣g′(α)∣<1|g'(\alpha)|<1 and diverges if ∣g′(α)∣>1|g'(\alpha)|>1. 0<g′<10<g'<1: staircase; −1<g′<0-1<g'<0: cobweb.

1. The error argument

How errors change each step
  1. en=xn−αe_n=x_n-\alpha
    Error at step nn.
  2. en+1=g(xn)−g(α)e_{n+1}=g(x_n)-g(\alpha)
    xn+1=g(xn)x_{n+1}=g(x_n) and α=g(α)\alpha=g(\alpha).
  3. ≈g′(α)(xn−α)=g′(α)en\approx g'(\alpha)(x_n-\alpha)=g'(\alpha)e_n
    Near α\alpha the curve is almost its tangent.
Each error is multiplied by about g′(α)g'(\alpha). If ∣g′(α)∣<1|g'(\alpha)|<1 errors shrink; if >1>1 they grow.
Cobweb for x(n+1) = cos x(n), starting at 0
0.511.50.20.40.60.810xyy = xy = cos xroot 0.739
Estimates 0, 1, 0.540, 0.858, 0.654, 0.794, 0.701…0,\ 1,\ 0.540,\ 0.858,\ 0.654,\ 0.794,\ 0.701\ldots land on alternate sides of the root and spiral in.
Starting at 2.2: the staircase runs away from the root 2
0123411.522.533.5xyy = xy = (x² + 2)/3converges hererepels here
Near x=2x=2 the curve is steeper than y=xy=x, so each step overshoots by more: 2.2, 2.28, 2.40, 2.59, 2.90…2.2,\ 2.28,\ 2.40,\ 2.59,\ 2.90\ldots
Worked exampleWhich root can xn+1=xn2+23x_{n+1}=\frac{x_n^2+2}3 find?

Decide for each root of x2−3x+2=0x^2-3x+2=0.

Goal
Converge or diverge.
Strategy
Compute g′g' at each root.
  1. g′(x)=2x3g'(x)=\tfrac{2x}3
    Differentiate.
  2. g′(1)=23<1g'(1)=\tfrac23<1
    Converges (staircase).
  3. g′(2)=43>1g'(2)=\tfrac43>1
    Diverges.
AnswerFinds 11; can never find 22.
✓ CheckMatches the pictures ✓.
Worked examplexn+1=cos⁡xnx_{n+1}=\cos x_n

Describe the convergence.

Goal
Type.
Strategy
Sign and size of g′g'.
  1. 1, 0.5403, 0.8576, 0.6543, 0.7935, 0.7014,…1,\ 0.5403,\ 0.8576,\ 0.6543,\ 0.7935,\ 0.7014,\ldots
    Iterates jump either side.
  2. g′(0.739)=−sin⁡0.739=−0.67g'(0.739)=-\sin0.739=-0.67
    Between −1-1 and 00.
AnswerCobweb convergence to 0.7390.739.
✓ CheckErrors alternate sign and shrink by about 0.670.67 each step ✓.
Pause and think

Will xn+1=xn3−5x_{n+1}=x_n^3-5 find the root near 1.9 of x3−x−5=0x^3-x-5=0?

Summary

  • ∣g′(α)∣<1|g'(\alpha)|<1 converges.
  • Sign of g′g': staircase or cobweb.
Key words
Converge
Approach a limit.
Cobweb
Spiral picture of oscillating convergence.
HistoryCobwebs and pig prices. Cobweb diagrams come from economics. In the 1930s economists noticed that pig prices rose and fell in a regular cycle: high prices one year led farmers to breed more pigs, which pushed the price down the next year, and so on. Nicholas Kaldor named it the cobweb theorem in 1934, after the shape of the diagram.
Keep reading for free

Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.