Pure · Numerical methods
1 / 10
Iterative methods (x = g(x))
Solving f(x) = 0 by rearranging it into x = g(x) and iterating x_(n+1) = g(x_n) from a starting value — why some rearrangements converge and others diverge, and reading staircase and cobweb diagrams.
Pure · Numerical methods
Iterative methods (x = g(x))
Solving f(x) = 0 by rearranging it into x = g(x) and iterating x_(n+1) = g(x_n) from a starting value — why some rearrangements converge and others diverge, and reading staircase and cobweb diagrams.
Why it works
A change of sign traps a root; an iteration hunts it down to many decimal places. The trick is to rewrite in the form A solution of this is a value that comes out the same as it went in — a fixed point. The idea: guess a starting value near the root, feed it through to get , feed that back to get , and keep going: If this sequence settles down to a limit , then , so is a root of the original equation. You stop when successive values agree to the accuracy you need.The rearrangement matters — a lot. The same equation can be written in many ways, and they don't all work. From :
- — this one converges.
- — this one diverges, flying away
What separates them is the steepness of at the root: the iteration converges when and diverges when . A gently sloped pulls successive values inward; a steep one flings them out.
Staircase and cobweb diagrams show the iteration on the graph of together with the line (the root is where they meet). From you go vertically to the curve to find , then horizontally to the line to carry that value back onto the -axis as the next input — and repeat.
- If the steps march in from one side: a staircase.
- If the steps alternate sides, spiralling in: a cobweb.