Skip to content

Finding eigenvalues

Slide a number λ until A − λI flattens the plane, turn that into a polynomial equation, and check the roots with the trace and the determinant.

Helps to know first
This topic

First, the picture

When does a matrix flatten the plane? Slide a number λ and watch a parallelogram collapse onto a line, twice.

Hunting eigenvalues

A = [1.5 1; 0.5 1]. The parallelogram on the columns of A − λI, and its signed area against λ.

At λ = 0, A − λI is A itself: the parallelogram on its columns has area 1.

λ
0
det(A − λI)
1
0.00 / 12.80 s
Describe this picture

Two panels for the matrix A=[1.510.51]\mathbf{A}=\begin{bmatrix}1.5&1\\0.5&1\end{bmatrix} of the eigenvectors page (one above the other on a phone). In the first, the parallelogram on the two columns of A−λI\mathbf{A}-\lambda\mathbf{I}. In the second, a plot of its signed area against λ\lambda from 0 to 3. After a short rest, over 10 s λ\lambda slides from 0 to 3 and the curve is traced as it goes: the area starts at 1, falls to 0 at λ=0.5\lambda=0.5, where the parallelogram collapses onto a line and the direction it crushes, (1,−1)(1,-1), is drawn; it reaches its lowest value, −0.5625-0.5625, at λ=1.25\lambda=1.25, returns to 0 at λ=2\lambda=2, where it collapses again and crushes (2,1)(2,1), and ends at 2.5. Readouts give λ\lambda and the area. One control after the clip: drag λ\lambda along the curve, or move it with the arrow keys in steps of 0.05; it stops on each eigenvalue, where the crushed direction, the eigenvector, is drawn.

When the plane flattens

On Eigenvectors we found two lines that the matrix only stretches, by sweeping an arrow round and watching. That works when you can see the picture. For a bigger matrix you need a way to compute.

Start from the definition, Av=λv\mathbf{A}\mathbf{v}=\lambda\mathbf{v}. Move everything to one side. Writing λv\lambda\mathbf{v} as λIv\lambda\mathbf{I}\mathbf{v}, with the identity matrix I\mathbf{I}, lets me take v\mathbf{v} out as a common factor:

(A−λI) v=0,v≠0.(\mathbf{A}-\lambda\mathbf{I})\,\mathbf{v}=\mathbf{0},\qquad \mathbf{v}\neq\mathbf{0}.

So v\mathbf{v} is a nonzero vector in the null space of A−λI\mathbf{A}-\lambda\mathbf{I}. A matrix sends a nonzero vector to zero only when it crushes a whole line, and then it flattens the plane. By The determinant as area, flattening is exactly a determinant of zero. So λ\lambda is an eigenvalue of A\mathbf{A} exactly when

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

That is what the picture at the top of the page hunts for. The parallelogram is A−λI\mathbf{A}-\lambda\mathbf{I} applied to the unit square, and its signed area is det⁡(A−λI)\det(\mathbf{A}-\lambda\mathbf{I}). Drag λ\lambda yourself and stop where the area reads 0.

The characteristic polynomial

For a 2×22\times2 matrix the determinant is quick to write out. Subtracting λI\lambda\mathbf{I} takes λ\lambda off each diagonal entry:

det⁡[a−λbcd−λ]=(a−λ)(d−λ)−bc=λ2−(a+d) λ+(ad−bc).\begin{aligned} &\det\begin{bmatrix}a-\lambda&b\\c&d-\lambda\end{bmatrix}\\ &\quad=(a-\lambda)(d-\lambda)-bc\\ &\quad=\lambda^2-(a+d)\,\lambda+(ad-bc). \end{aligned}

The middle coefficient is the sum of the diagonal entries, the trace, written tr A\mathrm{tr}\,\mathbf{A}. The last is det⁡A\det\mathbf{A}. So for every 2×22\times2 matrix

det⁡(A−λI)=λ2−(tr A) λ+det⁡A.\begin{aligned} \det(\mathbf{A}-\lambda\mathbf{I})&=\lambda^2-(\mathrm{tr}\,\mathbf{A})\,\lambda\\ &\quad+\det\mathbf{A}. \end{aligned}

This is the characteristic polynomial of A\mathbf{A}, and setting it to zero is the characteristic equation. The quadratic formula solves it:

λ=12(tr A±(tr A)2−4det⁡A).\lambda=\tfrac12\Big(\mathrm{tr}\,\mathbf{A}\pm\sqrt{(\mathrm{tr}\,\mathbf{A})^2-4\det\mathbf{A}}\Big).

For the matrix in the picture, tr A=1.5+1=2.5\mathrm{tr}\,\mathbf{A}=1.5+1=2.5 and det⁡A=1.5⋅1−1⋅0.5=1\det\mathbf{A}=1.5\cdot1-1\cdot0.5=1. The equation is λ2−2.5λ+1=0\lambda^2-2.5\lambda+1=0, and

λ=12(2.5±6.25−4)=12(2.5±1.5),\begin{aligned} \lambda&=\tfrac12\big(2.5\pm\sqrt{6.25-4}\big)\\ &=\tfrac12(2.5\pm1.5), \end{aligned}

so λ=2\lambda=2 or λ=0.5\lambda=0.5: the two stretch factors of the eigenvectors page, found without a picture.

An n×nn\times n matrix gives a polynomial of degree nn in the same way, so it has nn eigenvalues, counted with repeats. Some of them may be complex numbers.

Two checks

Write the polynomial from its roots: (λ−λ1)(λ−λ2)=λ2−(λ1+λ2) λ+λ1λ2(\lambda-\lambda_1)(\lambda-\lambda_2)=\lambda^2-(\lambda_1+\lambda_2)\,\lambda+\lambda_1\lambda_2. Match it with the form above, coefficient by coefficient:

λ1+λ2=tr A,λ1λ2=det⁡A.\lambda_1+\lambda_2=\mathrm{tr}\,\mathbf{A},\qquad \lambda_1\lambda_2=\det\mathbf{A}.

The same holds for every size: the eigenvalues add up to the trace and multiply to the determinant. Here 2+0.5=2.52+0.5=2.5 and 2⋅0.5=12\cdot0.5=1. These two checks catch most slips in a hand calculation.

Watch out

The eigenvalues are not the diagonal entries, and elimination does not keep them. One elimination step on A\mathbf{A}, row 2 ←\leftarrow row 2 − 13⋅-\ \tfrac13\cdot row 1, gives [1.5102/3]\begin{bmatrix}1.5&1\\0&2/3\end{bmatrix}, whose eigenvalues are 1.5 and 2/32/3, not 2 and 0.5. Only the product survives, because elimination keeps the determinant: 1.5⋅23=11.5\cdot\tfrac23=1. For a triangular matrix the eigenvalues are the diagonal entries, since its determinant is the product of the diagonal.

Eigenvectors from the null space

Each eigenvalue gives its eigenvectors as the null space of A−λI\mathbf{A}-\lambda\mathbf{I}, found as in The null space.

For λ=2\lambda=2:

A−2I=[−0.510.5−1].\mathbf{A}-2\mathbf{I}=\begin{bmatrix}-0.5&1\\0.5&-1\end{bmatrix}.

The second row is minus the first, so one equation is left: −0.5v1+v2=0-0.5v_1+v_2=0. Take v2=1v_2=1; then v1=2v_1=2, and v=(2,1)\mathbf{v}=(2,1).

For λ=0.5\lambda=0.5: A−0.5I=[110.50.5]\mathbf{A}-0.5\mathbf{I}=\begin{bmatrix}1&1\\0.5&0.5\end{bmatrix} leaves v1+v2=0v_1+v_2=0, so v=(1,−1)\mathbf{v}=(1,-1). Both match the lines the sweep found.

Repeated and missing roots

The polynomial can surprise you in two ways.

A repeated root. The shear [1101]\begin{bmatrix}1&1\\0&1\end{bmatrix} has trace 2 and determinant 1, so its polynomial is λ2−2λ+1=(λ−1)2\lambda^2-2\lambda+1=(\lambda-1)^2. The root 1 appears twice. But A−I=[0100]\mathbf{A}-\mathbf{I}=\begin{bmatrix}0&1\\0&0\end{bmatrix} has only the line of (1,0)(1,0) in its null space, so there is one line of eigenvectors, not two. Similar matrices and the Jordan form looks at matrices like this.

No real root. The quarter turn [0−110]\begin{bmatrix}0&-1\\1&0\end{bmatrix} has trace 0 and determinant 1, so λ2+1=0\lambda^2+1=0. No real number solves it, which matches the picture: the turn keeps no line. The roots are the complex numbers ±j\pm j, and Complex eigenvalues reads them as a turn.

A bigger matrix in blocks. When a matrix splits into blocks along its diagonal, each block keeps its own eigenvalues. Take

A=[200034049].\mathbf{A}=\begin{bmatrix}2&0&0\\0&3&4\\0&4&9\end{bmatrix}.

The first coordinate is left alone, stretched by 2, so 2 is an eigenvalue with eigenvector (1,0,0)(1,0,0). The block [3449]\begin{bmatrix}3&4\\4&9\end{bmatrix} has trace 12 and determinant 27−16=1127-16=11, so λ2−12λ+11=(λ−1)(λ−11)\lambda^2-12\lambda+11=(\lambda-1)(\lambda-11): eigenvalues 1 and 11. Check: A(0,1,2)=(0,11,22)=11 (0,1,2)\mathbf{A}(0,1,2)=(0,11,22)=11\,(0,1,2). All three add to 2+1+11=142+1+11=14, the trace, and multiply to 2⋅1⋅11=222\cdot1\cdot11=22, the determinant.

Poles are eigenvalues

The filter y[n]=1.5 y[n−1]−0.56 y[n−2]+x[n]y[n]=1.5\,y[n-1]-0.56\,y[n-2]+x[n] remembers its last two outputs. Stack them as a state vector, (y[n−1], y[n−2])(y[n-1],\,y[n-2]). With no input, one step of the filter turns it into (y[n], y[n−1])(y[n],\,y[n-1]), and that step is the matrix

[1.5−0.5610].\begin{bmatrix}1.5&-0.56\\1&0\end{bmatrix}.

The first row is the filter’s equation; the second only passes y[n−1]y[n-1] along. This is the companion matrix of the filter. Its trace is 1.5 and its determinant 0.56, so its characteristic polynomial is λ2−1.5λ+0.56=(λ−0.8)(λ−0.7)\lambda^2-1.5\lambda+0.56=(\lambda-0.8)(\lambda-0.7).

Poles are eigenvalues

The filter's poles, and the characteristic polynomial of its companion matrix.

The filter y[n] = 1.5 y[n−1] − 0.56 y[n−2] + x[n], and the plane of complex numbers.

0.00 / 6.80 s
Describe this picture

Two panels. In the first, the plane of complex numbers with the unit circle, and the two poles of the filter y[n]=1.5 y[n−1]−0.56 y[n−2]+x[n]y[n]=1.5\,y[n-1]-0.56\,y[n-2]+x[n] marked as crosses at 0.8 and 0.7 on the real axis. In the second, the characteristic polynomial λ2−1.5λ+0.56\lambda^2-1.5\lambda+0.56 of the companion matrix plotted against λ\lambda from 0.55 to 0.95, crossing zero at 0.7 and 0.8, where rings in the poles’ colours mark the crossings. There is no control.

Watch the two sets of marks: they sit at the same two numbers. The eigenvalues of the companion matrix are the filter’s poles.

In signal processing · poles as eigenvalues

Transfer functions, poles and zeros, in the signal processing course, finds this filter’s poles as the roots of z2−1.5z+0.56z^2-1.5z+0.56, which is the denominator of its transfer function, 1−1.5z−1+0.56z−21-1.5z^{-1}+0.56z^{-2}, times z2z^2. That is the characteristic polynomial above with zz in place of λ\lambda. Samples count from n=0n=0, while the entries of the state vector count from 1.

Worked example

1. The matrix of the eigenvectors page. A=[1.510.51]\mathbf{A}=\begin{bmatrix}1.5&1\\0.5&1\end{bmatrix} has tr A=2.5\mathrm{tr}\,\mathbf{A}=2.5 and det⁡A=1.5−0.5=1\det\mathbf{A}=1.5-0.5=1. The characteristic equation λ2−2.5λ+1=0\lambda^2-2.5\lambda+1=0 gives λ=(2.5±1.5)/2\lambda=(2.5\pm1.5)/2, so 2 and 0.5. The null space of A−2I\mathbf{A}-2\mathbf{I} is the line of (2,1)(2,1), and that of A−0.5I\mathbf{A}-0.5\mathbf{I} is the line of (1,−1)(1,-1).

2. Elimination changes eigenvalues. Row 2 − 13-\ \tfrac13 row 1 gives [1.5102/3]\begin{bmatrix}1.5&1\\0&2/3\end{bmatrix}, with eigenvalues 1.5 and 0.6670.667 but the same product, 1.

3. A repeated root. The shear has (λ−1)2(\lambda-1)^2 and one line of eigenvectors, through (1,0)(1,0).

4. Blocks. [200034049]\begin{bmatrix}2&0&0\\0&3&4\\0&4&9\end{bmatrix} has eigenvalues 2, 1 and 11, with eigenvectors (1,0,0)(1,0,0), (0,−2,1)(0,-2,1) and (0,1,2)(0,1,2).

5. No real root. The quarter turn gives λ2+1=0\lambda^2+1=0.

6. Poles. λ2−1.5λ+0.56=(λ−0.8)(λ−0.7)\lambda^2-1.5\lambda+0.56=(\lambda-0.8)(\lambda-0.7): check 0.8+0.7=1.50.8+0.7=1.5 and 0.8⋅0.7=0.560.8\cdot0.7=0.56.

Try these before you read the answers.

  • Eigenvalues of [2112]\begin{bmatrix}2&1\\1&2\end{bmatrix}? Trace 4, determinant 3, so 3 and 1.
  • A matrix has trace 5 and determinant 6. Its eigenvalues? 2 and 3.
  • Eigenvalues of [3504]\begin{bmatrix}3&5\\0&4\end{bmatrix}? 3 and 4: it is triangular.
  • If det⁡A≠0\det\mathbf{A}\neq0, can 0 be an eigenvalue? No: 0 is an eigenvalue exactly when det⁡(A−0 I)=det⁡A=0\det(\mathbf{A}-0\,\mathbf{I})=\det\mathbf{A}=0.

Where you’ll meet this

Stable filters. A filter’s poles are the eigenvalues of its companion matrix. This filter is stable because both, 0.8 and 0.7, lie inside the unit circle, so the state dies away in the long run.

Vibrating structures. The natural frequencies of a structure built from masses and springs come from the eigenvalues of its stiffness matrix, as Symmetric matrices shows.

How software does it. Programs do not find eigenvalues by solving the characteristic polynomial. For large matrices its roots are extremely sensitive to rounding in the coefficients, so programs use repeated matrix steps that home in on the eigenvalues instead. The polynomial stays the right tool for a 2×22\times2 by hand, and for understanding.

Reference card

QuantityFormulaNotes
Eigenvalue testdet⁡(A−λI)=0\det(\mathbf{A}-\lambda\mathbf{I})=0A−λI\mathbf{A}-\lambda\mathbf{I} flattens space
Polynomial, 2×22\times2λ2−(tr A) λ+det⁡A\lambda^2-(\mathrm{tr}\,\mathbf{A})\,\lambda+\det\mathbf{A}degree nn for n×nn\times n
Roots, 2×22\times212(tr±tr2−4det⁡)\tfrac12\big(\mathrm{tr}\pm\sqrt{\mathrm{tr}^2-4\det}\big)complex when the square root’s argument is negative
Sumλ1+⋯+λn=tr A\lambda_1+\dots+\lambda_n=\mathrm{tr}\,\mathbf{A}trace: sum of the diagonal
Productλ1⋯λn=det⁡A\lambda_1\cdots\lambda_n=\det\mathbf{A}0 is an eigenvalue exactly when det⁡A=0\det\mathbf{A}=0
EigenvectorsN(A−λI)N(\mathbf{A}-\lambda\mathbf{I})one null space per eigenvalue
Triangulareigenvalues on the diagonalnot true after elimination of a general matrix
Companion matrix[−a1−a210]\begin{bmatrix}-a_1&-a_2\\1&0\end{bmatrix}eigenvalues are the poles of y[n]+a1y[n−1]+a2y[n−2]=x[n]y[n]+a_1y[n-1]+a_2y[n-2]=x[n]

Keep reading with a free account.

By creating an account you accept the terms of use.

Sign in

Already have an account? Use the service you signed up with.

Or keep reading: get new lessons by email

Are you 13 or over?

Accounts and email updates are for people aged 13 or over. We keep only your answer, never your date of birth.

End of the lesson

Where to go next.

Phasorium

Account

Sign inKeep your place on any device

Subjects

Site

Look