numerical linear algebra
Iterative Solvers for Linear Systems
You should know: jacobi and gauss seidel methods
Overview
Simple iterative methods like Jacobi and Gauss-Seidel reduce error at every step, but they do so unevenly: they are very effective at damping high-frequency (rapidly oscillating) components of the error, yet painfully slow at removing smooth, low-frequency error components, so residual reduction stalls after a promising start on real, large-scale problems such as PDE discretizations. Multigrid methods exploit this observation directly: after a few 'smoothing' sweeps of Jacobi or Gauss-Seidel wipe out the high-frequency error, the remaining smooth error is transferred ('restricted') to a coarser grid, where it looks relatively higher-frequency and can again be smoothed away cheaply; the correction found on the coarse grid is then transferred back ('prolongated') to the fine grid. Applied recursively across a whole hierarchy of grids — the essence of the V-cycle and W-cycle schedules — multigrid can solve many elliptic PDE-derived linear systems in a number of operations that scales linearly with the number of unknowns, in stark contrast to the O(n³) of direct elimination or the slow, ever-larger iteration counts required by Jacobi/Gauss-Seidel alone on fine grids.
Intuition
Imagine trying to smooth out a lumpy bedsheet by only ever tugging at points a few centimeters apart: you can quickly flatten small wrinkles right under your hands, but a long, gentle wave running the whole length of the sheet barely responds no matter how many times you tug — your hands are simply too close together to 'see' that large-scale wave. Multigrid solves this by periodically stepping back and working with a coarser grid of hands spaced further apart: what looked like a slow, smooth wave up close now looks like a wrinkle those widely-spaced hands can fix quickly. Repeating this zoom-out, fix, zoom-back-in process across several grid resolutions lets every spatial scale of error get flattened efficiently by whichever grid resolution is best suited to seeing it.
Formal Definition
A two-grid multigrid cycle alternates smoothing on the fine grid with an exact (or near-exact) correction on a coarser grid, using restriction and prolongation operators to move information between grids:
Worked Examples
Iteration 1 gives x⁽¹⁾=(1.2,1.3,1.4); compute the residual b − Ax⁽¹⁾ component-wise.
Continue the Jacobi sweeps (as computed in Jacobi/Gauss-Seidel methods): x⁽²⁾=(0.93,0.92,0.90), x⁽³⁾=(1.018,1.024,1.03).
Continuing to x⁽⁴⁾=(0.9946,0.9934,0.9916) and x⁽⁵⁾=(1.0015,1.0019,1.0024).
Answer: Residual norms 6.836 → 1.883 → 0.544 → 0.154 → 0.0439: each sweep shrinks the residual by roughly a constant factor of about 0.28-0.29, the hallmark of a simple iterative smoother — steady but geometrically slow, which is exactly the behavior multigrid accelerates by handling the stubborn smooth error components on a coarser grid instead of grinding them out with many more fine-grid sweeps.
Practice Problems
Using the residual sequence 6.836, 1.883, 0.544, 0.154, 0.0439 from the worked example, estimate the approximate ratio between consecutive residual norms (r₂/r₁).
If plain Jacobi/Gauss-Seidel smoothing scales as O(n²) total operations to converge on an n-unknown discretized PDE, and multigrid scales as O(n), what is the operation-count ratio at n = 10,000?
A computational fluid dynamics (CFD) solver needs to solve a pressure-Poisson equation on a 3D grid with tens of millions of cells at every timestep of a simulation. Explain why multigrid, rather than plain Gauss-Seidel iteration alone, is the standard choice in production CFD codes.
Quiz
Summary
- Jacobi/Gauss-Seidel smoothers reduce high-frequency error quickly but stall on smooth, low-frequency error, e.g. residual norms 6.836 → 1.883 → 0.544 → 0.154 → 0.0439 shrink by a roughly constant ~0.28 factor per sweep rather than accelerating.
- Multigrid restricts the smooth residual to a coarser grid (where it looks higher-frequency), corrects it there cheaply, then prolongates the correction back to the fine grid.
- Applied recursively across a grid hierarchy (V-cycles/W-cycles), multigrid achieves near-O(n) total cost versus O(n²) or worse for plain smoothing alone as resolution grows, e.g. a ~1000x speedup at n=1000 unknowns.
- This makes multigrid the standard choice for solving the large elliptic-PDE-derived linear systems that arise every timestep in production CFD and other large-scale simulation codes.
References
- WebsiteWikipedia — Multigrid method
- WebsiteWikipedia — Iterative method
- BookBriggs, W. L., Henson, V. E., & McCormick, S. F. A Multigrid Tutorial, 2nd ed. SIAM, 2000.
Mathematics