Chapter 9. Eigenvalues and eigenvectors
In this chapter, we’ll define an eigenvalue and eigenvector. The main goal of this chapter is that:
§9.1 [TEXT] The problem of finding eigenvectors
Let’s define the relevant term first:
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.
Let and consider the vector . Then
So we would say is an eigenvector with eigenvalue .
Of course, if is an eigenvector, so are all its multiples, e.g.
so is an eigenvector with the same eigenvalue , etc.
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
Phrased another way, the problem of finding eigenvectors is, by definition, looking for , , such that
Smart-alecks will say 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 . In other words, let’s solve
If we solve the system of equations, we get
Well, that’s boring. In this system of equations, the only solution is .
We can try a different guess: maybe we use instead of . An eigenvector with eigenvalue ought to correspond to
If we solve the system of equations, we get
which… isn’t any better. We still don’t get any solutions besides .
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 , , etc., then I’m unlikely to find anything interesting. In order to get a system that doesn’t just solve to , 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:
We need to cherry-pick to make sure that the system doesn’t just solve to like the examples we tried with and . But we learned how to do this in the last chapter: in order to get a degenerate system you need to make sure that
Expanding the determinant on the left-hand side gives
Great! So we expect that if we choose either and , then we will get a degenerate system, and we won’t just get . Indeed, let’s check this:
When , our system is
So for example, and will be eigenvectors with eigenvalue :
On exam, you probably answer “the eigenvectors with eigenvalue are the multiples of ”, or “the eigenvectors with eigenvalue are the multiples of ” if you want; these are the same thing. Or if you want to mess with the grader, “the eigenvectors with eigenvalue are the multiples of ” is fine too.
When , our system is
So for example, is an eigenvector with eigenvalue :
On exam, you should answer “the eigenvectors with eigenvalue are the multiples of ”. Or you can say “the eigenvectors with eigenvalue are the multiples of ” if you want; these are the same thing. You could even say “the eigenvectors with eigenvalue are the multiples of ” and still get credit, but that’s silly.
§9.3 [RECAP] Summary
To summarize the story above:
We had the matrix and wanted to find ’s for which the equation
had solutions other than .
We realized that guessing was never going to fly, so we went out of our way to cherry-pick to make sure the system was degenerate. The buzzwords for this are “find the roots of the characteristic polynomial”, but I wanted to show that it flows naturally from the end goal.
For the two values of we cherry-picked, we know the system of equations is degenerate. So we solve the two degenerate systems and see what happens.
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:
- We cherry-pick to make sure the system doesn’t just solve to .
- To do the cherry-picking, ensure so that our system is degenerate.
§9.4 [RECIPE] Calculating all the eigenvalues
To repeat the story:
Given a matrix , to find its eigenvectors and eigenvalues:
- 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 .
- 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.)
Eigenvectors are sometimes grouped into so-called eigenlines because every multiple of an eigenvector is also an eigenvector. For example, if you get for , any of the following outputs is often acceptable:
- “Any multiple of is an eigenvector for ”
- “Any multiple of is an eigenvector for ”
- “Any multiple of is an eigenvector for ”
- …
And in practice people will just say “ is the eigenvector for ” and the “any multiple of” is understood.
Compute all eigenvalues and eigenvectors of
Solution. We follow the recipe:
We compute , where is the identity matrix:
Now, compute the determinant of and set it equal to zero:
Expanding this:
so the equation becomes:
Solving for gives or .
There are two cases:
For , solve :
This gives the equation , so the eigenvector is as well as any multiple of it.
For , solve :
This gives the equation , so the eigenvector is or any multiple of it.
In conclusion, and its multiples are the eigenvectors for and and its multiples are the eigenvectors for .
Compute the eigenvalues and eigenvectors of the matrix
Solution. We follow the recipe:
First, we compute :
To find the eigenvalues, we set the determinant of equal to zero:
Expanding this expression:
Now, substitute this into the equation:
Solving for gives or .
Now, we find the eigenvectors corresponding to each eigenvalue.
For , we solve . First, compute :
We now solve the system:
This gives the equations:
From the first equation, we get . Therefore, the eigenvectors corresponding to are the multiples of .
For , we solve . First, compute :
We now solve the system:
This gives the equations:
From the first equation, we get . Therefore, the eigenvector corresponding to is .
In conclusion, and its multiples are the eigenvectors for and and its multiples are the eigenvectors for .
Compute the eigenvalues and eigenvectors of the matrix
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.
We need to find the matrix , where is the identity matrix. First, we compute :
To find the eigenvalues, we set the determinant of equal to zero:
This gives . So we only have one case!
First, compute :
We now solve the system:
This gives the equations:
From the first equation, we get . Therefore, the eigenvector corresponding to is and its multiples.
The only eigenvalue of the matrix is (with multiplicity 2). The corresponding eigenvector is and its multiples.
Solution. The matrix is , but that’s no big deal.
We need to find the matrix , where is the identity matrix. First, we compute :
To find the eigenvalues, we set the determinant of equal to zero:
Setting this equal to and solving gives , , .
Now, we find the eigenvectors corresponding to each eigenvalue.
For : We solve . First, compute :
We now solve the system:
In other words , and . From the first and second rows, we have , so . From the third row, we have . There are no constraints on at all. Thus, the eigenvector corresponding to is
and all its multiples, i.e. those vectors for which the second and third components are zero.
For : We solve . First, compute :
We now solve the system:
In other words, , and . From the third row, we have . From the first row, we get , so . Thus, the eigenvector corresponding to is:
and its multiples.
For : We solve . First, compute :
We now solve the system:
In other words, , , . Hence and there are no constraints on . Therefore, the eigenvector corresponding to is:
and its multiples, i.e. any vector for which the first two components are .
In conclusion, the eigenvalues of the matrix are , , and ; the corresponding eigenvectors are:
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.
Solution. Keep going, even with terrible numbers.
We need to find the matrix , where is the identity matrix. First, we compute :
To find the eigenvalues, we set the determinant of equal to zero:
Expanding this expression:
so the equation becomes:
We now solve the quadratic equation using the quadratic formula:
Thus, the eigenvalues are:
Now, we find the eigenvectors corresponding to each eigenvalue.
For : We solve . First, compute :
We now solve the system:
This gives the equations:
From the first equation, we get . Therefore, the eigenvector corresponding to is:
For , it’s actually exactly the same with replaced by , so I won’t repeat it. You get the eigenvector
In conclusion the eigenvalues of the matrix are:
The corresponding eigenvectors are:
§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
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 .
In particular: if you do all the steps right, you should never wind up with 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
which doesn’t look stupid. But again, if you check the determinant, you find out
So you know a priori that there will be solutions besides .
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
for and , as a function of . I think this particular example works out to , . And it indeed fits the third equation too.
§9.6 [SIDENOTE] Complex eigenvalues
Even in the case, you’ll find a lot of matrices with real coefficients have no eigenvectors. Here’s one example.
Let
be the matrix corresponding to rotation by degrees. (Feel free to replace by a different number.) I claim that has no real eigenvalues or eigenvectors.
Indeed, if was an eigenvector, then needs to point in the same direction as , by definition. But that can never happen: is rotation by , so and necessarily point in different directions — 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.
Compute the eigenvalues and eigenvectors of the matrix
Solution. Follow the recipe, just don’t be scared of complex numbers:
We need to find the matrix , where is the identity matrix. First, we compute :
To find the eigenvalues, we set the determinant of equal to zero:
Setting this equal to zero and solving, we get
as the two eigenvalues.
Now, we find the eigenvectors corresponding to each eigenvalue.
Choose first. We solve . First, compute :
We now solve the system:
This gives the equations:
From the first equation, we get . Therefore, the eigenvector corresponding to is:
and its multiples.
When , all the ’s flip to ’s and nothing else changes. The eigenvector corresponding to is thus
and its multiples.
In conclusion, the two eigenvalues are
and the corresponding eigenvectors are:
§9.7 [TEXT] Trace and determinant
In 18.02 the following definition is briefly mentioned, but we won’t do much with it:
Then the following two theorems are roughly true:
- The trace of a matrix equals the sum of the eigenvalues, either real or complex.
- The determinant of a matrix equals the product of the eigenvalues, either real or complex.
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 . 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:
Okay, so here’s the application I promised you.
At first glance, you might think this question is obviously impossible without a computer! Raising a matrix to the th power seems like it would require 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:
- The vector is an eigenvector with eigenvalue (as is any multiple of ), because .
- The vector is an eigenvector with eigenvalue (as is any multiple of ), because .
Now the trick is the following: it’s really easy to apply to the eigenvectors, because it’s just multiplication by a constant. For example, the first few powers of on each double the vector, since they are all eigenvectors with eigenvalue ; that is:
and so on, until
By the same token:
So now we know the outputs of at two linearly independent vectors. It would be sufficient, then, to use this information to extract and . We can now rewrite this as
Thus encoding gives the answer:
§9.9 [EXER] Exercises
Exercise 9.1. Compute the eigenvalues and eigenvectors for the following matrices:
Exercise 9.3 (*). Compute the eigenvectors and eigenvalues of the matrix
(You can do this question without using any determinants.)
Exercise 9.4 (*). Using the procedure described in Section 9.8, show that
(Each number on the right-hand side is digits.)