For the Jacobi iteration for a three-variable tridiagonal system,
An orthonormal eigenbasis is
with eigenvalues , , and , respectively. These are error modes: their shapes persist under the iteration matrix, while their coefficients change. Direct multiplication verifies them, or expansion of the determinant gives . Thus and convergence holds for every starting vector.
With , the initial forward error has coefficients
For ,
The zero mode disappears after one sweep; the negative mode alternates in sign. The Euclidean norm drops by exactly per sweep from onward. The first norm drop is different because includes the zero mode. A starting error proportional to would disappear entirely in one sweep, faster than the spectral radius predicts for generic errors.
Figure 1.
Computed Jacobi method error curves and eigenvector modes for the original three-variable tridiagonal matrix
. Details.
The curves are computed iterates and exact formulas for this linear system. Since , the same eigenvectors have eigenvalues , , and for . They prove that is a positive-definite matrix, and give the condition number used in residual and forward error in a stationary iteration.
For the Gauss-Seidel iteration for a two-variable positive-definite system, define the forward error by and . Subtract the two exact solution equations from the two update equations:
The fresh first coordinate passes the old second-coordinate error through two successive factors. The iteration matrix is therefore
Its eigenvalues are and , as seen from the determinant. The zero eigenvalue explains why the old first-coordinate error disappears completely: the first row overwrites it. After one sweep, every remaining forward error lies on the eigenvector line spanned by .
For this zero start, , so the exact vectors for are
The Euclidean norm of the forward error decreases by exactly per sweep from onward. The first decrease is different because the initial error has not yet reached that eigenvector line. Each row update moves horizontally or vertically in the coordinate plane; sweep endpoints then approach the solution along one straight line.
Figure 1.
Computed row-by-row Gauss-Seidel method trajectory and exact forward error contraction for the original two-variable linear system
. Details.
The linear-system residual is an independent way to check the calculation. Completing a sweep satisfies the second row exactly, but changing disturbs the first row:
Thus a zero residual in the last updated row alone does not certify a solution; inspect the complete linear-system residual.
For the same matrix, the stale schedule of the Jacobi method gives the iteration matrix
Here its eigenvalues are , whereas the fresh schedule gives . This comparison belongs to this particular linear system; it is not a universal relation between the two methods' spectral radii.
Gauss-Seidel iteration for a two-variable positive-definite system Created 2026-10-18 Updated 2026-10-31
Consider the original linear system
Direct substitution verifies the solution. The matrix is a symmetric positive-definite matrix: completing the square in its quadratic form gives for every nonzero vector. It is also a strictly diagonally dominant matrix.
Starting from , update the first row and then the second:
The first sweep gives and . The next gives and . The second row uses during the first sweep, even though the initial first coordinate was zero.
Figure 1.
Fresh and stale inputs in the first sweep of the original two-variable linear system
. Details.
With a stale first coordinate, the Jacobi method would instead give after the first sweep. Both methods have the same fixed point, but changing when coordinates become available changes the entire sequence of vectors.
Gauss-Seidel method Created 2026-10-05 Updated 2026-10-18
With , the Gauss-Seidel method solves . It uses each newly computed coordinate immediately in the remaining triangular solve. It is successive over-relaxation with parameter one, and converges from every start when is a symmetric positive-definite matrix.
To solve a linear system , split its matrix into the diagonal matrix and the strictly lower and upper parts , retaining their actual signs. Every diagonal entry must be nonzero. A sweep updates coordinates in order:
The Jacobi method uses the old vector throughout; the Gauss-Seidel method reuses each fresh coordinate. Thus the update order is part of the method.[ref]
The matrix splitting has , , so its iteration matrix is
Compute the update by forward substitution with the lower triangular matrix , rather than forming a matrix inverse. For a sparse matrix, a sweep only visits stored entries and can overwrite the working vector. Dependencies on fresh coordinates constrain parallel execution. This makes the Gauss-Seidel method an inexpensive solver component, including in a multigrid method.[ref]
Jacobi convergence for a three-by-three equicorrelation matrix Created 2026-09-29 Updated 2026-10-03
For a three-by-three matrix with diagonal entries one and every off-diagonal entry , the Jacobi method iteration matrix has eigenvalue on the all-ones vector and eigenvalue with multiplicity two on its orthogonal complement. Its spectral radius is , so Jacobi iteration converges exactly when .
The Jacobi method has axial neighbour weights and diagonal weights . Interior row sums are one, boundary-adjacent sums are smaller, and the positive-weight graph is connected. If an eigenvalue had modulus one, a maximal-modulus eigenvector component would force all its neighbours to have the same modulus. Propagation reaches a deficient row, a contradiction. This proves strict spectral-radius control even though the infinity norm of the iteration matrix can equal one.
A strictly diagonally dominant matrix guarantees convergence of the Jacobi method for every initial vector.[ref]
Indeed, using the maximum norm , the induced operator norm is the largest absolute row sum. The Jacobi method has and for , so
This gives a cheap sufficient check without computing any eigenvalues. For the Jacobi iteration for a three-variable tridiagonal system, the absolute row sums of are , giving . The true spectral radius gives a sharper eventual rate.
Strict diagonal dominance is sufficient, not necessary: violates it in the first row, but its Jacobi method has eigenvalues and converges. Conversely, being a positive-definite matrix alone is insufficient: the Jacobi convergence for a three-by-three equicorrelation matrix with has positive eigenvalues for , but spectral radius for its iteration matrix. The extra tridiagonal matrix structure in Jacobi convergence for a symmetric positive-definite tridiagonal matrix is therefore substantive.
Consider the original linear system with a symmetric matrix that is also a tridiagonal matrix:
Here and the Jacobi method reads
Starting from , the first three vectors are
Every right-hand side uses superscript , including the middle row, even when a new first coordinate has already been computed.
Figure 1.
Simultaneous old-to-new component updates in the Jacobi method, compared with immediate reuse in the Gauss-Seidel method
. Details.
For comparison, a first Gauss-Seidel method sweep in coordinate order gives
The new first coordinate enters the middle update, and the new second coordinate enters the final update. Accidentally overwriting old coordinates during a Jacobi method sweep therefore changes the mathematical method.
Jacobi method Created 2026-09-24 Updated 2026-10-31
Writing , where is diagonal and are strictly triangular, the Jacobi iteration is
The Jacobi method solves a linear system by updating every coordinate from the same old vector. It requires every diagonal entry to be nonzero. Isolating coordinate in row gives the simultaneous rule
Here is the iteration matrix. A sweep computes a complete new vector before replacing the old one, so its coordinate updates can run independently.[ref]
For a sparse matrix, a sweep needs work proportional to the stored nonzero entries, while Gaussian elimination may create fill-in. The Jacobi method is therefore a simple starting point for large linear systems, and the weighted Jacobi method supplies a useful building block of a multigrid method. Its beauty is that a local row correction becomes a global eigenvalue question: the convergence criterion for a stationary iteration is exactly .
Jacobi preconditioner 2026-10-18
The Jacobi preconditioner keeps only the diagonal entries of the matrix . For a symmetric positive-definite matrix, these entries are positive, so its auxiliary solve is . It rescales coordinates with very different diagonal sizes, but cannot remove arbitrary off-diagonal coupling.[ref]
This shares a diagonal matrix with the Jacobi method, but the roles differ. The Jacobi method specifies a whole stationary iterative method for a linear system; a Jacobi preconditioner supplies an auxiliary solve to another iterative method, including the Preconditioned conjugate gradient method.
Matrix splitting Created 2026-09-24 Updated 2026-10-18
A splitting with invertible produces
A matrix splitting chooses an easy part of a matrix and corrects for the remaining part . To solve the linear system , first rewrite it as , then use the old vector on the right and solve for the new vector on the left. The matrix inverse notation describes the update mathematically; each step should solve with rather than construct its matrix inverse.[ref]
The same identity also yields a correction based on the linear-system residual:
This connects a matrix splitting to matrix preconditioning: rescales the imbalance before adding a correction. Choosing gives and the exact solution in one step, but requires solving the original linear system; choosing cheaply matters as much as the convergence criterion for a stationary iteration.
With the sign convention , is the diagonal matrix of diagonal entries and contain the actual lower and upper entries, without reversing their signs. The Jacobi method uses , ; the Gauss-Seidel method uses , . The first requires only division by diagonal entries; the second uses a lower triangular matrix and forward substitution. These choices explain their different information flows.
Multigrid method Created 2026-10-06 Updated 2026-10-31
A multigrid method solves a linear system by combining local relaxation with coarse-grid correction on a hierarchy of meshes. The key is to divide the work by scale: a suitable relaxation removes rapidly oscillating approximation error, while coarse-grid correction addresses slowly varying approximation error that relaxation barely changes. A broad error hump occupies many fine-grid points but fewer coarse-grid points; it becomes easier to resolve by relaxation after enough coarsening. This complementary action is why multigrid methods are useful for large finite difference method and finite element method systems.
For a concrete model, take the one-dimensional Poisson equation with homogeneous Dirichlet boundary conditions:
Use interior points , , and the centered finite difference system
Thus is a symmetric matrix and a positive-definite matrix. The minus sign in fixes this positive convention; changing both and to their negatives leaves the relaxation update unchanged. For , the linear system has the exact discrete solution , since the centered finite difference is exact on this quadratic polynomial. In general, the exact discrete solution need not equal the sampled continuous solution: solving the linear system removes algebraic approximation error, not the global discretization error.
Let solve , let be the current approximation, and define the signed approximation error . The linear-system residual is , so . In particular, a linear-system residual is available without knowing ; it supplies the right-hand side for a correction equation. With , a weighted Jacobi method sweep is
The sine eigenvectors shared by and the iteration matrix are , . Their eigenvalues are
For , one weighted Jacobi method sweep with multiplies the lowest Fourier frequency mode by about , but the highest Fourier frequency mode by about . Four sweeps retain about of the first amplitude and of the second. The sign reversal of the second amplitude is harmless when its magnitude shrinks. However, the plain Jacobi method, , has factor : at it is about . A nearly alternating mode near the grid's Nyquist limit therefore persists almost as strongly as the smoothest mode. Plain Jacobi method convergence on a fixed Dirichlet boundary condition grid does not imply effective smoothing.[ref] The high-frequency smoothing factor of weighted Jacobi is uniformly at most for and ; the exact finite-grid high-frequency Jacobi smoothing optimum distinguishes this convenient uniform choice from the finite-grid optimum.[ref]
Figure 1.
Analytic Poisson error modes: weighted Jacobi damps short wavelengths while plain Jacobi struggles near the Nyquist limit
. Details.
One two-grid cycle applies a few weighted Jacobi method sweeps, computes the linear-system residual, performs coarse-grid correction, and applies a few more sweeps. The first relaxation makes the remaining approximation error easier to represent on a coarse mesh; the last relaxation damps oscillatory components left after the transferred correction. In a geometric multigrid V-cycle, replace the expensive exact coarse solve by one recursive cycle on the coarse correction equation, starting its correction from zero. Repeat until a tiny coarsest linear system can be solved directly, then return through the levels by adding each interpolated correction and post-smoothing. The descent and return give the cycle its V shape.[ref]
For this one-dimensional model, fixed sweep counts and bounded local finite difference and transfer work give a geometric multigrid V-cycle cost proportional to , hence in Big O notation. A fixed error reduction also needs a contraction factor bounded below one independently of ; per-cycle work alone does not establish that. Starting from arbitrary approximation error and demanding a relative reduction generally adds a factor proportional to in the cycle count. Full multigrid uses coarse solutions as initial guesses on successively finer meshes to target the global discretization error efficiently. The two-grid Poisson factor with weighted Jacobi illustrates favorable convergence for this model. Other partial differential equations, strong anisotropy, or poorly chosen coarse spaces and relaxation can defeat these choices; a linear-work guarantee for arbitrary linear systems does not follow.
A historical example of the multilevel viewpoint is Achi Brandt's April 1977 paper, which analyzes adaptive meshes and reports numerical experiments on linear and nonlinear boundary value problems. This is a documented development of the approach, not a claim that the paper was its first invention.[ref] The figure above is generated from the displayed eigenvalues, with lines joining discrete nodes; it contains no experimental measurements.
Write , with diagonal, and use only old iterates on the right side. The Jacobi method is
Strict row diagonal dominance ensures every . The exact solution satisfies the same coordinate relation. For , subtraction gives
Taking the maximum and iterating proves
This direct contraction proof requires no eigenvector assumption and applies to every strictly diagonally dominant matrix with the stated uniform .
Assume and use periodic indices for the Jacobi method. At iteration , it is
All values on its right side belong to the old iterate. For lexicographic Gauss-Seidel iteration, compute in the order and use a newly available coordinate immediately:
The wrap-around term in the last row uses the new , while the wrap-around term in the first row uses the old . This is important for the actual iteration matrix and its convergence behavior.
The circulant matrix is singular, so the meaning of convergence needs care. If is the cyclic shift, has Fourier eigenvalues . Its null space consists of constants. Therefore is solvable exactly when , and any solution is determined only up to a constant. Neither iteration can converge to a unique solution for arbitrary right-hand sides.
For a compatible , fix one solution and examine the error. The iteration matrix of the Jacobi method is , with eigenvalues . The constant mode has eigenvalue one. For odd all other eigenvalues have modulus less than one, so the iterates converge to , with the constant selected by the initial mean. For even , the alternating vector has eigenvalue , producing an undamped oscillation. With and alternating initial vector this is an explicit nonconvergent example. For even convergence occurs only when that error component vanishes. When , the mean instead drifts by at each step, so Jacobi cannot converge.
For Gauss-Seidel iteration, put , so is positive semidefinite with diagonal two. The homogeneous error iteration is , . Updating a coordinate exactly minimizes in that coordinate; completing the square gives an energy decrement . Summing within a sweep gives
The same identity holds for the Hermitian energy of complex vectors. If and is nonconstant, its energy is positive, so . Equality forces every update to be zero, whence and is constant, a contradiction. Thus all nonconstant eigenmodes have modulus strictly below one.
The eigenvalue one has only the constant eigenspace. To exclude a generalized eigenvector at one, observe that
If , multiplication by would give . Hence the constant eigenvalue is algebraically simple, and
For compatible , Gauss-Seidel therefore converges from every start to some solution, for either parity of . Its limit differs from by . For an incompatible , the affine update gives , so the iterates again cannot converge.
Thus semiconvergence of cyclic Poisson iterations gives the precise answer:
Both have spectral radius one on the unrestricted space, so neither meets the strict stationary-iteration criterion for a unique limit independent of the starting constant. A spectral radius of one alone is not a proof that Gauss-Seidel's compatible iterates fail to converge. A normalization or projection removing the constant mode makes this distinction explicit.
Split with , the negative unit subdiagonal and the positive unit superdiagonal. The Jacobi method uses , so
The Gauss-Seidel method uses , giving by forward substitution
Both iterations converge for every initial error exactly when their spectral radius is below one, since the error evolves as powers of the iteration matrix.
For Jacobi, the leading tridiagonal determinant recurrence is , with . Thus
Its roots are and . Expanding the Gauss-Seidel determinant gives
so its nonzero eigenvalues are . Therefore
The skew-tridiagonal Jacobi and Gauss-Seidel iterations consequently have the same convergence range:
Equality fails the every-start convergence condition, and larger magnitudes have unstable modes. The nonsymmetric matrix does not permit an unexamined positive-definite-matrix convergence argument.
For a linear system write , where is the diagonal. The Jacobi method iterates
Here , and has nonnegative off-diagonal entries with row sums at most one. Rows adjacent to the boundary have sum strictly less than one; those at purely interior stencil vertices have sum one. Thus .
To prove strict spectral radius below one, suppose with , and choose an index with . In
equality forces that row sum to equal one and every linked neighbor to attain the same maximum modulus. Propagate this along the connected axial grid to a boundary-adjacent row, whose row sum is strictly less than one, a contradiction. All eigenvalues therefore have modulus strictly below one. Hence and the Jacobi errors tend to zero from every initial vector. The unique solution exists by positive definiteness, so
Subtract the exact solution from the Jacobi method to get , hence . Convergence from every initial vector is equivalent to . If every eigenvalue has modulus below one, a Jordan block has powers that are finite sums . The polynomial factor in is dominated by geometric decay; for , the block is nilpotent. Consequently .
Conversely, for a complex eigenvector with eigenvalue , . Convergence for real errors also implies convergence for their complexification, so this tends to zero only if . Therefore the iteration converges from every starting vector if and only if , where is the spectral radius.
For the specified matrix,
Its eigenvalues are , so . Hence is the convergence range. The original coefficient matrix has determinant , so the endpoints also violate its assumed nonsingularity.
Assume the diagonal entries of are nonzero. The relaxed Jacobi method simultaneously updates every component using the preceding iterate:
In matrix form, with , this is . The ordinary Jacobi method has .
Write , with diagonal and the strict triangular parts. The Jacobi method updates all coordinates using the preceding iterate:
For a symmetric positive definite matrix, has positive diagonal entries. In its splitting take , . The theorem requires to be positive definite, which need not hold for every positive definite matrix.
For this tridiagonal matrix, let . Neighboring indices have opposite signs, so : the diagonal stays fixed and every nonzero off-diagonal entry changes sign. Thus
The Householder-John theorem now applies and proves Jacobi convergence for every initial vector. This is precisely why the tridiagonal structure matters.