Lesson 5.3761 words

Diagonalization

A matrix is diagonalizable when it factors as A equals P D P inverse with D diagonal, which happens exactly when it has n linearly independent eigenvectors. The factorization computes matrix powers cheaply, distinct eigenvalues guarantee it, and a repeated eigenvalue permits it only when its eigenspace dimension equals its multiplicity.

╌╌╌╌

For many matrices , the eigenvalues and eigenvectors assemble into a factorization

with diagonal. When this is possible, questions that are hard for become easy for . The clearest example is computing powers.

Matrix powers from the factorization

Powers of a diagonal matrix are computed entrywise. If , then . When , the inner factors telescope:

and by induction for every . Computing a power of takes one diagonal power plus two matrix products, no matter how large is.

The factorization turns into ; the only work that scales with is raising diagonal entries to the th power.

The Diagonalization Theorem

The proof also gives the procedure. Diagonalizing an matrix has four steps.

Algorithm:Diagonalize(A)\textsc{Diagonalize}(A) — factor A=PDP1A = P D P^{-1} if possible
  1. 1
    find the eigenvalues of A from the characteristic equation
  2. 2
    for each distinct eigenvalue L do
  3. 3
    compute a basis for the eigenspace Nul(A - L I)
  4. 4
    collect all eigenvectors found into columns v_1, ..., v_m
  5. 5
    if m < n then
  6. 6
    return "not diagonalizable"
    too few independent eigenvectors
  7. 7
    P <- [ v_1 ... v_n ]
    eigenvectors as columns
  8. 8
    D <- diag(L_1, ..., L_n)
    matching eigenvalues, same order as P
  9. 9
    return (P, D)

The order of the columns of is free, but the diagonal of must use the same order: the th diagonal entry is the eigenvalue of the th column of .

Diagonalizing a matrix with a repeated eigenvalue

The repeated eigenvalue still gave a two-dimensional eigenspace, so three independent eigenvectors were available. That does not always happen.

Diagonalization aligns the standard action of (mixing coordinates) with a pure axiswise scaling once the eigenvector basis is used.

A defective matrix

Diagonalizability is not automatic.

A matrix that lacks a full set of independent eigenvectors is called defective.

Sufficient and exact conditions

Distinct eigenvalues guarantee diagonalizability, because eigenvectors for distinct eigenvalues are independent.

This is sufficient but not necessary: the first example above is diagonalizable with only two distinct eigenvalues. The sharp criterion handles repeated eigenvalues by comparing dimensions.

Diagonalizability compares two multiplicities per eigenvalue; the matrix is diagonalizable only when geometric equals algebraic for every eigenvalue.

For a triangular matrix the eigenvalues are read off the diagonal, so diagonalizability of, say,

is settled immediately: three distinct diagonal entries , hence three distinct eigenvalues, hence diagonalizable by the distinct-eigenvalues criterion.

The two multiplicities

QuantityDefinitionBound
Algebraic multiplicity of its multiplicity as a root of between and
Geometric multiplicity of between and the algebraic multiplicity
Diagonalizable?yes iff geometric algebraic for every eigenvalueand multiplicities sum to

Read as a statement about maps, says that is a pure scaling along the axes of the eigenvector basis. The precise version for transformations between abstract vector spaces is eigenvectors and linear transformations.1

Footnotes

  1. Lay, Linear Algebra and Its Applications, 5th ed., §5.3 — Diagonalization: the factorization and its use for powers, Theorem 5 (the Diagonalization Theorem), Theorem 6 (distinct eigenvalues), and Theorem 7 (eigenspace dimensions versus multiplicities).

╌╌ END ╌╌