🔍Nonlinear Equations
Fixed-Point Iteration and Convergence Order
x = g(x), the contraction mapping theorem, linear rate, Aitken and Steffensen acceleration
Any calculator, any day
Take a scientific calculator. Set it to radians. Type 1, and press cos. Press it again. And again.
0.5403, 0.8576, 0.6543, 0.7935, 0.7014, 0.7640, 0.7221… The numbers swing above and below some value, the swings shrinking each time. After about sixty presses the display stops changing: 0.7390851332.
Start from 100 instead. Or from −3. The same number appears. Press √ repeatedly on any positive number and you get 1. Press on 0.9 and you get 0; on 1.1, the calculator overflows.
Nothing here is a 'method' anybody designed. It is just a function applied to its own output. Yet it solves an equation — — that has no closed-form answer. Some of these loops settle and some explode. The difference turns out to explain every iterative method in this course.
A fixed point of a function is a value with . The calculator was running the fixed-point iteration
with . If it converges, it converges to a fixed point (take the limit of both sides, assuming is continuous). Any root-finding problem can be put in this form: is equivalent to , or for any , or many other rearrangements. The question is which rearrangement converges.
💡The contraction mapping theorem
Suppose maps an interval into itself and is a contraction there: for some — for a differentiable , on . Then:
- has exactly one fixed point in ;
- the iteration converges to it from every starting point in ;
- the error shrinks at least by each step: .
Derivation
Why a contraction must converge
Consecutive steps shrink. Apply the contraction inequality to two consecutive iterates:
So the iterates settle. The distance from to any later iterate is at most the sum of the steps in between, a geometric series:
The iterates crowd together, so they converge to some limit in ; and since is continuous, taking the limit of gives . That is existence.
Only one fixed point. If and were both fixed points, , which with forces .
How far from the answer. Letting in the second line, started one step earlier, gives a bound you can compute while iterating: . A small step does not mean a small error when is close to 1 — a warning that returns in lesson 4-2.
Near the fixed point, the mean value theorem gives , so asymptotically
Fixed-point iteration converges linearly with rate |g′(x*)|. The sign of g′ decides whether the iterates approach monotonically (g′ > 0) or alternate above and below (g′ < 0).
📐Why the calculator needs 58 presses
At , . Each press multiplies the error by 0.67 and flips its sign — that is the swinging you saw. One decimal digit costs presses, so ten digits cost about 58. The measured error ratios in the lab are 0.6755, 0.6723, 0.6745, 0.6730, 0.6740.
For , the fixed point is 1 and : one binary digit per press, like bisection. For at the fixed point 1, : errors double, which is why 1.1 explodes and 0.9 collapses to the other fixed point, 0, where .
Same equation, five iterations. has a root at . Here are five ways to write it as , all started from 1.5. The last one is Newton's method. That is not a coincidence.
| g(x) | g′(x*) | Behaviour |
|---|---|---|
| diverges in 7 steps | ||
| — | square root of a negative number at step 3 | |
| converges in 34 steps | ||
| converges in 12 steps | ||
| converges in 5 steps |
Five rearrangements of x³ + 4x² − 10 = 0, iterated from x₀ = 1.5 to a tolerance of 10⁻¹⁰
💡Newton as a fixed-point iteration
Newton's method is the fixed-point iteration for . Differentiate:
which is zero at a simple root, where . The linear term in the error vanishes, leaving the quadratic one — that is where quadratic convergence comes from. In general, if and , the iteration has order .
And the failures of Newton from the last lesson are failures of contraction: far from the root, and the map pushes points apart.
Derivation
Order of convergence from the derivatives of , and what a double root does
The derivative of Newton's map. With , the quotient rule gives
which is zero wherever and .
Why a zero derivative raises the order. Expand about the fixed point and use :
If the first term dominates: linear convergence with rate . If the second term leads: quadratic. In general, the first non-vanishing derivative sets the order .
A root of multiplicity . Write with . Then , and
For a double root : Newton becomes a linear iteration that halves the error each step — no faster than bisection. If is known, the modified step makes and restores quadratic convergence.
Mathematics is the art of giving the same name to different things.
Accelerating a slow sequence. If the error really behaves like , then three consecutive iterates are enough to solve for and . The result is Aitken's Δ² process (Alexander Aitken, 1926):
Aitken extrapolation. Exact for a sequence whose error is exactly geometric; for a linearly convergent iteration it converges much faster than the sequence itself.
Derivation
Solving for the limit from three iterates
Assume the error is exactly geometric for three consecutive iterates: and . Dividing one by the other removes the unknown :
Multiply out. The terms cancel, leaving an equation linear in :
Adding and subtracting times the denominator in the numerator turns this into the form above, , which is better in floating point: it computes a small correction to instead of a ratio of two nearly equal large products (lesson 1-2). The denominator is a second difference, — hence the name.
Applied to the twelve cos iterates from 1.0, the error drops from to with no extra function evaluations.
Steffensen's method (Johan Steffensen, 1933) goes one step further: take two fixed-point steps, apply Aitken, and restart the iteration from the extrapolated value. The result converges quadratically — like Newton — without any derivative. On the errors go , , , 0.
🕰Polynomials: roots as eigenvalues
For polynomials there is a cleaner route than iterating on each root. The roots of are exactly the eigenvalues of its companion matrix.
numpy.roots builds that matrix and calls an eigenvalue solver — it finds all roots at once, complex ones included. You met its sensitivity in Wilkinson's polynomial; Unit 6 shows how the eigenvalue solver itself works.🛰Kepler's equation
Every orbit propagator solves for the eccentric anomaly , millions of times. The obvious fixed-point form is a contraction with rate . For a near-circular orbit that is tiny and a few steps suffice. For near periapsis ( small, ) the rate is 0.9 and the iteration needs 135 steps for ; Newton needs 8. That is why flight software uses Newton — with a carefully chosen starting guess.
💡Where you will use this
Geotechnical Engineering: Bishop's method for slope stability has the factor of safety on both sides of its equation and is solved by exactly this iteration. Orbital Mechanics: Kepler's equation. Structures and CFD: every 'iterate until converged' loop — Picard iteration for nonlinear materials, pressure–velocity coupling — is a fixed-point iteration, and its convergence rate is , measured from the residual history.
📚Further reading
- Endre Süli and David Mayers, An Introduction to Numerical Analysis (Cambridge University Press, 2003), chapter 1, 'Solution of equations by iteration' — the contraction mapping theorem and convergence orders, with full proofs.
- Michael Heath, Scientific Computing: An Introductory Survey (2nd ed.; SIAM Classics 2018), chapter 5 — fixed-point iteration, convergence rates and polynomial roots.
- Alan Edelman and H. Murakami, 'Polynomial roots from companion matrix eigenvalues', Mathematics of Computation 64, 763–776 (1995) — why
numpy.rootsis reliable.
↓But there is a problem
Every method in this unit has chased one unknown at a time.
On 9 November 1965, at 5:16 in the evening, a protective relay at a hydroelectric station in Ontario tripped a single transmission line. Power surged onto the neighbouring lines, they tripped too, and within minutes about 30 million people in Ontario and the north-eastern United States were in the dark, some for up to 13 hours.
A power grid is thousands of buses, each with a voltage magnitude and angle, every one coupled to its neighbours through equations with sines and cosines in them. Knowing how power will flow through it means solving all of those equations at once.