top of page

10.2 Iteration

A-level Maths Year 2 · Edexcel 9MA0 · Chapter 10: Numerical Methods

A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: solving equations with iteration formulae, staircase and cobweb diagrams. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Rearrange f(x) = 0 into the form x = g(x)
  • Use an iteration formula xₙ₊₁ = g(xₙ) to find approximations to a root
  • Draw and interpret staircase and cobweb diagrams
  • Recognise when an iteration converges, and when it diverges or finds a different root
  • Combine iteration with a change of sign to prove a root to a given accuracy

Key words

  • Iteration: Repeating the same process, feeding each output back in as the next input.
  • Iteration formula: A rule such as xₙ₊₁ = g(xₙ) that makes each term from the one before.
  • Converge: The terms x₀, x₁, x₂,... get closer and closer to a fixed value (the root).
  • Diverge: The terms move away from the root instead of settling down.
  • Staircase diagram: The path between y = g(x) and y = x looks like steps. The terms all approach the root from one side.
  • Cobweb diagram: The path spirals around the root. The terms are alternately above and below it.

Rearranging into the form x = g(x)

If α is a root of f(x) = 0 and you rearrange the equation as x = g(x), then α = g(α). On a graph, α is the x-coordinate where y = g(x) meets the line y = x. One equation can be rearranged in many ways.

Worked example: two rearrangements

Show that x³ − 5x − 3 = 0 can be written as (a) x = ³√(5x + 3) (b) x = (x³ − 3)/5
(a) x³ = 5x + 3, then take the cube root of both sides.
(b) 5x = x³ − 3, then divide both sides by 5.

Answer: both are rearrangements of the same equation

Using an iteration formula

Turn x = g(x) into the formula xₙ₊₁ = g(xₙ). Start with a value x₀ near the root, then work out x₁ = g(x₀), x₂ = g(x₁) and so on. On a calculator, type x₀ and press =, type the formula using ANS, then keep pressing =.

Worked example: iterating

Use xₙ₊₁ = ³√(5xₙ + 3) with x₀ = 1 to find x₁, x₂, x₃ and x₄ to 4 decimal places.
x₁ = ³√8 = 2
x₂ = ³√13 = 2.3513, x₃ = 2.4528, x₄ = 2.4806

Answer: the terms are increasing towards a root near 2.49

Worked example: proving the root

Further terms suggest the root is 2.491 to 3 d.p. Prove this.
Let f(x) = x³ − 5x − 3.
f(2.4905) = −0.00495... < 0 and f(2.4915) = 0.00867... > 0
Change of sign and f is continuous, so 2.4905 < α < 2.4915.

Answer: α = 2.491 (3 d.p.)

Iteration alone does not prove accuracy: terms that agree to 3 d.p. are good evidence, but the sign change test is the proof.

Staircase and cobweb diagrams

To draw the diagram, start at x₀ on the x-axis. Go vertically to the curve y = g(x), then horizontally to the line y = x. That point is above x₁. Repeat: vertically to the curve, horizontally to the line.

Worked example: reading the type of diagram from the terms

The equation x³ + 3x − 7 = 0 is rearranged as x = 7/(x² + 3). With x₀ = 1:
x₁ = 1.75, x₂ = 1.1546, x₃ = 1.6154, x₄ = 1.2479
The terms go up, down, up, down, closing in on the root 1.406 from both sides.

Answer: a converging cobweb diagram

Key fact: If y = g(x) is increasing near the root you get a staircase. If it is decreasing near the root you get a cobweb.

When iteration fails

Not every rearrangement works. If the curve y = g(x) is steeper than the line y = x near the root (gradient greater than 1 or less than −1), the terms move away from the root. The sequence may diverge or settle on a different root.

Worked example: a rearrangement that diverges

Use xₙ₊₁ = (xₙ³ − 3)/5 with x₀ = 2.5, close to the root 2.491.
x₁ = 2.525, x₂ = 2.6197, x₃ = 2.9957, x₄ = 4.7767
The terms move further and further from 2.491. With x₀ = 1 instead, the terms go to −0.657, a different root of the cubic.

Answer: this formula cannot find the root near 2.491

Good to know: An iteration xₙ₊₁ = g(xₙ) converges to a root α when |g'(x)| < 1 near α and x₀ is close enough to α.

Common mistakes

  • Rounding each term before using it. Keep full calculator accuracy (use ANS) and only round what you write down.
  • Calling x₀ the first iterate. x₁ is the first value you calculate.
  • Drawing the diagram the wrong way: go vertically to the curve, then horizontally to the line y = x.
  • Claiming a root to 3 d.p. from iterates alone. Prove it with a sign change at the bounds.
  • Using degrees in a trigonometric iteration. Always use radians.

Revision questions

Try these, then check your answers below each one.

Question 1. Use xₙ₊₁ = √(3xₙ + 4) with x₀ = 3 to find x₁. Give your answer to 4 decimal places.

Answer: 3.6056

Working: x₁ = √(3(3) + 4) = √13 = 3.6056.

Question 2. Which of these is a correct rearrangement of x³ − 4x + 1 = 0? (Choose from: x = (x³ + 1)/4; x = (x³ − 1)/4; x = ³√(4x + 1); x = 4/x².)

Answer: x = (x³ + 1)/4

Working: 4x = x³ + 1, so x = (x³ + 1)/4. The others give x³ − 4x − 1 = 0, x³ − 4x − 1 = 0 and x³ = 4.

Question 3. An iteration gives 1.5, 1.62, 1.55, 1.59, 1.57, ... Which diagram would show this? (Choose from: a converging staircase; a converging cobweb; a diverging staircase; a diverging cobweb.)

Answer: a converging cobweb

Working: The terms go up, down, up, down and get closer together, so they jump from one side of the root to the other while converging: a converging cobweb.

Related lessons

Continue in the full course

This lesson is section 10.2 of our free A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 2 course.

 

 

 

 

 

 

 

bottom of page