From first principles
Turn a balance into a repeatable correction
Suppose a large linear system \(Ax=b\) is difficult to solve, but a nearby matrix \(M\) is easy to invert. At a trial value \(x_k\), compute the imbalance \(r_k=b-Ax_k\). Estimate the correction by solving \(M d_k=r_k\), then add it to the trial value,
For the true solution \(x_*\) the residual vanishes. Subtract this fixed solution from the update and define \(e_k=x_k-x_*\). The algorithm propagates its remaining error through one fixed matrix,
A sufficient test for convergence is an induced norm of the iteration matrix below one. More generally, in finite dimension convergence for every starting error requires all eigenvalues to have magnitude below one. Taking \(M\) as the diagonal of \(A\) gives Jacobi iteration when all diagonal entries are nonzero. Its cheap solves are worthwhile only if the resulting errors decay at a useful rate.
Derivation and applications
Balance the slow and fast modes of a fixed relaxation step
Suppose the linear operator \(A\) is real symmetric positive definite and estimates \(\ell,u\) bound its eigenvalues, with \(0<\ell\le u\). Consider a scalar relaxation \(x_{k+1}=x_k+\omega(b-Ax_k)\). Because \(A\) has an orthonormal eigenbasis, each error component evolves independently. For an eigenvector belonging to \(\lambda\), its scalar error changes according to
The largest possible amplification over the spectral interval occurs at an endpoint. Indeed the absolute value of an affine function is convex. Thus choosing a single step for every component asks for the smallest possible value of
Below the optimum the low-frequency endpoint with smaller eigenvalue decays too slowly; above it the high-eigenvalue endpoint overshoots too far. Equalizing their absolute values with opposite signs gives the best fixed step and its worst-case bound,
For coincident endpoints a single step solves the problem. When the ratio \(u/\ell\) is very large, even the optimal scalar choice leaves \(q_*\) near unity. The result bounds the Euclidean norm directly because the eigenvectors are orthogonal. For a nonsymmetric matrix, eigenvalue endpoints alone do not establish this norm bound.
Worked example
Set the step and predict an iteration budget
A model has spectrum in \([2,8]\). Choose \(\omega=0.2\); then the endpoint error factors are \(+0.6\) and \(-0.6\). To guarantee reduction by a factor of 1000 requires \(k\ge\ln(0.001)/\ln(0.6)=13.52\), hence 14 steps. An error entirely in the mode \(\lambda=5\) vanishes after the first update, showing why actual runs can beat the guarantee.
Second application
Diagnose divergence from a missed fast mode
A second solver uses \(\omega=0.25\) on a system initially believed to have largest eigenvalue 6. A newly resolved mode has \(\lambda=9\), giving amplification \(1-0.25(9)=-1.25\). Its error reverses sign and grows by a factor \(1.25^4=2.44\) in four steps. With a verified interval \([1,9]\) the corrected fixed step is \(0.2\), yielding a contraction bound \(0.8\).
Split a difficult solve into easy solves
A direct factorisation may consume substantial memory on a fine mesh. One alternative repeatedly solves with a matrix \(M\) that is easy to invert. Write \(A=M-N\). Starting at \(x^{(0)}\), solve \(Mx^{(k+1)}=Nx^{(k)}+b\). This update can also be written as a correction \(x^{(k+1)}=x^{(k)}+M^{-1}(b-Ax^{(k)})\). The exact solution is a fixed point. A convenient choice of \(M\) is useful only if these cheap corrections move arbitrary starting guesses toward that point.
Subtract the update from the exact fixed-point equation. The error propagates as \(e^{(k+1)}=Ge^{(k)}\), where \(G=M^{-1}N=I-M^{-1}A\). If \(G\) is diagonalizable, expansion of the initial error in its eigenvectors gives a factor \(\lambda_i^k\) per mode after \(k\) steps. The spectral radius below one gives convergence from every initial vector. A mode with magnitude close to one decays slowly. For a nonnormal matrix the eigenvectors may be nearly parallel, so several early error norms can rise even when the ultimate decay is assured.
Update a two-node network
Let \(A=\left(\begin{smallmatrix}2&-1\\-1&2\end{smallmatrix}\right)\) and \(b=(1,1)^T\), with exact solution \((1,1)^T\). Jacobi uses \(M=\operatorname{diag}(A)\). The updates are
Starting at zero gives \((0.5,0.5)\), then \((0.75,0.75)\). Here the initial error lies in the symmetric eigenvector, with factor \(+0.5\). An initial antisymmetric error would change sign each step with factor \(-0.5\). Both shrink at the same magnitude despite different histories.
Gauss–Seidel includes the lower triangular part of \(A\) in \(M\). It uses the just-computed \(x_1^{new}\) in the second equation. From zero, the first sweep gives \((0.5,0.75)\) and the next gives \((0.875,0.9375)\). The error propagation matrix for this ordering is \(\left(\begin{smallmatrix}0&1/2\\0&1/4\end{smallmatrix}\right)\), whose eigenvalues are zero and one quarter. A sweep uses recent information, but introduces a sequential dependence that plain Jacobi avoids.
Why a good smoother can be a poor solver
On a uniform one-dimensional Dirichlet grid with \(N\) intervals, each Jacobi correction for the Poisson equation replaces the error by its neighbours’ average. Substitute the sine-shaped error \(e_i=\sin(j\pi i/N)\). The addition identity shows that its amplification is \(\cos(j\pi/N)\). Low-frequency modes vary gently between neighbours, so averaging barely changes them. As the grid is refined the slowest factor tends to one. An iteration count measured on a coarse problem therefore gives little indication of fine-grid cost.
Weighted Jacobi mixes one ordinary Jacobi sweep with the old iterate. The factor becomes \(1-\omega+\omega\cos(j\pi/N)\). Choosing \(\omega=2/3\) sends a very oscillatory mode with cosine near minus one to approximately minus one third. The unweighted scheme would retain almost all of its magnitude with alternating sign. For a smooth mode with cosine near one, both updates do little. A multigrid method exploits this distinction: several weighted sweeps remove much of the local oscillation, and a coarser representation corrects the remaining long-scale error. Always evaluate a smoother by its effect on selected frequencies and a standalone solver by the slowest remaining mode.

Estimate the cost before extrapolating a timing
For the slowest sine error on a grid of \(N\) intervals,
To reduce this component by a factor of ten, solve \(\cos(\pi/N)^k\leq0.1\) using logarithms. For large \(N\) this gives
Doubling the number of intervals therefore roughly quadruples the sweep count for ordinary Jacobi. The work in a one-dimensional sweep also doubles. A timing extrapolated solely from the cost of one sweep misses this additional factor of four.
This estimate starts with an error containing the first sine mode. If a benchmark uses a carefully chosen high-frequency error, a weighted Jacobi run may look much faster. The two measurements describe different aspects of the iteration. Repeating the comparison with both a smooth and a rapidly alternating initial error makes that dependence observable in a short experiment.
Convergence can begin with a large increase
Write an affine stationary iteration as \(x_{k+1}=Tx_k+c\). Subtracting its fixed-point equation shows that \(e_k=T^ke_0\) for the error in either consistently chosen sign convention. Every initial error decays in finite dimension exactly when the spectral radius of \(T\) is smaller than one. Diagonalising a normal \(T\) then gives
For a nonnormal matrix its eigenvectors need not be orthogonal and this norm identity fails. A shrinking asymptotic factor can coexist with substantial early error growth.
Consider \(T=rI+N\) with \(N^2=0\) and \(0<r<1\). Since \(I\) and \(N\) commute, the binomial expansion leaves \(T^k=r^kI+kr^{k-1}N\). The second term eventually vanishes because exponential decay dominates a polynomial factor. Initially it can be large if the off-diagonal coupling in \(N\) is large. This is a precise way to distinguish eventual convergence from contractivity in a specified physical norm. Monitoring only the eigenvalue magnitude hides the size of short-term excursions experienced by the components.
A coupled recurrence that delivers the wrong early verdict
Take \(r=1/2,\ N=\left(\begin{smallmatrix}0&8\\0&0\end{smallmatrix}\right)\), and start from error \(e_0=(0,1)^T\). The exact formula gives \(e_1=(8,1/2)^T\), \(e_2=(8,1/4)^T\), \(e_3=(6,1/8)^T\), and \(e_4=(4,1/16)^T\). An investigator who compares the first error norm with its initial value would conclude that the procedure is unstable. Yet both eigenvalues are one half and the formula assures eventual decay. At ten steps the first component is
This slow recovery after a rapid early amplification is a property of the coupling.
A second experiment starts from \(e_0=(1,0)^T\). The nilpotent part annihilates that direction and the first component decays as \(2^{-k}\) from the very beginning. Thus observing a successful trajectory from just one initial condition can also conceal the largest early amplification. In a simulation that uses this solve inside another algorithm, those intermediate excursions may violate physical admissibility even if the mathematical linear system would eventually be solved to high accuracy.
Scaling the first coordinate by a factor of sixteen reduces the numerical off-diagonal entry in the scaled iteration from eight to one half. The infinity norm of that scaled matrix is then one; a slightly stronger scaling makes it strictly contractive. This does not change any eigenvalue or physical trajectory. It changes how coordinate errors are measured. An engineer should specify whether the chosen scaled tolerance actually controls both components to their required physical accuracies before using contractivity in that norm as a practical stopping guarantee.
A related diagnostic is to distinguish the one-step map norm from its spectral radius numerically. Here applying \(T\) to the unit vector \(e_2\) gives length \(\sqrt{64+1/4}>8\), so its two-norm is at least eight. No calculation of eigenvalues can give a comparable lower bound on this one-step gain in a nonnormal problem. Computing a largest singular value would measure exactly that worst initial norm amplification.
Change parameters · Stationary iterations and smoothing
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.