Fixed-point iteration

Rewrite f(x)=0f(x)=0 as x=ϕ(x)x=\phi(x) and iterate: when it converges (ϕ(α)<1|\phi'(\alpha)|<1), how fast, and the theorem giving the method's order from which derivatives of ϕ\phi vanish at the solution.

From f(x)=0 to x=φ(x)

Every equation f(x)=0f(x)=0 can be rewritten (in many ways) as a fixed-point problem x=ϕ(x)x=\phi(x): the solution α\alpha satisfies ϕ(α)=α\phi(\alpha)=\alpha. The method is to iterate the function:

xk+1=ϕ(xk),k=0,1,2,x_{k+1}=\phi(x_k),\qquad k=0,1,2,\dots

The order depends on the derivatives of φ

DerivationDerivation: fixed-point convergence and orderView as its own page →
  1. Let ek=xkαe_k=x_k-\alpha. Expand ϕ(xk)\phi(x_k) by Taylor around α\alpha and use ϕ(α)=α\phi(\alpha)=\alpha:

    xk+1=ϕ(xk)=α+ϕ(α)ek+ϕ(α)2ek2+ϕ(α)6ek3+x_{k+1}=\phi(x_k)=\alpha+\phi'(\alpha)\,e_k+\frac{\phi''(\alpha)}{2}\,e_k^2+\frac{\phi'''(\alpha)}{6}\,e_k^3+\cdots
  2. Subtracting α\alpha leaves the error equation of the fixed-point iteration:

    ek+1=ϕ(α)ek+ϕ(α)2ek2+ϕ(α)6ek3+e_{k+1}=\phi'(\alpha)\,e_k+\frac{\phi''(\alpha)}{2}\,e_k^2+\frac{\phi'''(\alpha)}{6}\,e_k^3+\cdots
  3. If ϕ(α)0\phi'(\alpha)\ne 0, the dominant term is linear: ek+1ϕ(α)eke_{k+1}\approx\phi'(\alpha)e_k. Errors contract if ϕ(α)<1|\phi'(\alpha)|<1 (linear convergence with factor ϕ(α)|\phi'(\alpha)|) and grow if ϕ(α)>1|\phi'(\alpha)|>1: that is the local convergence criterion.

  4. If moreover ϕ(α)=ϕ(α)==ϕ(p1)(α)=0\phi'(\alpha)=\phi''(\alpha)=\dots=\phi^{(p-1)}(\alpha)=0 and ϕ(p)(α)0\phi^{(p)}(\alpha)\ne 0, all earlier terms vanish and the first surviving one fixes the order: this is the order theorem for a fixed-point method.

    ek+1=ϕ(p)(α)p!ekp+O(ekp+1)e_{k+1}=\frac{\phi^{(p)}(\alpha)}{p!}\,e_k^p+\mathcal{O}\bigl(e_k^{p+1}\bigr)
  5. Immediate application: for Newton, ϕ=xff\phi=x-\frac{f}{f'} and ϕ=ff(f)2\phi'=\frac{f f''}{(f')^2}, which vanishes at a simple root (f(α)=0f(\alpha)=0). Since in general ϕ(α)0\phi''(\alpha)\ne 0, Newton has order 2, agreeing with the direct proof.

This theorem explains why Newton is second order: its iteration function ϕ=xff\phi=x-\frac{f}{f'} satisfies ϕ(α)=0\phi'(\alpha)=0 at a simple root. The general definition of order and its practical measurement are covered in Convergence order and efficiency.

Example: slow convergence

ExampleIterating φ(x)=cos²x

Solve x=cos2xx=\cos^2 x by directly iterating xk+1=cos2(xk)x_{k+1}=\cos^2(x_k) from x0=0.3x_0=0.3, and estimate the convergence speed.

  1. The first iterates oscillate around the solution: x1=0.9127x_1=0.9127, x2=0.3741x_2=0.3741, x3=0.8665x_3=0.8665, x4=0.4193x_4=0.4193, x5=0.8343,x_5=0.8343,\dots approaching α=0.641714\alpha=0.641714 very slowly.

  2. The speed is set by the derivative at the fixed point: ϕ(x)=2cosxsinx=sin2x\phi'(x)=-2\cos x\sin x=-\sin 2x, and at α\alpha:

    ϕ(α)=sin(20.641714)=0.959<1|\phi'(\alpha)|=|\sin(2\cdot 0.641714)|=0.959<1

It converges (the negative sign explains the oscillation), but with factor 0.9590.959: 455 iterations are needed to reach an error of 10910^{-9}. Newton solves the same equation in 5 iterations; this shows the difference between order 1 and order 2.