Chapter 9. Eigenvalues and eigenvectors

In this chapter, we’ll define an eigenvalue and eigenvector. The main goal of this chapter is that:

Goal
Given a 2×2 or 3×3 matrix, by the end of this chapter, you should be able to find all the eigenvalues and eigenvectors by hand.

§9.1 [TEXT] The problem of finding eigenvectors

Let’s define the relevant term first:

Definition

Suppose 𝑇 is a matrix or linear transformation, 𝜆 a scalar, and 𝐯 is a vector such that

𝑇(𝐯)=𝜆𝐯;

that is, 𝑇 sends 𝐯 to a multiple of itself. Then we call 𝜆 an eigenvalue and 𝐯 an eigenvector.

Type signature
Eigenvalues 𝜆 are always scalars.
Example

Let 𝑇=(74523236) and consider the vector 𝐯=(21). Then

𝑇(𝐯)=(74523236)(21)=(200100)=100(21)=100𝐯.

So we would say 𝐯 is an eigenvector with eigenvalue 100.

Of course, if 𝐯 is an eigenvector, so are all its multiples, e.g.

(74523236)(2010)=(20001000)=100(2010)

so (2010) is an eigenvector with the same eigenvalue 100, etc.

Remark
The stupid solution 𝐯=𝟎 always satisfies the eigenvector equation for any 𝜆, so we will pretty much ignore it and focus only on finding nonzero eigenvectors.

The goal of this chapter is to show, given a matrix 𝑇, how we can find its eigenvectors (besides 𝟎).

§9.2 [TEXT] How to come up with the recipe for eigenvalues

For this story, our protagonist will be the matrix

𝐴=(5−2310).

Phrased another way, the problem of finding eigenvectors is, by definition, looking for 𝜆, 𝑥, 𝑦 such that

𝐴(𝑥𝑦)=𝜆(𝑥𝑦)⟺{5𝑥−2𝑦=𝜆𝑥3𝑥+10𝑦=𝜆𝑦.

Smart-alecks will say 𝑥=𝑦=0 always works for every 𝜆. Are there other solutions?

§9.2.1 Why guessing the eigenvalues is ill-fated

As an example, let’s see if there are any eigenvectors (𝑥𝑦) with eigenvalue 100. In other words, let’s solve

(5−2310)(𝑥𝑦)=100(𝑥𝑦).

If we solve the system of equations, we get

{5𝑥−2𝑦=100𝑥3𝑥+10𝑦=100𝑦⟹{−95𝑥−2𝑦=03𝑥−90𝑦=0⟹𝑥=𝑦=0.

Well, that’s boring. In this system of equations, the only solution is 𝑥=𝑦=0.

We can try a different guess: maybe we use 1000 instead of 100. An eigenvector with eigenvalue 1000 ought to correspond to

(5−2310)(𝑥𝑦)=1000(𝑥𝑦).

If we solve the system of equations, we get

{5𝑥−2𝑦=1000𝑥3𝑥+10𝑦=1000𝑦⟹{−995𝑥−2𝑦=03𝑥−990𝑦=0⟹𝑥=𝑦=0

which… isn’t any better. We still don’t get any solutions besides 𝑥=𝑦=0.

At this point, you should be remembering something I told you last chapter: a “random” system of equations and variables usually only has a unique solution. So if I keep picking numbers out of a hat like 100, 1000, etc., then I’m unlikely to find anything interesting. In order to get a system that doesn’t just solve to 𝑥=𝑦=0, I’m going to need to cherry-pick my number 𝜆.

§9.2.2 Cherry-picking 𝜆

Let’s try to figure out what value of 𝜆 would make the system more interesting. If we copy what we did above, we see that the general process is:

{5𝑥−2𝑦=𝜆𝑥3𝑥+10𝑦=𝜆𝑦⟹{(5−𝜆)𝑥−2𝑦=03𝑥+(10−𝜆)𝑦=0

We need to cherry-pick 𝜆 to make sure that the system doesn’t just solve to 𝑥=𝑦=0 like the examples we tried with 100 and 1000. But we learned how to do this in the last chapter: in order to get a degenerate system you need to make sure that

0=|5−𝜆−2310−𝜆|.
Remark
At this point, you might notice that this is secretly an explanation of why 𝐴−𝜆𝐼 keeps showing up on your formula sheet. Writing 𝐴𝐯=𝜆𝐯 is the same as (𝐴−𝜆𝐼)𝐯=0, just more opaquely.

Expanding the determinant on the left-hand side gives

0=|5−𝜆−2310−𝜆|=(5−𝜆)(10−𝜆)+6=𝜆2−15𝜆+56=(𝜆−7)(𝜆−8).

Great! So we expect that if we choose either 𝜆=7 and 𝜆=8, then we will get a degenerate system, and we won’t just get 𝑥=𝑦=0. Indeed, let’s check this:

§9.3 [RECAP] Summary

To summarize the story above:

In lectures and notes, the last two bullets are separated as two different steps, to make it into a recipe. But don’t lose sight of how they’re connected! I would rather call it the following interlocked thing:

§9.4 [RECIPE] Calculating all the eigenvalues

To repeat the story:

Recipe for finding the eigenvectors and eigenvalues

Given a matrix 𝐴, to find its eigenvectors and eigenvalues:

  1. Find all the values of 𝜆 such that, if you subtract 𝜆 from every diagonal entry of 𝐴 (that is, look at 𝐴−𝜆𝐼), the resulting square matrix of coefficients has determinant 0.
  2. For each 𝜆, solve the degenerate system and output the solutions to it. (You should find there is at least a one-dimensional space of solutions.)
Remark

Eigenvectors are sometimes grouped into so-called eigenlines because every multiple of an eigenvector is also an eigenvector. For example, if you get 2𝑥+𝑦=0 for 𝜆=2, any of the following outputs is often acceptable:

  • “Any multiple of (1−2) is an eigenvector for 𝜆=2”
  • “Any multiple of (−12) is an eigenvector for 𝜆=2”
  • “Any multiple of (100−200) is an eigenvector for 𝜆=2”
  • …

And in practice people will just say “(1−2) is the eigenvector for 𝜆=2” and the “any multiple of” is understood.

Sample Question

Compute all eigenvalues and eigenvectors of

𝐴=(4123).

Solution. We follow the recipe:

  1. We compute 𝐴−𝜆𝐼, where 𝐼 is the identity matrix:

    𝐴−𝜆𝐼=(4123)−𝜆(1001)=(4−𝜆123−𝜆).

    Now, compute the determinant of 𝐴−𝜆𝐼 and set it equal to zero:

    det(𝐴−𝜆𝐼)=(4−𝜆)(3−𝜆)−(2⋅1)=(4−𝜆)(3−𝜆)−2.

    Expanding this:

    (4−𝜆)(3−𝜆)=12−7𝜆+𝜆2,

    so the equation becomes:

    12−7𝜆+𝜆2−2=0⟹0=𝜆2−7𝜆+10=(𝜆−2)(𝜆−5).

    Solving for 𝜆 gives 𝜆=2 or 𝜆=5.

  2. There are two cases:

    • For 𝜆=5, solve (𝐴−5𝐼)𝐯=0:

      𝐴−5𝐼=(−112−2)⟹(−112−2)(𝑥𝑦)=(00).

      This gives the equation −𝑥+𝑦=0, so the eigenvector is 𝐯1=(11) as well as any multiple of it.

    • For 𝜆=2, solve (𝐴−2𝐼)𝐯=0:

      𝐴−2𝐼=(2121)⟹(2121)(𝑥𝑦)=(00).

      This gives the equation 2𝑥+𝑦=0, so the eigenvector is 𝐯2=(1−2) or any multiple of it.

In conclusion, (11) and its multiples are the eigenvectors for 𝜆=5 and (1−2) and its multiples are the eigenvectors for 𝜆=2.□

Sample Question

Compute the eigenvalues and eigenvectors of the matrix

𝐴=(334−1).

Solution. We follow the recipe:

  1. First, we compute 𝐴−𝜆𝐼:

    𝐴−𝜆𝐼=(334−1)−𝜆(1001)=(3−𝜆34−1−𝜆).

    To find the eigenvalues, we set the determinant of 𝐴−𝜆𝐼 equal to zero:

    det(𝐴−𝜆𝐼)=det(3−𝜆34−1−𝜆)=(3−𝜆)(−1−𝜆)−(3⋅4)=(3−𝜆)(−1−𝜆)−12.

    Expanding this expression:

    (3−𝜆)(−1−𝜆)=−3−3𝜆+𝜆+𝜆2=𝜆2−2𝜆−3.

    Now, substitute this into the equation:

    𝜆2−2𝜆−3−12=0⟹0=𝜆2−2𝜆−15=(𝜆−5)(𝜆+3).

    Solving for 𝜆 gives 𝜆=5 or 𝜆=−3.

  2. Now, we find the eigenvectors corresponding to each eigenvalue.

    • For 𝜆=5, we solve (𝐴−5𝐼)𝐯=0. First, compute 𝐴−5𝐼:

      𝐴−5𝐼=(3−534−1−5)=(−234−6).

      We now solve the system:

      (−234−6)(𝑥𝑦)=(00).

      This gives the equations:

      −2𝑥+3𝑦=0,4𝑥−6𝑦=0.

      From the first equation, we get 𝑥=32𝑦. Therefore, the eigenvectors corresponding to 𝜆=5 are the multiples of (32).

    • For 𝜆=−3, we solve (𝐴+3𝐼)𝐯=0. First, compute 𝐴+3𝐼:

      𝐴+3𝐼=(3+334−1+3)=(6342).

      We now solve the system:

      (6342)(𝑥𝑦)=(00).

      This gives the equations:

      6𝑥+3𝑦=0,4𝑥+2𝑦=0.

      From the first equation, we get 𝑥=−12𝑦. Therefore, the eigenvector corresponding to 𝜆=−3 is (−12).

In conclusion, (32) and its multiples are the eigenvectors for 𝜆=5 and (−12) and its multiples are the eigenvectors for 𝜆=−3.□

Sample Question

Compute the eigenvalues and eigenvectors of the matrix

𝐴=(29−18).

Solution. We follow the recipe, but this time we’ll find the quadratic polynomial in 𝜆 we get has a repeated root, a new phenomenon. Nothing changes much though, recipe still works fine.

  1. We need to find the matrix 𝐴−𝜆𝐼, where 𝐼 is the identity matrix. First, we compute 𝐴−𝜆𝐼:

    𝐴−𝜆𝐼=(29−18)−𝜆(1001)=(2−𝜆9−18−𝜆).

    To find the eigenvalues, we set the determinant of 𝐴−𝜆𝐼 equal to zero:

    det(𝐴−𝜆𝐼)=|2−𝜆9−18−𝜆|=(2−𝜆)(8−𝜆)−9⋅(−1)=(2−𝜆)(8−𝜆)+9=𝜆2−10𝜆+25=(𝜆−5)2.

    This gives 𝜆=5. So we only have one case!

  2. First, compute 𝐴−5𝐼:

    𝐴−5𝐼=(2−59−18−5)=(−39−13).

    We now solve the system:

    (−39−13)(𝑥𝑦)=(00).

    This gives the equations:

    −3𝑥+9𝑦=0,−𝑥+3𝑦=0.

    From the first equation, we get 𝑥=3𝑦. Therefore, the eigenvector corresponding to 𝜆=5 is (31) and its multiples.

The only eigenvalue of the matrix 𝐴=(29−18) is 𝜆=5 (with multiplicity 2). The corresponding eigenvector is (31) and its multiples.□

Sample Question
Compute the eigenvalues and eigenvectors of the matrix 𝐴=(120030014).

Solution. The matrix is 3×3, but that’s no big deal.

  1. We need to find the matrix 𝐴−𝜆𝐼, where 𝐼 is the identity matrix. First, we compute 𝐴−𝜆𝐼:

    𝐴−𝜆𝐼=(120030014)−𝜆(100010001)=(1−𝜆2003−𝜆0014−𝜆).

    To find the eigenvalues, we set the determinant of 𝐴−𝜆𝐼 equal to zero:

    det(𝐴−𝜆𝐼)=|1−𝜆2003−𝜆0014−𝜆|=(1−𝜆)det(3−𝜆014−𝜆)=(1−𝜆)(3−𝜆)(4−𝜆).

    Setting this equal to 0 and solving gives 𝜆=1, 𝜆=3, 𝜆=4.

  2. Now, we find the eigenvectors corresponding to each eigenvalue.

    • For 𝜆=1: We solve (𝐴−𝐼)𝐯=0. First, compute 𝐴−𝐼:

      𝐴−𝐼=(020020013).

      We now solve the system:

      (020020013)(𝑥𝑦𝑧)=(000).

      In other words 2𝑦=0, 2𝑦=0 and 𝑦+3𝑧=0. From the first and second rows, we have 2𝑦=0, so 𝑦=0. From the third row, we have 𝑧=0. There are no constraints on 𝑥 at all. Thus, the eigenvector corresponding to 𝜆=1 is

      (100)

      and all its multiples, i.e. those vectors for which the second and third components are zero.

    • For 𝜆=3: We solve (𝐴−3𝐼)𝐯=0. First, compute 𝐴−3𝐼:

      𝐴−3𝐼=(−220000011).

      We now solve the system:

      (−220000011)(𝑥𝑦𝑧)=(000).

      In other words, −2𝑥+2𝑦=0, 0=0 and 𝑦+𝑧=0. From the third row, we have 𝑦=−𝑧. From the first row, we get −2𝑥+2𝑦=0, so 𝑥=𝑦. Thus, the eigenvector corresponding to 𝜆=3 is:

      (11−1)

      and its multiples.

    • For 𝜆=4: We solve (𝐴−4𝐼)𝐯=0. First, compute 𝐴−4𝐼:

      𝐴−4𝐼=(−3200−10010).

      We now solve the system:

      (−3200−10010)(𝑥𝑦𝑧)=(000).

      In other words, −3𝑥+2𝑦=0, −𝑦=0, 𝑦=0. Hence 𝑥=𝑦=0 and there are no constraints on 𝑧. Therefore, the eigenvector corresponding to 𝜆=4 is:

      (001)

      and its multiples, i.e. any vector for which the first two components are 0.

In conclusion, the eigenvalues of the matrix 𝐴=(120030014) are 𝜆1=1, 𝜆2=3, and 𝜆3=4; the corresponding eigenvectors are:

𝐯1=(100),𝐯2=(11−1),𝐯3=(001)

and their multiples.□

Up until now I picked examples for which the solutions turn out nicely. Most of the time it’s not like that though.

Sample Question
Compute the eigenvalues and eigenvectors of the matrix 𝐴=(1247).

Solution. Keep going, even with terrible numbers.

  1. We need to find the matrix 𝐴−𝜆𝐼, where 𝐼 is the identity matrix. First, we compute 𝐴−𝜆𝐼:

    𝐴−𝜆𝐼=(1247)−𝜆(1001)=(1−𝜆247−𝜆).

    To find the eigenvalues, we set the determinant of 𝐴−𝜆𝐼 equal to zero:

    det(𝐴−𝜆𝐼)=|1−𝜆247−𝜆|=(1−𝜆)(7−𝜆)−(4⋅2)=(1−𝜆)(7−𝜆)−8.

    Expanding this expression:

    (1−𝜆)(7−𝜆)=7−8𝜆+𝜆2,

    so the equation becomes:

    7−8𝜆+𝜆2−8=0⟹𝜆2−8𝜆−1=0.

    We now solve the quadratic equation 𝜆2−8𝜆−1=0 using the quadratic formula:

    𝜆=−(−8)±(−8)2−4(1)(−1)2(1)=8±64+42=8±682=8±2172.

    Thus, the eigenvalues are:

    𝜆1=4+17,𝜆2=4−17.
  2. Now, we find the eigenvectors corresponding to each eigenvalue.

    • For 𝜆1=4+17: We solve (𝐴−𝜆1𝐼)𝐯=0. First, compute 𝐴−𝜆1𝐼:

      𝐴−𝜆1𝐼=(1−(4+17)247−(4+17))=(−3−17243−17).

      We now solve the system:

      (−3−17243−17)(𝑥𝑦)=(00).

      This gives the equations:

      (−3−17)𝑥+2𝑦=0,4𝑥+(3−17)𝑦=0.

      From the first equation, we get 𝑦=3+172𝑥. Therefore, the eigenvector corresponding to 𝜆1=4+17 is:

      𝐯1=(13+172).
    • For 𝜆2=4−17, it’s actually exactly the same with 17 replaced by −17, so I won’t repeat it. You get the eigenvector

      𝐯2=(13−172).

In conclusion the eigenvalues of the matrix 𝐴=(1247) are:

𝜆1=4+17,𝜆2=4−17.

The corresponding eigenvectors are:

𝐯1=(13+172),𝐯2=(13−172).

□

§9.5 [TEXT] What to expect when solving degenerate systems

When carrying out the recipe for finding eigenvectors and eigenvalues, after cherry-picking 𝜆, you have to solve a degenerate system of equations. Since most of the systems of equations you encounter in practice are nondegenerate, here’s a few words of advice on instincts for solving the degenerate ones.

§9.5.1 Degenerate systems of two equations all look stupid

This is worth repeating: degenerate systems of two equations all look stupid. Earlier on, we saw the two systems

{−2𝑥−2𝑦=03𝑥+3𝑦=0 and {−3𝑥−2𝑦=03𝑥+2𝑦=0.

Both look moronic to the eye, because in each equation, the two equations say the same thing. This is by design: when you’re solving the eigenvector problem, you’re going out of your way to find degenerate systems so that there will actually be solutions besides 𝑥=𝑦=0.

In particular: if you do all the steps right, you should never wind up with 𝑥=𝑦=0 as your only solution. That means you either didn’t do the cherry-picking step correctly, or something went wrong when you were solving the system. If that happens, check your work!

§9.5.2 Degenerate systems of three equations may or may not look stupid

When you have three or more equations instead, they don’t necessarily look as stupid (although they still can). To reuse the example I mentioned before, consider the system of equations

𝑥+10𝑦−9𝑧=03𝑥+𝑦+10𝑧=04𝑥+11𝑦+𝑧=0

which doesn’t look stupid. But again, if you check the determinant, you find out

|110−931104111|=0.

So you know a priori that there will be solutions besides 𝑥=𝑦=𝑧=0.

I think 18.02 won’t have too many situations where you need to solve a degenerate three-variable system of equations, because it’s generally annoying to do by hand. But if it happens, you should fall back on your high school algebra and solve the system however you learned it in 9th or 10th grade. The good news is that at least one of the three equations is redundant, so you can just throw one away and solve for the other two. For example, in this case we would solve

𝑥+10𝑦=9𝑧3𝑥+𝑦=−10𝑧

for 𝑥 and 𝑦, as a function of 𝑧. I think this particular example works out to 𝑥=−10929𝑧, 𝑦=3729𝑧. And it indeed fits the third equation too.

§9.6 [SIDENOTE] Complex eigenvalues

Even in the 2×2 case, you’ll find a lot of matrices 𝑀 with real coefficients have no eigenvectors. Here’s one example.

Let

𝑀=(cos(60°)−sin(60°)sin(60°)cos(60°))=(12−323212).

be the matrix corresponding to rotation by 60 degrees. (Feel free to replace 60 by a different number.) I claim that 𝑀 has no real eigenvalues or eigenvectors.

Indeed, if 𝐯∈ℝ2 was an eigenvector, then 𝑀𝐯 needs to point in the same direction as 𝐯, by definition. But that can never happen: 𝑀 is rotation by 60°, so 𝑀𝐯 and 𝐯 necessarily point in different directions — 60 degrees apart.

Nevertheless, let’s boldly try this and see what goes wrong in the recipe. The answer is that you just get some complex numbers instead.

Sample Question

Compute the eigenvalues and eigenvectors of the matrix

𝐴=(12−323212).

Solution. Follow the recipe, just don’t be scared of complex numbers:

  1. We need to find the matrix 𝐴−𝜆𝐼, where 𝐼 is the identity matrix. First, we compute 𝐴−𝜆𝐼:

    𝐴−𝜆𝐼=(12−323212)−𝜆(1001)=(12−𝜆−323212−𝜆).

    To find the eigenvalues, we set the determinant of 𝐴−𝜆𝐼 equal to zero:

    det(𝐴−𝜆𝐼)=|12−𝜆−323212−𝜆|=(12−𝜆)(12−𝜆)−(−32⋅32)=(12−𝜆)2+34.

    Setting this equal to zero and solving, we get

    𝜆=1±3𝑖2

    as the two eigenvalues.

  2. Now, we find the eigenvectors corresponding to each eigenvalue.

    • Choose 𝜆1=1+𝑖32 first. We solve (𝐴−𝜆1𝐼)𝐯=0. First, compute 𝐴−𝜆1𝐼:

      𝐴−𝜆1𝐼=(12−1+𝑖32−323212−1+𝑖32)=(−𝑖32−3232−𝑖32).

      We now solve the system:

      (−𝑖32−3232−𝑖32)(𝑣1𝑣2)=(00).

      This gives the equations:

      −𝑖32𝑣1−32𝑣2=0,32𝑣1−𝑖32𝑣2=0.

      From the first equation, we get 𝑣1=𝑖𝑣2. Therefore, the eigenvector corresponding to 𝜆1=1+𝑖32 is:

      𝐯1=(𝑖1)

      and its multiples.

    • When 𝜆2=1−𝑖32, all the 𝑖’s flip to −𝑖’s and nothing else changes. The eigenvector corresponding to 𝜆2=1−𝑖32 is thus

      𝐯2=(−𝑖1)

      and its multiples.

In conclusion, the two eigenvalues are

𝜆1=1+𝑖32,𝜆2=1−𝑖32.

and the corresponding eigenvectors are:

𝐯1=(𝑖1),𝐯2=(−𝑖1).

□

§9.7 [TEXT] Trace and determinant

In 18.02 the following definition is briefly mentioned, but we won’t do much with it:

Definition of trace
The trace is the sum of the diagonal entries of the matrix.

Then the following two theorems are roughly true:

I say “roughly” because there is a caveat: most of the time, if you have an 𝑛×𝑛 matrix, then there will be 𝑛 different eigenvalues (if you allow complex ones). You probably noticed this above. However, sometimes you’ll run into a matrix for which there are fewer than 𝑛, and some of the eigenvalues are “repeated”, like the example we got where (𝜆−5)2=0⟹𝜆=5. We won’t define what “repeated” means here, but you need to define repetition correctly to handle these edge cases.

§9.8 [SIDENOTE] Application of eigenvectors: matrix powers

This is off-syllabus for 18.02, but I couldn’t resist including it because it shows you a good use of eigenvalues in a seemingly unrelated problem, and also reinforces the idea that I keep axe-grinding:

Idea
If you have a linear operator 𝑇, and you know the outputs of 𝑇 on any basis, that tells you all the outputs of 𝑇.

Okay, so here’s the application I promised you.

Sample Question
Let 𝑀 be the matrix (2103). Calculate 𝑀100.

At first glance, you might think this question is obviously impossible without a computer! Raising a matrix to the 100th power seems like it would require 100 matrix multiplications. But I’ll show you how to do it with eigenvectors.

Solution. First, we compute the eigenvectors and eigenvalues of 𝑀. If you follow the recipe, you’ll get the following results:

Now the trick is the following: it’s really easy to apply 𝑀100 to the eigenvectors, because it’s just multiplication by a constant. For example, the first few powers of 𝑀 on (10) each double the vector, since they are all eigenvectors with eigenvalue 2; that is:

𝑀(10)=(20)𝑀2(10)=𝑀(20)=(40)𝑀3(10)=𝑀(40)=(80)⋮

and so on, until

𝑀100(10)=2100(10).

By the same token:

𝑀100(11)=3100(11).

So now we know the outputs of 𝑀100 at two linearly independent vectors. It would be sufficient, then, to use this information to extract 𝑀100(𝐞1) and 𝑀100(𝐞2). We can now rewrite this as

𝑀100(10)=(21000);𝑀100(01)=𝑀100(11)−𝑀100(10)=(3100−21003100).

Thus encoding 𝑀 gives the answer:

𝑀100=(21003100−210003100).

□

§9.9 [EXER] Exercises

Exercise 9.1. Compute the eigenvalues and eigenvectors for the following matrices:

𝐴=(1111),𝐵=(5124),𝐶=(9009),𝐷=(6106).
Exercise 9.2. Give an example of a 2×2 matrix 𝑇 with four nonzero entries whose eigenvalues are 5 and 7. Then compute the corresponding eigenvectors.

Exercise 9.3 (*). Compute the eigenvectors and eigenvalues of the 6×6 matrix

(5000000−90000005000000000000080000018).

(You can do this question without using any determinants.)

Exercise 9.4 (*). Using the procedure described in Section 9.8, show that

(4367)20=(33333333333333333334333333333333333333336666666666666666666666666666666666666667).

(Each number on the right-hand side is 20 digits.)