All notes

SVD, eigendecomposition and LU in practice

GATE DA150 min read

Free preview: 30% of the note

Three factorisations at a glance

FactorisationFormExists whenUsed for
EigendecompositionA=SΛS−1A = S\Lambda S^{-1}AA square, with nn independent eigenvectorspowers, dynamics
SpectralA=QΛQ⊤A = Q\Lambda Q^\topAA real symmetricquadratic forms, PCA
SVDA=UΣV⊤A = U\Sigma V^\topevery matrixrank, low-rank approximation, least squares
LUA=LUA = LU (or PA=LUPA = LU)square; PA=LUPA = LU always workssolving systems
QRA=QRA = QRindependent columnsleast squares, eigenvalue algorithms
CholeskyA=LL⊤A = LL^\topsymmetric positive definitefast solves, sampling

Eigenvalue facts used everywhere

For an n×nn \times n matrix with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n, counted with multiplicity:

  • trace⁡A=∑λi\operatorname{trace} A = \sum \lambda_i and det⁡A=∏λi\det A = \prod \lambda_i.
  • AkA^k has eigenvalues λik\lambda_i^k. A−1A^{-1} has 1/λi1/\lambda_i (when AA is invertible). A+cIA + cI has λi+c\lambda_i + c, and a polynomial p(A)p(A) has p(λi)p(\lambda_i). The eigenvectors stay the same.
  • AA and A⊤A^\top have the same eigenvalues.
  • ABAB and BABA have the same non-zero eigenvalues.
  • Cayley–Hamilton: every matrix satisfies its own characteristic polynomial. For a 2×22 \times 2 matrix, A2−(tr⁡A)A+(det⁡A)I=0A^2 - (\operatorname{tr} A)A + (\det A) I = 0.

Example 1: an inverse from Cayley–Hamilton. A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} has trace 4 and determinant 3, so A2−4A+3I=0A^2 - 4A + 3I = 0. Multiplying by A−1A^{-1}:

A−1=4I−A3=13(2−1−12).A^{-1} = \frac{4I - A}{3} = \frac13\begin{pmatrix} 2 & -1 \\ -1 & 2 \end{pmatrix}.

Example 2: a matrix polynomial. If AA has eigenvalues 1, 2 and 3, then A2−2A+IA^2 - 2A + I has eigenvalues (λ−1)2(\lambda - 1)^2: that is 0, 1 and 4. So it is singular.

Diagonalisation

A=SΛS−1A = S\Lambda S^{-1}, where the columns of SS are the eigenvectors. It is possible exactly when AA has nn independent eigenvectors. It is guaranteed when the nn eigenvalues are distinct, or when AA is symmetric.

Defective example. (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} has the eigenvalue 1 twice, but only one eigenvector direction, (1,0)(1, 0), since (A−I)v=0(A - I)v = 0 forces v2=0v_2 = 0. It cannot be diagonalised. Its algebraic multiplicity is 2 and its geometric multiplicity is 1.

Powers. Ak=SΛkS−1A^k = S\Lambda^k S^{-1}.

Example 3. A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2\end{pmatrix} has eigenvalues 3 and 1, with eigenvectors (1,1)(1, 1) and (1,−1)(1, -1). Then

Ak=12(3k+13k−13k−13k+1).A^k = \frac12\begin{pmatrix} 3^k + 1 & 3^k - 1 \\ 3^k - 1 & 3^k + 1 \end{pmatrix}.

Check: with k=1k = 1 this gives 12(4224)=A\frac12\begin{pmatrix} 4 & 2 \\ 2 & 4\end{pmatrix} = A. Correct.

The singular value decomposition

Statement. Every real m×nm \times n matrix factors as

A=UΣV⊤=∑i=1rσi uivi⊤,A = U\Sigma V^\top = \sum_{i=1}^{r} \sigma_i\, u_i v_i^\top,

where:

  • UU is m×mm \times m and orthogonal; its columns are the left singular vectors;
  • VV is n×nn \times n and orthogonal; its columns are the right singular vectors;
  • Σ\Sigma is m×nm \times n, with singular values σ1≥σ2≥⋯≥σr>0\sigma_1 \ge \sigma_2 \ge \dots \ge \sigma_r > 0 on its diagonal and zeros elsewhere;
  • r=rank⁡Ar = \operatorname{rank} A.

You have read the free 30% of this note

Sign in with Google to keep reading. It is free, takes one tap, and you also get:

  • 6 practice questions from this note
  • Every note in full, plus the PDF library
  • Official past papers as timed tests, with explanations
  • An AI tutor for doubts, in Hindi or English
  • Your progress, mistakes and study plan saved on every device
Continue reading, free