Linear-system residual 2026-10-06
The residual of an approximate solution of is . It is the unbalanced right-hand side, while the solution error is . The Conjugate gradient method makes residuals orthogonal to successive Krylov subspaces.
Matrix preconditioning 2026-10-06
Matrix preconditioning transforms a system using an inexpensive auxiliary solve to improve its spectrum. For symmetric positive definite matrices, a positive definite produces , preserving the symmetric structure needed by Conjugate gradient method.
The linear-system residual at an approximate solution is . For symmetric positive definite , the Conjugate gradient method has and minimizes the squared -norm of the error over that affine space; its residual is orthogonal to .
If has distinct eigenvalues, interpolate on them with a polynomial of degree at most . The finite-dimensional spectral theorem gives , so the exact correction lies in . The minimum possible error at step is therefore zero. Thus in exact arithmetic, possibly earlier if the initial residual has fewer eigencomponents. If , it terminates immediately.
A symmetric positive definite matrix preconditioner changes the system to , with ; practical preconditioned CG applies solves with . It can accelerate convergence by reducing the spectral condition number of a positive-definite matrix, which improves the usual bound involving , and by clustering eigenvalues, which allows low-degree residual polynomials small on the spectrum even when the extreme-eigenvalue bound is pessimistic.
Choosing makes the transformed matrix , so one step suffices. But applying already requires solving the original problem, and constructing an exact factorization generally incurs its original computational cost. It is therefore not a useful shortcut for a single unsolved system, though an available factorization can be reused for multiple right-hand sides. Effective matrix preconditioning balances spectral improvement against inexpensive application.
For an iterate , the Conjugate gradient method residual is
Two fundamental properties are the Conjugate-gradient residual orthogonality conditions
Equivalently, the residuals generated before convergence are mutually orthogonal and span the successive Krylov spaces.
Since has only distinct eigenvalues, its minimal polynomial has degree at most . Consequently
The two properties then put both inside and orthogonal to , so . Hence , and
For
the gradient is . The steepest descent method with exact line search for a positive-definite quadratic therefore uses
For and , the minimizer is . Put
Starting from , direct substitution gives and, inductively,
The Euclidean norm is unchanged by the alternating sign, so
For a positive-definite matrix, the spectral condition number of a positive-definite matrix is
Here , and hence
The Conjugate gradient method starts with and updates
By finite termination of the conjugate gradient method, it reaches the exact solution in at most the number of distinct eigenvalues. This matrix has two, so at most
are required in exact arithmetic.