Math Core

Lesson 5.1 · Eigenvalues and Eigenvectors

Eigenvectors and eigenvalues

A matrix AA usually knocks a vector off its line: it rotates it, shears it, and stretches it all at once. But for many matrices a few special directions come through untouched, and along those directions AA does nothing more complicated than multiply by a number. Those directions, and the numbers that go with them, explain the long-run behavior of dynamical systems, the shape of quadratic forms, the vibration modes of structures, and much more.

Vectors that stay on their line

Take

A=[2112],u=[10],v=[11].A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}, \qquad \mathbf{u} = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \qquad \mathbf{v} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}.

Then Au=(2,1)A\mathbf{u} = (2, 1), which points in a new direction. But Av=(3,3)=3vA\mathbf{v} = (3, 3) = 3\mathbf{v}: the image of v\mathbf{v} lies on the same line through the origin as v\mathbf{v}, just three times as long. The same is true of every multiple of v\mathbf{v}, so the whole line y=xy = x is simply stretched by a factor of 33. You can check that the line y=−xy = -x is also special: A(1,−1)=(1,−1)A(1, -1) = (1, -1), so vectors on that line are left exactly where they are.

Along the eigen-direction y = x, A stretches v = (1, 1) to Av = (3, 3) on the same line. The vector u = (1, 0) is not an eigenvector: Au = (2, 1) leaves its line.Open in grapher →

Definition

Eigenvector and eigenvalue

Let AA be an n×nn \times n matrix. A nonzero vector x\mathbf{x} is an eigenvector of AA if

Ax=λxA\mathbf{x} = \lambda \mathbf{x}

for some scalar λ\lambda. The scalar λ\lambda is called an eigenvalue of AA, and x\mathbf{x} is an eigenvector corresponding to λ\lambda.

The requirement x≠0\mathbf{x} \ne \mathbf{0} matters. Since A0=λ0A\mathbf{0} = \lambda\mathbf{0} for every λ\lambda, allowing the zero vector would make every number an eigenvalue. The eigenvalue itself, however, may be 00: that happens exactly when Ax=0A\mathbf{x} = \mathbf{0} has a nontrivial solution.

Only square matrices have eigenvalues, because AxA\mathbf{x} and x\mathbf{x} must live in the same space to be compared.

Testing a vector

To decide whether a given x\mathbf{x} is an eigenvector, multiply. If AxA\mathbf{x} is a scalar multiple of x\mathbf{x}, it is, and the scalar is the eigenvalue. If not, it isn't.

Worked example: Checking candidates

Let A=[1652]A = \begin{bmatrix} 1 & 6 \\ 5 & 2 \end{bmatrix}, u=[6−5]\mathbf{u} = \begin{bmatrix} 6 \\ -5 \end{bmatrix} and w=[3−2]\mathbf{w} = \begin{bmatrix} 3 \\ -2 \end{bmatrix}. Are u\mathbf{u} and w\mathbf{w} eigenvectors?

Au=[6−3030−10]=[−2420]=−4[6−5],Aw=[3−1215−4]=[−911].A\mathbf{u} = \begin{bmatrix} 6 - 30 \\ 30 - 10 \end{bmatrix} = \begin{bmatrix} -24 \\ 20 \end{bmatrix} = -4\begin{bmatrix} 6 \\ -5 \end{bmatrix}, \qquad A\mathbf{w} = \begin{bmatrix} 3 - 12 \\ 15 - 4 \end{bmatrix} = \begin{bmatrix} -9 \\ 11 \end{bmatrix}.

So u\mathbf{u} is an eigenvector with eigenvalue −4-4. For w\mathbf{w}, the ratios −9/3=−3-9/3 = -3 and 11/(−2)11/(-2) disagree, so AwA\mathbf{w} is not a multiple of w\mathbf{w} and w\mathbf{w} is not an eigenvector.

Testing a number

Deciding whether a number λ\lambda is an eigenvalue turns into a question you already know how to answer. Rewrite Ax=λxA\mathbf{x} = \lambda\mathbf{x} as Ax−λIx=0A\mathbf{x} - \lambda I\mathbf{x} = \mathbf{0}, that is,

(A−λI)x=0.(A - \lambda I)\mathbf{x} = \mathbf{0}.

(You need the identity matrix II here; A−λA - \lambda makes no sense.) So λ\lambda is an eigenvalue exactly when this homogeneous system has a nontrivial solution, which happens exactly when A−λIA - \lambda I is not invertible. The eigenvectors are the nonzero solutions.

Eigenspaces

λ\lambda is an eigenvalue of AA if and only if (A−λI)x=0(A - \lambda I)\mathbf{x} = \mathbf{0} has a nontrivial solution. The set of all solutions,

Nul⁡(A−λI),\operatorname{Nul}(A - \lambda I),

is a subspace of Rn\mathbb{R}^n called the eigenspace of AA corresponding to λ\lambda. It consists of the zero vector together with all eigenvectors for λ\lambda.

Because an eigenspace is a null space, you find a basis for it by row reducing A−λIA - \lambda I and writing the solution in parametric vector form, exactly as in earlier units.

Worked example: Is 7 an eigenvalue?

With A=[1652]A = \begin{bmatrix} 1 & 6 \\ 5 & 2 \end{bmatrix} again, is 77 an eigenvalue?

A−7I=[−665−5]∼[1−100].A - 7I = \begin{bmatrix} -6 & 6 \\ 5 & -5 \end{bmatrix} \sim \begin{bmatrix} 1 & -1 \\ 0 & 0 \end{bmatrix}.

There is a free variable, so nontrivial solutions exist and 77 is an eigenvalue. The solutions satisfy x1=x2x_1 = x_2, so the eigenspace is spanned by (1,1)(1, 1). Check: A(1,1)=(7,7)A(1, 1) = (7, 7).

Worked example: A two-dimensional eigenspace

Let A=[4−121221−15]A = \begin{bmatrix} 4 & -1 & 2 \\ 1 & 2 & 2 \\ 1 & -1 & 5 \end{bmatrix}. Given that 33 is an eigenvalue, find a basis for its eigenspace.

A−3I=[1−121−121−12]∼[1−12000000].A - 3I = \begin{bmatrix} 1 & -1 & 2 \\ 1 & -1 & 2 \\ 1 & -1 & 2 \end{bmatrix} \sim \begin{bmatrix} 1 & -1 & 2 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}.

The single equation x1−x2+2x3=0x_1 - x_2 + 2x_3 = 0 leaves x2x_2 and x3x_3 free. Writing x1=x2−2x3x_1 = x_2 - 2x_3,

x=x2[110]+x3[−201].\mathbf{x} = x_2\begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix} + x_3\begin{bmatrix} -2 \\ 0 \\ 1 \end{bmatrix}.

So {(1,1,0), (−2,0,1)}\{(1, 1, 0),\ (-2, 0, 1)\} is a basis, and the eigenspace is a plane through the origin. Every vector in that plane is simply tripled by AA.

Common mistake

Row reducing AA itself tells you nothing about eigenvalues: row operations change them. Always row reduce A−λIA - \lambda I, for one specific λ\lambda at a time. And remember that an eigenvector must be nonzero, even though the eigenspace contains 0\mathbf{0}.

Two quick facts

Triangular matrices. If AA is upper or lower triangular, then A−λIA - \lambda I is triangular with diagonal entries aii−λa_{ii} - \lambda. A triangular matrix fails to be invertible exactly when some diagonal entry is zero, so:

Eigenvalues you can read off

The eigenvalues of a triangular matrix are the entries on its main diagonal. In addition, 00 is an eigenvalue of AA if and only if AA is not invertible.

Worked example: Reading eigenvalues

B=[5002−10840]B = \begin{bmatrix} 5 & 0 & 0 \\ 2 & -1 & 0 \\ 8 & 4 & 0 \end{bmatrix} is lower triangular, so its eigenvalues are 55, −1-1 and 00. Because 00 is an eigenvalue, BB is not invertible, which you can confirm from its zero third column.

Independence. Eigenvectors that belong to different eigenvalues can never be linearly dependent. If v1,…,vr\mathbf{v}_1, \dots, \mathbf{v}_r are eigenvectors for distinct eigenvalues λ1,…,λr\lambda_1, \dots, \lambda_r, then {v1,…,vr}\{\mathbf{v}_1, \dots, \mathbf{v}_r\} is linearly independent. The idea of the proof: take a shortest dependence relation c1v1+⋯+cpvp=0c_1\mathbf{v}_1 + \cdots + c_p\mathbf{v}_p = \mathbf{0} among them. Multiplying by AA and, separately, by λp\lambda_p and subtracting kills the vp\mathbf{v}_p term and leaves a shorter relation with coefficients ci(λi−λp)c_i(\lambda_i - \lambda_p), which are not all zero because the eigenvalues are distinct. That contradicts minimality. This fact is the engine behind diagonalization later in the unit.

Tip

If Ax=λxA\mathbf{x} = \lambda\mathbf{x}, then A2x=A(λx)=λ2xA^2\mathbf{x} = A(\lambda\mathbf{x}) = \lambda^2\mathbf{x}, and in general Akx=λkxA^k\mathbf{x} = \lambda^k\mathbf{x}. For invertible AA, A−1x=λ−1xA^{-1}\mathbf{x} = \lambda^{-1}\mathbf{x}. Eigenvectors turn matrix algebra into ordinary arithmetic on numbers.

Practice

Practice 1

Let A=[4−211]A = \begin{bmatrix} 4 & -2 \\ 1 & 1 \end{bmatrix} and v=[21]\mathbf{v} = \begin{bmatrix} 2 \\ 1 \end{bmatrix}. Given that v\mathbf{v} is an eigenvector of AA, find its eigenvalue.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Which vector is an eigenvector of A=[4−211]A = \begin{bmatrix} 4 & -2 \\ 1 & 1 \end{bmatrix}?

Practice 3

Find all eigenvalues of [25−10−34007]\begin{bmatrix} 2 & 5 & -1 \\ 0 & -3 & 4 \\ 0 & 0 & 7 \end{bmatrix}.

Separate answers with commas, e.g. 2, -5

Practice 4

A=[2341]A = \begin{bmatrix} 2 & 3 \\ 4 & 1 \end{bmatrix} has eigenvalue λ=−2\lambda = -2. An eigenvector for λ=−2\lambda = -2 has the form (3,k)(3, k). Find kk.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find the value of cc for which 44 is an eigenvalue of A=[1c23]A = \begin{bmatrix} 1 & c \\ 2 & 3 \end{bmatrix}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Find the dimension of the eigenspace of A=[301030003]A = \begin{bmatrix} 3 & 0 & 1 \\ 0 & 3 & 0 \\ 0 & 0 & 3 \end{bmatrix} corresponding to λ=3\lambda = 3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

A=[1224]A = \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} is not invertible, so 00 is an eigenvalue. Find the eigenvector for λ=0\lambda = 0 whose first entry is 22.

Enter a point like (2, -3)

Practice 8

Suppose Ax=4xA\mathbf{x} = 4\mathbf{x} for some nonzero x\mathbf{x}. Then x\mathbf{x} is also an eigenvector of B=A2−3A+IB = A^2 - 3A + I. Find the corresponding eigenvalue of BB.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.