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 ARn×nA \in \mathbb{R}^{n \times n}, its multiplicative inverse A1A^{-1} is a unique matrix such that multiplying AA by A1A^{-1} (in either order) yields the identity matrix II. If A1A^{-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 iji \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=A1B = 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=C1B1A1(ABC)^{-1} = C^{-1} B^{-1} A^{-1}

Why it works:

(ABC)(C1B1A1)=AB(CC1)B1A1=A(BB1)A1=AA1=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:

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

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

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

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

(αA)1=1αA1(\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)=adbc0\det(A) = ad - bc \neq 0:

A1=1det(A)[dbca]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=[d1100d21]\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=C1B1A1(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=1adbc[dbca]\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)=adbc\det(A) = ad - bc: Determinant of AA. Must be non-zero for A1A^{-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 U1=UTU^{-1} = U^T and V1=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=U1U^T = U^{-1} and VT=V1V^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. ((U1Σ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 ((U1ΣVT)T)1((U^{-1} \Sigma V^T)^T)^{-1}:

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

(U1ΣVT)T=(VT)TΣT(U1)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=Z1Y1X1(XYZ)^{-1} = Z^{-1} Y^{-1} X^{-1}:

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

Simplify each term:

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

Thus:

((U1Σ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=B1A1(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)=124108=16\det(AB) = (2)(62) - (27)(4) = 124 - 108 = 16

(AB)1=116[622742]=[31827161418](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 A1A^{-1} and B1B^{-1}

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

A1=11[7321]=[7321]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

B1=116[8302]=[12316018]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 B1A1B^{-1} A^{-1}

B1A1=[12316018][7321]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+38323161418]=[31827161418]= \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=B1A1(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=A1B1(AB)^{-1} = A^{-1} B^{-1} instead of B1A1B^{-1} A^{-1}. Matrix multiplication is non-commutative (ABBAAB \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 A1A^{-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=B1A1(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 ARn×nA \in \mathbb{R}^{n \times n} into a specific product of three matrices:

A=VΣV1A = 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.
  • V1V^{-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[v1v2vn]=[v1v2vn][λ1000λ2000λ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 V1V^{-1} gives A=VΣV1A = V \Sigma V^{-1}.

  • Matrix Powers Made Simple: Computing AkA^k directly requires k1k-1 matrix multiplications. With EVD: Ak=(VΣV1)(VΣV1)(VΣV1)=VΣkV1A^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 V1=VTV^{-1} = V^T.

Mathematical Formula

Matrix Diagonalization

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

Matrix Power Formula

Ak=VΣkV1=V[λ1k000λ2k000λnk]V1A^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

A1=VΣ1V1=V[λ11000λ21000λn1]V1A^{-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 V1V^{-1}:

  • Place eigenvectors as columns in V=[v1v2vn]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 V1V^{-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

124λ3λ+λ22=012 - 4\lambda - 3\lambda + \lambda^2 - 2 = 0

λ27λ+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 (A5I)v1=0(A - 5I)v_1 = 0: [452135][xy]=[00]    [1212][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 (A2I)v2=0(A - 2I)v_2 = 0: [422132][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]=[2111]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 V1V^{-1}

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

V1=13[1112]=[13131323]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ΣV1=[2111][5002][13131323]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

(44λ+λ2)1=0    λ24λ+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: (A3I)v1=0    [1111][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: (A1I)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=[11]x + y = 0 \implies x = -y \implies v_2 = \begin{bmatrix} 1 \\ -1 \end{bmatrix}

Notice that v1v2=(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=[1111],Σ=[3001]V = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}, \quad \Sigma = \begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix}

Find V1V^{-1}:

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

V1=12[1111]=[12121212]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ΣV1=[1111][3001][12121212]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=189λ+λ24=λ29λ+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: (A7I)v1=0    [120240003][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: (A2I)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: (A4I)v3=0    [220210000][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 2xy=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=[210120001],Σ=[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 V1V^{-1}

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

Vtopleft=[2112]V_{top-left} = \begin{bmatrix} 2 & -1 \\ 1 & 2 \end{bmatrix}

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

(Vtopleft)1=15[2112]=[25151525](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:

V1=[2515015250001]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ΣV1=[210120001][700020004][2515015250001]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ΣkV1P^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 dxdt=Ax\frac{d\vec{x}}{dt} = A\vec{x} are solved using matrix exponentials eAt=VeΣtV1e^{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ΣV1A = 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 (σi0\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 vi2=1\Vert{}v_i\Vert{}_2 = 1.
  • Form V=[v1v2vn]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λ)216=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: (ATA9I)x=0    [4444][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: (ATA1I)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: [11]\begin{bmatrix} 1 \\ -1 \end{bmatrix}. Normalize to unit length: v2=[1212]v_2 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

Matrix VV:

V=[12121212]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][1212]=1[1212]=[1212]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=[12121212]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=[12121212][3001][12121212]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=[35454535]U = \begin{bmatrix} \frac{3}{5} & -\frac{4}{5} \\ \frac{4}{5} & \frac{3}{5} \end{bmatrix}

Final SVD Result:

A=UΣVT=[35454535][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λ)24]=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): (ATA4I)x=0    [202000202][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: (ATA0I)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=[12012]v_3 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ 0 \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

V=[1201201012012]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=[1201201012012]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=[1201201012012][200020000][1201201012012]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=[322232]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=[322232][322322]=[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λ)264=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: (AAT25I)u1=0    [8888][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: (AAT9I)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=[1212]u_2 = \begin{bmatrix} \frac{1}{\sqrt{2}} \\ -\frac{1}{\sqrt{2}} \end{bmatrix}

Matrix UU:

U=[12121212]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=[322322][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=[322322][1212]=12[114]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[114]=[118118418]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=[232313]v_3 = \begin{bmatrix} \frac{2}{3} \\ -\frac{2}{3} \\ -\frac{1}{3} \end{bmatrix}

Matrix VV:

V=[12118231211823041813]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=[12121212][500030][12120118118418232313]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: A2=σ1\Vert{}A\Vert{}_2 = \sigma_1 (Largest singular value).

  • Frobenius Norm: AF=σ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: A1A^{-1} satisfies AA1=A1A=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,ij\Sigma_{ij}=0, \forall i \neq j).
  • Eigenvalue Decomposition (EVD): A=VΣV1A = 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=1adbc[dbca]\begin{bmatrix} a & b \\ c & d \end{bmatrix}^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}Requires adbc0ad - bc \neq 0
Inverse Product(ABC)1=C1B1A1(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ΣV1A = V \Sigma V^{-1}ARn×nA \in \mathbb{R}^{n \times n}
Matrix Power via EVDAk=VΣkV1A^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^TARm×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, U1=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 V1V^{-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 (σi0\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ΣV1A = V \Sigma V^{-1} where Σ=diag(3,1)\Sigma = \operatorname{diag}(3, 1). Then A10=V[31000110]V1A^{10} = V \begin{bmatrix} 3^{10} & 0 \\ 0 & 1^{10} \end{bmatrix} V^{-1}.