4.8.7Numerical Methods

Fixed-point iteration — convergence conditions

1,643 words7 min readdifficulty · medium6 backlinks

WHAT is a fixed point?

WHY rewrite f(x)=0f(x)=0 as x=g(x)x=g(x)? Because iteration is dead simple to program (just re-apply gg), and it underlies Newton's method, Gauss–Seidel, etc. The art is choosing a gg that converges.


HOW convergence works — derive it from scratch

Let en=xnxe_n = x_n - x^* be the error at step nn. We want to know how en+1e_{n+1} relates to ene_n.

Start from the iteration and the fixed-point property: xn+1=g(xn),x=g(x).x_{n+1} = g(x_n), \qquad x^* = g(x^*). Subtract: en+1=xn+1x=g(xn)g(x).e_{n+1} = x_{n+1}-x^* = g(x_n) - g(x^*).

Now apply the Mean Value Theorem: there is some ξn\xi_n between xnx_n and xx^* with g(xn)g(x)=g(ξn)(xnx).g(x_n) - g(x^*) = g'(\xi_n)\,(x_n - x^*).

Taking absolute values: en+1=g(ξn)en|e_{n+1}| = |g'(\xi_n)|\,|e_n|. If near the root g(x)k<1|g'(x)| \le k < 1, then en+1kenk2en1kn+1e00.|e_{n+1}| \le k\,|e_n| \le k^2 |e_{n-1}| \le \dots \le k^{n+1}|e_0| \to 0.

WHY <1<1? Each step multiplies the error by roughly g|g'|. A factor below 1 shrinks error geometrically; above 1 grows it.

Figure — Fixed-point iteration — convergence conditions

The global guarantee — Contraction Mapping

The second (a posteriori) bound lets you stop iterating once xnxn1|x_n-x_{n-1}| is small enough.


Order / speed of convergence


Worked examples


Common mistakes (Steel-manned)


Flashcards

What defines a fixed point of gg?
A value xx^* with x=g(x)x^*=g(x^*) (input left unchanged by gg).
Iteration formula for fixed-point method?
xn+1=g(xn)x_{n+1}=g(x_n).
Local convergence condition?
g(x)<1|g'(x^*)|<1 near the root.
Derive the error recurrence.
en+1=g(xn)g(x)=g(ξn)ene_{n+1}=g(x_n)-g(x^*)=g'(\xi_n)e_n by the Mean Value Theorem.
Why does g<1|g'|<1 give convergence?
Each step multiplies error by g<1\approx|g'|<1, so enkne00|e_n|\le k^n|e_0|\to0.
When is convergence quadratic instead of linear?
When g(x)=0g'(x^*)=0 (and g0g''\neq0); then en+112g(x)en2e_{n+1}\approx\frac{1}{2} g''(x^*)e_n^2.
Two conditions for the contraction (Banach) theorem?
gg maps [a,b][a,b] into itself AND g(x)k<1|g'(x)|\le k<1 on [a,b][a,b].
A posteriori error bound?
xnxk1kxnxn1|x_n-x^*|\le \frac{k}{1-k}|x_n-x_{n-1}|.
Why is Newton's method fast as a fixed-point map?
g(x)=xf/fg(x)=x-f/f' gives g(x)=0g'(x^*)=0, hence quadratic convergence.
Same ff, gA=x22g_A=x^2-2 vs gB=x+2g_B=\sqrt{x+2} at root 2 — which converges?
gBg_B (gB(2)=1/4<1g_B'(2)=1/4<1); gAg_A diverges (gA(2)=4g_A'(2)=4).

Recall Feynman: explain to a 12-year-old

Imagine a calculator button that does some operation gg. You type a number, press the button, get a new number, press again, again... A fixed point is a magic number that the button leaves unchanged. If pressing the button each time brings you closer to the magic number (the button "shrinks" gaps), you'll land on it — that's when the button isn't too "steep" (g<1|g'|<1). If pressing pushes you further away, you'll never reach it. So the trick is to design a button that pulls you in, not pushes you out.


Connections

  • Newton-Raphson method — special fixed-point map with g(x)=0g'(x^*)=0.
  • Mean Value Theorem — engine behind the error recurrence.
  • Banach Fixed-Point Theorem — global existence + uniqueness.
  • Order of convergence — linear vs quadratic classification.
  • Cobweb diagrams — graphical view of iteration dynamics.
  • Gauss-Seidel iteration — multidimensional contraction (spectral radius <1<1).

Concept Map

rewrite as

solution is

iterate

define error

Mean Value Theorem

condition

if true

if > 1

stronger form

Banach theorem

gives

visualised by

Solve f(x)=0

x = g(x)

Fixed point x* where x*=g(x*)

x_n+1 = g(x_n)

e_n = x_n - x*

Error recurrence e_n+1 = g'(xi) e_n

|g'(x*)| < 1

Converges to x*

Diverges, root repels

Contraction on [a,b]

Unique fixed point, global convergence

Error bound k^n / 1-k

Cobweb spirals inward

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, fixed-point iteration ka idea simple hai: f(x)=0f(x)=0 ko solve karna mushkil ho to hum use x=g(x)x=g(x) ke form mein likh dete hain. Phir ek guess x0x_0 lo, usko gg mein daalo, naya number aaya x1x_1, phir wahi process repeat — xn+1=g(xn)x_{n+1}=g(x_n). Jis point pe number badalna band ho jaaye, yaani x=g(x)x^*=g(x^*), wahi humari root hai. Usko "fixed point" kehte hain kyunki gg uspe kuchh nahi badalta.

Ab asli sawaal: ye chain settle hoga ya udd jayega? Iska boss ek number hai — root ke paas gg ka slope, g(x)|g'(x^*)|. Error en=xnxe_n = x_n - x^* lo, to Mean Value Theorem se nikalta hai en+1=g(ξ)ene_{n+1} = g'(\xi)\,e_n. Matlab har step pe error roughly g|g'| se multiply hota hai. Agar g(x)<1|g'(x^*)| < 1 ho, to error chhota hota jaata hai (converge), aur agar >1>1 ho to badhta jaata hai (diverge). Bas yahi pure topic ka 80/20 hai.

Ek important baat: same equation ke bahut saare gg ban sakte hain. Jaise x2x2=0x^2-x-2=0 ke liye g=x22g=x^2-2 diverge karta hai (slope 4), par g=x+2g=\sqrt{x+2} converge karta hai (slope 1/4). Isliye iterate karne se pehle hamesha g|g'| root pe check karo — yeh chhota sa test bahut time bachata hai. Aur agar luck se g(x)=0g'(x^*)=0 ho (jaise Newton's method mein), to convergence quadratic hota hai — digits har step pe roughly double, super fast!

Practical tip: stopping ke liye dekho xnxn1|x_n - x_{n-1}| chhota ho gaya. Banach theorem ka bound batata hai ki agar consecutive guesses paas aa gaye to actual root bhi paas hai. Cobweb diagram zaroor banao — andar spiral matlab converge, bahar spiral matlab diverge. Visual yaad rahega exam mein.

Test yourself — Numerical Methods

Connections