1. Home
  2. Explore
  3. Mathematics
  4. Eigenvalues and Eigenvectors

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors

The basic idea

For a square matrix AAA, an eigenvector is a nonzero vector whose direction remains unchanged when AAA acts on it. The matrix may stretch, shrink, reverse, or collapse the vector, but the result remains a scalar multiple of the original vector:

Ax=λx,x≠0.A\mathbf{x}=\lambda\mathbf{x}, \qquad \mathbf{x}\ne\mathbf{0}.Ax=λx,x=0.

Here:

  • AAA is an n×nn\times nn×n matrix.

  • x\mathbf{x}x is an eigenvector of AAA.

  • λ\lambdaλ is the corresponding eigenvalue, a scalar.

The eigenvalue describes how the matrix scales the eigenvector. A positive eigenvalue preserves its direction, a negative eigenvalue reverses its direction, and an eigenvalue of zero maps it to the zero vector.

For example, let

A=[5555],x=[11].A=\begin{bmatrix}5&5\\5&5\end{bmatrix}, \qquad \mathbf{x}=\begin{bmatrix}1\\1\end{bmatrix}.A=[55​55​],x=[11​].

Then

Ax=[5555][11]=[1010]=10[11].A\mathbf{x} = \begin{bmatrix}5&5\\5&5\end{bmatrix} \begin{bmatrix}1\\1\end{bmatrix} = \begin{bmatrix}10\\10\end{bmatrix} = 10\begin{bmatrix}1\\1\end{bmatrix}.Ax=[55​55​][11​]=[1010​]=10[11​].

Thus, x\mathbf{x}x is an eigenvector and its eigenvalue is λ=10\lambda=10λ=10. The vector is stretched by a factor of 101010 without changing direction.


Finding eigenvalues

Begin with the eigenvalue equation:

Ax=λx.A\mathbf{x}=\lambda\mathbf{x}.Ax=λx.

Move the right-hand side to the left and factor out x\mathbf{x}x:

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

where III is the identity matrix of the same size as AAA. The identity matrix is needed because AAA is a matrix while λ\lambdaλ is a scalar: multiplying λ\lambdaλ by III gives a matrix that can be subtracted from AAA.

For an n×nn\times nn×n matrix, this equation uses the n×nn\times nn×n identity matrix InI_nIn​.

Why the determinant must be zero

The zero vector is always a solution to (A−λI)x=0(A-\lambda I)\mathbf{x}=\mathbf{0}(A−λI)x=0. This is called the trivial solution. An eigenvector, however, must be nonzero, so the system must also have a nontrivial solution.

A homogeneous system has a nontrivial solution precisely when its coefficient matrix is singular, meaning its determinant is zero. Therefore, eigenvalues satisfy the characteristic equation

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

This determinant equation is also called the characteristic equation. Solving it gives the eigenvalues of AAA.

The characteristic polynomial has degree nnn for an n×nn\times nn×n matrix. Thus, a 2×22\times22×2 matrix produces a quadratic polynomial, and a 3×33\times33×3 matrix produces a cubic polynomial.

Formulas for small matrices

For a 2×22\times22×2 matrix, the characteristic equation can be written

λ2−tr⁡(A)λ+det⁡(A)=0,\lambda^2-\operatorname{tr}(A)\lambda+\det(A)=0,λ2−tr(A)λ+det(A)=0,

where tr⁡(A)\operatorname{tr}(A)tr(A), the trace, is the sum of the main-diagonal entries.

For a 3×33\times33×3 matrix, it can be written

λ3−tr⁡(A)λ2+Sλ−det⁡(A)=0,\lambda^3-\operatorname{tr}(A)\lambda^2 +S\lambda-\det(A)=0,λ3−tr(A)λ2+Sλ−det(A)=0,

where SSS is the sum of the three principal 2×22\times22×2 minors. A principal minor is the determinant of a submatrix formed by keeping the same set of row and column indices.


Finding eigenvectors

Once an eigenvalue λ\lambdaλ is known, substitute it into

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

Then solve the resulting homogeneous system, commonly using row operations or row-echelon form.

A system with dependent rows may have one or more free variables. Assign a parameter, such as ttt, to a free variable and solve for the remaining entries. The resulting nonzero vector is an eigenvector. Any nonzero scalar multiple of an eigenvector is also an eigenvector for the same eigenvalue.


Example 1: A matrix with equal rows and columns

Consider

A=[5555].A=\begin{bmatrix}5&5\\5&5\end{bmatrix}.A=[55​55​].

Eigenvalues

The characteristic equation is

det⁡(A−λI2)=det⁡[5−λ555−λ]=0.\det(A-\lambda I_2) = \det\begin{bmatrix}5-\lambda&5\\5&5-\lambda\end{bmatrix} =0.det(A−λI2​)=det[5−λ5​55−λ​]=0.

Expanding the determinant gives

(5−λ)2−25=0,(5-\lambda)^2-25=0,(5−λ)2−25=0,

which simplifies to

λ2−10λ=0.\lambda^2-10\lambda=0.λ2−10λ=0.

Thus,

λ(λ−10)=0,\lambda(\lambda-10)=0,λ(λ−10)=0,

so the eigenvalues are λ=0\lambda=0λ=0 and λ=10\lambda=10λ=10.

The trace-and-determinant formula gives the same result: the trace is 101010, and the determinant is 000, so the characteristic equation is λ2−10λ=0\lambda^2-10\lambda=0λ2−10λ=0.

Eigenvector for λ=0\lambda=0λ=0

Substitute λ=0\lambda=0λ=0 into (A−λI)x=0(A-\lambda I)\mathbf{x}=\mathbf{0}(A−λI)x=0:

[5555][x1x2]=[00].\begin{bmatrix}5&5\\5&5\end{bmatrix} \begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}.[55​55​][x1​x2​​]=[00​].

The two rows give the same equation:

5x1+5x2=0,5x_1+5x_2=0,5x1​+5x2​=0,

so x1=−x2x_1=-x_2x1​=−x2​. Choosing x1=1x_1=1x1​=1 gives x2=−1x_2=-1x2​=−1. One eigenvector is

v1=[1−1].\mathbf{v}_1=\begin{bmatrix}1\\-1\end{bmatrix}.v1​=[1−1​].

Indeed, this vector is mapped to the zero vector.

Eigenvector for λ=10\lambda=10λ=10

Substitute λ=10\lambda=10λ=10:

[−555−5][x1x2]=[00].\begin{bmatrix}-5&5\\5&-5\end{bmatrix} \begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}.[−55​5−5​][x1​x2​​]=[00​].

The rows are dependent, and the equation gives x1=x2x_1=x_2x1​=x2​. Choosing both entries to be 111 gives

v2=[11].\mathbf{v}_2=\begin{bmatrix}1\\1\end{bmatrix}.v2​=[11​].

The matrix therefore has eigenvalue–eigenvector pairs (0,[1−1])(0,\begin{bmatrix}1\\-1\end{bmatrix})(0,[1−1​]) and (10,[11])(10,\begin{bmatrix}1\\1\end{bmatrix})(10,[11​]).


Example 2: A symmetric 2×22\times22×2 matrix

Consider

B=[2332].B=\begin{bmatrix}2&3\\3&2\end{bmatrix}.B=[23​32​].

Eigenvalues

The characteristic equation is

det⁡(B−λI2)=det⁡[2−λ332−λ]=0.\det(B-\lambda I_2) = \det\begin{bmatrix}2-\lambda&3\\3&2-\lambda\end{bmatrix} =0.det(B−λI2​)=det[2−λ3​32−λ​]=0.

Expanding gives

(2−λ)2−9=0,(2-\lambda)^2-9=0,(2−λ)2−9=0,

or, using the trace and determinant, the equivalent quadratic

λ2−4λ−5=0.\lambda^2-4\lambda-5=0.λ2−4λ−5=0.

Factoring,

(λ−5)(λ+1)=0.(\lambda-5)(\lambda+1)=0.(λ−5)(λ+1)=0.

The eigenvalues are λ=−1\lambda=-1λ=−1 and λ=5\lambda=5λ=5.

Eigenvector for λ=−1\lambda=-1λ=−1

Substitute λ=−1\lambda=-1λ=−1:

[3333][x1x2]=[00].\begin{bmatrix}3&3\\3&3\end{bmatrix} \begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}.[33​33​][x1​x2​​]=[00​].

The equation is x1+x2=0x_1+x_2=0x1​+x2​=0, so one eigenvector is

v1=[1−1].\mathbf{v}_1=\begin{bmatrix}1\\-1\end{bmatrix}.v1​=[1−1​].

Eigenvector for λ=5\lambda=5λ=5

Substitute λ=5\lambda=5λ=5:

[−333−3][x1x2]=[00].\begin{bmatrix}-3&3\\3&-3\end{bmatrix} \begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}.[−33​3−3​][x1​x2​​]=[00​].

The equation is x1=x2x_1=x_2x1​=x2​, so one eigenvector is

v2=[11].\mathbf{v}_2=\begin{bmatrix}1\\1\end{bmatrix}.v2​=[11​].

Example 3: A lower-triangular 3×33\times33×3 matrix

Consider the lower-triangular matrix

C=[100340872].C=\begin{bmatrix} 1&0&0\\ 3&4&0\\ 8&7&2 \end{bmatrix}.C=​138​047​002​​.

For a triangular matrix, the eigenvalues are its main-diagonal entries. Here they are 111, 444, and 222. This also follows from the characteristic determinant, which factors as

det⁡(C−λI3)=(1−λ)(4−λ)(2−λ).\det(C-\lambda I_3)=(1-\lambda)(4-\lambda)(2-\lambda).det(C−λI3​)=(1−λ)(4−λ)(2−λ).

Therefore, the eigenvalues are λ=1\lambda=1λ=1, λ=2\lambda=2λ=2, and λ=4\lambda=4λ=4.

Eigenvector for λ=1\lambda=1λ=1

Solve

(C−I3)x=0,C−I3=[000330871].(C-I_3)\mathbf{x}=\mathbf{0}, \qquad C-I_3= \begin{bmatrix} 0&0&0\\ 3&3&0\\ 8&7&1 \end{bmatrix}.(C−I3​)x=0,C−I3​=​038​037​001​​.

The equations are

3x1+3x2=0,8x1+7x2+x3=0.3x_1+3x_2=0, \qquad 8x_1+7x_2+x_3=0.3x1​+3x2​=0,8x1​+7x2​+x3​=0.

The first gives x1=−x2x_1=-x_2x1​=−x2​. Substituting into the second gives x3=x2x_3=x_2x3​=x2​. Taking x2=1x_2=1x2​=1 yields

v1=[−111].\mathbf{v}_1=\begin{bmatrix}-1\\1\\1\end{bmatrix}.v1​=​−111​​.

Eigenvector for λ=2\lambda=2λ=2

Solve

(C−2I3)x=0,C−2I3=[−100320870].(C-2I_3)\mathbf{x}=\mathbf{0}, \qquad C-2I_3= \begin{bmatrix} -1&0&0\\ 3&2&0\\ 8&7&0 \end{bmatrix}.(C−2I3​)x=0,C−2I3​=​−138​027​000​​.

The first equation gives x1=0x_1=0x1​=0, and the second then gives x2=0x_2=0x2​=0. The third entry is free. Taking x3=1x_3=1x3​=1 yields

v2=[001].\mathbf{v}_2=\begin{bmatrix}0\\0\\1\end{bmatrix}.v2​=​001​​.

Eigenvector for λ=4\lambda=4λ=4

Solve

(C−4I3)x=0,C−4I3=[−30030087−2].(C-4I_3)\mathbf{x}=\mathbf{0}, \qquad C-4I_3= \begin{bmatrix} -3&0&0\\ 3&0&0\\ 8&7&-2 \end{bmatrix}.(C−4I3​)x=0,C−4I3​=​−338​007​00−2​​.

The first equation gives x1=0x_1=0x1​=0. The last equation becomes 7x2−2x3=07x_2-2x_3=07x2​−2x3​=0. Choosing x2=2x_2=2x2​=2 gives x3=7x_3=7x3​=7, so one eigenvector is

v3=[027].\mathbf{v}_3=\begin{bmatrix}0\\2\\7\end{bmatrix}.v3​=​027​​.

Key points to remember

  • An eigenvector must be nonzero and satisfy Ax=λxA\mathbf{x}=\lambda\mathbf{x}Ax=λx.

  • Eigenvalues are found by solving det⁡(A−λI)=0\det(A-\lambda I)=0det(A−λI)=0.

  • The identity matrix must have the same dimensions as AAA.

  • After finding an eigenvalue, substitute it into (A−λI)x=0(A-\lambda I)\mathbf{x}=\mathbf{0}(A−λI)x=0 and solve for a nonzero vector.

  • A free variable in that system can be assigned a convenient value to produce an eigenvector.

  • Any nonzero scalar multiple of an eigenvector is also an eigenvector for the same eigenvalue.

  • For a triangular matrix, the eigenvalues are the entries on its main diagonal.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent