Back

Matrix Inverse & Diagonal Matrix Properties

Definition

Before diving into advanced matrix factorizations like Eigenvalue Decomposition and Singular Value Decomposition, we must build a strong foundation in essential matrix operations.

  1. Matrix Inverse: For a square matrix A∈Rn×nA \in \mathbb{R}^{n \times n}, its multiplicative inverse A−1A^{-1} is a unique matrix such that multiplying AA by A−1A^{-1} (in either order) yields the identity matrix II. If A−1A^{-1} exists, AA is called invertible or non-singular.
  2. Diagonal Matrix: A square matrix Σ∈Rn×n\Sigma \in \mathbb{R}^{n \times n} is called diagonal if all entries off the main diagonal are zero. That is, Σij=0\Sigma_{ij} = 0 whenever i≠ji \neq j.

Key Points

Inverse Properties

  • Uniqueness / Inverse Definition: If BA=IBA = I, then BB is uniquely the left and right inverse of AA, meaning B=A−1B = A^{-1} and AB=IAB = I.
  • Product Inverse (Reversal Rule): The inverse of a product of multiple invertible matrices is the product of their inverses in reverse order:

(ABC)−1=C−1B−1A−1(ABC)^{-1} = C^{-1} B^{-1} A^{-1}

Why it works:

(ABC)(C−1B−1A−1)=AB(CC−1)B−1A−1=A(BB−1)A−1=AA−1=I(ABC)(C^{-1}B^{-1}A^{-1}) = AB(CC^{-1})B^{-1}A^{-1} = A(BB^{-1})A^{-1} = AA^{-1} = I

  • Involution: Taking the inverse twice restores the original matrix:

(A−1)−1=A(A^{-1})^{-1} = A

  • Transpose and Inverse Commutativity: The operations of transposition and inversion commute:

(A−1)T=(AT)−1(A^{-1})^T = (A^T)^{-1}

  • Scalar Multiplication: For any non-zero scalar α≠0\alpha \neq 0:

(αA)−1=1αA−1(\alpha A)^{-1} = \frac{1}{\alpha} A^{-1}

  • 2×22 \times 2 Explicit Inverse Formula: For A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, the inverse exists if and only if det⁡(A)=ad−bc≠0\det(A) = ad - bc \neq 0:

A−1=1det⁡(A)[d−b−ca]A^{-1} = \frac{1}{\det(A)} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

Diagonal Matrix Properties

  • Identity Matrix: An identity matrix InI_n is a special diagonal matrix where all diagonal elements equal 11.
  • Matrix Powers: Computing powers of a diagonal matrix requires taking powers of individual diagonal entries directly:

[d100d2]k=[d1k00d2k]\begin{bmatrix} d_1 & 0 \\ 0 & d_2 \end{bmatrix}^k = \begin{bmatrix} d_1^k & 0 \\ 0 & d_2^k \end{bmatrix}

  • Diagonal Inversion: A diagonal matrix is invertible if and only if all diagonal entries are non-zero:

[d100d2]−1=[d1−100d2−1]\begin{bmatrix} d_1 & 0 \\ 0 & d_2 \end{bmatrix}^{-1} = \begin{bmatrix} d_1^{-1} & 0 \\ 0 & d_2^{-1} \end{bmatrix}

  • Symmetry under Transposition: Every diagonal matrix is equal to its transpose:

DT=DD^T = D


Mathematical Formula

Multi-Matrix Inverse Rule

(ABC)−1=C−1B−1A−1(ABC)^{-1} = C^{-1}B^{-1}A^{-1}

  • A,B,CA, B, C: Invertible matrices of dimension n×nn \times n.

2×22 \times 2 Inverse Matrix Formula

[abcd]−1=1ad−bc[d−b−ca]\begin{bmatrix} a & b \\ c & d \end{bmatrix}^{-1} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

  • a,b,c,da, b, c, d: Real scalar entries of matrix AA.
  • det⁡(A)=ad−bc\det(A) = ad - bc: Determinant of AA. Must be non-zero for A−1A^{-1} to exist.

Step-by-Step Explanation

Let us systematically simplify algebraic expressions containing matrix transpose and inverse operators.

Fundamental Matrix Rules

  1. Transpose of a product: (XY)T=YTXT(XY)^T = Y^T X^T.
  2. Transpose of a sum: (X+Y+Z)T=XT+YT+ZT(X + Y + Z)^T = X^T + Y^T + Z^T.
  3. Inverse of an orthonormal matrix: If UU and VV have orthonormal columns (UTU=IU^T U = I), then U−1=UTU^{-1} = U^T and V−1=VTV^{-1} = V^T.

Example 1

Verify algebraic properties of transpose and inverse on given symbolic expressions. Assume UU and VV are orthogonal matrices (UT=U−1U^T = U^{-1} and VT=V−1V^T = V^{-1}), and Σ\Sigma is diagonal (ΣT=Σ\Sigma^T = \Sigma).

Simplify the following expressions:

  1. (A+B+C)T(A + B + C)^T
  2. (UTV)T(U^T V)^T
  3. (UΣVT)T(U \Sigma V^T)^T
  4. ((U−1ΣVT)T)−1((U^{-1} \Sigma V^T)^T)^{-1}

Solution:

1. Expand (A+B+C)T(A + B + C)^T:

Applying the additive property of transposes:

(A+B+C)T=AT+BT+CT(A + B + C)^T = A^T + B^T + C^T

2. Expand (UTV)T(U^T V)^T:

Applying the product rule (XY)T=YTXT(XY)^T = Y^T X^T where X=UTX = U^T and Y=VY = V:

(UTV)T=VT(UT)T=VTU(U^T V)^T = V^T (U^T)^T = V^T U

3. Expand (UΣVT)T(U \Sigma V^T)^T:

Applying the reversal rule for transposes on three matrices:

(UΣVT)T=(VT)TΣTUT(U \Sigma V^T)^T = (V^T)^T \Sigma^T U^T

Since (VT)T=V(V^T)^T = V and ΣT=Σ\Sigma^T = \Sigma:

(UΣVT)T=VΣUT(U \Sigma V^T)^T = V \Sigma U^T

4. Simplify ((U−1ΣVT)T)−1((U^{-1} \Sigma V^T)^T)^{-1}:

First, apply the inner transpose operation using the product reversal rule:

(U−1ΣVT)T=(VT)TΣT(U−1)T=VΣ(UT)−1(U^{-1} \Sigma V^T)^T = (V^T)^T \Sigma^T (U^{-1})^T = V \Sigma (U^T)^{-1}

Now, take the overall inverse of VΣ(UT)−1V \Sigma (U^T)^{-1} using the inverse product reversal rule (XYZ)−1=Z−1Y−1X−1(XYZ)^{-1} = Z^{-1} Y^{-1} X^{-1}:

((UT)−1)−1Σ−1V−1((U^T)^{-1})^{-1} \Sigma^{-1} V^{-1}

Simplify each term:

  • ((UT)−1)−1=UT((U^T)^{-1})^{-1} = U^T
  • V−1=VTV^{-1} = V^T (since VV is orthogonal)

Thus:

((U−1ΣVT)T)−1=UTΣ−1VT((U^{-1} \Sigma V^T)^T)^{-1} = U^T \Sigma^{-1} V^T


Example 2

Given the concrete matrices:

A=[1327],B=[2308]A = \begin{bmatrix} 1 & 3 \\ 2 & 7 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & 3 \\ 0 & 8 \end{bmatrix}

Verify the product inverse identity (AB)−1=B−1A−1(AB)^{-1} = B^{-1} A^{-1}.

Solution:

Step 1: Compute matrix product ABAB

AB=[1327][2308]=[(1)(2)+(3)(0)(1)(3)+(3)(8)(2)(2)+(7)(0)(2)(3)+(7)(8)]=[227462]AB = \begin{bmatrix} 1 & 3 \\ 2 & 7 \end{bmatrix} \begin{bmatrix} 2 & 3 \\ 0 & 8 \end{bmatrix} = \begin{bmatrix} (1)(2) + (3)(0) & (1)(3) + (3)(8) \\ (2)(2) + (7)(0) & (2)(3) + (7)(8) \end{bmatrix} = \begin{bmatrix} 2 & 27 \\ 4 & 62 \end{bmatrix}

Step 2: Compute (AB)−1(AB)^{-1} directly

det⁡(AB)=(2)(62)−(27)(4)=124−108=16\det(AB) = (2)(62) - (27)(4) = 124 - 108 = 16

(AB)−1=116[62−27−42]=[318−2716−1418](AB)^{-1} = \frac{1}{16} \begin{bmatrix} 62 & -27 \\ -4 & 2 \end{bmatrix} = \begin{bmatrix} \frac{31}{8} & -\frac{27}{16} \\ -\frac{1}{4} & \frac{1}{8} \end{bmatrix}

Step 3: Compute individual inverses A−1A^{-1} and B−1B^{-1}

For AA: det⁡(A)=(1)(7)−(3)(2)=1\det(A) = (1)(7) - (3)(2) = 1

A−1=11[7−3−21]=[7−3−21]A^{-1} = \frac{1}{1} \begin{bmatrix} 7 & -3 \\ -2 & 1 \end{bmatrix} = \begin{bmatrix} 7 & -3 \\ -2 & 1 \end{bmatrix}

For BB: det⁡(B)=(2)(8)−(3)(0)=16\det(B) = (2)(8) - (3)(0) = 16

B−1=116[8−302]=[12−316018]B^{-1} = \frac{1}{16} \begin{bmatrix} 8 & -3 \\ 0 & 2 \end{bmatrix} = \begin{bmatrix} \frac{1}{2} & -\frac{3}{16} \\ 0 & \frac{1}{8} \end{bmatrix}

Step 4: Multiply B−1A−1B^{-1} A^{-1}

B−1A−1=[12−316018][7−3−21]B^{-1} A^{-1} = \begin{bmatrix} \frac{1}{2} & -\frac{3}{16} \\ 0 & \frac{1}{8} \end{bmatrix} \begin{bmatrix} 7 & -3 \\ -2 & 1 \end{bmatrix}

=[(12)(7)+(−316)(−2)(12)(−3)+(−316)(1)(0)(7)+(18)(−2)(0)(−3)+(18)(1)]= \begin{bmatrix} \left(\frac{1}{2}\right)(7) + \left(-\frac{3}{16}\right)(-2) & \left(\frac{1}{2}\right)(-3) + \left(-\frac{3}{16}\right)(1) \\ (0)(7) + \left(\frac{1}{8}\right)(-2) & (0)(-3) + \left(\frac{1}{8}\right)(1) \end{bmatrix}

=[72+38−32−316−1418]=[318−2716−1418]= \begin{bmatrix} \frac{7}{2} + \frac{3}{8} & -\frac{3}{2} - \frac{3}{16} \\ -\frac{1}{4} & \frac{1}{8} \end{bmatrix} = \begin{bmatrix} \frac{31}{8} & -\frac{27}{16} \\ -\frac{1}{4} & \frac{1}{8} \end{bmatrix}

(AB)−1=B−1A−1(AB)^{-1} = B^{-1} A^{-1} is verified.


Applications

  • Robotics Kinematics: Inverting transformation matrices allows computing inverse kinematics (finding joint angles required to position a robot arm at a specific coordinate).
  • Computer Graphics: Transformation pipelines rely on reversing sequence operations (Scale →\rightarrow Rotate →\rightarrow Translate) by multiplying inverses in reverse order.

Common Mistakes

  • Incorrect Inverse Multiplication Order: Writing (AB)−1=A−1B−1(AB)^{-1} = A^{-1} B^{-1} instead of B−1A−1B^{-1} A^{-1}. Matrix multiplication is non-commutative (AB≠BAAB \neq BA), so the order must reverse.
  • Inverting non-diagonal elements directly: Assuming an arbitrary matrix can be inverted by replacing every element aija_{ij} with 1/aij1/a_{ij}. This property holds only for diagonal matrices.

Exam Notes

  • Determinant Check: Before finding A−1A^{-1}, compute det⁡(A)\det(A). If det⁡(A)=0\det(A) = 0, stop immediately—the inverse does not exist.
  • 2×22 \times 2 Quick Rule: Swap diagonal elements, change signs of off-diagonal elements, and divide by determinant.
  • Reversal Rules:
  • (AB)T=BTAT(AB)^T = B^T A^T
  • (AB)−1=B−1A−1(AB)^{-1} = B^{-1} A^{-1}


Eigenvalue Decomposition (EVD)

Eigen Decomposition Architecture

      A  (Square Matrix, n x n)
      │
      ▼
  V Σ V⁻¹
  │ │  │
  │ │  └── Inverse Eigenvector Matrix
  │ └───── Diagonal Eigenvalue Matrix (λ₁, λ₂, ..., λₙ)
  └─────── Eigenvector Column Matrix [v₁ | v₂ | ... | vₙ]

Definition

Eigenvalue Decomposition (EVD)—also known as matrix diagonalization—is the process of factoring a square matrix A∈Rn×nA \in \mathbb{R}^{n \times n} into a specific product of three matrices:

A=VΣV−1A = V \Sigma V^{-1}

where:

  • VV is an n×nn \times n matrix whose columns are linearly independent eigenvectors of AA.
  • Σ\Sigma (or Λ\Lambda) is an n×nn \times n diagonal matrix containing the corresponding eigenvalues along its main diagonal.
  • V−1V^{-1} is the matrix inverse of VV.

A matrix AA is diagonalizable if and only if it possesses nn linearly independent eigenvectors.


Key Points

  • The Eigenvalue Equation: By definition, an eigenvector viv_i and eigenvalue λi\lambda_i satisfy Avi=λiviA v_i = \lambda_i v_i.
  • Matrix Form Derivation: Stacking all vector equations side-by-side yields:

A[v1v2…vn]=[v1v2…vn][λ10…00λ2…0⋮⋮⋱⋮00…λn]  ⟹  AV=VΣA \begin{bmatrix} v_1 & v_2 & \dots & v_n \end{bmatrix} = \begin{bmatrix} v_1 & v_2 & \dots & v_n \end{bmatrix} \begin{bmatrix} \lambda_1 & 0 & \dots & 0 \\ 0 & \lambda_2 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \lambda_n \end{bmatrix} \implies A V = V \Sigma

Multiplying both sides on the right by V−1V^{-1} gives A=VΣV−1A = V \Sigma V^{-1}.

  • Matrix Powers Made Simple: Computing AkA^k directly requires k−1k-1 matrix multiplications. With EVD: Ak=(VΣV−1)(VΣV−1)…(VΣV−1)=VΣkV−1A^k = (V \Sigma V^{-1})(V \Sigma V^{-1}) \dots (V \Sigma V^{-1}) = V \Sigma^k V^{-1}

Since Σ\Sigma is diagonal, Σk=diag⁡(λ1k,λ2k,…,λnk)\Sigma^k = \operatorname{diag}(\lambda_1^k, \lambda_2^k, \dots, \lambda_n^k).

  • Symmetric Matrices Special Property (Spectral Theorem): If AA is a symmetric matrix (AT=AA^T = A), then:
  1. All eigenvalues λi\lambda_i are real numbers.
  2. Eigenvectors corresponding to distinct eigenvalues are orthogonal.
  3. AA can be orthogonally diagonalized as A=VΣVTA = V \Sigma V^T, where V−1=VTV^{-1} = V^T.

Mathematical Formula

Matrix Diagonalization

A=VΣV−1A = V \Sigma V^{-1}

Matrix Power Formula

Ak=VΣkV−1=V[λ1k0…00λ2k…0⋮⋮⋱⋮00…λnk]V−1A^k = V \Sigma^k V^{-1} = V \begin{bmatrix} \lambda_1^k & 0 & \dots & 0 \\ 0 & \lambda_2^k & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \lambda_n^k \end{bmatrix} V^{-1}

Matrix Inverse Formula via EVD

A−1=VΣ−1V−1=V[λ1−10…00λ2−1…0⋮⋮⋱⋮00…λn−1]V−1A^{-1} = V \Sigma^{-1} V^{-1} = V \begin{bmatrix} \lambda_1^{-1} & 0 & \dots & 0 \\ 0 & \lambda_2^{-1} & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \lambda_n^{-1} \end{bmatrix} V^{-1}


Step-by-Step Explanation

To diagonalize any square matrix AA:

  1. Find Eigenvalues: Solve the characteristic equation: det⁡(A−λI)=0\det(A - \lambda I) = 0

This produces an nn-th degree characteristic polynomial whose roots are the eigenvalues λ1,λ2,…,λn\lambda_1, \lambda_2, \dots, \lambda_n. 2. Find Eigenvectors: For each eigenvalue λi\lambda_i, solve the homogeneous linear system: (A−λiI)vi=0(A - \lambda_i I)v_i = 0

Find the basis vectors for the null space Nul⁡(A−λiI)\operatorname{Nul}(A - \lambda_i I). 3. Check Diagonalizability: Ensure you have found nn total linearly independent eigenvectors. If the geometric multiplicity (number of independent eigenvectors) equals the algebraic multiplicity for all eigenvalues, AA is diagonalizable. 4. Construct VV, Σ\Sigma, and V−1V^{-1}:

  • Place eigenvectors as columns in V=[v1v2…vn]V = \begin{bmatrix} v_1 & v_2 & \dots & v_n \end{bmatrix}.
  • Place eigenvalues along the diagonal of Σ\Sigma in the matching column order.
  • Calculate V−1V^{-1}.

Example 1: 2×22 \times 2 Non-Symmetric Matrix

Perform Eigenvalue Decomposition on matrix AA:

A=[4213]A = \begin{bmatrix} 4 & 2 \\ 1 & 3 \end{bmatrix}

Solution:

Step 1: Find Eigenvalues

Set up the characteristic equation det⁡(A−λI)=0\det(A - \lambda I) = 0:

det⁡([4213]−λ[1001])=0\det\left( \begin{bmatrix} 4 & 2 \\ 1 & 3 \end{bmatrix} - \lambda \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \right) = 0

∣4−λ213−λ∣=0\begin{vmatrix} 4 - \lambda & 2 \\ 1 & 3 - \lambda \end{vmatrix} = 0

(4−λ)(3−λ)−(2)(1)=0(4 - \lambda)(3 - \lambda) - (2)(1) = 0

12−4λ−3λ+λ2−2=012 - 4\lambda - 3\lambda + \lambda^2 - 2 = 0

λ2−7λ+10=0\lambda^2 - 7\lambda + 10 = 0

Factor the quadratic equation:

(λ−5)(λ−2)=0(\lambda - 5)(\lambda - 2) = 0

Therefore, the eigenvalues are:

λ1=5,λ2=2\lambda_1 = 5, \quad \lambda_2 = 2

Step 2: Find Eigenvectors

  • For λ1=5\lambda_1 = 5: Solve (A−5I)v1=0(A - 5I)v_1 = 0: [4−5213−5][xy]=[00]  ⟹  [−121−2][xy]=[00]\begin{bmatrix} 4 - 5 & 2 \\ 1 & 3 - 5 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies \begin{bmatrix} -1 & 2 \\ 1 & -2 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}

Row reduction yields: −x+2y=0  ⟹  x=2y-x + 2y = 0 \implies x = 2y

Choosing y=1y = 1 gives x=2x = 2: v1=[21]v_1 = \begin{bmatrix} 2 \\ 1 \end{bmatrix}

  • For λ2=2\lambda_2 = 2: Solve (A−2I)v2=0(A - 2I)v_2 = 0: [4−2213−2][xy]=[00]  ⟹  [2211][xy]=[00]\begin{bmatrix} 4 - 2 & 2 \\ 1 & 3 - 2 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies \begin{bmatrix} 2 & 2 \\ 1 & 1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}

Row reduction yields: x+y=0  ⟹  x=−yx + y = 0 \implies x = -y

Choosing y=1y = 1 gives x=−1x = -1: v2=[−11]v_2 = \begin{bmatrix} -1 \\ 1 \end{bmatrix}

Step 3: Construct VV and Σ\Sigma

V=[v1v2]=[2−111]V = \begin{bmatrix} v_1 & v_2 \end{bmatrix} = \begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix}

Σ=[λ100λ2]=[5002]\Sigma = \begin{bmatrix} \lambda_1 & 0 \\ 0 & \lambda_2 \end{bmatrix} = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}

Step 4: Calculate V−1V^{-1}

det⁡(V)=(2)(1)−(−1)(1)=2+1=3\det(V) = (2)(1) - (-1)(1) = 2 + 1 = 3

V−1=13[11−12]=[1313−1323]V^{-1} = \frac{1}{3} \begin{bmatrix} 1 & 1 \\ -1 & 2 \end{bmatrix} = \begin{bmatrix} \frac{1}{3} & \frac{1}{3} \\ -\frac{1}{3} & \frac{2}{3} \end{bmatrix}

Final EVD Decomposition:

A=VΣV−1=[2−111][5002][1313−1323]A = V \Sigma V^{-1} = \begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix} \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix} \begin{bmatrix} \frac{1}{3} & \frac{1}{3} \\ -\frac{1}{3} & \frac{2}{3} \end{bmatrix}


Example 2: 2×22 \times 2 Symmetric Matrix

Perform Eigenvalue Decomposition on matrix AA:

A=[2112]A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}

Solution:

Step 1: Find Eigenvalues

det⁡(A−λI)=∣2−λ112−λ∣=0\det(A - \lambda I) = \begin{vmatrix} 2 - \lambda & 1 \\ 1 & 2 - \lambda \end{vmatrix} = 0

(2−λ)2−(1)(1)=0(2 - \lambda)^2 - (1)(1) = 0

(4−4λ+λ2)−1=0  ⟹  λ2−4λ+3=0(4 - 4\lambda + \lambda^2) - 1 = 0 \implies \lambda^2 - 4\lambda + 3 = 0

Factor the quadratic:

(λ−3)(λ−1)=0  ⟹  λ1=3,λ2=1(\lambda - 3)(\lambda - 1) = 0 \implies \lambda_1 = 3, \quad \lambda_2 = 1

Step 2: Find Eigenvectors

  • For λ1=3\lambda_1 = 3: (A−3I)v1=0  ⟹  [−111−1][xy]=[00](A - 3I)v_1 = 0 \implies \begin{bmatrix} -1 & 1 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}

−x+y=0  ⟹  x=y  ⟹  v1=[11]-x + y = 0 \implies x = y \implies v_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix}

  • For λ2=1\lambda_2 = 1: (A−1I)v2=0  ⟹  [1111][xy]=[00](A - 1I)v_2 = 0 \implies \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}

x+y=0  ⟹  x=−y  ⟹  v2=[1−1]x + y = 0 \implies x = -y \implies v_2 = \begin{bmatrix} 1 \\ -1 \end{bmatrix}

Notice that v1⋅v2=(1)(1)+(1)(−1)=0v_1 \cdot v_2 = (1)(1) + (1)(-1) = 0. The eigenvectors are orthogonal because AA is symmetric!

Step 3: Construct Decomposition Components

V=[111−1],Σ=[3001]V = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}, \quad \Sigma = \begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix}

Find V−1V^{-1}:

det⁡(V)=(1)(−1)−(1)(1)=−2\det(V) = (1)(-1) - (1)(1) = -2

V−1=1−2[−1−1−11]=[121212−12]V^{-1} = \frac{1}{-2} \begin{bmatrix} -1 & -1 \\ -1 & 1 \end{bmatrix} = \begin{bmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} \end{bmatrix}

Final Answer:

A=VΣV−1=[111−1][3001][121212−12]A = V \Sigma V^{-1} = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -\frac{1}{2} \end{bmatrix}


Example 3: 3×33 \times 3 Matrix with Block Structure

Perform Eigenvalue Decomposition on:

A=[620230004]A = \begin{bmatrix} 6 & 2 & 0 \\ 2 & 3 & 0 \\ 0 & 0 & 4 \end{bmatrix}

Solution:

Step 1: Find Eigenvalues

det⁡(A−λI)=∣6−λ2023−λ0004−λ∣=0\det(A - \lambda I) = \begin{vmatrix} 6 - \lambda & 2 & 0 \\ 2 & 3 - \lambda & 0 \\ 0 & 0 & 4 - \lambda \end{vmatrix} = 0

Expand along the third row:

(4−λ)∣6−λ223−λ∣=0(4 - \lambda) \begin{vmatrix} 6 - \lambda & 2 \\ 2 & 3 - \lambda \end{vmatrix} = 0

Evaluate the 2×22 \times 2 determinant:

(6−λ)(3−λ)−4=18−9λ+λ2−4=λ2−9λ+14=(λ−7)(λ−2)(6 - \lambda)(3 - \lambda) - 4 = 18 - 9\lambda + \lambda^2 - 4 = \lambda^2 - 9\lambda + 14 = (\lambda - 7)(\lambda - 2)

Entire characteristic equation:

(4−λ)(λ−7)(λ−2)=0(4 - \lambda)(\lambda - 7)(\lambda - 2) = 0

The eigenvalues are:

λ1=7,λ2=2,λ3=4\lambda_1 = 7, \quad \lambda_2 = 2, \quad \lambda_3 = 4

Step 2: Compute Eigenvectors

  • For λ1=7\lambda_1 = 7: (A−7I)v1=0  ⟹  [−1202−4000−3][xyz]=[000](A - 7I)v_1 = 0 \implies \begin{bmatrix} -1 & 2 & 0 \\ 2 & -4 & 0 \\ 0 & 0 & -3 \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}

From the 3rd row: −3z=0  ⟹  z=0-3z = 0 \implies z = 0. From the 1st row: −x+2y=0  ⟹  x=2y-x + 2y = 0 \implies x = 2y. Setting y=1  ⟹  x=2y = 1 \implies x = 2. v1=[210]v_1 = \begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix}

  • For λ2=2\lambda_2 = 2: (A−2I)v2=0  ⟹  [420210002][xyz]=[000](A - 2I)v_2 = 0 \implies \begin{bmatrix} 4 & 2 & 0 \\ 2 & 1 & 0 \\ 0 & 0 & 2 \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}

From the 3rd row: 2z=0  ⟹  z=02z = 0 \implies z = 0. From the 1st row: 4x+2y=0  ⟹  y=−2x4x + 2y = 0 \implies y = -2x. Setting x=−1  ⟹  y=2x = -1 \implies y = 2. v2=[−120]v_2 = \begin{bmatrix} -1 \\ 2 \\ 0 \end{bmatrix}

  • For λ3=4\lambda_3 = 4: (A−4I)v3=0  ⟹  [2202−10000][xyz]=[000](A - 4I)v_3 = 0 \implies \begin{bmatrix} 2 & 2 & 0 \\ 2 & -1 & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}

Equations 2x+2y=02x + 2y = 0 and 2x−y=02x - y = 0 force x=0x = 0 and y=0y = 0. Variable zz is free! Setting z=1z = 1: v3=[001]v_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}

Step 3: Construct VV and Σ\Sigma

V=[2−10120001],Σ=[700020004]V = \begin{bmatrix} 2 & -1 & 0 \\ 1 & 2 & 0 \\ 0 & 0 & 1 \end{bmatrix}, \quad \Sigma = \begin{bmatrix} 7 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 4 \end{bmatrix}

Step 4: Compute V−1V^{-1}

Notice VV is a block matrix with a 2×22 \times 2 block and a scalar 11:

Vtop−left=[2−112]V_{top-left} = \begin{bmatrix} 2 & -1 \\ 1 & 2 \end{bmatrix}

det⁡(Vtop−left)=(2)(2)−(−1)(1)=4+1=5\det(V_{top-left}) = (2)(2) - (-1)(1) = 4 + 1 = 5

(Vtop−left)−1=15[21−12]=[2515−1525](V_{top-left})^{-1} = \frac{1}{5} \begin{bmatrix} 2 & 1 \\ -1 & 2 \end{bmatrix} = \begin{bmatrix} \frac{2}{5} & \frac{1}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix}

Hence:

V−1=[25150−15250001]V^{-1} = \begin{bmatrix} \frac{2}{5} & \frac{1}{5} & 0 \\ -\frac{1}{5} & \frac{2}{5} & 0 \\ 0 & 0 & 1 \end{bmatrix}

Final Decomposition:

A=VΣV−1=[2−10120001][700020004][25150−15250001]A = V \Sigma V^{-1} = \begin{bmatrix} 2 & -1 & 0 \\ 1 & 2 & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 7 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 4 \end{bmatrix} \begin{bmatrix} \frac{2}{5} & \frac{1}{5} & 0 \\ -\frac{1}{5} & \frac{2}{5} & 0 \\ 0 & 0 & 1 \end{bmatrix}


Applications

  • Markov Chains & PageRank: High powers of transition matrices PkP^k evaluate steady-state probabilities using Pk=VΣkV−1P^k = V \Sigma^k V^{-1}.
  • Vibration Analysis: Eigenvalues represent natural frequencies of mechanical structures; eigenvectors represent mode shapes.
  • Differential Equations: Systems of linear differential equations dx⃗dt=Ax⃗\frac{d\vec{x}}{dt} = A\vec{x} are solved using matrix exponentials eAt=VeΣtV−1e^{At} = V e^{\Sigma t} V^{-1}.

Common Mistakes

  • Mismatched Column Order: Placing eigenvalue λ1\lambda_1 in the second column of Σ\Sigma while placing its eigenvector v1v_1 in the first column of VV. Columns of VV and Σ\Sigma must correspond exactly.
  • Assuming Non-Square Matrices can undergo EVD: EVD is defined only for square matrices (n×nn \times n).
  • Confusing Defective Matrices: Assuming every matrix is diagonalizable. Matrices that lack a full set of linearly independent eigenvectors (defective matrices) cannot undergo full EVD.

Exam Notes

  • Check Determinant and Trace:

  • det⁡(A)=∏i=1nλi\det(A) = \prod_{i=1}^n \lambda_i (Product of eigenvalues)

  • Tr⁡(A)=∑i=1nλi\operatorname{Tr}(A) = \sum_{i=1}^n \lambda_i (Sum of diagonal elements)

  • Use these two identities as a 10-second check on calculated eigenvalues!

  • Power Trick: If an exam question asks for A100A^{100}, factor A=VΣV−1A = V \Sigma V^{-1}, compute Σ100\Sigma^{100}, and multiply back out.



Singular Value Decomposition (SVD)

Singular Value Decomposition Architecture

          A  (General m x n Matrix)
          │
          ▼
      U Σ Vᵀ
      │ │  │
      │ │  └── Right Singular Vectors (n x n Orthogonal Matrix)
      │ └───── Singular Values Diagonal Matrix (m x n)
      └─────── Left Singular Vectors (m x m Orthogonal Matrix)

Definition

Singular Value Decomposition (SVD) is the ultimate matrix factorization theorem in linear algebra. Unlike Eigenvalue Decomposition—which requires square matrices and a full set of independent eigenvectors—SVD applies to any real m×nm \times n matrix AA.

The SVD factors matrix AA into three fundamental matrices:

A=UΣVTA = U \Sigma V^T

where:

  • UU is an m×mm \times m orthogonal matrix (UTU=ImU^T U = I_m). Columns uiu_i are called left singular vectors.
  • Σ\Sigma is an m×nm \times n rectangular diagonal matrix containing non-negative real numbers σi\sigma_i (singular values) in descending order (σ1≥σ2≥⋯≥σr>0\sigma_1 \ge \sigma_2 \ge \dots \ge \sigma_r > 0).
  • VV is an n×nn \times n orthogonal matrix (VTV=InV^T V = I_n). Columns viv_i are called right singular vectors.
  • VTV^T is the transpose of VV.

Key Points

How SVD Overcomes Limitations of EVD

FeatureEigenvalue Decomposition (EVD)Singular Value Decomposition (SVD)
Applicable Matrix ShapeSquare (n×nn \times n) onlyAny rectangular shape (m×nm \times n)
Existence GuaranteeOnly for non-defective matricesAlways exists for every matrix
Orthogonality of BasisOrthogonal only if matrix is symmetricAlways uses orthogonal bases (U,VU, V)
Values along DiagonalCan be complex or negative numbersAlways non-negative real values (σi≥0\sigma_i \ge 0)

Fundamental Theoretical Relationships

  1. Right Singular Vectors VV: Multiply ATAA^T A: ATA=(UΣVT)T(UΣVT)=VΣTUTUΣVTA^T A = (U \Sigma V^T)^T (U \Sigma V^T) = V \Sigma^T U^T U \Sigma V^T

Since UTU=IU^T U = I: ATA=V(ΣTΣ)VTA^T A = V (\Sigma^T \Sigma) V^T

Thus, VV contains the eigenvectors of the symmetric matrix ATAA^T A, and singular values squared σi2\sigma_i^2 are the eigenvalues of ATAA^T A. 2. Left Singular Vectors UU: Multiply AATA A^T: AAT=(UΣVT)(UΣVT)T=UΣVTVΣTUT=U(ΣΣT)UTA A^T = (U \Sigma V^T)(U \Sigma V^T)^T = U \Sigma V^T V \Sigma^T U^T = U (\Sigma \Sigma^T) U^T

Thus, UU contains the eigenvectors of the symmetric matrix AATA A^T. 3. Connecting Formula: For non-zero singular value σi\sigma_i: ui=1σiAviorAvi=σiuiu_i = \frac{1}{\sigma_i} A v_i \quad \text{or} \quad A v_i = \sigma_i u_i


Mathematical Formula

Singular Value Decomposition Definition

A=UΣVTA = U \Sigma V^T

Structural Dimensions

A(m×n)=U(m×m) Σ(m×n) V(n×n)TA_{(m \times n)} = U_{(m \times m)} \, \Sigma_{(m \times n)} \, V^T_{(n \times n)}

Singular Value Relationship

σi=λi(ATA)=λi(AAT)\sigma_i = \sqrt{\lambda_i(A^T A)} = \sqrt{\lambda_i(A A^T)}


Step-by-Step Explanation

Algorithmic Pipeline to Compute SVD

  1. Form ATAA^T A: Multiply ATA^T by AA to obtain an n×nn \times n symmetric matrix.
  2. Eigen-analysis of ATAA^T A:
  • Solve det⁡(ATA−λI)=0\det(A^T A - \lambda I) = 0 for eigenvalues λi\lambda_i.
  • Arrange non-negative eigenvalues in descending order: λ1≥λ2≥⋯≥λr>0\lambda_1 \ge \lambda_2 \ge \dots \ge \lambda_r > 0.
  • Compute singular values σi=λi\sigma_i = \sqrt{\lambda_i}.
  1. Construct Σ\Sigma: Place singular values σ1,σ2,…\sigma_1, \sigma_2, \dots along the main diagonal of an m×nm \times n zero matrix.
  2. Construct VV:
  • For each λi\lambda_i, solve (ATA−λiI)vi=0(A^T A - \lambda_i I)v_i = 0.
  • Normalize each eigenvector so ∥vi∥2=1\Vert{}v_i\Vert{}_2 = 1.
  • Form V=[v1v2…vn]V = \begin{bmatrix} v_1 & v_2 & \dots & v_n \end{bmatrix}.
  1. Construct UU:
  • For non-zero σi\sigma_i, compute left singular vectors using ui=1σiAviu_i = \frac{1}{\sigma_i} A v_i.
  • If m>rm > r, find remaining orthogonal vectors for UU using Gram-Schmidt orthogonalization or solving the null space Nul⁡(AT)\operatorname{Nul}(A^T).
  1. Assemble: Write A=UΣVTA = U \Sigma V^T.

Example 1: 2×22 \times 2 Symmetric Matrix SVD

Compute the Singular Value Decomposition of:

A=[2112]A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}

Solution:

Step 1: Compute ATAA^T A

Since AA is symmetric, AT=AA^T = A:

ATA=A2=[2112][2112]=[5445]A^T A = A^2 = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} = \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}

Step 2: Find Eigenvalues & Singular Values of ATAA^T A

det⁡(ATA−λI)=∣5−λ445−λ∣=0\det(A^T A - \lambda I) = \begin{vmatrix} 5 - \lambda & 4 \\ 4 & 5 - \lambda \end{vmatrix} = 0

(5−λ)2−16=0  ⟹  (5−λ)2=16  ⟹  5−λ=±4(5 - \lambda)^2 - 16 = 0 \implies (5 - \lambda)^2 = 16 \implies 5 - \lambda = \pm 4

λ1=9,λ2=1\lambda_1 = 9, \quad \lambda_2 = 1

Taking square roots yields the singular values:

σ1=9=3,σ2=1=1\sigma_1 = \sqrt{9} = 3, \quad \sigma_2 = \sqrt{1} = 1

Therefore:

Σ=[3001]\Sigma = \begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix}

Step 3: Find Right Singular Vectors (Columns of VV)

  • For λ1=9\lambda_1 = 9: (ATA−9I)x=0  ⟹  [−444−4][xy]=[00]  ⟹  x=y(A^T A - 9I)x = 0 \implies \begin{bmatrix} -4 & 4 \\ 4 & -4 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies x = y

Unnormalized eigenvector: [11]\begin{bmatrix} 1 \\ 1 \end{bmatrix}. Normalize to unit length: v1=112+12[11]=[1212]v_1 = \frac{1}{\sqrt{1^2 + 1^2}} \begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix}

  • For λ2=1\lambda_2 = 1: (ATA−1I)x=0  ⟹  [4444][xy]=[00]  ⟹  x=−y(A^T A - 1I)x = 0 \implies \begin{bmatrix} 4 & 4 \\ 4 & 4 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies x = -y

Unnormalized eigenvector: [1−1]\begin{bmatrix} 1 \\ -1 \end{bmatrix}. Normalize to unit length: v2=[12−12]v_2 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

Matrix VV:

V=[121212−12]V = \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{bmatrix}

Step 4: Compute Left Singular Vectors (Columns of UU)

Use ui=1σiAviu_i = \frac{1}{\sigma_i} A v_i:

  • For u1u_1: u1=13[2112][1212]=13[3232]=[1212]u_1 = \frac{1}{3} \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix} = \frac{1}{3} \begin{bmatrix} \frac{3}{\sqrt{2}} \\ \frac{3}{\sqrt{2}} \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix}

  • For u2u_2: u2=11[2112][12−12]=1⋅[12−12]=[12−12]u_2 = \frac{1}{1} \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix} = 1 \cdot \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

Matrix UU:

U=[121212−12]U = \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{bmatrix}

Final SVD Result:

A=UΣVT=[121212−12][3001][121212−12]A = U \Sigma V^T = \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{bmatrix} \begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{bmatrix}


Example 2: 2×22 \times 2 Rank-Defective Matrix

Compute SVD for:

A=[3040]A = \begin{bmatrix} 3 & 0 \\ 4 & 0 \end{bmatrix}

Solution:

Step 1: Compute ATAA^T A

ATA=[3400][3040]=[25000]A^T A = \begin{bmatrix} 3 & 4 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 3 & 0 \\ 4 & 0 \end{bmatrix} = \begin{bmatrix} 25 & 0 \\ 0 & 0 \end{bmatrix}

Step 2: Eigenvalues & Singular Values

Since ATAA^T A is diagonal, its eigenvalues are obvious:

λ1=25,λ2=0\lambda_1 = 25, \quad \lambda_2 = 0

Singular values:

σ1=25=5,σ2=0\sigma_1 = \sqrt{25} = 5, \quad \sigma_2 = 0

Σ=[5000]\Sigma = \begin{bmatrix} 5 & 0 \\ 0 & 0 \end{bmatrix}

Step 3: Compute Right Singular Vectors (VV)

The normalized eigenvectors of diagonal matrix ATAA^T A are canonical unit vectors:

v1=[10],v2=[01]  ⟹  V=[1001]=I2v_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \quad v_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix} \implies V = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I_2

Step 4: Compute Left Singular Vectors (UU)

For non-zero singular value σ1=5\sigma_1 = 5:

u1=1σ1Av1=15[3040][10]=15[34]=[3545]u_1 = \frac{1}{\sigma_1} A v_1 = \frac{1}{5} \begin{bmatrix} 3 & 0 \\ 4 & 0 \end{bmatrix} \begin{bmatrix} 1 \\ 0 \end{bmatrix} = \frac{1}{5} \begin{bmatrix} 3 \\ 4 \end{bmatrix} = \begin{bmatrix} \frac{3}{5} \\ \frac{4}{5} \end{bmatrix}

Since σ2=0\sigma_2 = 0, u2u_2 cannot be found via Av2/σ2A v_2 / \sigma_2. Instead, choose u2=[xy]u_2 = \begin{bmatrix} x \\ y \end{bmatrix} orthogonal to u1u_1 (u1Tu2=0u_1^T u_2 = 0) with unit length ∥u2∥=1\|u_2\| = 1:

35x+45y=0  ⟹  3x+4y=0  ⟹  u2=[−4535]\frac{3}{5} x + \frac{4}{5} y = 0 \implies 3x + 4y = 0 \implies u_2 = \begin{bmatrix} -\frac{4}{5} \\ \frac{3}{5} \end{bmatrix}

Matrix UU:

U=[35−454535]U = \begin{bmatrix} \frac{3}{5} & -\frac{4}{5} \\ \frac{4}{5} & \frac{3}{5} \end{bmatrix}

Final SVD Result:

A=UΣVT=[35−454535][5000][1001]A = U \Sigma V^T = \begin{bmatrix} \frac{3}{5} & -\frac{4}{5} \\ \frac{4}{5} & \frac{3}{5} \end{bmatrix} \begin{bmatrix} 5 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}


Example 3: 3×33 \times 3 Symmetric Matrix SVD

Compute SVD for matrix AA:

A=[101020101]A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \\ 1 & 0 & 1 \end{bmatrix}

Solution:

Step 1: Compute ATAA^T A

ATA=[101020101][101020101]=[202040202]A^T A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \\ 1 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \\ 1 & 0 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 0 & 2 \\ 0 & 4 & 0 \\ 2 & 0 & 2 \end{bmatrix}

Step 2: Compute Eigenvalues of ATAA^T A

det⁡(ATA−λI)=∣2−λ0204−λ0202−λ∣=0\det(A^T A - \lambda I) = \begin{vmatrix} 2 - \lambda & 0 & 2 \\ 0 & 4 - \lambda & 0 \\ 2 & 0 & 2 - \lambda \end{vmatrix} = 0

Expand along 2nd row:

(4−λ)∣2−λ222−λ∣=(4−λ)[(2−λ)2−4]=0(4 - \lambda) \begin{vmatrix} 2 - \lambda & 2 \\ 2 & 2 - \lambda \end{vmatrix} = (4 - \lambda)[ (2 - \lambda)^2 - 4 ] = 0

(2−λ)2=4  ⟹  2−λ=±2  ⟹  λ=4 or λ=0(2 - \lambda)^2 = 4 \implies 2 - \lambda = \pm 2 \implies \lambda = 4 \text{ or } \lambda = 0

Eigenvalues of ATAA^T A ordered descendingly:

λ1=4,λ2=4,λ3=0\lambda_1 = 4, \quad \lambda_2 = 4, \quad \lambda_3 = 0

Singular values:

σ1=4=2,σ2=4=2,σ3=0=0\sigma_1 = \sqrt{4} = 2, \quad \sigma_2 = \sqrt{4} = 2, \quad \sigma_3 = \sqrt{0} = 0

Σ=[200020000]\Sigma = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 0 \end{bmatrix}

Step 3: Compute Eigenvectors for VV

  • For λ=4\lambda = 4 (multiplicity 2): (ATA−4I)x=0  ⟹  [−20200020−2][x1x2x3]=[000]  ⟹  x1=x3(A^T A - 4I)x = 0 \implies \begin{bmatrix} -2 & 0 & 2 \\ 0 & 0 & 0 \\ 2 & 0 & -2 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \implies x_1 = x_3

x2x_2 is completely free. We select two orthonormal eigenvectors spanning this eigenspace: v1=[12012],v2=[010]v_1 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ 0 \\ \frac{1}{\sqrt{2}} \end{bmatrix}, \quad v_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}

  • For λ3=0\lambda_3 = 0: (ATA−0I)x=0  ⟹  [202040202][x1x2x3]=[000]  ⟹  x2=0 and x1=−x3(A^T A - 0I)x = 0 \implies \begin{bmatrix} 2 & 0 & 2 \\ 0 & 4 & 0 \\ 2 & 0 & 2 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \implies x_2 = 0 \text{ and } x_1 = -x_3

Normalizing gives: v3=[120−12]v_3 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ 0 \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

V=[12012010120−12]V = \begin{bmatrix} \frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \\ 0 & 1 & 0 \\ \frac{1}{\sqrt{2}} & 0 & -\frac{1}{\sqrt{2}} \end{bmatrix}

Step 4: Compute Left Singular Vectors (UU)

  • For u1u_1: u1=1σ1Av1=12[101020101][12012]=12[22022]=[12012]u_1 = \frac{1}{\sigma_1} A v_1 = \frac{1}{2} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \\ 1 & 0 & 1 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} \\ 0 \\ \frac{1}{\sqrt{2}} \end{bmatrix} = \frac{1}{2} \begin{bmatrix} \frac{2}{\sqrt{2}} \\ 0 \\ \frac{2}{\sqrt{2}} \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ 0 \\ \frac{1}{\sqrt{2}} \end{bmatrix}

  • For u2u_2: u2=1σ2Av2=12[101020101][010]=12[020]=[010]u_2 = \frac{1}{\sigma_2} A v_2 = \frac{1}{2} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 2 & 0 \\ 1 & 0 & 1 \end{bmatrix} \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix} = \frac{1}{2} \begin{bmatrix} 0 \\ 2 \\ 0 \end{bmatrix} = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}

  • For u3u_3: Choose unit vector orthogonal to both u1u_1 and u2u_2: u3=[−12012]u_3 = \begin{bmatrix} -\frac{1}{\sqrt{2}} \\ 0 \\ \frac{1}{\sqrt{2}} \end{bmatrix}

Matrix UU:

U=[120−1201012012]U = \begin{bmatrix} \frac{1}{\sqrt{2}} & 0 & -\frac{1}{\sqrt{2}} \\ 0 & 1 & 0 \\ \frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \end{bmatrix}

Final SVD Output:

A=[120−1201012012][200020000][12012010120−12]A = \begin{bmatrix} \frac{1}{\sqrt{2}} & 0 & -\frac{1}{\sqrt{2}} \\ 0 & 1 & 0 \\ \frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \end{bmatrix} \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \\ 0 & 1 & 0 \\ \frac{1}{\sqrt{2}} & 0 & -\frac{1}{\sqrt{2}} \end{bmatrix}


Example 4: Rectangular 2×32 \times 3 Matrix SVD

Find the SVD of non-square matrix AA:

A=[32223−2]A = \begin{bmatrix} 3 & 2 & 2 \\ 2 & 3 & -2 \end{bmatrix}

Solution:

Step 1: Compute AATA A^T (2×22 \times 2 Matrix)

Since AA is 2×32 \times 3, computing AATA A^T gives a smaller 2×22 \times 2 matrix to find UU directly:

AAT=[32223−2][32232−2]=[32+22+22(3)(2)+(2)(3)+(2)(−2)(2)(3)+(3)(2)+(−2)(2)22+32+(−2)2]A A^T = \begin{bmatrix} 3 & 2 & 2 \\ 2 & 3 & -2 \end{bmatrix} \begin{bmatrix} 3 & 2 \\ 2 & 3 \\ 2 & -2 \end{bmatrix} = \begin{bmatrix} 3^2+2^2+2^2 & (3)(2)+(2)(3)+(2)(-2) \\ (2)(3)+(3)(2)+(-2)(2) & 2^2+3^2+(-2)^2 \end{bmatrix}

AAT=[178817]A A^T = \begin{bmatrix} 17 & 8 \\ 8 & 17 \end{bmatrix}

Step 2: Eigenvalues & Singular Values of AATA A^T

det⁡(AAT−λI)=∣17−λ8817−λ∣=0  ⟹  (17−λ)2−64=0\det(A A^T - \lambda I) = \begin{vmatrix} 17 - \lambda & 8 \\ 8 & 17 - \lambda \end{vmatrix} = 0 \implies (17 - \lambda)^2 - 64 = 0

(17−λ)2=64  ⟹  17−λ=±8(17 - \lambda)^2 = 64 \implies 17 - \lambda = \pm 8

λ1=25,λ2=9\lambda_1 = 25, \quad \lambda_2 = 9

Singular values:

σ1=25=5,σ2=9=3\sigma_1 = \sqrt{25} = 5, \quad \sigma_2 = \sqrt{9} = 3

Shape of AA is 2×32 \times 3, so Σ\Sigma is 2×32 \times 3:

Σ=[500030]\Sigma = \begin{bmatrix} 5 & 0 & 0 \\ 0 & 3 & 0 \end{bmatrix}

Step 3: Compute UU (Eigenvectors of AATA A^T)

  • For λ1=25\lambda_1 = 25: (AAT−25I)u1=0  ⟹  [−888−8][xy]=[00]  ⟹  x=y(A A^T - 25I)u_1 = 0 \implies \begin{bmatrix} -8 & 8 \\ 8 & -8 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies x = y

Normalizing yields: u1=[1212]u_1 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix}

  • For λ2=9\lambda_2 = 9: (AAT−9I)u2=0  ⟹  [8888][xy]=[00]  ⟹  x=−y(A A^T - 9I)u_2 = 0 \implies \begin{bmatrix} 8 & 8 \\ 8 & 8 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies x = -y

Normalizing yields: u2=[12−12]u_2 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

Matrix UU:

U=[121212−12]U = \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{bmatrix}

Step 4: Compute Right Singular Vectors (VV)

Use vi=1σiATuiv_i = \frac{1}{\sigma_i} A^T u_i:

  • For v1v_1: ATu1=[32232−2][1212]=12[550]A^T u_1 = \begin{bmatrix} 3 & 2 \\ 2 & 3 \\ 2 & -2 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix} = \frac{1}{\sqrt{2}} \begin{bmatrix} 5 \\ 5 \\ 0 \end{bmatrix}

Dividing by σ1=5\sigma_1 = 5: v1=152[550]=[12120]v_1 = \frac{1}{5 \sqrt{2}} \begin{bmatrix} 5 \\ 5 \\ 0 \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ 0 \end{bmatrix}

  • For v2v_2: ATu2=[32232−2][12−12]=12[1−14]A^T u_2 = \begin{bmatrix} 3 & 2 \\ 2 & 3 \\ 2 & -2 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix} = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 \\ -1 \\ 4 \end{bmatrix}

Dividing by σ2=3\sigma_2 = 3: v2=132[1−14]=[118−118418]v_2 = \frac{1}{3\sqrt{2}} \begin{bmatrix} 1 \\ -1 \\ 4 \end{bmatrix} = \begin{bmatrix} \frac{1}{\sqrt{18}} \\ -\frac{1}{\sqrt{18}} \\ \frac{4}{\sqrt{18}} \end{bmatrix}

  • For v3v_3: Choose a unit vector orthogonal to both v1v_1 and v2v_2 using cross product v3=v1×v2v_3 = v_1 \times v_2: v3=[23−23−13]v_3 = \begin{bmatrix} \frac{2}{3} \\ -\frac{2}{3} \\ -\frac{1}{3} \end{bmatrix}

Matrix VV:

V=[121182312−118−230418−13]V = \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{18}} & \frac{2}{3} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{18}} & -\frac{2}{3} \\ 0 & \frac{4}{\sqrt{18}} & -\frac{1}{3} \end{bmatrix}

Final SVD Representation:

A=UΣVT=[121212−12][500030][12120118−11841823−23−13]A = U \Sigma V^T = \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} & -\frac{1}{\sqrt{2}} \end{bmatrix} \begin{bmatrix} 5 & 0 & 0 \\ 0 & 3 & 0 \end{bmatrix} \begin{bmatrix} \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} & 0 \\ \frac{1}{\sqrt{18}} & -\frac{1}{\sqrt{18}} & \frac{4}{\sqrt{18}} \\ \frac{2}{3} & -\frac{2}{3} & -\frac{1}{3} \end{bmatrix}


Applications

  • Image Compression: Storing a high-resolution m×nm \times n image requires m×nm \times n values. Truncating its SVD to the top kk singular values (Ak=∑i=1kσiuiviTA_k = \sum_{i=1}^k \sigma_i u_i v_i^T) stores only k(m+n+1)k(m + n + 1) values, compressing file size significantly while retaining visual fidelity.
  • Principal Component Analysis (PCA): SVD is the computational engine behind PCA for dimensionality reduction in data science.
  • Pseudoinverse (Moore-Penrose Inverse): For non-square or singular matrices, A+=VΣ+UTA^+ = V \Sigma^+ U^T calculates least-squares solutions to linear systems.

Common Mistakes

  • Forgetting Transpose on VV: Writing A=UΣVA = U \Sigma V instead of A=UΣVTA = U \Sigma V^T.
  • Unnormalized Singular Vectors: Forgetting to normalize eigenvectors of ATAA^T A or AATA A^T to unit length (11). Left and right singular matrices UU and VV must be orthogonal matrices.
  • Incorrect Σ\Sigma Dimensions: For an m×nm \times n matrix AA, making Σ\Sigma an r×rr \times r square matrix instead of matching m×nm \times n.

Exam Notes

  • Rank Formula: The rank of AA equals the exact number of non-zero singular values (rank⁡(A)=r\operatorname{rank}(A) = r).

  • Matrix Norms:

  • Spectral Norm: ∥A∥2=σ1\Vert{}A\Vert{}_2 = \sigma_1 (Largest singular value).

  • Frobenius Norm: ∥A∥F=σ12+σ22+⋯+σr2\Vert{}A\Vert{}_F = \sqrt{\sigma_1^2 + \sigma_2^2 + \dots + \sigma_r^2}.

  • Shortcut trick for m<nm < n: If AA is short and wide (e.g., 2×32 \times 3), compute AATA A^T (2×22 \times 2) to easily find singular values and UU. Then calculate vi=1σiATuiv_i = \frac{1}{\sigma_i} A^T u_i.



Complete Revision Sheet

Essential Definitions

  • Matrix Inverse: A−1A^{-1} satisfies AA−1=A−1A=IA A^{-1} = A^{-1} A = I. Exists iff det⁡(A)≠0\det(A) \neq 0.
  • Diagonal Matrix: Square matrix where off-diagonal elements are zero (Σij=0,∀i≠j\Sigma_{ij}=0, \forall i \neq j).
  • Eigenvalue Decomposition (EVD): A=VΣV−1A = V \Sigma V^{-1}. Factorization using eigenvalues and eigenvectors (Requires square matrix with nn independent eigenvectors).
  • Singular Value Decomposition (SVD): A=UΣVTA = U \Sigma V^T. Universal factorization using orthogonal left/right singular vectors and non-negative singular values (Applies to any m×nm \times n matrix).
  • Singular Value (σi\sigma_i): Square root of eigenvalues of ATAA^T A, i.e., σi=λi(ATA)\sigma_i = \sqrt{\lambda_i(A^T A)}.

Essential Formulas Summary Table

OperationFormulaNotes / Conditions
2×22 \times 2 Inverse[abcd]−1=1ad−bc[d−b−ca]\begin{bmatrix} a & b \\ c & d \end{bmatrix}^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}Requires ad−bc≠0ad - bc \neq 0
Inverse Product(ABC)−1=C−1B−1A−1(ABC)^{-1} = C^{-1} B^{-1} A^{-1}Reverses matrix order
Transpose Product(ABC)T=CTBTAT(ABC)^T = C^T B^T A^TReverses matrix order
EVDA=VΣV−1A = V \Sigma V^{-1}A∈Rn×nA \in \mathbb{R}^{n \times n}
Matrix Power via EVDAk=VΣkV−1A^k = V \Sigma^k V^{-1}Σk=diag⁡(λ1k,…,λnk)\Sigma^k = \operatorname{diag}(\lambda_1^k, \dots, \lambda_n^k)
SVDA=UΣVTA = U \Sigma V^TA∈Rm×nA \in \mathbb{R}^{m \times n}
Left Singular Vectorui=1σiAviu_i = \frac{1}{\sigma_i} A v_iFor σi>0\sigma_i > 0
Moore-Penrose PseudoinverseA+=VΣ+UTA^+ = V \Sigma^+ U^TInverts non-zero entries of Σ\Sigma

Quick Revision Bullets

  • det⁡(A)=∏i=1nλi\det(A) = \prod_{i=1}^n \lambda_i and Tr⁡(A)=∑i=1nλi\operatorname{Tr}(A) = \sum_{i=1}^n \lambda_i.
  • Symmetric matrices (A=ATA = A^T) have real eigenvalues and orthogonal eigenvectors (A=VΣVTA = V \Sigma V^T).
  • Columns of UU in SVD are orthonormal eigenvectors of AATA A^T.
  • Columns of VV in SVD are orthonormal eigenvectors of ATAA^T A.
  • rank⁡(A)=\operatorname{rank}(A) = Number of non-zero singular values.
  • If UU is orthogonal, U−1=UTU^{-1} = U^T and UTU=IU^T U = I.

Frequently Confused Concepts

EVD vs. SVD

  • EVD uses the same basis VV on both sides (VV and V−1V^{-1}). Vectors are generally not orthogonal unless AA is symmetric.
  • SVD uses two distinct orthogonal bases (UU and VV). It works for any matrix shape.

Eigenvalues vs. Singular Values

  • Eigenvalues λi\lambda_i can be negative, positive, zero, or complex numbers.
  • Singular values σi\sigma_i are always real and non-negative (σi≥0\sigma_i \ge 0).

Common Exam Questions & Solutions

  1. How to check if a 3×33 \times 3 matrix is diagonalizable?
  • Answer: Calculate all eigenvalues. If you obtain 3 distinct eigenvalues, AA is guaranteed to be diagonalizable. If eigenvalues repeat, compute the dimension of the null space Nul⁡(A−λI)\operatorname{Nul}(A - \lambda I) for the repeated eigenvalues. If geometric multiplicity equals algebraic multiplicity for all eigenvalues, AA is diagonalizable.
  1. Given A=UΣVTA = U \Sigma V^T, what is ATAA^T A?
  • Answer: ATA=(UΣVT)T(UΣVT)=VΣTUTUΣVT=V(ΣTΣ)VTA^T A = (U \Sigma V^T)^T (U \Sigma V^T) = V \Sigma^T U^T U \Sigma V^T = V (\Sigma^T \Sigma) V^T. This is the Eigenvalue Decomposition of ATAA^T A.
  1. How do you quickly compute A10A^{10} if A=[2112]A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}?
  • Answer: Do not multiply AA manually 10 times! Use EVD: A=VΣV−1A = V \Sigma V^{-1} where Σ=diag⁡(3,1)\Sigma = \operatorname{diag}(3, 1). Then A10=V[31000110]V−1A^{10} = V \begin{bmatrix} 3^{10} & 0 \\ 0 & 1^{10} \end{bmatrix} V^{-1}.