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, Eigenvectors, Eigenspaces, and Diagonalization

1. Eigenvalues and Eigenvectors

A matrix transformation can change a vector’s length, direction, or both. Eigenvectors are the nonzero vectors whose direction is unchanged by a matrix transformation; the transformation only scales them.

For a square matrix AAA, a nonzero vector xxx is an eigenvector if multiplying by AAA produces a scalar multiple of xxx:

Ax=λxAx = \lambda xAx=λx

Here, λ\lambdaλ is a scalar called the eigenvalue corresponding to xxx. The scalar may be positive, negative, or zero:

  • If λ>1\lambda > 1λ>1, the vector is stretched without changing direction.

  • If 0<λ<10 < \lambda < 10<λ<1, the vector is shortened without changing direction.

  • If λ<0\lambda < 0λ<0, the vector is scaled and reversed in direction.

  • If λ=0\lambda = 0λ=0, the vector is mapped to the zero vector.

The zero vector is not an eigenvector, because eigenvectors must be nonzero. However, the zero vector will be included in an eigenspace.

A nonzero vector xxx is an eigenvector of AAA with eigenvalue λ\lambdaλ exactly when Ax=λxAx=\lambda xAx=λx.

Example: Comparing a vector with its image

Consider

A=[1120]A = \begin{bmatrix} 1 & 1 \\ 2 & 0 \end{bmatrix}A=[12​10​]

and the vectors

x1=[11],x2=[1−1],x3=[−12].x_1 = \begin{bmatrix} 1\\ 1 \end{bmatrix}, \qquad x_2 = \begin{bmatrix} 1\\ -1 \end{bmatrix}, \qquad x_3 = \begin{bmatrix} -1\\ 2 \end{bmatrix}.x1​=[11​],x2​=[1−1​],x3​=[−12​].

Their images under AAA are

Ax1=[22]=2x1,Ax2=[02],Ax3=[1−2]=−x3.Ax_1 = \begin{bmatrix} 2\\ 2 \end{bmatrix} = 2x_1, \qquad Ax_2 = \begin{bmatrix} 0\\ 2 \end{bmatrix}, \qquad Ax_3 = \begin{bmatrix} 1\\ -2 \end{bmatrix} = -x_3.Ax1​=[22​]=2x1​,Ax2​=[02​],Ax3​=[1−2​]=−x3​.

Therefore:

  • x1x_1x1​ is an eigenvector with eigenvalue 222: it is scaled by 222 without changing direction.

  • x2x_2x2​ is not an eigenvector: Ax2Ax_2Ax2​ is not a scalar multiple of x2x_2x2​.

  • x3x_3x3​ is an eigenvector with eigenvalue −1-1−1: its length is unchanged, but its direction is reversed.

Testing whether a vector is an eigenvector

To test a proposed vector xxx:

  1. Compute AxAxAx.

  2. Check whether AxAxAx is a scalar multiple of xxx.

  3. If Ax=λxAx=\lambda xAx=λx for some scalar λ\lambdaλ, then xxx is an eigenvector and λ\lambdaλ is its eigenvalue.

  4. If no such scalar exists, then xxx is not an eigenvector.

For instance, if x=[12]x=\begin{bmatrix}1\\2\end{bmatrix}x=[12​] and the product is Ax=[36]Ax=\begin{bmatrix}3\\6\end{bmatrix}Ax=[36​], then Ax=3xAx=3xAx=3x. Thus xxx is an eigenvector with eigenvalue 333.


2. Finding Eigenvalues with the Characteristic Equation

Starting from the eigenvector equation,

Ax=λx,Ax=\lambda x,Ax=λx,

move all terms to one side and factor out the vector:

Ax−λx=0⟹(A−λI)x=0.Ax-\lambda x=0 \quad\Longrightarrow\quad (A-\lambda I)x=0.Ax−λx=0⟹(A−λI)x=0.

Here, III is the identity matrix of the same size as AAA. Since an eigenvector must be nonzero, this homogeneous system must have a nontrivial solution. A square matrix has a nontrivial null space exactly when its determinant is zero. Therefore, eigenvalues satisfy

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

This is the characteristic equation of AAA. The expression

det⁡(A−λI)\det(A-\lambda I)det(A−λI)

is called the characteristic polynomial.

Procedure for finding eigenvalues

  1. Form A−λIA-\lambda IA−λI by subtracting λ\lambdaλ from each diagonal entry of AAA.

  2. Compute det⁡(A−λI)\det(A-\lambda I)det(A−λI).

  3. Set the determinant equal to zero.

  4. Solve for λ\lambdaλ.

Example

Let

A=[380−1].A = \begin{bmatrix} 3 & 8 \\ 0 & -1 \end{bmatrix}.A=[30​8−1​].

Then

A−λI=[3−λ80−1−λ].A-\lambda I = \begin{bmatrix} 3-\lambda & 8 \\ 0 & -1-\lambda \end{bmatrix}.A−λI=[3−λ0​8−1−λ​].

Its determinant is

det⁡(A−λI)=(3−λ)(−1−λ)=λ2−2λ−3.\det(A-\lambda I) = (3-\lambda)(-1-\lambda) = \lambda^2-2\lambda-3.det(A−λI)=(3−λ)(−1−λ)=λ2−2λ−3.

Thus the characteristic polynomial is λ2−2λ−3\lambda^2-2\lambda-3λ2−2λ−3, and the characteristic equation is

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

Factoring gives

(λ−3)(λ+1)=0,(\lambda-3)(\lambda+1)=0,(λ−3)(λ+1)=0,

so the eigenvalues are

λ=3andλ=−1.\lambda=3 \qquad\text{and}\qquad \lambda=-1.λ=3andλ=−1.

3. Eigenspaces and Bases for Eigenspaces

An eigenspace is closely related to a null space. For a fixed eigenvalue λ\lambdaλ, the equation

Ax=λxAx=\lambda xAx=λx

can be rewritten as

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

The eigenspace corresponding to λ\lambdaλ is the set of all solutions to this equation:

Eλ={x:(A−λI)x=0}.E_\lambda = \{x : (A-\lambda I)x=0\}.Eλ​={x:(A−λI)x=0}.

Equivalently, the eigenspace is the null space of A−λIA-\lambda IA−λI.

An eigenspace contains:

  • the zero vector, as every null space does;

  • every eigenvector associated with λ\lambdaλ.

The zero vector belongs to the eigenspace but is not itself an eigenvector.

To find eigenvectors for a known eigenvalue λ\lambdaλ, solve (A−λI)x=0(A-\lambda I)x=0(A−λI)x=0. Every nonzero solution is an eigenvector, and a basis for the solution space is a basis for the eigenspace.

Procedure for finding an eigenspace

  1. Substitute the eigenvalue λ\lambdaλ into A−λIA-\lambda IA−λI.

  2. Row-reduce the augmented matrix (A−λI∣0)(A-\lambda I\mid 0)(A−λI∣0) to reduced row-echelon form.

  3. Identify pivot and free variables.

  4. Express the solution set using parameters.

  5. Extract a basis for the solution space. Any nonzero vector in the eigenspace is an eigenvector for λ\lambdaλ.

Example using the preceding matrix

For

A=[380−1],A = \begin{bmatrix} 3 & 8 \\ 0 & -1 \end{bmatrix},A=[30​8−1​],

the eigenvalues are 333 and −1-1−1.

For λ=3\lambda=3λ=3,

A−3I=[080−4].A-3I = \begin{bmatrix} 0 & 8 \\ 0 & -4 \end{bmatrix}.A−3I=[00​8−4​].

The system (A−3I)x=0(A-3I)x=0(A−3I)x=0 requires x2=0x_2=0x2​=0, while x1x_1x1​ is free. Thus

E3={[t0]:t∈R}=span⁡{[10]}.E_3 = \left\{ \begin{bmatrix} t\\ 0 \end{bmatrix} : t\in\mathbb{R} \right\} = \operatorname{span} \left\{ \begin{bmatrix} 1\\ 0 \end{bmatrix} \right\}.E3​={[t0​]:t∈R}=span{[10​]}.

A basis for this eigenspace is {[10]}\left\{\begin{bmatrix}1\\0\end{bmatrix}\right\}{[10​]}.

For λ=−1\lambda=-1λ=−1,

A−(−1)I=A+I=[4800].A-(-1)I=A+I= \begin{bmatrix} 4 & 8 \\ 0 & 0 \end{bmatrix}.A−(−1)I=A+I=[40​80​].

The equation 4x1+8x2=04x_1+8x_2=04x1​+8x2​=0 gives x1=−2x2x_1=-2x_2x1​=−2x2​. Taking x2=1x_2=1x2​=1 produces an eigenvector [−21]\begin{bmatrix}-2\\1\end{bmatrix}[−21​], so

E−1=span⁡{[−21]}.E_{-1} = \operatorname{span} \left\{ \begin{bmatrix} -2\\ 1 \end{bmatrix} \right\}.E−1​=span{[−21​]}.

The eigenvectors for either eigenvalue are all nonzero scalar multiples of the corresponding basis vector.


4. Similar Matrices

Two n×nn\times nn×n matrices AAA and BBB are similar if there is an invertible matrix PPP such that

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

Equivalently,

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

The matrix PPP is called a similarity matrix or a change-of-basis matrix. Similarity expresses the same linear transformation using different coordinate systems. In particular, the matrix PPP translates between those coordinate descriptions.

Similar matrices share important properties. For example, they have the same determinant and the same eigenvalues. Thus, if two matrices have different determinants, they cannot be similar.

The converse does not hold: having the same determinant does not guarantee that two matrices are similar. A shared property can be used to rule out similarity when it differs, but matching on that property alone is not enough to establish similarity.

Using determinants to test whether matrices are similar

If a calculation gives

det⁡(A)=18anddet⁡(B)=14,\det(A)=18 \qquad\text{and}\qquad \det(B)=14,det(A)=18anddet(B)=14,

then AAA and BBB are not similar, because similar matrices must have equal determinants.


5. Diagonalization

A matrix is diagonalizable if it is similar to a diagonal matrix. That is, an n×nn\times nn×n matrix AAA is diagonalizable if there is an invertible matrix PPP and a diagonal matrix DDD such that

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

Equivalently,

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

Diagonalization can simplify the analysis of a linear transformation and make powers of a matrix easier to compute. If A=PDP−1A=PDP^{-1}A=PDP−1, then, for positive integer kkk,

Ak=PDkP−1.A^k=PD^kP^{-1}.Ak=PDkP−1.

Powers of a diagonal matrix are especially straightforward: each diagonal entry is raised to the power kkk.

Why the columns of PPP are eigenvectors

Suppose PPP has columns v1,v2,…,vnv_1,v_2,\ldots,v_nv1​,v2​,…,vn​, and let

D=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn].D = \begin{bmatrix} \lambda_1 & 0 & \cdots & 0\\ 0 & \lambda_2 & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & \lambda_n \end{bmatrix}.D=​λ1​0⋮0​0λ2​⋮0​⋯⋯⋱⋯​00⋮λn​​​.

From A=PDP−1A=PDP^{-1}A=PDP−1, multiplying on the right by PPP gives

AP=PD.AP=PD.AP=PD.

The left-hand side has columns Av1,Av2,…,AvnAv_1,Av_2,\ldots,Av_nAv1​,Av2​,…,Avn​. The right-hand side has columns λ1v1,λ2v2,…,λnvn\lambda_1v_1,\lambda_2v_2,\ldots,\lambda_nv_nλ1​v1​,λ2​v2​,…,λn​vn​. Equating corresponding columns gives

Avi=λivifor i=1,…,n.Av_i=\lambda_i v_i \qquad\text{for }i=1,\ldots,n.Avi​=λi​vi​for i=1,…,n.

Therefore, each column of PPP is an eigenvector of AAA, and the corresponding diagonal entry of DDD is that eigenvector’s eigenvalue.

To diagonalize a matrix, place linearly independent eigenvectors in the columns of PPP and put their corresponding eigenvalues on the diagonal of $D` in the same order.

When is a matrix diagonalizable?

An n×nn\times nn×n matrix is diagonalizable if it has nnn linearly independent eigenvectors. A useful sufficient condition is that it has nnn distinct eigenvalues: eigenvectors corresponding to distinct eigenvalues are linearly independent.

When eigenvalues are repeated, diagonalizability depends on whether enough linearly independent eigenvectors can be found. A practical test is to find a basis for each eigenspace and count the total number of independent eigenvectors. The matrix is diagonalizable if that total is nnn.

Procedure for diagonalizing a matrix

  1. Find the eigenvalues by solving det⁡(A−λI)=0\det(A-\lambda I)=0det(A−λI)=0.

  2. Construct DDD by placing the eigenvalues on its diagonal.

  3. For each eigenvalue, solve (A−λI)x=0(A-\lambda I)x=0(A−λI)x=0 to find a basis for its eigenspace.

  4. Select nnn linearly independent eigenvectors and use them as the columns of $P`.

  5. Keep the eigenvalue associated with each eigenvector in the matching position on the diagonal of DDD.

  6. Verify that A=PDP−1A=PDP^{-1}A=PDP−1, or equivalently that AP=PDAP=PDAP=PD.

The eigenvalues may be placed on the diagonal of DDD in any order, but the columns of PPP must be ordered to match them.

Example

Consider

A=[31−20].A = \begin{bmatrix} 3 & 1\\ -2 & 0 \end{bmatrix}.A=[3−2​10​].

The characteristic equation is

det⁡(A−λI)=det⁡[3−λ1−2−λ]=λ2−3λ+2=(λ−2)(λ−1)=0.\det(A-\lambda I) = \det \begin{bmatrix} 3-\lambda & 1\\ -2 & -\lambda \end{bmatrix} = \lambda^2-3\lambda+2 = (\lambda-2)(\lambda-1)=0.det(A−λI)=det[3−λ−2​1−λ​]=λ2−3λ+2=(λ−2)(λ−1)=0.

Thus, the eigenvalues are 222 and 111.

For λ=2\lambda=2λ=2,

A−2I=[11−2−2],A-2I= \begin{bmatrix} 1 & 1\\ -2 & -2 \end{bmatrix},A−2I=[1−2​1−2​],

which gives x1=−x2x_1=-x_2x1​=−x2​. One eigenvector is

v1=[−11].v_1= \begin{bmatrix} -1\\ 1 \end{bmatrix}.v1​=[−11​].

For λ=1\lambda=1λ=1,

A−I=[21−2−1],A-I= \begin{bmatrix} 2 & 1\\ -2 & -1 \end{bmatrix},A−I=[2−2​1−1​],

which gives x1=−12x2x_1=-\frac{1}{2}x_2x1​=−21​x2​. Taking x2=2x_2=2x2​=2 gives the eigenvector

v2=[−12].v_2= \begin{bmatrix} -1\\ 2 \end{bmatrix}.v2​=[−12​].

The eigenvectors are linearly independent, so AAA is diagonalizable. Placing them in the columns of PPP and matching the eigenvalues in DDD gives

P=[−1−112],D=[2001],P= \begin{bmatrix} -1 & -1\\ 1 & 2 \end{bmatrix}, \qquad D= \begin{bmatrix} 2 & 0\\ 0 & 1 \end{bmatrix},P=[−11​−12​],D=[20​01​],

and therefore

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

6. Complex Matrices and Complex Eigenvalues

A complex matrix is a matrix whose entries may be real numbers, complex numbers, or a mixture of both. A real matrix is a special case of a complex matrix in which every entry has zero imaginary part.

For a complex number a+bia+bia+bi, its complex conjugate is a−bia-bia−bi, obtained by reversing the sign of the imaginary part. The conjugate of a complex matrix is found by taking the conjugate of each entry.

A complex matrix AAA can be separated into its real and imaginary parts:

A=Re⁡(A)+iIm⁡(A),A=\operatorname{Re}(A)+i\operatorname{Im}(A),A=Re(A)+iIm(A),

where Re⁡(A)\operatorname{Re}(A)Re(A) contains the real parts of the entries and Im⁡(A)\operatorname{Im}(A)Im(A) contains the coefficients of iii.

For example, if

A=[1+i−i46−2i],A = \begin{bmatrix} 1+i & -i\\ 4 & 6-2i \end{bmatrix},A=[1+i4​−i6−2i​],

then

A‾=[1−ii46+2i],\overline{A}= \begin{bmatrix} 1-i & i\\ 4 & 6+2i \end{bmatrix},A=[1−i4​i6+2i​],

and

Re⁡(A)=[1046],Im⁡(A)=[1−10−2].\operatorname{Re}(A)= \begin{bmatrix} 1 & 0\\ 4 & 6 \end{bmatrix}, \qquad \operatorname{Im}(A)= \begin{bmatrix} 1 & -1\\ 0 & -2 \end{bmatrix}.Re(A)=[14​06​],Im(A)=[10​−1−2​].

Conjugate pairs for real matrices

If a real matrix has a complex eigenvalue, its complex conjugate is also an eigenvalue. The corresponding eigenvectors also occur in conjugate pairs.

Thus, if λ=a+bi\lambda=a+biλ=a+bi is an eigenvalue of a real matrix, then a−bia-bia−bi is also an eigenvalue. Once one eigenvalue and eigenvector in the pair have been found, their conjugates give the other pair without requiring a separate calculation.

Example with complex eigenvalues and eigenvectors

Consider the real matrix

A=[23−32].A= \begin{bmatrix} 2 & 3\\ -3 & 2 \end{bmatrix}.A=[2−3​32​].

The characteristic equation is

det⁡(A−λI)=det⁡[2−λ3−32−λ]=(2−λ)2+9=0.\det(A-\lambda I) = \det \begin{bmatrix} 2-\lambda & 3\\ -3 & 2-\lambda \end{bmatrix} = (2-\lambda)^2+9=0.det(A−λI)=det[2−λ−3​32−λ​]=(2−λ)2+9=0.

Therefore,

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

so

2−λ=±3i.2-\lambda=\pm 3i.2−λ=±3i.

The eigenvalues are

λ=2+3iandλ=2−3i.\lambda=2+3i \qquad\text{and}\qquad \lambda=2-3i.λ=2+3iandλ=2−3i.

For λ=2+3i\lambda=2+3iλ=2+3i,

A−λI=[−3i3−3−3i].A-\lambda I= \begin{bmatrix} -3i & 3\\ -3 & -3i \end{bmatrix}.A−λI=[−3i−3​3−3i​].

The first row of (A−λI)x=0(A-\lambda I)x=0(A−λI)x=0 gives −3ix1+3x2=0-3ix_1+3x_2=0−3ix1​+3x2​=0, or x2=ix1x_2=ix_1x2​=ix1​. Taking x1=−ix_1=-ix1​=−i gives the eigenvector

v=[−i1].v= \begin{bmatrix} -i\\ 1 \end{bmatrix}.v=[−i1​].

Because AAA is real, the eigenvector associated with 2−3i2-3i2−3i is the complex conjugate:

v‾=[i1].\overline{v}= \begin{bmatrix} i\\ 1 \end{bmatrix}.v=[i1​].

Thus, the complex eigenvalues and their corresponding eigenvectors occur in conjugate pairs.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent