4.8.20 · HinglishNumerical Methods

Iterative methods — Jacobi, Gauss-Seidel, convergence

1,859 words8 min readRead in English

4.8.20 · Maths › Numerical Methods


1. Splitting: sab kuch iske peeche hai

Error recurrence ki derivation (scratch se). Maano sahi solution hai, toh . Ise se subtract karo: Error define karo . Tab Toh error har step par se multiply hoti hai. Ye kyun important hai: convergence () kisi bhi starting guess ke liye tab hogi jab .


2. Standard split:

Jacobi

Choose karo , . Tab component-wise deta hai:

Gauss-Seidel

Choose karo (lower triangular, forward-solve karna aasaan), :

Figure — Iterative methods — Jacobi, Gauss-Seidel, convergence

3. Convergence — WHY aur WHEN

WHY ? diagonalize karo (eigenvalues ). Tab aur . Jab , saare ke liye tab hoga jab har , yaani . Kyunki , error bilkul isi condition mein khatam hoti hai.


4. Common mistakes (Steel-manned)


5. Stopping & cost


Flashcards

What is the iteration matrix for a splitting ?
; iteration hai .
Error recurrence of a stationary iteration?
, toh .
Exact necessary-and-sufficient condition for convergence from any start?
Spectral radius .
Splitting for Jacobi?
, jisse milta hai.
Splitting for Gauss-Seidel?
, jisse milta hai.
Component formula for Jacobi?
.
Component formula for Gauss-Seidel?
.
Key practical difference Jacobi vs Gauss-Seidel?
GS usi sweep mein naye update kiye components use karta hai (in-place); Jacobi sirf purana vector use karta hai (parallelisable).
A simple sufficient condition guaranteeing both converge?
Strict diagonal dominance: saare ke liye.
Is diagonal dominance necessary for convergence?
Nahi — ye sirf sufficient hai; asli criterion hai.
Asymptotic error reduction factor per step?
Approximately .
Why iterative over direct methods for large sparse ?
Har sweep ka cost hai, jabki elimination ka hai, aur memory sparse rehti hai.

Recall Feynman: explain it to a 12-year-old

Socho tum ek class mein sabki height guess kar rahe ho, phir ek aisi rule se har guess fix karte ho jo sab ki heights ko ek doosre se jodti hai. Jacobi: sablog apni guess ek saath update karte hain pichhli round ke numbers se. Gauss-Seidel: tum ek ek karke jaate ho, aur har banda apne se pehle walo ke abhi-correct numbers use karta hai — toh corrections zyada jaldi phailti hain. Agar rule guesses ko dheere dheere sach ki taraf "kheenchti" hai (numbers blow up nahi karte — yahi hai), toh kuch rounds baad sabki guess basically sahi ho jaati hai. Agar rule over-react karti hai (), toh guesses explode ho jaate hain aur tum kabhi finish nahi kar paate.

Connections

  • Gaussian Elimination — ye wahi direct alternative hai jo ye methods sparse systems ke liye replace karte hain.
  • Eigenvalues and Eigenvectors — convergence poori tarah par depend karti hai.
  • Spectral Radius — yahan ka master quantity.
  • Fixed-Point Iteration — ye iteration ka matrix version hain.
  • SOR — Successive Over-Relaxation — Gauss-Seidel ko relaxation factor se accelerate karta hai.
  • Sparse Matrices — isliye per-sweep cost sasti hoti hai.
  • Finite Difference Methods for PDEs — huge sparse systems ka main source.

Concept Map

direct too costly for large sparse

refine guess each step

rearrange to fixed point

solve for new iterate

error recurrence

converges iff T^k to zero

standard split

M = D, N = L+U

M = D-L, N = U

uses all old values, parallel

uses fresh components immediately

Solve Ax = b

Iterative methods

Matrix splitting A = M - N

M x_new = N x_old + b

Iteration matrix T = inv M times N

e_k = T^k e_0

Convergence condition

A = D - L - U

Jacobi

Gauss-Seidel

T_J = inv D times L+U

faster convergence