Algebra

Matrix Diagonalization

A pupil highlights the diagonal cells of a square grid.

Matrix Diagonalization definition

Matrix diagonalization writes a square matrix A as PDP⁻¹, where D is diagonal and P is invertible.

In Spanish
diagonalización de matrices
Topic
Eigenvalues and changes of basis

Matrix Diagonalization in a picture

Matrix Diagonalization diagramThe order of the eigenvectors in P matches the order of eigenvalues in D.P: columns v₁ and v₂Choose an eigenvector basisD = diag(λ₁, λ₂)Use the matching orderAP = PDSo A = PDP⁻¹
The order of the eigenvectors in P matches the order of eigenvalues in D.

How it works

Put independent eigenvectors of A in the columns of P. Place their eigenvalues in the same order along D. Then AP = PD, giving A = PDP⁻¹. Such a factorization exists over the chosen field exactly when A has a basis of eigenvectors. Powers become easier because Aᵏ = PDᵏP⁻¹.

Worked examples

Is a diagonal matrix already diagonalizable?

Yes. Take P = I and D = A.

Does a real 2 × 2 matrix with two distinct real eigenvalues diagonalize over ℝ?

Yes. Its two eigenvectors are independent.

A 2 × 2 matrix has only one independent eigenvector. Is it diagonalizable?

No. Its eigenvectors cannot form a basis.

Common mistake

Match the order of columns in P with the diagonal entries of D.

Quick check

What goes in the columns of P?

Show answer

Independent eigenvectors.

What goes on the diagonal of D?

Show answer

The corresponding eigenvalues.

How many independent eigenvectors does an n × n matrix need?

Show answer

n.

Sources

Flashcard

Matrix Diagonalization

Reveal the definition

Matrix diagonalization writes a square matrix A as PDP⁻¹, where D is diagonal and P is invertible.

Effortless Math. “Matrix Diagonalization.” Math Dictionary.