wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
CHAPTER 6.2.1 • 2DPublished Interactive Labs~25 min study

Iterative Linear Solvers: Jacobi & Gauss–Seidel

Compare simultaneous Jacobi updates against sequential Gauss–Seidel sweeps and test strict diagonal dominance.

Engineering & Physical Application Context

Large sparse finite-difference Poisson grids, power-grid load-flow iterative solvers, structural relaxation sweeps, and circuit nodal analysis.

Governing Mathematical Formulation
xi(k+1)=1aii(bi−∑j≠iaijxj(k))x_i^{(k+1)} = \frac{1}{a_{ii}}\left(b_i - \sum_{j\neq i}a_{ij}x_j^{(k)}\right)
∣aii∣>∑j≠i∣aij∣|a_{ii}| > \sum_{j\neq i}|a_{ij}|
Volume VI • Module 6.21 Interactive Lab(s)

The Question You Should Ask

When a large linear system Ax=bA\mathbf{x} = \mathbf{b} is sparse, why can repeating simple coordinate updates converge rapidly without ever inverting AA?

In Simple Words & Math

Solving equation ii for xix_i yields two fixed-point loops: Jacobi updates every coordinate from the previous sweep x(k)\mathbf{x}^{(k)}, while Gauss–Seidel injects newly computed values xj(k+1)x_j^{(k+1)} immediately in the same pass.

Row-by-row strict diagonal dominance (∣aii∣>∑j≠i∣aij∣|a_{ii}| > \sum_{j\neq i}|a_{ij}|) guarantees rapid convergence from any starting guess—and swapping two rows can sometimes rescue an otherwise diverging matrix!

4-Step Pedagogical Chapter Rhythm • Geometric Intuition First
Ch. 6.2.1
STEP 1 • GEOMETRIC QUESTION

Why does using fresh Gauss–Seidel coordinates cut error roughly twice as fast as Jacobi—and what happens when diagonal dominance fails?

STEP 2 • INTERACTIVE LAB EXPLORATION

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.

STEP 3 • SYMBOLIC FORMALIZATION
xi(k+1)=1aii(bi−∑j<iaijxj(k+1)−∑j>iaijxj(k))x_i^{(k+1)} = \frac{1}{a_{ii}}\Bigl(b_i - \sum_{j<i}a_{ij}x_j^{(k+1)} - \sum_{j>i}a_{ij}x_j^{(k)}\Bigr)
STEP 4 • EDGE CASES & NEXT BRIDGE

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.

Interactive Laboratories in Chapter 6.2.1
Initializing Interactive Laboratory
LOADING MODULE

Preparing interactive canvas & numerical solver…

wanna math drafting viewport

Matrix Splitting & Spectral Convergence • Ch. 6.2.1

Jacobi vs. Gauss–Seidel Iteration & Diagonal Dominance

Open Iterative Solver Formulas →
1. A = D + L + U SPLITTING
x(k+1)=−D−1(L+U)x(k)+D−1b\mathbf{x}^{(k+1)} = -D^{-1}(L+U)\mathbf{x}^{(k)} + D^{-1}\mathbf{b}

Jacobi inverts only the diagonal DD, keeping every component xj(k)x_j^{(k)} frozen during sweep k+1k+1.

2. GAUSS–SEIDEL IN-PLACE SWEEP
x(k+1)=−(D+L)−1Ux(k)+(D+L)−1b\mathbf{x}^{(k+1)} = -(D+L)^{-1}U\mathbf{x}^{(k)} + (D+L)^{-1}\mathbf{b}

Forward substitution immediately reuses newly computed x1(k+1),…,xi−1(k+1)x_1^{(k+1)},\dots,x_{i-1}^{(k+1)}, halving memory storage and roughly doubling convergence speed on diagonally dominant systems.

3. STRICT DIAGONAL DOMINANCE
∣aii∣>∑j≠i∣aij∣  ∀i  ⟹  Converges|a_{ii}| > \sum_{j \neq i} |a_{ij}| \;\forall i \implies \text{Converges}

If one row fails dominance, always test reordering rows before abandoning iterative solvers—simple equation swaps often restore strict dominance immediately!

Chapter 6.2.1 Laboratory Specifications

1 Interactive Lab(s)
LAB 6.2.1.1Component: JacobiGaussSeidelLab

Jacobi vs. Gauss–Seidel Convergence & Diagonal Dominance Lab

Compare Jacobi and Gauss–Seidel trajectories, check row diagonal dominance, and track log₁₀ residual decay.

x(k+1)=Tx(k)+c\mathbf{x}^{(k+1)} = T\mathbf{x}^{(k)} + \mathbf{c}