Chapter 14. Eigenvectors
In this chapter, we’ll define an eigenvalue and eigenvector. The first goal of this chapter is that:
After that, we will develop the theory of eigenvalues and eigenvectors, the so-called “Jordan canonical form”.
§14.1 The problem of finding eigenvectors
Let’s define the relevant term first:
Definition 14.1 (Eigenvalue and eigenvector). 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 ).
§14.2 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?
§14.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 in the preface: 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 .
§14.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.
§14.3 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.
§14.4 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.)
Remark 14.4. 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:
§14.5 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.
§14.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!
§14.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). For example, 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 .
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.
§14.6 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:
§14.7 Trace and determinant
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 . You need to define repetition correctly to handle these edge cases; we’ll do so in Section 14.15.
§14.8 Application of eigenvectors: matrix powers
I couldn’t resist including this 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:
§14.9 Why you should care about a nice basis
We know that a square matrix is really just a linear map from to . What’s the simplest type of linear map? It would just be multiplication by some scalar , which would have associated matrix (in any basis!)
That’s perhaps too simple, though. If we had a fixed basis , …, then another very “simple” operation would just be scaling each basis element by , i.e. a diagonal matrix of the form
These maps are more general. Indeed, you can, for example, compute in a heartbeat: the map sends . (Try doing that with an arbitrary matrix.)
Of course, most linear maps are probably not that nice. Or are they?
Let be some two-dimensional vector space with and as basis elements. Let’s consider a map by and , which you can even write concretely as
This doesn’t look anywhere as nice until we realize we can rewrite it as
So suppose we change to the basis and . Thus in the new basis,
So our completely random-looking map, under a suitable change of basis, looks like the very nice maps we described before!
In the rest of this chapter, we will be making our luck, and we will see that our better understanding of matrices gives us the right way to think about this.
Most theorems in the rest of this chapter only work for
- finite-dimensional vector spaces ,
- with complex scalars, i.e. -vector spaces.
On the other hand, the definitions work fine without these assumptions.
§14.10 Eigenspaces
In the “getting lucky” example, we saw that there were two very nice vectors, and , for which did something very simple. These are exactly the eigenvectors. Note there is no mention of a basis anywhere in the definition of eigenvector.
We will sometimes abbreviate “ is an eigenvector with eigenvalue ” to just “ is a -eigenvector”.
Consider the example earlier with .
- Note that and are -eigenvectors and -eigenvectors.
- Of course, is also a -eigenvector.
- And, is also a -eigenvector.
So you can quickly see the following observation.
This lets us state succinctly that “ is an eigenvalue of with one-dimensional eigenspace spanned by ”.
Unfortunately, it’s not exactly true that eigenvalues always exist.
However, it is true if we work with -vector spaces instead, because polynomials with complex coefficients always have roots.
Proof. (From Axler’s Linear Algebra Done Right.) The idea behind this proof is to consider “polynomials” in . For example, would be shorthand for . In this way we can consider “polynomials” ; this lets us tie in the fact that complex polynomials have roots. These polynomials behave nicely:
Let and fix any nonzero vector , and consider vectors , , …, . There are of them, so they can’t be linearly independent for dimension reasons; thus there is a nonzero polynomial such that is zero when applied to . WLOG suppose is a monic polynomial, and thus say. Then we get
(where is the identity matrix). This means at least one of is not injective, i.e. has a nontrivial kernel, which is the same as an eigenvector.
So in general we like to consider -vector spaces. This is not a big loss: any real matrix can be interpreted as a complex matrix whose entries just happen to be real, for example.
§14.11 The Jordan form
So that you know exactly where I’m going, here’s the main theorem.
Definition 14.10 (Jordan block). A Jordan block is an matrix of the following shape:
In other words, it has on the diagonal, and above it. We allow , so is a Jordan block.
Theorem 14.11 (Jordan canonical form). Let be a linear map of finite-dimensional -vector spaces. Then we can choose a basis of such that the matrix is “block-diagonal” with each block being a Jordan block.
Such a matrix is said to be in Jordan form. This form is unique up to rearranging the order of the blocks.
As an example, this means the matrix should look something like:
What does this mean? Basically, it means our dream is almost true. What happens is that can get broken down as a direct sum
and acts on each of these subspaces independently. These subspaces correspond to the blocks in the matrix above. In the simplest case, , so has a basis element for which ; in other words, we just have a simple eigenvalue. But on occasion, the situation is not quite so simple, and we have a block of size greater than ; this leads to ′s just above the diagonals.
I’ll explain later how to interpret the ′s, when I make up the word descending staircase. For now, you should note that even if , we still have a basis element which is an eigenvector with eigenvalue .
Let and suppose is given by the matrix
Reading the matrix, we can compute all the eigenvectors and eigenvalues: for any constants we have
The element on the other hand, is not an eigenvector since .
§14.12 Nilpotent maps
Bear with me for a moment. First, define:
What’s an example of a nilpotent map?
Let have basis , , . Then the map which sends
is nilpotent, since , and hence for all .
The descending staircase has matrix representation
You’ll notice this is a Jordan block.
That’s a pretty nice example. As another example, we can have multiple such staircases.
Let have basis , , , , . Then the map
is nilpotent.
Picture, with some zeros omitted for emphasis:
You can see this isn’t really that different from the previous example; it’s just the same idea repeated multiple times. And in fact we now claim that all nilpotent maps have essentially that form.
Hence:
Each chain , , , … is just one staircase. The proof is given later, but first let me point out where this is going.
Here’s the punch line. Let’s take the double staircase again. Expressing it as a matrix gives, say
Then we can compute
It’s a bunch of Jordan blocks! This gives us a plan to proceed: we need to break into a bunch of subspaces such that is nilpotent over each subspace. Then Nilpotent Jordan will finish the job.
§14.13 Reducing to the nilpotent case
In this way, the Jordan form is a decomposition of into invariant subspaces.
Now I’m going to be cheap, and define:
Picture of a decomposable map:
As you might expect, we can break a space apart into “indecomposable” parts.
Proposition 14.18 (Invariant subspace decomposition). Let be a finite-dimensional vector space. Given any map , we can write
where each is -invariant, and for any the map is indecomposable.
We will also need the following lemma.
Lemma 14.19 (). Let be a finite dimensional vector space. Let be a linear map, and let denote applied times. Then there exists an integer such that
Proof. Consider
For dimension reasons, these subspaces must eventually stabilize: for some large integer , and . When this happens, , since is an automorphism of . On the other hand, by rank-nullity we also have . Thus for dimension reasons, .
Incredibly, with just that we’re almost done! Consider a decomposition as above, so that is an indecomposable map. Then has an eigenvalue , so let ; hence .
By Lemma 14.19, we have
for some . But we assumed was indecomposable, so this can only happen if and (since contains our eigenvector). Hence is nilpotent, so it’s a collection of staircases. In fact, since is indecomposable, there is only one staircase. Hence is a Jordan block, as desired.
§14.14 Proof of nilpotent Jordan
The proof is just induction on . Assume , and let be the image of . Since is nilpotent, we must have . Moreover, if (i.e. is the zero map) then we’re already done. So assume .
By the inductive hypothesis, we can select a good basis of :
for some (here we have taken advantage of the fact that each element of is itself of the form for some ).
Also, note that there are exactly elements of which are in (namely the last element of each of the staircases). We can thus complete it to a basis , …, (where ). (In other words, the last element of each staircase plus the new ones are a basis for .)
Now consider
Hence is a basis of the desired form.
§14.15 Algebraic and geometric multiplicity
This is some convenient notation: let’s consider the matrix in Jordan form
We focus on the eigenvalue , which appears multiple times, so it is certainly “repeated”. However, there are two different senses in which you could say it is repeated.
- Algebraic: You could say it is repeated five times, because it appears five times on the diagonal.
Geometric: You could say it really only appears two times: because there are only two eigenvectors with eigenvalue , namely and .
Indeed, the vector for example has , so it’s not really an eigenvector! If you apply to twice though, you do get zero.
Both these notions are valid, so we will name both. To preserve generality, we first state the “intrinsic” definition.
Definition 14.24 (Geometric and algebraic multiplicity). Let be a linear map and a scalar.
- The geometric multiplicity of is the dimension of the -eigenspace.
- Define the generalized eigenspace to be the subspace of for which for some . The algebraic multiplicity of is the dimension .
(Silly edge case: we allow “multiplicity zero” if is not an eigenvalue at all.)
However in practice you should just count the Jordan blocks.
Retain the matrix mentioned earlier and let .
- The eigenspace has basis and , so the geometric multiplicity is .
- The generalized eigenspace has basis , , , , so the algebraic multiplicity is .
To be completely explicit, here is how you think of these in practice:
Proposition 14.25 (Geometric and algebraic multiplicity vs Jordan blocks). Assume is a linear map of finite-dimensional vector spaces, written in Jordan form. Let be a scalar. Then
- The geometric multiplicity of is the number of Jordan blocks with eigenvalue ; the eigenspace has one basis element per Jordan block.
- The algebraic multiplicity of is the sum of the dimensions of the Jordan blocks with eigenvalue ; the eigenspace is the direct sum of the subspaces corresponding to those blocks.
This actually gives us a tentative definition:
- The trace is the sum of the eigenvalues, counted with algebraic multiplicity.
- The determinant is the product of the eigenvalues, counted with algebraic multiplicity.
This definition is okay, but it has the disadvantage of requiring us to work with -vector spaces. It is also not the definition that is easiest to work with computationally.
§14.16 Characteristic polynomials, and Cayley-Hamilton
Let’s connect with the theory of determinants. Take a map , where is an -dimensional -vector space, and suppose its eigenvalues are , , …, (with repetition). Then the characteristic polynomial is given by
Note that if we’ve written in Jordan form, that is,
(here each is either or ), then we can hack together the definition
The latter definition is what you’ll see in most linear algebra books because it lets you define the characteristic polynomial without mentioning the word “eigenvalue” (i.e. entirely in terms of arrays of numbers). I’ll admit it does have the merit that it means that given any matrix, it’s easy to compute the characteristic polynomial and hence compute the eigenvalues; but I still think the definition should be done in terms of eigenvalues to begin with. For instance the determinant definition obscures the following theorem, which is actually a complete triviality.
Here, by we mean that if
then
is the zero map, where denotes applied times. We saw this concept already when we proved that had at least one nonzero eigenvector.
Suppose . Using the determinant definition of characteristic polynomial, we find that . Indeed, you can verify that
If you define without the word eigenvalue, and adopt the evil view that matrices are arrays of numbers, then this looks like a complete miracle. (Indeed, just look at the terrible proofs on Wikipedia.)
But if you use the abstract viewpoint of as a linear map, then the theorem is almost obvious:
Proof Proof of Cayley-Hamilton. Suppose we write in Jordan normal form as
where has eigenvalue and dimension . By definition,
By definition, is the zero map on . So is zero on . Similarly it’s zero on each of the other ’s — end of story.
§14.17 Exercises
Problem 14.29. Compute the eigenvalues and eigenvectors for the following matrices:
Problem 14.31. Compute the eigenvectors and eigenvalues of the matrix
(You can do this question without using any determinants.)
Problem 14.32. Using the procedure described in Section 14.8, show that
(Each number on the right-hand side is digits.)
Problem 14.34 (The word “diagonalizable”). A linear map (where is finite) is said to be diagonalizable if it has a basis , …, such that each is an eigenvector.
- Explain the name “diagonalizable”.
- Suppose is a -vector space. Then show that is diagonalizable if and only if for any , the geometric multiplicity of equals the algebraic multiplicity of .
Problem 14.37 (Writing a polynomial backwards). Define the complex vector space of polynomials with degree at most , say . Define by
Determine the eigenspaces of .