A1433 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 x0) spiral into the fixed point.
  • The readouts compare the actual distance after 5 steps with the a priori bound q51−qd(x1,x0), which uses only the first step.
  • Push q toward 1: convergence slows and the bound loosens by the factor 11−q.

Predict

T(x)=0.5x+3 on ℝ. What's its fixed point, and how fast does iteration approach it?

Name it

Complete spaces

A metric space is complete if every Cauchy sequence converges to a point of the space.

  • Complete: ℝ, ℝn 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 L1 metric (a Cauchy sequence can converge to a step).

The contraction mapping theorem

Let (X, d) be complete and T: X → X a contraction: d(Tx,Ty)≤qd(x,y) for all x, y, with q < 1. Then:

  1. T has exactly one fixed point x*.
  2. For any x0, the iterates xn+1=Txn converge to x*.
  3. A priori bound: d(xn,x*)≤qn1−qd(x1,x0).
  4. A posteriori bound: d(xn,x*)≤q1−qd(xn,xn−1).

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 d(x,y)≤qd(x,y), forcing them equal.

Checking the hypotheses

  • On an interval, a differentiable g with |g′|≤q<1 is a contraction, but it must also map the interval into itself.
  • For a linear map x↦Ax+b, any norm with ‖A‖<1 works; Jacobi's method converges when ‖D−1(L+U)‖∞<1, which is diagonal dominance (A13, lesson 27).

Worked example

Show g(x)=x2+1x is a contraction on [1, 2] and find its fixed point.

Show the solution
  1. Bound the derivative. g′(x)=12−1x2 lies between −½ and ¼ on [1, 2], so q = ½.
  2. Check it maps into itself. g maps [1, 2] into [1.414, 1.5], inside [1, 2].
  3. Find the fixed point. So there's one fixed point, where x=x2+1x that is, x=2.
  4. What it is. This is Newton's method for x2=2, which converges even faster than the contraction constant suggests.

Answer g is a contraction with q = ½, and its fixed point is 2.

Worked example

With q = 0.7 and a first step of length 0.4, how many iterations guarantee an error below 10−6?

Show the solution
  1. Set up the a priori bound. Need 0.7n0.3×0.4<10−6
  2. Simplify. 0.7n<7.5×10−7
  3. Take logs. n>ln⁡(7.5×10−7)ln⁡0.7=39.5 so 40 iterations.
  4. The a posteriori bound. If after 12 steps the last step was 0.002, it gives right away 0.70.3×0.002=0.0047

Answer 40 iterations guarantee an error below 10−6.

Worked example

Iterate T(x)=12cos⁡x from 0. Compare the a priori and a posteriori error bounds after three steps.

Show the solution
  1. Contraction constant. |T′(x)|=12|sin⁡x|≤12 so q = ½.
  2. 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.
  3. A priori bound. q31−q|x1−x0|=0.1250.5×0.5=0.125
  4. A posteriori bound. q1−q|x3−x2|=1×0.0138=0.0138
  5. 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 T(x)=0.3x+(2)?

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 g(x)=0.6cos⁡x?

Check

How many iterations guarantee an error below 2 × 10⁻⁸ for q = 0.6 and a first step of 0.3?

Check

g(x)=x2/4 has |g′|≤12 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.

  1. Then d(x, y) = d(Tx, Ty).
  2. Since T is a contraction, d(Tx, Ty) ≤ q d(x, y).
  3. Suppose Tx = x and Ty = y.
  4. Hence x = y.
  5. So (1 − q) d(x, y) ≤ 0, and since q < 1, d(x, y) = 0.

Check

T(x,y)=(0.5y+1,0.6x+0.5) is a contraction in the max norm.

(a)

What is the fixed point's x?

(b)

And its y?

Check

Iterate T(x)=qx+b from x0=x.

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°.

Explain why

Why does the contraction mapping theorem need the space to be complete?

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.