Fixed-point iteration
Root Finding
The same idea, told five ways. Pick the on-ramp that suits you — press a button, read a graph, rearrange an equation, watch an error shrink, or spot the pattern shared by Newton, SCF, and PageRank. Each lands in the same place: a value that a function returns unchanged. Read one; if it doesn't land, switch. (Draft framings — voice still to be made yours.)
Put any number in your calculator and hit the cos key over and over. Start at 2: you get , then , then , then — the display keeps twitching, by a little less each time, and finally parks at . Hit cos once more and nothing moves: .
That parked value is a fixed point — an input the function hands back unchanged. Fixed-point iteration is nothing more than what your thumb just did: pick a function , start anywhere, and feed each output back in as the next input, . Where the sequence stops moving is the answer, the with .
Draw two things on the same axes: the curve and the diagonal line . A fixed point is wherever they cross — there the curve's height equals itself.
The iteration has a picture too. Stand at on the diagonal, go straight up to the curve — that height is — then straight across to the diagonal to deposit it as the new . Up to the curve, over to the line, repeat. You trace a cobweb that either spirals into the crossing or is flung out of it. Which one depends on the slope of the curve where it cuts the diagonal:
Step through it. spirals in (the slope is negative, so the cobweb crosses the diagonal each step); winds down to the golden ratio; shows the other outcome — start just past the crossing and the staircase climbs away, because there the curve is steeper than the diagonal.
Start at x₀ = 1.500 on the diagonal. Press Step to climb to the curve and back to the line.
Some equations define their answer in terms of itself. Take . The on the right is the same you are solving for — the equation refers back to its own answer. How do you solve a thing like that? Guess, and let the equation correct you: put into the right-hand side and it returns ; put in and it returns ; then , , … closing in on the golden ratio , the one value that already satisfies its own definition: .
That is a fixed point — a solution of , the value hands back unchanged. The right-hand side is the update rule; you read the iteration straight off the equation. And it works in reverse for ordinary equations too: any can be bent into this self-referential shape — write , or solve for one copy of — and then iterating hunts the value that makes the equation consistent with itself.
Follow the error, , the gap between where you are and the fixed point. One step of the iteration moves it by, to first order,
So every step multiplies the error by the slope . If the error shrinks by a fixed fraction each time — the map is a contraction, and you converge linearly. If the error grows and the iteration runs away, even though is a perfectly valid fixed point; it is simply unstable, and no starting guess short of landing on it exactly will reach it. For , , comfortably inside the unit circle — which is why the calculator settled.
Once you see the skeleton — guess, push it through a map, feed the result back, repeat until it stops moving — you start seeing it everywhere.
Newton's method is fixed-point iteration with , rigged so that and the convergence jumps from linear to quadratic. The self-consistent field of quantum chemistry iterates an electron density through the Fock build until the density it produces matches the one it started from — a fixed point in the space of densities. PageRank iterates the link matrix to its dominant eigenvector; Picard iteration turns an ODE into a map on functions. Same skeleton every time: build a map whose fixed point is the thing you want, then iterate until it holds still.
The same fixed point, on actual numbers
Whichever framing you read, here is the ground truth the page keeps pointing at — the cosine fixed point, computed by literally iterating from a careless starting guess:
x = 2.0
for _ in range(12):
x = math.cos(x)
print(x)
# 1.6536 0.7935 0.7014 0.7640 0.7221 0.7504
# 0.7314 0.7442 0.7356 0.7414 0.7375 0.7401
# ... parks at 0.739085, where cos(x) = x Twelve steps gets four digits; the error falls by roughly the factor each step that framing 4 predicts. That number, , is the Dottie number — the one real solution of .