Mathwords logoMathwords

Diagonalizable Matrix — Definition, Formula & Examples

A diagonalizable matrix is a square matrix that can be written in the form PDP1PDP^{-1}, where DD is a diagonal matrix and PP is an invertible matrix whose columns are the eigenvectors of the original matrix.

An n×nn \times n matrix AA is diagonalizable if and only if there exists an invertible matrix PP and a diagonal matrix DD such that A=PDP1A = PDP^{-1}. Equivalently, AA is diagonalizable if and only if it has nn linearly independent eigenvectors.

Key Formula

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

How It Works

To diagonalize a matrix AA, first find its eigenvalues by solving det(AλI)=0\det(A - \lambda I) = 0. Then find the eigenvectors for each eigenvalue. If you obtain nn linearly independent eigenvectors for an n×nn \times n matrix, form PP by placing those eigenvectors as columns and DD by placing the corresponding eigenvalues along the diagonal. The factorization A=PDP1A = PDP^{-1} makes computing powers of AA especially efficient, since Ak=PDkP1A^k = PD^kP^{-1} and raising a diagonal matrix to a power simply raises each diagonal entry to that power.

Worked Example

Problem: Determine whether the matrix A is diagonalizable, and if so, find P and D.
Given: Let A be the following 2×2 matrix.
A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}
Step 1: Find eigenvalues by solving det(A − λI) = 0.
det(4λ123λ)=(4λ)(3λ)2=λ27λ+10=(λ5)(λ2)=0\det\begin{pmatrix} 4-\lambda & 1 \\ 2 & 3-\lambda \end{pmatrix} = (4-\lambda)(3-\lambda) - 2 = \lambda^2 - 7\lambda + 10 = (\lambda - 5)(\lambda - 2) = 0
Step 2: The eigenvalues are λ₁ = 5 and λ₂ = 2. Find an eigenvector for each. For λ₁ = 5, solve (A − 5I)v = 0.
(1122)v=0    v1=(11)\begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}\mathbf{v} = \mathbf{0} \implies \mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}
Step 3: For λ₂ = 2, solve (A − 2I)v = 0.
(2121)v=0    v2=(12)\begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}\mathbf{v} = \mathbf{0} \implies \mathbf{v}_2 = \begin{pmatrix} 1 \\ -2 \end{pmatrix}
Step 4: Since there are 2 linearly independent eigenvectors for a 2×2 matrix, A is diagonalizable. Form P and D.
P=(1112),D=(5002)P = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}, \quad D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}
Answer: A is diagonalizable with P = [[1,1],[1,−2]] and D = diag(5, 2), so A = PDP⁻¹.

Why It Matters

Diagonalization simplifies computing matrix powers, which appears in solving systems of linear differential equations, analyzing Markov chains, and modeling population dynamics. Many numerical algorithms in data science and engineering rely on diagonalizing matrices (or the closely related spectral decomposition) to reduce computational cost.

Common Mistakes

Mistake: Assuming every square matrix is diagonalizable.
Correction: A matrix is diagonalizable only if it has n linearly independent eigenvectors. For example, some matrices with repeated eigenvalues lack enough independent eigenvectors and are therefore not diagonalizable (these are called defective matrices).