Iterative Methods
When a matrix is too large to factor directly, iterative methods build a sequence of approximations converging to the true solution — exploiting sparsity for O(n) cost per step instead of O(n³) for full factorization.
Why Iterate?
Simultaneous Updates
Immediate Reuse
Use freshly updated values x₁…xᵢ₋₁ immediately. For SPD matrices, always converges. Often ~2× faster than Jacobi. Sequential nature limits parallelism.
Over-Relaxation
- ω = 1: reduces to Gauss-Seidel
- ω ∈ (1, 2): over-relaxes → faster convergence
- ω ∈ (0, 1): under-relaxes → stabilizes divergent cases
- Optimal ω* for Poisson: 2/(1 + sin(π/n))
- Speedup: O(n²) iterations → O(n) with optimal ω
When Do They Converge?
Optimal Krylov Method
CG minimizes A-norm error over Krylov subspace 𝒦ₖ(A,b). Converges in ≤ n steps exactly. Requires A symmetric positive definite. Rate governed by √κ(A).
Reducing Condition Number
- Diagonal (Jacobi): M = D, cheap, often insufficient
- ILU / IC: incomplete factorization, O(nnz) per apply
- SSOR: reduces κ from O(n²) to O(n) for Laplacians
- Algebraic Multigrid: nearly O(n) for elliptic PDEs
- Goal: cluster eigenvalues of M⁻¹A near 1
Choosing the Right Solver
- n < 10⁴: direct methods — robust, no tuning needed
- n ~ 10⁵–10⁶, 2D PDE: preconditioned CG or GMRES
- n > 10⁶ or 3D PDE: multigrid only viable option
- Many right-hand sides: factor once, solve each in O(n)
- Matrix-free: only iterative methods possible
Iteration to Convergence
Jacobi: simultaneous updates, parallelizable. Gauss-Seidel: immediate reuse, 2× faster. SOR: relaxation ω turns O(n²) into O(n). CG: optimal for SPD, converges at rate ((√κ−1)/(√κ+1))^k. Preconditioning reduces effective κ. Direct methods for small n; iterative for large sparse systems.