Skip to main content
Examonaut

Topic 9 · Lesson 2 of 4

Fixed-point iteration

Iteration: xn+1=g(xn)x_{n+1} = g(x_n)

Iteration means repeating a calculation, feeding each answer back in. First rearrange f(x)=0f(x) = 0 into the form x=g(x)x = g(x). For example, x3−2x−5=0x^3 - 2x - 5 = 0 gives x3=2x+5x^3 = 2x + 5, so x=2x+53x = \sqrt[3]{2x + 5}. Then turn it into a recurrence relation,

xn+1=2xn+53x_{n+1} = \sqrt[3]{2x_n + 5}

and start with a value x0x_0 near the root. With x0=1x_0 = 1: x1=1.913x_1 = 1.913, x2=2.067x_2 = 2.067, x3=2.090x_3 = 2.090, x4=2.094x_4 = 2.094, x5=2.0945x_5 = 2.0945, homing in on 2.0946. On a calculator, type the start value, press =, then type the formula using ANS and press = repeatedly.

Why it works: the picture. A solution of x=g(x)x = g(x) is where the graphs y=g(x)y = g(x) and y=xy = x meet. Each iteration goes up (or down) to the curve y=g(x)y = g(x) to find g(xn)g(x_n), then across to the line y=xy = x to turn that output into the next input. When gg is increasing, the path climbs like a staircase, approaching the crossing point from one side, as below.

xy11.5211.52x₀x₁y = xy = ∛(2x + 5)

When gg is decreasing, each step overshoots to the other side of the root and the path spirals inwards: a cobweb diagram. The diagram shows xn+1=e−xnx_{n+1} = e^{-x_n}, which solves x=e−xx = e^{-x}, starting at 0.2: x1=0.819x_1 = 0.819, x2=0.441x_2 = 0.441, x3=0.643x_3 = 0.643, x4=0.526x_4 = 0.526, … closing in on 0.567 while jumping either side.

xyO0.510.51x₀y = xy = e⁻ˣ

When iteration fails. Not every rearrangement works. Rearranging x3−2x−5=0x^3 - 2x - 5 = 0 the other way, as x=x3−52x = \frac{x^3 - 5}{2}, and starting at x0=2x_0 = 2 gives 1.51.5, −0.81-0.81, −2.77-2.77, −13.1-13.1, … : the values run away (diverge). In the picture, the staircase or cobweb moves away from the crossing point instead of towards it. This happens when the curve y=g(x)y = g(x) is steeper than the line y=xy = x near the root; iteration converges when gg is less steep there, roughly when −1<g′(x)<1-1 < g'(x) < 1 close to the root. So if one rearrangement fails, try another.

Worked example

Iteration with a given formulaexam standard

a) Show that x3−2x−5=0x^3 - 2x - 5 = 0 can be written as x=2x+53x = \sqrt[3]{2x + 5}. b) Use xn+1=2xn+53x_{n+1} = \sqrt[3]{2x_n + 5} with x0=2x_0 = 2 to find x1x_1, x2x_2 and x3x_3 to 4 decimal places. c) Prove that the root is 2.095 to 3 decimal places.

Show solution
  1. a) x3=2x+5x^3 = 2x + 5, so x=2x+53x = \sqrt[3]{2x + 5}.
  2. b) x1=93=2.0801x_1 = \sqrt[3]{9} = 2.0801; x2=9.16023=2.0924x_2 = \sqrt[3]{9.1602} = 2.0924; x3=2.0942x_3 = 2.0942. Keep the unrounded value in your calculator for each step.
  3. c) Rounding interval: [2.0945,2.0955][2.0945, 2.0955]. f(2.0945)=−0.000 57f(2.0945) = -0.000\,57 and f(2.0955)=0.0106f(2.0955) = 0.0106. There is a sign change and ff is continuous, so the root lies in [2.0945,2.0955][2.0945, 2.0955] and is 2.095 to 3 decimal places.

Practise this topic

Both are part of Premium.