Skip to content

Matrices & transformations 𝄜

JavaScriptThree.js

🎯 Illustration of visualizing matrix transformations
🎯 A matrix transforms space → some directions remain invariant → the eigen vectors

Source

🎯 Spectral theorem: each real symmetric matrix has an orthonormal base of eigen vectors

Source

When an eigenvalue occurs more than once, we have to distinguish between two different notions of multiplicity.

The algebraic multiplicity of an eigenvalue is the number of times it occurs as a root of the characteristic polynomial. For a 2×22\times2 matrix, the characteristic polynomial is p(λ)=det(AλI)p(\lambda)=\det(A-\lambda I).

Consider

A=(21 02)A= \begin{pmatrix} 2&1\\\ 0&2 \end{pmatrix}

Its characteristic polynomial is

p(λ)=det(2λ102λ)=(2λ)2.p(\lambda)= \det \begin{pmatrix} 2-\lambda&1\\ 0&2-\lambda \end{pmatrix} = (2-\lambda)^2.

Therefore, the only eigenvalue is λ=2\lambda=2, and it has algebraic multiplicity 2. But this does not yet tell us how many independent eigenvectors the matrix has.

The geometric multiplicity of an eigenvalue is the dimension of its eigenspace: Eλ=vAv=λvE_\lambda = {v\mid Av=\lambda v}. In other words, it tells us how many linearly independent eigenvectors belong to that eigenvalue.

For example, solving Av=2vAv=2v for the matrix

A=(2102),v=(xy)A= \begin{pmatrix} 2&1\\ 0&2 \end{pmatrix},\qquad v=\begin{pmatrix} x\\y \end{pmatrix}

gives

(2102)(xy)=(2x2y).\begin{pmatrix} 2&1\\ 0&2 \end{pmatrix} \begin{pmatrix} x\\y \end{pmatrix} = \begin{pmatrix} 2x\\2y \end{pmatrix}.

Therefore, 2x+y=2x2x+y=2x and hence y=0y=0. As a consequence, all eigenvectors are of the form

v=(x0),x0.v= \begin{pmatrix} x\\0 \end{pmatrix}, \qquad x\neq0.

This implies they all lie on the same line. There is only one linearly independent eigenvector.

Thus:

algebraic multiplicity=2,geometric multiplicity=1\boxed{ \text{algebraic multiplicity}=2, \qquad \text{geometric multiplicity}=1 }

This is an important distinction: an eigenvalue can occur twice in the characteristic polynomial without giving us two independent eigenvectors.

A different matrix with the same eigenvalue

Section titled “A different matrix with the same eigenvalue”

Now consider

A=(2002)=2I.A= \begin{pmatrix} 2&0\\ 0&2 \end{pmatrix} =2I.

The characteristic polynomial is again p(λ)=(2λ)2p(\lambda)=(2-\lambda)^2, so the eigenvalue λ=2\lambda=2 again has algebraic multiplicity 2. But now Av=2vAv=2v is true for every vector vv. Therefore, the eigenspace is the entire plane: E2=R2E_2=\mathbb{R}^2. Its dimension is 2, so the geometric multiplicity is also 2:

algebraic multiplicity=2,geometric multiplicity=2\boxed{ \text{algebraic multiplicity}=2, \qquad \text{geometric multiplicity}=2 }

This gives us two very different situations with exactly the same characteristic polynomial.

For every eigenvalue,

1geometric multiplicityalgebraic multiplicity\boxed{ 1\leq \text{geometric multiplicity} \leq \text{algebraic multiplicity} }

The geometric multiplicity can never be larger than the algebraic multiplicity.

For a repeated eigenvalue with algebraic multiplicity 2, there are therefore two possibilities:

Algebraic multiplicityGeometric multiplicity(2102)21(2002)22\begin{array}{c|c|c} &\text{Algebraic multiplicity}&\text{Geometric multiplicity}\\ \hline \begin{pmatrix} 2&1\\ 0&2 \end{pmatrix} & 2 & 1 \\ \begin{pmatrix} 2&0\\ 0&2 \end{pmatrix} &2&2 \end{array}

In the first case there is only one eigenvector direction. In the second case every direction is an eigenvector.

This distinction becomes particularly important when we arrive at the spectral theorem. A general matrix does not necessarily have enough independent eigenvectors to form a basis. The matrix

(2102)\begin{pmatrix} 2&1\\ 0&2 \end{pmatrix}

is an example: it has only one independent eigenvector, even though its characteristic polynomial has degree two. Therefore, it cannot be diagonalized.

Real symmetric matrices are special as the spectral theorem tells us that every real symmetric matrix has an orthonormal basis of eigenvectors. So for a 2×22\times 2-matrix

(abbd)\begin{pmatrix} a & b\\ b & d \end{pmatrix}

the eigen vectors are always perpendicular to one another. In other words, even when eigenvalues are repeated, there are always enough independent eigenvectors to span the entire space. For example,

A=(2112)A= \begin{pmatrix} 2&1\\ 1&2 \end{pmatrix}

has eigenvalues λ1=3, λ2=1\lambda_1=3,\ \lambda_2=1 with orthogonal eigenvectors

e1=12(11),e2=12(11).e_1= \frac{1}{\sqrt2} \begin{pmatrix} 1\\1 \end{pmatrix}, \qquad e_2= \frac{1}{\sqrt2} \begin{pmatrix} 1\\-1 \end{pmatrix}.

These two eigenvectors form an orthonormal basis of R2\mathbb{R}^2. This is the deeper reason why symmetric matrices can be written as

A=QΛQT\boxed{A=Q\Lambda Q^T}

where QQ contains the orthonormal eigenvectors and Λ\Lambda contains the eigenvalues. The visual interpretation that is implied is:

  1. rotate space so that the eigen vectors are the axes;
  2. scale independently in those two directions;
  3. rotate space back to its original position.

So for a general symmetric transformation we have have:

rotationscalingrotation\boxed{\text{rotation} \rightarrow \text{scaling} \rightarrow \text{rotation}}

So the distinction between algebraic and geometric multiplicity is not merely a technical detail. It tells us whether the eigenvectors provide enough directions to completely describe the transformation.

The transition between

(2102) and (2002)\begin{pmatrix} 2&1\\ 0&2 \end{pmatrix}\ \text{and}\ \begin{pmatrix} 2&0\\ 0&2 \end{pmatrix}

is particularly instructive.

In the first case, the two eigenvalues have merged, but the two eigenvector directions have not appeared: there is only one.

In the second case, the same repeated eigenvalue corresponds to an entire plane of eigenvectors.

This is a good reminder that eigenvalues alone do not tell us the complete structure of a matrix. We also have to look at the eigenspaces.

👉 Matrix: A=(abbd)👉\ \text{Matrix}:\ A= \begin{pmatrix} a&b\\ b&d \end{pmatrix}

\Downarrow

👉 Eigen values/eigen vectors: Aei=λiei👉\ \text{Eigen values/eigen vectors}:\ Ae_i=\lambda_i e_i

\Downarrow

👉 Spectral theorem: e1e2👉\ \text{Spectral theorem}:\ e_1\perp e_2

\Downarrow

👉 Orthonormal matrix: Q=(e1 e2)👉\ \text{Orthonormal matrix}:\ Q=(e_1\ e_2)

\Downarrow

👉 Diagonale matrix: Λ=(λ100λ2)👉\ \text{Diagonale matrix}:\ \Lambda= \begin{pmatrix} \lambda_1&0\\ 0&\lambda_2 \end{pmatrix}

\Downarrow

👉 Spectral decomposition: A=QΛQT👉\ \text{Spectral decomposition}:\ \boxed{A=Q\Lambda Q^T}