Diagonalization

Subtopic: Eigentheory
Topic: Linear Algebra

Introduction

Some matrices have a hidden simplicity. When viewed in the right coordinate system, they act as pure scalings along independent directions — no mixing, no rotation, just stretching or compressing along each axis. Such matrices are called diagonalizable, and finding this special coordinate system is the process of diagonalization.

Diagonalization transforms a matrix A A into a diagonal matrix D D through a change of basis. The diagonal entries of D D are the eigenvalues of A A, and the change-of-basis matrix P P has eigenvectors as its columns. This decomposition A=P⁢D⁢P−1 A equals P D P to the negative 1 power is one of the most powerful tools in linear algebra.

Why does diagonalization matter? Diagonal matrices are trivial to work with: their powers, exponentials, and functions are computed entry by entry. By diagonalizing A A, we can easily compute A100 A to the 100th power, solve differential equations x′=A⁢x x prime equals A x, and understand the long-term behavior of dynamical systems. Diagonalization transforms hard matrix problems into manageable ones.

The Diagonalization Theorem

An n×n n times n matrix A A is diagonalizable if and only if it has n n linearly independent eigenvectors.

When A A is diagonalizable, we can write:

A=P⁢D⁢P−1 A equals P D P to the negative 1 power

where D D is a diagonal matrix with the eigenvalues λ1,λ2,…,λn lamda sub 1 comma lamda sub 2 comma dot dot dot comma lamda sub n on the diagonal:

D=(λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn) D equals the 4 by 4 matrix Row 1: Column 1, lamda sub 1 Column 2, 0 Column 3, dot dot dot Column 4, 0 Row 2: Column 1, 0 Column 2, lamda sub 2 Column 3, dot dot dot Column 4, 0 Row 3: Column 1, vertical ellipsis Column 2, vertical ellipsis Column 3, down right diagonal ellipsis Column 4, vertical ellipsis Row 4: Column 1, 0 Column 2, 0 Column 3, dot dot dot Column 4, lamda sub n

and P P is the matrix whose columns are the corresponding eigenvectors v1,v2,…,vn v sub 1 comma v sub 2 comma dot dot dot comma v sub n

P=(|||v1v2⋯vn|||) P equals the 3 by 4 matrix Row 1: Column 1, vertical bar Column 2, vertical bar Column 3, blank Column 4, vertical bar Row 2: Column 1, v sub 1 Column 2, v sub 2 Column 3, dot dot dot Column 4, v sub n Row 3: Column 1, vertical bar Column 2, vertical bar Column 3, blank Column 4, vertical bar

The order of eigenvalues in D D must match the order of corresponding eigenvectors in P P

Why This Works

The equation A=P⁢D⁢P−1 A equals P D P to the negative 1 power is equivalent to A⁢P=P⁢D A P equals P D. Examine this column by column.

The i i-th column of A⁢P A P is A⁢vi A v sub i. The i i-th column of P⁢D P D is λi⁢vi lamda sub i v sub i (since multiplying P P by the diagonal matrix D D scales each column by the corresponding diagonal entry).

Thus A⁢P=P⁢D A P equals P D states exactly that A⁢vi=λi⁢vi A v sub i equals lamda sub i v sub i for each i i — the definition of eigenvalues and eigenvectors. The matrix P P must be invertible, which requires its columns to be linearly independent.

Conditions for Diagonalizability

Sufficient Condition: Distinct Eigenvalues

If A A has n n distinct eigenvalues, then A A is diagonalizable. This is because eigenvectors corresponding to distinct eigenvalues are always linearly independent.

General Condition

When eigenvalues repeat, diagonalizability depends on the eigenspaces. For each eigenvalue λ lamda

• The algebraic multiplicity is the number of times λ lamda appears as a root of the characteristic polynomial.

• The geometric multiplicity is the dimension of the eigenspace null⁢(A−λ⁢I) null times open paren A minus lamda I close paren

A matrix is diagonalizable if and only if the geometric multiplicity equals the algebraic multiplicity for every eigenvalue. Equivalently, the sum of geometric multiplicities must equal n n

Defective Matrices

A matrix that is not diagonalizable is called defective. For defective matrices, some eigenvalue has geometric multiplicity strictly less than its algebraic multiplicity—there aren't enough independent eigenvectors.

Worked Example

Diagonalize the matrix:

A=(4123) A equals the 2 by 2 matrix Row 1: 4 1 Row 2: 2 3

Step 1: Find Eigenvalues

The characteristic polynomial is:

det⁡(A−λ⁢I)=(4−λ)⁢(3−λ)−2=λ2−7⁢λ+10=(λ−5)⁢(λ−2) the determinant of open paren A minus lamda I close paren equals open paren 4 minus lamda close paren times open paren 3 minus lamda close paren minus 2 equals lamda squared minus 7 lamda plus 10 equals open paren lamda minus 5 close paren times open paren lamda minus 2 close paren

So λ1=5 lamda sub 1 equals 5 and λ2=2 lamda sub 2 equals 2

Step 2: Find Eigenvectors

For λ1=5 lamda sub 1 equals 5: solving (A−5⁢I)⁢v=0 open paren A minus 5 I close paren times v equals 0 gives v1=(11) v sub 1 equals the 2 by 1 column matrix 1 1.

For λ2=2 lamda sub 2 equals 2: solving (A−2⁢I)⁢v=0 open paren A minus 2 I close paren times v equals 0 gives v2=(1−2) v sub 2 equals the 2 by 1 column matrix 1 negative 2.

Step 3: Form P and D

P=(111−2),D=(5002) P equals the 2 by 2 matrix Row 1: 1 1 Row 2: 1 negative 2 comma D equals the 2 by 2 matrix Row 1: 5 0 Row 2: 0 2

Step 4: Verify

We can verify: P−1=1−3⁢(−2−1−11)=(2/31/31/3−1/3) P to the negative 1 power equals 1 over negative 3 times the 2 by 2 matrix Row 1: negative 2 negative 1 Row 2: negative 1 1 equals the 2 by 2 matrix Row 1: Column 1, 2 divided by 3 Column 2, 1 divided by 3 Row 2: Column 1, 1 divided by 3 Column 2, negative 1 divided by 3

Then P⁢D⁢P−1=A P D P to the negative 1 power equals A as required.

Powers of Diagonalizable Matrices

One of the main applications of diagonalization is computing matrix powers. If A=P⁢D⁢P−1 A equals P D P to the negative 1 power then:

Ak=P⁢Dk⁢P−1 A to the k-th power equals P D to the k-th power P to the negative 1 power

Since D D is diagonal, Dk D to the k-th power is simply:

Dk=(λ1k0⋯00λ2k⋯0⋮⋮⋱⋮00⋯λnk) D to the k-th power equals the 4 by 4 matrix Row 1: Column 1, lamda sub 1 to the k-th power Column 2, 0 Column 3, dot dot dot Column 4, 0 Row 2: Column 1, 0 Column 2, lamda sub 2 to the k-th power Column 3, dot dot dot Column 4, 0 Row 3: Column 1, vertical ellipsis Column 2, vertical ellipsis Column 3, down right diagonal ellipsis Column 4, vertical ellipsis Row 4: Column 1, 0 Column 2, 0 Column 3, dot dot dot Column 4, lamda sub n to the k-th power

This makes computing A100 A to the 100th power or A1000 A to the 1000th power straightforward—we just raise each eigenvalue to the appropriate power.

Matrix Exponential

For applications in differential equations, we often need the matrix exponential eA⁢t e raised to the A t power If A=P⁢D⁢P−1 A equals P D P to the negative 1 power then:

eA⁢t=P⁢eD⁢t⁢P−1 e raised to the A t power equals P e raised to the D t power P to the negative 1 power

where

eD⁢t=(eλ1⁢t0⋯00eλ2⁢t⋯0⋮⋮⋱⋮00⋯eλn⁢t) e raised to the D t power equals the 4 by 4 matrix Row 1: Column 1, e raised to the lamda sub 1 t power Column 2, 0 Column 3, dot dot dot Column 4, 0 Row 2: Column 1, 0 Column 2, e raised to the lamda sub 2 t power Column 3, dot dot dot Column 4, 0 Row 3: Column 1, vertical ellipsis Column 2, vertical ellipsis Column 3, down right diagonal ellipsis Column 4, vertical ellipsis Row 4: Column 1, 0 Column 2, 0 Column 3, dot dot dot Column 4, e raised to the lamda sub n t power

This is essential for solving linear systems of differential equations x′⁢(t)=A⁢x⁢(t) x prime times t equals A x times t.

Connection to Other Concepts

Diagonalization connects deeply to several important topics.

The spectral theorem guarantees that every real symmetric matrix is diagonalizable with an orthonormal basis of eigenvectors. The diagonalizing matrix P P is orthogonal (P−1=PT P to the negative 1 power equals P to the T power, giving the decomposition A=P⁢D⁢PT A equals P D P to the T power

For matrices that are not diagonalizable, the Jordan normal form provides a generalization. Instead of a diagonal matrix, we get a block-diagonal matrix with Jordan blocks.

The singular value decomposition (SVD) extends diagonalization ideas to rectangular matrices, expressing any matrix as A=U⁢Σ⁢VT A equals U Sigma V to the T power

Summary

A matrix A A is diagonalizable if and only if it has n n linearly independent eigenvectors. When diagonalizable, A=P⁢D⁢P−1 A equals P D P to the negative 1 power where D D is diagonal with eigenvalues on the diagonal and P P has eigenvectors as columns.

Diagonalization simplifies matrix computations dramatically: Ak=P⁢Dk⁢P−1 A to the k-th power equals P D to the k-th power P to the negative 1 power and eA⁢t=P⁢eD⁢t⁢P−1 e raised to the A t power equals P e raised to the D t power P to the negative 1 power This is the key to solving linear recurrences and differential equations.

A matrix with n n distinct eigenvalues is always diagonalizable. With repeated eigenvalues, we must check that geometric multiplicity equals algebraic multiplicity for each eigenvalue.