Jacobi vs. Gauss–Seidel Convergence & Diagonal Dominance Lab
Compare Jacobi and Gauss–Seidel trajectories, check row diagonal dominance, and track log₁₀ residual decay.
Compare simultaneous Jacobi updates against sequential Gauss–Seidel sweeps and test strict diagonal dominance.
Large sparse finite-difference Poisson grids, power-grid load-flow iterative solvers, structural relaxation sweeps, and circuit nodal analysis.
When a large linear system is sparse, why can repeating simple coordinate updates converge rapidly without ever inverting ?
Solving equation for yields two fixed-point loops: Jacobi updates every coordinate from the previous sweep , while Gauss–Seidel injects newly computed values immediately in the same pass.
Row-by-row strict diagonal dominance () guarantees rapid convergence from any starting guess—and swapping two rows can sometimes rescue an otherwise diverging matrix!
Why does using fresh Gauss–Seidel coordinates cut error roughly twice as fast as Jacobi—and what happens when diagonal dominance fails?
Switch among diagonally dominant, row-swap fixable, and divergent systems, test row swaps R₁ ↔ R₂, and scrub iteration k = 1..12 to track residual decay.
Just as matrix splitting turns Ax = b into a contracting fixed point, Chapter 6.2.2 applies fixed-point iteration, bracketing, and tangent drops to nonlinear equations f(x) = 0.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Jacobi inverts only the diagonal , keeping every component frozen during sweep .
Forward substitution immediately reuses newly computed , halving memory storage and roughly doubling convergence speed on diagonally dominant systems.
If one row fails dominance, always test reordering rows before abandoning iterative solvers—simple equation swaps often restore strict dominance immediately!
Compare Jacobi and Gauss–Seidel trajectories, check row diagonal dominance, and track log₁₀ residual decay.
|a₁₁|=4 > 1 and |a₂₂|=3 > 1: both Jacobi and Gauss–Seidel spiral steadily into (0.727, 2.091).
| k | Jacobi x⁽ᵏ⁾ | Gauss–Seidel x⁽ᵏ⁾ | ‖Res‖∞ (J / GS) |
|---|---|---|---|
| 3 | (0.771, 2.111) | (0.731, 2.090) | 0.1944 / 0.0133 |
| 4 | (0.722, 2.076) | (0.728, 2.091) | 0.0486 / 0.0011 |
| 5 | (0.731, 2.093) | (0.727, 2.091) | 0.0162 / 0.0001 |
| 6 | (0.727, 2.090) | (0.727, 2.091) | 0.0041 / 0.0000 |
| 7 | (0.728, 2.091) | (0.727, 2.091) | 0.0014 / 0.0000 |
| 8 | (0.727, 2.091) | (0.727, 2.091) | 0.0003 / 0.0000 |