A14 · Lesson 33 · Completeness and the contraction mapping theorem
One theorem behind every iteration that settles down
Fixed-point iteration for a diode, Jacobi sweeps on a resistor network, Picard's method for a differential equation: each repeats a map until the answer stops changing. The contraction mapping theorem (Banach's fixed-point theorem) explains all of them at once. If a map shrinks every distance by at least a factor q < 1, and the space it acts on is complete, then it has exactly one fixed point, iteration from anywhere converges to it, and you can bound the error before you start. The ingredients are lesson 4's geometric tail and lesson 32's metric spaces; the space can be numbers, vectors or functions.
- The map scales the plane toward the orange point by q and rotates it by θ. Every distance shrinks by q, so it's a contraction, and the dots (the iterates from ) spiral into the fixed point.
- The readouts compare the actual distance after 5 steps with the a priori bound , which uses only the first step.
- Push q toward 1: convergence slows and the bound loosens by the factor .
Predict
on ℝ. What's its fixed point, and how fast does iteration approach it?
6, from any start: x = 0.5x + 3 gives x = 6, and , so every step halves the error. The contraction constant is the factor every distance shrinks by.
Name it
Complete spaces
A metric space is complete if every Cauchy sequence converges to a point of the space.
- Complete: ℝ, with any p-norm, closed subsets of them, and continuous functions on [a, b] with the sup metric (a uniform limit of continuous functions is continuous).
- Not complete: ℚ; (0, 1]; continuous functions with the metric (a Cauchy sequence can converge to a step).
The contraction mapping theorem
Let (X, d) be complete and T: X → X a contraction: for all x, y, with q < 1. Then:
- T has exactly one fixed point .
- For any , the iterates converge to .
- A priori bound: .
- A posteriori bound: .
Proof sketch: the steps shrink geometrically, so the iterates are Cauchy (lesson 4); completeness gives a limit; continuity of T makes it a fixed point; and two fixed points would satisfy , forcing them equal.
Checking the hypotheses
- On an interval, a differentiable g with is a contraction, but it must also map the interval into itself.
- For a linear map , any norm with works; Jacobi's method converges when , which is diagonal dominance (A13, lesson 27).
Worked example
Show is a contraction on [1, 2] and find its fixed point.
Show the solution
- Bound the derivative. lies between −½ and ¼ on [1, 2], so q = ½.
- Check it maps into itself. g maps [1, 2] into [1.414, 1.5], inside [1, 2].
- Find the fixed point. So there's one fixed point, where that is, .
- What it is. This is Newton's method for , which converges even faster than the contraction constant suggests.
Answer g is a contraction with q = ½, and its fixed point is .
Worked example
With q = 0.7 and a first step of length 0.4, how many iterations guarantee an error below ?
Show the solution
- Set up the a priori bound. Need
- Simplify.
- Take logs. so 40 iterations.
- The a posteriori bound. If after 12 steps the last step was 0.002, it gives right away
Answer 40 iterations guarantee an error below .
Worked example
Iterate from 0. Compare the a priori and a posteriori error bounds after three steps.
Show the solution
- Contraction constant. so q = ½.
- Iterate. The iterates are 0.5, 0.438791, 0.452633, and the fixed point is 0.450184; the actual error after three steps is 0.00245.
- A priori bound.
- A posteriori bound.
- Compare. The a posteriori bound, using the last step, is nine times sharper and is the one to stop on.
Answer after three steps the a priori bound is 0.125 and the a posteriori bound is 0.0138, against an actual error of 0.00245.
Check
Where's the fixed point of ?
Check
A contraction with constant 0.5 first moves x by 0.2. What's the a priori error bound after 30 steps?
Check
A contraction with constant 0.8 just took a step of 0.001. What's the a posteriori bound on the remaining error?
Check
What's the smallest contraction constant valid on all of ℝ for ?
Check
How many iterations guarantee an error below 2 × 10⁻⁸ for q = 0.6 and a first step of 0.3?
Check
has on [−1, 1]. Is it a contraction of [−1, 1] into itself, and what's its fixed point there?
Check
Put the steps of the proof that a contraction has at most one fixed point in order.
- Then d(x, y) = d(Tx, Ty).
- Since T is a contraction, d(Tx, Ty) ≤ q d(x, y).
- Suppose Tx = x and Ty = y.
- Hence x = y.
- So (1 − q) d(x, y) ≤ 0, and since q < 1, d(x, y) = 0.
Check
is a contraction in the max norm.
(a)
What is the fixed point's x?
(b)
And its y?
Check
Iterate from .
Step 1
What is the fixed point?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is minus the fixed point?
Explain why
Why does the contraction mapping theorem need the space to be complete?
A contraction makes its iterates a Cauchy sequence: the steps shrink geometrically, so all later iterates lie in smaller and smaller regions. But a Cauchy sequence only converges if the space has a point for it to converge to. In an incomplete space it might be heading toward a hole: on the rationals, is a contraction near , yet it has no rational fixed point, because the limit isn't there. Completeness guarantees the limit exists in the space, and continuity of the map then makes that limit the fixed point.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.