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]
Notes for Ma221 Lecture 21, Nov 10 2009. Math 221, Matrix Computations, Fall 2009; Gauss-Seidel: component loop, splitting and update-order remark, web lines 372–380
The matrix splitting has , , so its iteration matrix isCompute 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]
Notes for Ma221 Lecture 21, Nov 10 2009. Math 221, Matrix Computations, Fall 2009; Basic iterative methods, cheap splitting requirement; Gauss-Seidel loop and red-black ordering; opening list of solver building blocks
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.
Krylov subspace method 2026-10-31
A Krylov subspace method seeks approximations in spaces generated by repeated matrix applications to a starting vector. For a linear system with starting point and residual , the affine search space is . Choosing an optimality or orthogonality condition within it gives different algorithms. The conjugate gradient method minimizes the energy norm of the error for a symmetric positive-definite matrix; other methods use residual minimization or different projections. The growth of the Krylov subspace can stop early when an invariant subspace is reached.
Lanczos algorithm 2026-10-25
For a real symmetric matrix , the leading block of the Arnoldi decomposition is both symmetric and an upper Hessenberg matrix, hence a tridiagonal matrix. The resulting three-term recurrence is the Lanczos algorithm. If is a symmetric positive-definite matrix, its compression is too, since for nonzero .
LDL decomposition Created 2026-09-24 Updated 2026-10-03
An LDL decomposition of a real symmetric matrix iswhere is unit lower triangular and is diagonal. Symmetric elimination computes it one Schur complement at a time. The matrix is positive definite exactly when every diagonal pivot in is positive.
Left preconditioning Created 2026-10-18 Updated 2026-10-31
Left preconditioning multiplies both sides of the linear system by the same invertible matrix . It leaves the unknown vector unchanged. The original linear-system residual is ; the transformed linear-system residual is . Applying the transformed linear map to first computes , then solves .
For symmetric positive-definite matrices and , is generally not a symmetric matrix in the Euclidean inner product. Its positive eigenvalues alone do not justify ordinary Euclidean conjugate gradient method recurrences. The remedy is symmetric positive-definite preconditioning, implemented through the Preconditioned conjugate gradient method.
Linear-source multivariate Gaussian integral 2026-10-14
For real symmetric positive-definite , complete the square with . Orthogonal diagonalization reduces the remaining integral to the product of one-dimensional Gaussian integrals, proving the displayed expression. Positivity ensures convergence and the positive determinant square root. Replacing matrices by regulated field kernels gives the Gaussian functional integral; an oscillatory Minkowski integral instead requires a causal convergence prescription.
Matrix norm induced by an energy norm 2026-10-31
For a real symmetric positive-definite matrix , the energy norm is . In the defining supremum of the induced matrix norm, substitute . The matrix square root is an invertible matrix, so this ranges over every nonzero vector and proves the displayed identity. This matrix similarity is useful because contraction in the energy norm becomes an ordinary Euclidean operator norm estimate after a change of coordinates.
Matrix preconditioner Created 2026-10-06 Updated 2026-10-18
A matrix preconditioner is an auxiliary invertible matrix whose matrix inverse is cheap to apply and whose use improves the eigenvalues of a linear system. In symmetric positive-definite matrix problems, a symmetric positive-definite matrix preserves that structure under the symmetric transformation .
Applying means solving for a supplied vector . This notation does not require forming a general matrix inverse. A diagonal matrix gives componentwise divisions; a factored matrix gives auxiliary solves such as forward substitution and back substitution.[ref]
Notes for Ma221 Lecture 21, Nov 10 2009. Math 221, Matrix Computations, Fall 2009; Basic iterative methods, web lines 297–308, recurrence (*) and cheap auxiliary-solve requirement
Choosing makes the solve trivial but changes nothing; choosing gives the exact correction but asks us to solve the original linear system.[ref]
Matrix preconditioning Created 2026-10-06 Updated 2026-10-31
Matrix preconditioning transforms a linear system using an inexpensive auxiliary solve to improve its eigenvalues. For symmetric positive-definite matrices, a symmetric positive-definite matrix produces , preserving the symmetric structure needed by the conjugate gradient method.
A useful matrix preconditioner combines a cheap solve with favorable transformed eigenvalues; neither property alone is enough.[ref]
The aim is to make each correction more effective without making it expensive. The example under diagonal scaling for a two-dimensional linear system turns thin ellipses into nearly circular ones and makes preconditioned steepest descent effective.
Use a conforming finite element space with the prescribed basis, and write . Testing the advection-diffusion equation by and applying integration by parts to its diffusion term givesThusHere is the mass matrix; it is a symmetric positive-definite matrix because the basis is linearly independent. The initial vector represents the chosen finite element approximation to , for example its orthogonal projection.
For any coefficient vector , put . The skew symmetry of Galerkin advection with constant drift givesbecause the Sobolev trace of vanishes. ConsequentlyAlong the solution, . The constant symmetric matrix and the semidiscrete equations therefore giveThe L2 norm of the spatial finite element solution is nonincreasing. The constant drift transports it without changing this energy; the diffusion term dissipates it. Any subsequent time-stepping method must be chosen to preserve an appropriate discrete stability estimate.
Past exam of the mathematics course of the University of Cambridge 2001 ib Paper 2 14E a Solution Created 2026-09-24 Updated 2026-10-14
For a real symmetric positive-definite matrix, the Cholesky decomposition is , where is upper triangular with positive diagonal; equivalently with lower triangular.
Existence can be proved by induction. Write , where . For a nonzero vector , evaluate the quadratic form at to obtain . The Schur complement is therefore positive definite. By induction it has factor , andhas . The one-dimensional starting case is the positive square root.
For uniqueness, if , then is upper triangular and satisfies . Since is upper triangular and equals , which is lower triangular, is diagonal. Orthogonality makes its diagonal entries , and positivity of the diagonals of forces . Hence and .
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 46 1 a Solution Created 2026-10-03 Updated 2026-10-14
Let . Independence of the standard normal distributions gives , , and joint densityChoose a matrix with , for example the lower-triangular factor from the Cholesky decomposition. It exists and is nonsingular because is a symmetric positive-definite matrix. Then the required simulation isIt has mean and covariance matrix , and every linear combination of its coordinates is Gaussian, so it has the required multivariate normal distribution.
For the multivariate normal density, apply the change of variables formula to . Its absolute Jacobian determinant is , andHenceThe nonsingularity assumption is needed for a density with respect to -dimensional Lebesgue measure.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 68 4 b Solution Created 2026-10-03 Updated 2026-10-14
Choose a partition , with the usual nodal piecewise-linear hat functions , including the half hats at the endpoints. Write with . Differentiating the Ritz method energy with respect to , , givesOn an element of length , its two basis functions are and . Direct integration yields the element matrixFor example the first weighted diagonal is ; the off-diagonal is . This gives the affine-weighted hat mass matrix and explicit equations on any partition by assembling adjacent elements.
For the uniform choice , , the assembled interior equations areThe last node contributes only one element, so its equation isIn the first interior equation the known term moves to the right, giving . For only the endpoint equation is needed. The last row enforces the weak Neumann boundary condition, so no artificial value outside the interval is introduced. The matrix on is a symmetric positive-definite matrix: its quadratic form is for every nonzero trial variation . The discrete minimizer is therefore unique.
Represent the quadratic form by the symmetric matrixThe spectral theorem for real symmetric matrices gives an orthogonal matrix and real eigenvalues such that . In the orthogonal change of coordinates , the equation becomes .
If both eigenvalues are positive, this is an ellipse with semiaxes and . Conversely, a zero eigenvalue makes the set either empty or unbounded along that coordinate, while two negative eigenvalues give the empty set. Opposite signs give an unbounded hyperbola. A negative eigenvalue together with a zero one also gives the empty set. None of those cases is an ellipse. Therefore the exact condition is that be a symmetric positive-definite matrix.
The sum and product of its eigenvalues are its matrix trace and determinant:Two real numbers are both positive precisely when their sum and product are positive. ThusAn orthogonal transformation preserves area. Using i gives the quadratic-form ellipse area
Eliminate using the plane equation. The orthogonal projection consists exactly of the points satisfyingsince each such lifts uniquely to on the intersection. Translating to the center of an ellipse with and givesThe symmetric matrix of this quadratic form is , whose eigenvalues are and . Thus it is a symmetric positive-definite matrix, and the projected curve is an ellipse. The quadratic-form ellipse area, with the right-hand side scaled by , isFor example, the orthogonal change of coordinates , gives semiaxes and , with the same product.
Write . The allowed orthogonal projection characterization, applied to the basis , gives the normal equationsExplicitly if is odd and if it is even. These equations can also be derived by differentiating with respect to each coefficient.
The Gram matrix is a symmetric positive-definite matrix. For any nonzero real coefficient vector ,The polynomial inside the square is nonzero, so its square is positive on some interval. Hence has zero kernel and is invertible. Thus the normal equations have exactly one solution, giving exactly one best least-squares polynomial. This proves both existence and uniqueness. For completeness, if the residual is orthogonal to , then for every the Pythagorean theorem gives , directly verifying minimality and uniqueness.
Past exam of the numerical analysis course of the University of Oxford 2021 1 b i Solution 2026-10-25
Write for the vector space of polynomials of polynomial degree at most , and put . As the question calls the weighted integral an inner product, its finiteness is implicit; for example, a positive integrable weight suffices for all the continuous functions involved here.
For every , differentiating the squared weighted norm at its minimum gives the orthogonality equationsIn particular, the requested linear system isIts Gram matrix is a symmetric positive-definite matrix: for any nonzero vector ,Indeed a nonzero polynomial is nonzero on some open interval, and the weight is positive. Therefore is an invertible matrix, proving uniqueness. Conversely, if these equations hold, the Pythagorean theorem in an inner-product space gives, for every ,so the solution really is the unique best approximation.
For a symmetric positive-definite matrix, the conjugate gradient method chooses the unique point in minimizing the energy norm of the error. Equivalently it minimizes on that affine space. Here and .
Choose the eigenbasis orthonormally, as the spectral theorem permits, and write . By part (a), every admissible error is , , . Orthogonality then givesThus the implicit CG polynomial minimizes exactly the displayed weighted sum. Strictly, the printed hypothesis that the eigenvectors are individually normalized must be supplemented by mutual orthogonality when eigenvalues repeat. Otherwise cross terms within a repeated-eigenvalue eigenspace need not vanish. An orthonormal eigenbasis always supplies the intended formulation.
If at most eigenvectors contribute to , a polynomial with one factor for each distinct contributing eigenvalue is admissible by step and makes that error zero. CG minimizes a nonnegative quantity, so .
For the last question, write with eigenvalues , . The first polynomial has the form . Differentiating its weighted objective givesIf the high-eigenvalue component is not exceptionally small, the -weighted terms dominate and , so : the first step mainly removes the high-eigenvalue error. This is the spectral weighting of conjugate gradient error. The expectation is conditional on the coefficients, not guaranteed by the two eigenvalues alone; if , the first step instead solves the low-eigenvalue component exactly.
Direct solution usually uses a pivoted LU decomposition : solve by forward substitution, then by back substitution. For a symmetric positive-definite matrix, the Cholesky decomposition iswith lower triangular and positive diagonal. It exploits symmetry, requiring about arithmetic operations rather than the leading for general elimination.
If has full column rank and its reduced QR decomposition is , , thenChoose the signs of so that has positive diagonal. Then is precisely the upper Cholesky factor of the normal-equation matrix , or is its lower factor. This identifies the factors; in computation, obtaining directly by QR decomposition avoids explicitly forming the normal equations, which square the condition number.