LU decomposition and singular value decomposition (SVD)
LU factorisation from Gaussian elimination (with LDU and Cholesky), and the singular value decomposition with its uses in rank, norms, low-rank approximation and PCA; GATE asks for LU entries and singular values.
LU decomposition writes a square matrix as , with lower triangular and upper triangular. It is Gaussian elimination recorded as a product:
is the echelon form produced by elimination; its diagonal holds the pivots.
has 1s on the diagonal and the multipliers below it, each in the position it eliminated. This unit-diagonal convention is Doolittle's form. Crout's form instead puts 1s on the diagonal of .
Existence. An invertible has an LU factorisation without row exchanges if and only if every leading principal minor is non-zero (no zero pivot appears). Otherwise reorder the rows first: with a permutation matrix . For example, (0111) needs a row swap.
Solving with takes two triangular solves:
Forward substitution: .
Back substitution: .
Factoring costs about multiplications, but each new right-hand side then costs only about . That is why LU is used when the same meets many .
Determinant for free: product of the pivots (since ). With pivoting, multiply by .
2. LDU, LDLᵀ and Cholesky
Pull the pivots out of to get the symmetric-looking LDU form:
with unit lower triangular, and unit upper triangular. When no row exchanges are needed and is invertible, this factorisation is unique.
Symmetric matrices. If , then and
Positive definite matrices. A symmetric is positive definite exactly when all its pivots are positive. Then has a real square root and
the Cholesky factorisation, with lower triangular and a positive diagonal. Cholesky needs about half the work of LU and is the standard way to solve systems with covariance matrices or normal equations .
Link with determinants: the -th pivot equals , the ratio of consecutive leading principal minors (with ). So all pivots positive all leading minors positive positive definite, for symmetric .
Factorisation
Needs
Shape
non-zero leading minors
unit lower, upper
any invertible
row swaps in
symmetric, non-zero pivots
diagonal
(Cholesky)
symmetric positive definite
lower, positive diagonal
3. Singular value decomposition
Every real matrix , of any shape and rank, has a singular value decomposition
where () and () are orthogonal, and () is zero except for the singular values on its diagonal.
How to compute it:
, so the columns of (right singular vectors) are eigenvectors of and are its eigenvalues.
, so the columns of (left singular vectors) are eigenvectors of .
; the non-zero eigenvalues of and are the same.
Link the two: , so for .
Key facts:
= number of non-zero singular values.
Singular values are never negative.
For symmetric , ; for symmetric positive semidefinite , the SVD is the eigendecomposition.
Geometrically, maps the unit sphere to an ellipsoid with semi-axes .
The reduced (thin) SVD keeps only the non-zero singular values: , a sum of rank-one pieces.
SVD geometry: A maps the unit circle to an ellipse
4. What the SVD is used for
Norms. The spectral norm is . The Frobenius norm satisfies .
Best low-rank approximation (Eckart–Young). Keeping the largest terms,
gives the closest rank- matrix to . The errors are
This is the idea behind image compression and latent semantic analysis.
Pseudo-inverse. , where inverts each non-zero and transposes the shape. is the least squares solution of smallest length; with independent columns, .
Condition number. For invertible square , . A large means the system is sensitive to rounding.
PCA. For a centred data matrix ( samples as rows), the covariance is (or ). Its eigenvectors are the right singular vectors of , and the variance along component is (or ). So PCA can be done directly from the SVD of .
10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.