Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Diagonalisation

Eigenbases, diagonal matrices and the criterion for diagonalising a matrix.

This page asks when a matrix has enough independent eigenvectors to form an eigenbasis. In that basis the matrix representation is diagonal, so repeated multiplication or coupled evolution splits into scalar modes, as in matrix powers, linear ODE systems and Markov systems.

Diagonalisation always takes place over a chosen scalar field: the change-of-basis matrix and the diagonal entries must belong to that field. A real matrix may therefore be diagonalisable over C\mathbb C but not over R\mathbb R.

Independent eigenvectors

[DEFINITION]

Eigenvalue

Let T:V→VT:V\to V be a linear map over a field FF. A scalar λ∈F\lambda\in F is an eigenvalue of TT if there is a non-zero vector v∈Vv\in V such that

T(v)=λv.T(v)=\lambda v.
[DEFINITION]

Eigenvector

If T(v)=λvT(v)=\lambda v for a non-zero vector vv, then vv is an eigenvector of TT corresponding to the eigenvalue λ\lambda.

[DEFINITION]

Basis

A set BB in a vector space VV is a basis for VV if it is linearly independent and spans VV.

[THEOREM]

Matrix representation of a linear map

Let T:V→WT:V\to W be a linear map, where dim⁡(V)=n\dim(V)=n and dim⁡(W)=m\dim(W)=m. For ordered bases

BV=(v1,…,vn),BW=(w1,…,wm),B_V=(v_1,\ldots,v_n),\qquad B_W=(w_1,\ldots,w_m),

form the coordinate columns

aj=[T(vj)]BW(j=1,…,n).a_j=[T(v_j)]_{B_W}\qquad (j=1,\ldots,n).

Then

A=(a1⋯an)A=\begin{pmatrix}a_1&\cdots&a_n\end{pmatrix}

is the unique m×nm\times n matrix satisfying

[T(v)]BW=A[v]BVfor every v∈V.[T(v)]_{B_W}=A[v]_{B_V}\qquad\text{for every }v\in V.

We call AA the matrix representation of TT relative to BVB_V and BWB_W and may write it as [T]BVBW[T]_{B_V}^{B_W}.

With this notation, the subscript names the domain basis and the superscript names the codomain basis, matching the direction [v]BV↦[T(v)]BW[v]_{B_V}\mapsto[T(v)]_{B_W} in the displayed coordinate identity.

[THEOREM]

Eigenvectors for distinct eigenvalues

Eigenvectors belonging to distinct eigenvalues are linearly independent. In particular, an n×nn\times n matrix with nn distinct eigenvalues has nn linearly independent eigenvectors.

[PROOF]

Let v1,…,vnv_1,\ldots,v_n be eigenvectors for distinct eigenvalues λ1,…,λn\lambda_1,\ldots,\lambda_n and suppose

c1v1+⋯+cnvn=0.c_1v_1+\cdots+c_nv_n=0.

To isolate one coefficient, fix kk and apply

Bk=∏j≠k(A−λjI)B_k=\prod_{j\neq k}(A-\lambda_jI)

to both sides. The factors commute because each is a polynomial in AA. Every term except the kkth is killed by one factor, while

Bkvk=∏j≠k(λk−λj)vk.B_kv_k=\prod_{j\neq k}(\lambda_k-\lambda_j)v_k.

Thus the transformed relation is

0=ck(∏j≠k(λk−λj))vk.0=c_k\left(\prod_{j\neq k}(\lambda_k-\lambda_j)\right)v_k.

The scalar product is non-zero and vk≠0v_k\ne0, so ck=0c_k=0. Since kk was arbitrary, all coefficients vanish.

[DEFINITION]

Eigenbasis

An eigenbasis for a vector space is a basis whose vectors are eigenvectors of the linear map under consideration.

In an eigenbasis, each coordinate direction is scaled independently. Every vector therefore splits into eigenmodes, which matrix powers and linear ODE systems evolve separately.

[DEFINITION]

Diagonalisation

An n×nn\times n matrix AA over a field FF is diagonalisable over FF if there are an invertible matrix P∈Mn(F)P\in M_n(F) and a diagonal matrix D∈Mn(F)D\in M_n(F) such that

P−1AP=D,equivalentlyA=PDP−1.P^{-1}AP=D, \qquad\text{equivalently}\qquad A=PDP^{-1}.

The columns of PP are the eigenvectors in the chosen eigenbasis and the corresponding eigenvalues appear on the diagonal of DD.

[THEOREM]

When diagonalisation is possible

An n×nn\times n matrix over FF is diagonalisable over FF if and only if it has nn linearly independent eigenvectors in FnF^n.

This test decides whether matrix powers can be computed in diagonal form.

[PROOF]

If v1,…,vnv_1,\ldots,v_n are independent eigenvectors, let

P=(v1⋯vn),D=diag⁡(λ1,…,λn).P=\begin{pmatrix}v_1&\cdots&v_n\end{pmatrix}, \qquad D=\operatorname{diag}(\lambda_1,\ldots,\lambda_n).

The matrix PP is invertible and applying AA to each column gives AP=PDAP=PD. Hence P−1AP=DP^{-1}AP=D.

Conversely, if P−1AP=DP^{-1}AP=D, then AP=PDAP=PD. The columns of PP are therefore eigenvectors corresponding to the diagonal entries of DD. Since PP is invertible, its columns are linearly independent.

Similarity and change of basis

Two square matrices AA and BB are similar if an invertible matrix PP satisfies

B=P−1AP.B=P^{-1}AP.

Similar matrices represent the same linear operator in different bases, as in a matrix representation, so their entries can differ. They share eigenvalues, determinant, rank, nullity and invertibility. Diagonalisation A=PDP−1A=PDP^{-1} is the case in which the matrix in the new basis is diagonal.

Worked examples

[EXAMPLE]

A real matrix with complex eigenvalues

For

A=(2−112),A= \begin{pmatrix} 2&-1\\ 1&2 \end{pmatrix},

the characteristic polynomial is

pA(λ)=(2−λ)2+1=λ2−4λ+5.p_A(\lambda)=(2-\lambda)^2+1 =\lambda^2-4\lambda+5.

Its eigenvalues are λ=2+i\lambda=2+i and λ=2−i\lambda=2-i. For λ=2+i\lambda=2+i,

A−(2+i)I=(−i−11−i),A-(2+i)I= \begin{pmatrix} -i&-1\\ 1&-i \end{pmatrix},

and solving (A−(2+i)I)v=0(A-(2+i)I)v=0 gives

v=α(i1).v=\alpha\begin{pmatrix}i\\1\end{pmatrix}.

The conjugate eigenvalue has eigenvector (−i1)\begin{pmatrix}-i\\1\end{pmatrix}. These two eigenvectors are independent over C\mathbb C, so the matrix is diagonalisable over C\mathbb C although it has no real eigenvalues. Discarding the complex roots of a real matrix would miss this diagonalisation.

A repeated eigenvalue needs more care. Its algebraic multiplicity counts how often it repeats as a root of the characteristic polynomial. Its geometric multiplicity is the dimension of its eigenspace, which is never larger.

A repeated root is not itself an obstruction to diagonalisation over FF. The obstruction is an eigenspace that is too small, leaving fewer than nn independent eigenvectors in FnF^n. The three repeated-eigenvalue cases compare the possibilities.

[EXAMPLE]

A repeated eigenvalue without enough modes

Let

A=(3−111).A= \begin{pmatrix} 3&-1\\ 1&1 \end{pmatrix}.

Then

pA(λ)=(3−λ)(1−λ)+1=(λ−2)2.p_A(\lambda) =(3-\lambda)(1-\lambda)+1 =(\lambda-2)^2.

The only eigenvalue is 22. Solving

(A−2I)v=(1−11−1)v=0(A-2I)v= \begin{pmatrix} 1&-1\\ 1&-1 \end{pmatrix}v=0

gives

E2=span⁡{(11)}.E_2=\operatorname{span}\left\{\begin{pmatrix}1\\1\end{pmatrix}\right\}.

The algebraic multiplicity is 22, but the geometric multiplicity is dim⁡(E2)=1\dim(E_2)=1. There is only one independent eigenvector, so no eigenbasis of R2\mathbb R^2 exists and AA is not diagonalisable over either R\mathbb R or C\mathbb C.

[routine]

  1. [1]:Eigenspace
  2. [2]:Diagonalisation
[EXAMPLE]

A triangular matrix with an eigenbasis

For

A=(123045006),A= \begin{pmatrix} 1&2&3\\ 0&4&5\\ 0&0&6 \end{pmatrix},

the eigenvalues are the diagonal entries 11, 44 and 66. They are distinct, so the corresponding eigenvectors are independent. Solving (A−λI)v=0(A-\lambda I)v=0 gives v1=(1,0,0)Tv_1=(1,0,0)^{\mathsf T} for λ=1\lambda=1. For λ=4\lambda=4, the last two equations give z=0z=0 and the first gives 3x=2y3x=2y, so choose v2=(2,3,0)Tv_2=(2,3,0)^{\mathsf T}. For λ=6\lambda=6, the second equation gives 2y=5z2y=5z; taking z=10z=10 gives y=25y=25 and the first equation then gives x=16x=16. Thus one choice is

v1=(100),v2=(230),v3=(162510).v_1= \begin{pmatrix}1\\0\\0\end{pmatrix}, \qquad v_2= \begin{pmatrix}2\\3\\0\end{pmatrix}, \qquad v_3= \begin{pmatrix}16\\25\\10\end{pmatrix}.

With

P=(121603250010),D=(100040006),P= \begin{pmatrix} 1&2&16\\ 0&3&25\\ 0&0&10 \end{pmatrix}, \qquad D= \begin{pmatrix} 1&0&0\\ 0&4&0\\ 0&0&6 \end{pmatrix},

the column checks Avj=λjvjAv_j=\lambda_jv_j give AP=PDAP=PD and hence

A=PDP−1.A=PDP^{-1}.

Symmetric matrices

Real symmetric matrices are especially well behaved: their eigenvalues are real and their eigenvectors can be chosen mutually perpendicular. This is the spectral theorem, stated here without proof. The orthonormal form makes the change of basis easy to invert, because the inverse of QQ is its transpose.

[PROPOSITION]

Real symmetric matrices

If AA is a real symmetric matrix, then its eigenvalues are real, its eigenvectors can be chosen as an orthonormal basis of Rn\mathbb R^n and

QTAQ=DQ^{\mathsf T}AQ=D

for an orthogonal matrix QQ and a diagonal matrix DD.

[EXAMPLE]

Orthonormal eigenvectors

For

A=(1111),A= \begin{pmatrix} 1&1\\ 1&1 \end{pmatrix},

the eigenvectors

u1=(11),u2=(−11)u_1=\begin{pmatrix}1\\1\end{pmatrix}, \qquad u_2=\begin{pmatrix}-1\\1\end{pmatrix}

are perpendicular and have length 2\sqrt2. Normalising them gives

u^1=12(11),u^2=12(−11).\widehat u_1=\frac1{\sqrt2}\begin{pmatrix}1\\1\end{pmatrix}, \qquad \widehat u_2=\frac1{\sqrt2}\begin{pmatrix}-1\\1\end{pmatrix}.

Thus Q=(u^1 u^2)Q=(\widehat u_1\ \widehat u_2) is orthogonal and

QTAQ=(2000).Q^{\mathsf T}AQ= \begin{pmatrix} 2&0\\ 0&0 \end{pmatrix}.

Invertibility and the zero eigenvalue

[THEOREM]

Invertibility and eigenvalues

An n×nn\times n matrix AA is invertible if and only if 00 is not an eigenvalue of AA.

The number 00 is an eigenvalue exactly when AA has a non-zero vector in its kernel, which is exactly when AA is not invertible.

On this page