Mathematics / Jacobi Iteration
FREE TO EXPLORE
LABORATORY 14 · MATHEMATICS

Jacobi Iteration theory

Understand jacobi iteration: mathematical proofs, error recurrences, asymptotic rates and stability criteria.

Mathematical foundations of Jacobi Iteration.

The Jacobi method—introduced in 1845 by the renowned German mathematician Carl Gustav Jacob Jacobi for astronomical perturbation calculations—is the foundational prototype of stationary iterative methods for solving large linear systems Ax = b. When discretized partial differential equations (such as the Laplace, Poisson, or heat equations) generate sparse linear systems containing millions of unknowns, direct factorization methods like Gaussian elimination or LU decomposition become completely unviable due to O(n³) operation costs and catastrophic 'fill-in' that destroys matrix sparsity. Iterative methods overcome this by generating a sequence of vectors x^{(0)}, x^{(1)}, x^{(2)}, ... that converge toward the exact solution while operating strictly on the non-zero entries of A. Jacobi's algorithm partitions the coefficient matrix A into A = D − L − U, where D is the diagonal, −L is the strictly lower triangle, and −U is the strictly upper triangle. Rewriting Ax = b as Dx = (L + U)x + b yields the classical Jacobi fixed-point iteration: x^{(k+1)} = D⁻¹(L + U)x^{(k)} + D⁻¹b = T_J x^{(k)} + c. In component form, each element is updated by: x_i^{(k+1)} = (b_i − ∑_{j≠i} a_{ij}x_j^{(k)}) / a_{ii}. Because every new component x_i^{(k+1)} depends exclusively on iterates from the previous time step k, the Jacobi method is embarrassingly parallel: all n components can be computed concurrently without communication barriers, making it an ideal algorithm for massively parallel graphics processing units (GPUs) and distributed supercomputing clusters. The mathematical convergence of the Jacobi method is governed entirely by the spectral radius of the iteration matrix: ρ(T_J) = max |λ_i(T_J)|. If A is strictly diagonally dominant (|a_{ii}| > ∑_{j≠i} |a_{ij}|), Gerschgorin's Circle Theorem guarantees that ρ(T_J) < 1, ensuring unconditional convergence. The error norm attenuates geometrically at every step: ‖e^{(k+1)}‖ ≈ ρ(T_J) · ‖e^{(k)}‖. In this computational laboratory, students evaluate the Jacobi method on a diagonally dominant system with theoretical spectral radius ρ = 0.500 across six standardized iteration steps, track simultaneous vector updates, and extract the empirical spectral radius ρ = 0.500 via logarithmic linear regression.

\ln(\Vert e_{k+1}\Vert) = 1.000 \cdot \ln(\Vert e_k\Vert) + \ln(\rho) \implies \rho = e^{\ln(\rho)} = 0.500

Viva voce questions & analytical theory

What is the theoretical definition and significance of the spectral radius ρ(M)?

The spectral radius of a square matrix M is defined as the maximum absolute magnitude among all its eigenvalues: ρ(M) = max_i |λ_i(M)|. For any stationary iterative method x^{(k+1)} = Mx^{(k)} + c, the error vector satisfies e^{(k+1)} = Me^{(k)} = M^{k+1}e^{(0)}. By Gelfand's spectral radius formula (lim_{k→∞} ‖M^k‖^{1/k} = ρ(M)), the iteration converges from any initial guess if and only if ρ(M) < 1. The smaller the spectral radius, the faster the error attenuates: asymptotically, ‖e^{(k+1)}‖ ≈ ρ(M) · ‖e^{(k)}‖.

Why is the Jacobi method ideally suited for massive parallel computing (GPUs)?

In the Jacobi method, the update for each component x_i^{(k+1)} depends exclusively on entries from the previous iteration vector x^{(k)}: x_i^{(k+1)} = (b_i − ∑_{j≠i} a_{ij}x_j^{(k)})/a_{ii}. None of the newly computed entries x_j^{(k+1)} are used during the current pass. Consequently, all n components can be calculated completely independently and in parallel across n GPU cores or SIMD vector lanes without any synchronization barriers or data race hazards.

What is the Gerschgorin Circle Theorem and how does it guarantee Jacobi convergence?

The Gerschgorin Circle Theorem states that every eigenvalue of a matrix A lies within at least one closed disk in the complex plane centered at a_{ii} with radius R_i = ∑_{j≠i} |a_{ij}|. If A is strictly diagonally dominant (|a_{ii}| > R_i for all i), then zero does not belong to any Gerschgorin disk, proving A is invertible. Furthermore, for the Jacobi iteration matrix T_J = D⁻¹(L + U), the diagonal entries are 0 and the row sums are ∑_{j≠i} |a_{ij}| / |a_{ii}| < 1. Therefore, all eigenvalues of T_J satisfy |λ| < 1, guaranteeing ρ(T_J) < 1 and unconditional convergence.

How does the convergence rate of Jacobi compare to Gauss-Seidel for tridiagonal matrices?

The celebrated Stein-Rosenberg Theorem states that if the off-diagonal entries of A are non-positive (an M-matrix, common in discretized PDEs), then either both Jacobi and Gauss-Seidel converge, or both diverge. For tridiagonal matrices arising from finite differences, the spectral radius of Gauss-Seidel is the exact square of Jacobi's spectral radius: ρ(T_{GS}) = [ρ(T_J)]². Because ρ < 1, squaring it halves the required iterations: Gauss-Seidel converges exactly twice as fast as Jacobi.

What stopping criteria should be used for Jacobi iteration in practice?

Because the true error e^{(k)} = x^{(k)} − x* is unknown during computation, algorithms monitor the relative residual norm: ‖b − Ax^{(k)}‖ / ‖b‖ < ε_tol. However, if the matrix is ill-conditioned (large κ(A)), a small residual does not guarantee a small error: ‖e^{(k)}‖ / ‖x*‖ ≤ κ(A) · (‖r^{(k)}‖ / ‖b‖). In such cases, the iterate difference norm ‖x^{(k+1)} − x^{(k)}‖ ≤ [(1 − ρ)/ρ] · ε_tol is also tracked.

What is the asymptotic rate of convergence R_∞?

The asymptotic rate of convergence is defined as R_∞ = −log₁₀(ρ(M)). It measures the number of correct decimal digits gained per iteration. For example, if ρ = 0.1, R_∞ = −log₁₀(0.1) = 1 digit per step; if ρ = 0.5, R_∞ = −log₁₀(0.5) ≈ 0.301 digits per step, meaning approximately 3.32 iterations are required to gain one full decimal digit of precision.

Can Jacobi iteration converge if A is not diagonally dominant?

Yes. Strict diagonal dominance is a sufficient condition, not a necessary one. As long as the spectral radius of the iteration matrix satisfies ρ(D⁻¹(L+U)) < 1, the iteration will converge, even if some rows fail diagonal dominance.

Algorithm precautions and stability rules

  • Check for zero diagonal entries a_{ii} before starting; if any a_{ii} = 0, divide-by-zero occurs.
  • Verify that matrix A is strictly diagonally dominant (|a_{ii}| > ∑_{j≠i} |a_{ij}|) to guarantee convergence.
  • Maintain two separate memory buffers for x^{(k)} and x^{(k+1)}; updating in-place inadvertently converts Jacobi into Gauss-Seidel.
  • Monitor residual norm ‖b − Ax^{(k)}‖ at each step to detect divergence if ρ ≥ 1.
  • For large sparse systems, store A in Compressed Sparse Row (CSR) format to reduce per-iteration cost from O(n²) to O(nnz).
  • Be aware of slow convergence if ρ is close to 1 (e.g. ρ = 0.999 on fine PDE meshes); use multigrid or conjugate gradients.

Theoretical limitations

  • Convergence is strictly linear and can be excruciatingly slow if the spectral radius is close to 1.
  • Will diverge if ρ(T_J) ≥ 1 (which frequently happens if diagonal dominance is violated).
  • Requires more total iterations than Gauss-Seidel, SOR, or Krylov subspace methods.
↳
Connect theory to numerical computation.

The numerical simulation model evaluates a strictly diagonally dominant 4×4 linear system Ax = b with analytical solution x* = [1.0, 2.0, 3.0, 4.0]ᵀ and Jacobi iteration matrix T_J = D⁻¹(L + U) having eigenvalues λ = [0.500, −0.500, 0.250, −0.250], giving spectral radius ρ(T_J) = 0.500000. Initial error norm: ‖e_0‖ = 0.367879 (ln(‖e_0‖) = −1.0000). Across six iterations, the Euclidean error norms are: ‖e_1‖ = 0.183940 (ln = −1.6931); ‖e_2‖ = 0.091970 (ln = −2.3863); ‖e_3‖ = 0.045985 (ln = −3.0794); ‖e_4‖ = 0.022992 (ln = −3.7726); ‖e_5‖ = 0.011496 (ln = −4.4657); ‖e_6‖ = 0.005748 (ln = −5.1589). Linear regression of y = ln(‖e_{k+1}‖) against x = ln(‖e_k‖) yields slope m = 1.00000 and intercept ln(ρ) = −0.693147 with coefficient of determination R² = 1.000000. The empirical spectral radius is extracted as ρ = e^(−0.693147) = 0.50000, matching the theoretical spectral radius ρ = 0.50000 within 0.0000% deviation.