Fixed-Point Iteration with Staircase and Cobweb Diagrams | AQA A Level Maths notes

Free preview: Fixed-Point Iteration with Staircase and Cobweb Diagrams

Iterating x = g(x)

Year 2 (A level only)

Watch: 1-minute explainer

Try this on your calculator, in radians. Type 1, press =. Now type cos(ANS) and keep pressing =. The numbers jump about at first: 0.540, 0.858, 0.654, ... but after a while they stop changing at 0.739085... You have just solved the equation x=cosx, which no algebra can do. That is iteration.

What you already know

  • From the last note: a change of sign tells you roughly where a root is, and testing the bounds proves its accuracy.
  • Iteration is a fast way to home in on the root.

The method

  1. Rearrange f(x) = 0 into the form x = g(x): x on its own on the left, some expression in x on the right.
  2. Pick a starting value x0 close to the root (often given, or from a change of sign).
  3. Feed each answer back in to get the next one, using the formula below.
  4. Stop when the values agree to the accuracy you need, then confirm with a change of sign.

xn+1=g(xn)

  • x1=g(x0) is the first iterate, x2=g(x1) the second, and so on.
  • If the values settle down to a fixed number α, then α=g(α), so α is a root of f(x) = 0.
  • α is called a fixed point of g: putting it in gives it straight back.

💡 In plain words

  • Put a number in, get a better number out. Repeat until the numbers stop changing.
  • When they stop changing, you have found the root.
  • Why does a fixed point solve the equation? Because x = g(x) is just f(x) = 0 rearranged.

👀 Watch me do it: solve x3−x−3=0 by iteration

What I writeWhy I do it
x3=x+3Step 1: move the x and the 3 to the right.
x=x+33Cube root both sides. Now x is alone on the left.
xn+1=xn+33, x0=1.5Step 2: f(1) = −3 and f(2) = 3, so a root is between 1 and 2. Start in the middle.
x1=4.53=1.650964Step 3.
x2=1.669223, x3=1.671404, x4=1.671665, x5=1.671696Keep feeding back in. The changes get smaller each time.
The values settle at 1.672 (3 d.p.).Step 4: x4 and x5 agree to 3 d.p.
f(1.6715)=−0.0015<0, f(1.6725)=0.0059>0Confirm with a sign change on the bounds.
Change of sign, f continuous, so α = 1.672 to 3 d.p.Notice the iterates alone do not prove the accuracy. The sign change does.

💡 Use the ANS key

Type 1.5, press =. Then type ANS+33 and press = repeatedly. Each press gives the next iterate. Write down every value the question asks for, usually to 4 or more decimal places.

📝 Showing a rearrangement

  • "Show that the equation can be written as ..." means: start from the given equation and do one legal step at a time until you reach the new form.
  • Wrong: starting from the answer and working back without saying so.
  • Right: x3−x−3=0⇒x3=x+3⇒x=x+33.

✏️ YOUR TURN 1

Try this first:

Show that x2−6x+2=0 can be written as x=x2+26. Using xn+1=xn2+26 with x0=1, find x1 to x4 to 4 d.p.

Answer:

  • x2+2=6x, so x=x2+26.
  • x1=0.5, x2=0.375, x3=0.3568, x4=0.3545.
  • They are closing in on the smaller root, 3−7=0.3542… (you can check with the quadratic formula).

Staircase and Cobweb Diagrams

Numbers in a table don't show why an iteration settles. A picture does.

  • The root of x = g(x) is where the line y = x meets the curve y = g(x). Why? There, the height g(x) equals x.
  • We can draw the iteration on these two graphs. The rule is always: vertically to the curve, then horizontally to the line.

The drawing recipe

  1. Start at x0 on the x-axis.
  2. Go vertically to the curve y = g(x). The height you reach is g(x0)=x1.
  3. Go horizontally to the line y = x. On that line, x equals the height, so you are now directly above x1.
  4. Repeat: vertically to the curve, horizontally to the line.
  5. Label x1, x2, ... on the x-axis if asked.

Diagram: Both panels use x_n+1 = [3]x_n + 3 with x_0 = 1.5, from page 1.

What the picture shows

  • Both panels use xn+1=xn+33 with x0=1.5, from page 1.
  • Wrong: going to the line y = x first, then across to the curve. That works backwards (it runs x3−3), giving 0.375, then −2.95: away from the root.
  • Right: up to the curve first, giving x1=1.651, then across to y = x. The steps close in on 1.672 (the right panel is zoomed in).

Staircase diagram for x n plus 1 equals cube root of x n plus 3, starting at 0 and stepping up towards the root 1.672

Following the graph: a staircase

  • Start at x0=0 on the x-axis. Go vertically to the curve y = g(x): the height is g(x0)=x1=1.442.
  • Go horizontally to the line y = x. Now you are above x1 on the x-axis, because on y = x the x-coordinate equals the height.
  • Go vertically to the curve again (height x2=1.644), then across to y = x, and repeat.
  • The path looks like a staircase climbing towards the meeting point. This happens when g is increasing near the root. The iterates approach the root from one side.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Numerical Methods

  1. Locating Roots by a Change of Sign, and When It Fails
  2. Fixed-Point Iteration with Staircase and Cobweb Diagrams
  3. The Newton-Raphson Method and When Iterations Fail
  4. The Trapezium Rule: Estimates, Over or Under, and Bounds
  5. Choosing and Using Numerical Methods in Real Problems
  6. Move Up a Grade: A Level Maths Numerical Methods
  7. Tricky Bits: A Level Maths Numerical Methods

Video

What's inside for this topic

7 teacher notes, 183 practice questions, 60 flashcards, 7 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Locating Roots by a Change of Sign, and When It Fails Next note: The Newton-Raphson Method and When Iterations Fail

Fixed-Point Iteration with Staircase and Cobweb Diagrams on other exam boards

All AQA A Level Maths topics · A Level Maths