Physics
Universitymathematical-methods

Linear Algebra: Eigenvalues, Eigenvectors, and Diagonalization

The special directions a linear operator does not turn, the scale factors attached to them, and the change of basis that can reduce a complicated transformation to independent one-dimensional actions.

Before this, you should know:

Take a vector and apply a typical linear operator. The result is usually longer or shorter, but it also points somewhere else. The operator has mixed two effects together: stretching and turning. After one application this may be manageable; after a hundred applications, the geometry can become nearly impossible to follow.

But perhaps the operator has a few privileged directions. Is there a nonzero vector that it does not turn at all? Along such a direction, the output would point exactly the same way as the input, or exactly opposite to it. The operator would do nothing there except multiply the vector by a number.

If we could find enough of those directions, the whole transformation would stop looking like a machine that mixes coordinates and start looking like several independent stretching machines. That is the idea behind eigenvectors, eigenvalues, and diagonalization. It is also why these objects appear whenever physics asks for repeated evolution, normal modes, stable axes, or possible measurement outcomes.

Eigenvalues and eigenvectors

Let TT be a linear operator on a vector space. A nonzero vector v\vec v is an eigenvector of TT if

Tv=λvT\vec v = \lambda \vec v

for some scalar λ\lambda. The scalar λ\lambda is the corresponding eigenvalue.

The requirement v0\vec v\neq \vec 0 matters. Since every linear operator sends 0\vec 0 to 0\vec 0, allowing the zero vector would make it an uninformative eigenvector for every possible λ\lambda.

The geometry is immediate. If λ>0\lambda>0, the vector keeps its direction and changes length by a factor λ|\lambda|. If λ<0\lambda<0, it reverses direction and changes length by λ|\lambda|. If λ=0\lambda=0, the operator collapses that eigenvector to the zero vector. In every case, there is no sideways component: the operator does not rotate the eigenvector away from its own line.

This is the linear-algebra version of looking for a normal mode in a mechanical system. In a generic motion, several coordinates are mixed together. In a normal mode, the entire pattern reproduces itself under the dynamics, changing only by an overall factor or phase.

The characteristic equation

The definition tells us what an eigenvector does, but it does not yet tell us how to find one. Begin with

Tv=λv.T\vec v=\lambda\vec v.

The scalar multiplication on the right can be written using the identity operator II:

Tv=λIv.T\vec v=\lambda I\vec v.

Move everything to one side:

(TλI)v=0.(T-\lambda I)\vec v=0.

For most values of λ\lambda, the operator TλIT-\lambda I is invertible. If that were true here, multiplying both sides by (TλI)1(T-\lambda I)^{-1} would force

v=(TλI)10=0,\vec v=(T-\lambda I)^{-1}\vec 0=\vec 0,

which is forbidden. Therefore a nonzero solution can exist only when TλIT-\lambda I is singular. In a chosen basis, this becomes the determinant condition

det(TλI)=0.\det(T-\lambda I)=0.

This is the characteristic equation. The expression

pT(λ)=det(TλI)p_T(\lambda)=\det(T-\lambda I)

is the characteristic polynomial, and its roots are the eigenvalues of TT. For an n×nn\times n matrix, pT(λ)p_T(\lambda) has degree nn, counting multiplicity.

Once an eigenvalue is known, substitute it back into

(TλI)v=0(T-\lambda I)\vec v=0

and solve for the nonzero vectors in the null space. Those vectors are the eigenvectors belonging to that eigenvalue.

A familiar spin calculation

The page on angular momentum and spin introduced the Pauli matrix

σz=(1001).\sigma_z= \begin{pmatrix} 1 & 0\\ 0 & -1 \end{pmatrix}.

There, its special vectors and possible spin outcomes could be read off by inspection. Now apply the general method. Subtract λI\lambda I:

σzλI=(1λ001λ).\sigma_z-\lambda I= \begin{pmatrix} 1-\lambda & 0\\ 0 & -1-\lambda \end{pmatrix}.

The characteristic equation is

det(σzλI)=(1λ)(1λ)=0.\det(\sigma_z-\lambda I) =(1-\lambda)(-1-\lambda)=0.

Equivalently,

λ21=0,\lambda^2-1=0,

so

λ=+1orλ=1.\lambda=+1 \qquad\text{or}\qquad \lambda=-1.

For λ=+1\lambda=+1,

(σzI)v=(0002)(v1v2)=(00),(\sigma_z-I)\vec v= \begin{pmatrix} 0 & 0\\ 0 & -2 \end{pmatrix} \begin{pmatrix} v_1\\ v_2 \end{pmatrix} =\begin{pmatrix} 0\\ 0 \end{pmatrix},

which requires v2=0v_2=0. One normalized eigenvector is

v+=(10).\vec v_+=\begin{pmatrix}1\\0\end{pmatrix}.

For λ=1\lambda=-1,

(σz+I)v=(2000)(v1v2)=(00),(\sigma_z+I)\vec v= \begin{pmatrix} 2 & 0\\ 0 & 0 \end{pmatrix} \begin{pmatrix} v_1\\ v_2 \end{pmatrix} =\begin{pmatrix} 0\\ 0 \end{pmatrix},

which requires v1=0v_1=0. One normalized eigenvector is

v=(01).\vec v_-=\begin{pmatrix}0\\1\end{pmatrix}.

This is the same computation already done on this site by inspection, now derived from the general method.

A 2D shear or stretch transformation shown acting on a grid of vectors, with the two special eigenvector directions highlighted where vectors only stretch or shrink without rotating, versus a generic vector which both rotates and stretches.

The operator turns a generic vector as it stretches it, but vectors lying along an eigenvector direction remain on their original line.

Diagonalization

Suppose an n×nn\times n matrix TT has nn linearly independent eigenvectors

v1,v2,,vn\vec v_1,\vec v_2,\ldots,\vec v_n

with corresponding eigenvalues

λ1,λ2,,λn.\lambda_1,\lambda_2,\ldots,\lambda_n.

Because the eigenvectors are linearly independent, they form a basis. In that basis, the action of TT is especially transparent:

Tvi=λivi.T\vec v_i=\lambda_i\vec v_i.

Each basis vector is sent only to a multiple of itself. Nothing is mixed into the other basis directions. Therefore the matrix of TT in the eigenvector basis is diagonal:

D=(λ1000λ2000λn).D= \begin{pmatrix} \lambda_1 & 0 & \cdots & 0\\ 0 & \lambda_2 & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & \lambda_n \end{pmatrix}.

Let PP be the matrix whose columns are the eigenvectors:

P=(v1v2vn).P=\begin{pmatrix}\vec v_1 & \vec v_2 & \cdots & \vec v_n\end{pmatrix}.

Then

TP=PD,TP=PD,

because the iith column on each side is Tvi=λiviT\vec v_i=\lambda_i\vec v_i. Multiplying on the left by P1P^{-1} gives

P1TP=D,P^{-1}TP=D,

or equivalently,

T=PDP1.T=PDP^{-1}.

This is diagonalization. It is not merely cosmetic. Consider applying TT one hundred times:

T100=(PDP1)100.T^{100}=(PDP^{-1})^{100}.

Every neighboring pair P1PP^{-1}P cancels, leaving

T100=PD100P1,T^{100}=PD^{100}P^{-1},

where

D100=(λ1100000λ2100000λn100).D^{100}= \begin{pmatrix} \lambda_1^{100} & 0 & \cdots & 0\\ 0 & \lambda_2^{100} & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & \lambda_n^{100} \end{pmatrix}.

The same idea handles matrix exponentials, which appear throughout physics in time evolution and exponentials of Hamiltonians. Using the power-series definition,

eT=I+T+T22!+T33!+,e^T=I+T+\frac{T^2}{2!}+\frac{T^3}{3!}+\cdots,

and substituting T=PDP1T=PDP^{-1} gives

eT=PeDP1,e^T=Pe^DP^{-1},

with

eD=(eλ1000eλ2000eλn).e^D= \begin{pmatrix} e^{\lambda_1} & 0 & \cdots & 0\\ 0 & e^{\lambda_2} & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & e^{\lambda_n} \end{pmatrix}.

A difficult coupled calculation has become nn independent scalar calculations. The only catch is important: not every matrix has nn linearly independent eigenvectors. A matrix is diagonalizable precisely when it has enough eigenvectors to form a basis.

Worked example

Find the eigenvalues and normalized eigenvectors of A=(2112)A=\begin{pmatrix}2 & 1\\1 & 2\end{pmatrix}, then construct PP and verify that P1APP^{-1}AP is diagonal. (click to reveal the solution)

Setting up the characteristic equation: subtract λI\lambda I from AA:

AλI=(2λ112λ).A-\lambda I= \begin{pmatrix} 2-\lambda & 1\\ 1 & 2-\lambda \end{pmatrix}.

A nonzero eigenvector exists only if this matrix is singular, so

det(AλI)=0.\det(A-\lambda I)=0.

Expanding the determinant gives

(2λ)(2λ)(1)(1)=0,(2-\lambda)(2-\lambda)-(1)(1)=0,

so

(2λ)21=0.(2-\lambda)^2-1=0.

Expanding and factoring,

λ24λ+3=0,\lambda^2-4\lambda+3=0, (λ1)(λ3)=0.(\lambda-1)(\lambda-3)=0.

Therefore the eigenvalues are

λ1=3,λ2=1.\lambda_1=3, \qquad \lambda_2=1.

Eigenvector for λ1=3\lambda_1=3: solve

(A3I)v=0.(A-3I)\vec v=0.

Writing v=(xy)\vec v=\begin{pmatrix}x\\y\end{pmatrix},

(1111)(xy)=(00).\begin{pmatrix} -1 & 1\\ 1 & -1 \end{pmatrix} \begin{pmatrix} x\\y \end{pmatrix} = \begin{pmatrix} 0\\0 \end{pmatrix}.

The two rows give the same equation:

x+y=0,-x+y=0,

so y=xy=x. Every nonzero multiple of (11)\begin{pmatrix}1\\1\end{pmatrix} is an eigenvector. Its norm is

(11)=12+12=2.\left\|\begin{pmatrix}1\\1\end{pmatrix}\right\| =\sqrt{1^2+1^2}=\sqrt 2.

Thus a normalized eigenvector is

u1=12(11).\vec u_1=\frac{1}{\sqrt 2} \begin{pmatrix} 1\\1 \end{pmatrix}.

Eigenvector for λ2=1\lambda_2=1: solve

(AI)v=0.(A-I)\vec v=0.

Then

(1111)(xy)=(00).\begin{pmatrix} 1 & 1\\ 1 & 1 \end{pmatrix} \begin{pmatrix} x\\y \end{pmatrix} = \begin{pmatrix} 0\\0 \end{pmatrix}.

Both rows give

x+y=0,x+y=0,

so y=xy=-x. Every nonzero multiple of (11)\begin{pmatrix}1\\-1\end{pmatrix} is an eigenvector. Its norm is

(11)=12+(1)2=2.\left\|\begin{pmatrix}1\\-1\end{pmatrix}\right\| =\sqrt{1^2+(-1)^2}=\sqrt 2.

Thus a normalized eigenvector is

u2=12(11).\vec u_2=\frac{1}{\sqrt 2} \begin{pmatrix} 1\\-1 \end{pmatrix}.

Constructing the change-of-basis matrix: place the normalized eigenvectors in columns, in the same order as their eigenvalues:

P=(u1u2)=12(1111).P= \begin{pmatrix} \vert & \vert\\ \vec u_1 & \vec u_2\\ \vert & \vert \end{pmatrix} = \frac{1}{\sqrt 2} \begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix}.

The columns are orthonormal, so PP is an orthogonal matrix and

P1=PT.P^{-1}=P^{\mathsf T}.

Here PP is also symmetric, so

P1=PT=P=12(1111).P^{-1}=P^{\mathsf T}=P =\frac{1}{\sqrt 2} \begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix}.

Now calculate APAP first:

AP=(2112)12(1111)=12(3131).AP= \begin{pmatrix} 2 & 1\\ 1 & 2 \end{pmatrix} \frac{1}{\sqrt 2} \begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix} = \frac{1}{\sqrt 2} \begin{pmatrix} 3 & 1\\ 3 & -1 \end{pmatrix}.

Then

P1AP=12(1111)12(3131).P^{-1}AP = \frac{1}{\sqrt 2} \begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix} \frac{1}{\sqrt 2} \begin{pmatrix} 3 & 1\\ 3 & -1 \end{pmatrix}.

Multiplying the matrices,

P1AP=12(6002)=(3001).P^{-1}AP = \frac{1}{2} \begin{pmatrix} 6 & 0\\ 0 & 2 \end{pmatrix} = \begin{pmatrix} 3 & 0\\ 0 & 1 \end{pmatrix}.

The diagonal entries are exactly the eigenvalues, in the same order as the eigenvectors used as the columns of PP. In the original basis, AA mixes the two coordinates. In the eigenvector basis, it simply stretches the u1\vec u_1 direction by 33 and leaves the u2\vec u_2 direction unchanged.

Where this leads

Eigenvalues are the mathematical machinery underneath measurement in quantum mechanics. The possible outcomes of measuring an observable are its eigenvalues, and the states left behind after measurement are its eigenvectors. That is precisely what the angular momentum and spin calculation did for spin before giving the procedure its general linear-algebra name.

The same method returns constantly. The eigenvectors of a coupled oscillator system are its normal modes. The eigenvectors of an inertia tensor identify the principal axes of rotation. Later in this track, vectors will give way to functions, matrices to differential operators, and eigenvectors to eigenfunctions, but the central question will remain unchanged: which states does the operator transform only by multiplication?