Mathwords logoMathwords

Eigen Decomposition — Definition, Formula & Examples

Eigen decomposition (also called eigendecomposition) is a way of breaking a square matrix into a product of three matrices built from its eigenvalues and eigenvectors. It reveals the fundamental stretching directions and magnitudes encoded in the matrix.

A square matrix ARn×nA \in \mathbb{R}^{n \times n} that has nn linearly independent eigenvectors admits the factorization A=PDP1A = PDP^{-1}, where PP is the matrix whose columns are the eigenvectors of AA and DD is the diagonal matrix whose diagonal entries are the corresponding eigenvalues.

Key Formula

A=PDP1A = PDP^{-1}
Where:
  • AA = The original n×n square matrix
  • PP = Matrix whose columns are the linearly independent eigenvectors of A
  • DD = Diagonal matrix with the eigenvalues of A on the diagonal
  • P1P^{-1} = The inverse of the eigenvector matrix P

How It Works

First, find the eigenvalues of AA by solving the characteristic equation det(AλI)=0\det(A - \lambda I) = 0. Next, for each eigenvalue λi\lambda_i, solve (AλiI)x=0(A - \lambda_i I)\mathbf{x} = \mathbf{0} to get the eigenvector vi\mathbf{v}_i. Form PP by placing these eigenvectors as columns, and form DD by placing the eigenvalues along the diagonal. Verify that A=PDP1A = PDP^{-1}. This decomposition exists only when AA has nn linearly independent eigenvectors (i.e., AA is diagonalizable).

Worked Example

Problem: Find the eigen decomposition of A = [[4, 1], [2, 3]].
Find eigenvalues: Solve det(A − λI) = 0.
det(4λ123λ)=(4λ)(3λ)2=λ27λ+10=0\det\begin{pmatrix}4-\lambda & 1\\2 & 3-\lambda\end{pmatrix} = (4-\lambda)(3-\lambda)-2 = \lambda^2 - 7\lambda + 10 = 0
Solve for λ: Factor the characteristic polynomial.
(λ5)(λ2)=0    λ1=5,  λ2=2(\lambda - 5)(\lambda - 2) = 0 \;\Rightarrow\; \lambda_1 = 5,\; \lambda_2 = 2
Find eigenvectors: For λ₁ = 5: (A − 5I)v = 0 gives v₁ = (1, 1). For λ₂ = 2: (A − 2I)v = 0 gives v₂ = (1, −2).
P=(1112),D=(5002)P = \begin{pmatrix}1 & 1\\1 & -2\end{pmatrix},\quad D = \begin{pmatrix}5 & 0\\0 & 2\end{pmatrix}
Write decomposition: Compute P⁻¹ and express A = PDP⁻¹.
P1=13(2111)=(23131313)P^{-1} = \frac{1}{-3}\begin{pmatrix}-2 & -1\\-1 & 1\end{pmatrix} = \begin{pmatrix}\frac{2}{3} & \frac{1}{3}\\\frac{1}{3} & -\frac{1}{3}\end{pmatrix}
Answer: A = PDP⁻¹ with P = [[1, 1], [1, −2]], D = diag(5, 2), confirming the eigen decomposition.

Why It Matters

Eigen decomposition makes computing matrix powers trivial: Ak=PDkP1A^k = PD^kP^{-1}, since raising a diagonal matrix to a power is just raising each diagonal entry. This is essential in solving systems of differential equations, principal component analysis in data science, and stability analysis in engineering.

Common Mistakes

Mistake: Assuming every square matrix can be eigen-decomposed.
Correction: A matrix must have n linearly independent eigenvectors (be diagonalizable) for the decomposition to exist. Defective matrices—those with repeated eigenvalues that lack a full set of eigenvectors—cannot be eigen-decomposed.