Eigenvalues and Eigenvectors
A matrix acts on vectors, and most come out pointing in a new direction — but a few special vectors come out parallel to themselves. Those are the eigenvectors, and their stretching factors are the eigenvalues. This lecture defines them, finds them via the characteristic equation det(A minus lambda I) = 0, and tours the possibilities: real and perpendicular for symmetric matrices, complex for rotations, and a shortage of eigenvectors when an eigenvalue repeats.
Vectors that keep their direction
This is the first lecture on eigenvalues and eigenvectors — “a big subject that will take up most of the rest of the course.” The matrices are square again, and we’re hunting for some special numbers and some special vectors.
What does a matrix do? It acts on vectors: in goes , out comes . It’s like a function in calculus — in goes a number , out comes — except we’re up in more dimensions. The vectors Strang is specially interested in are the ones that come out in the same direction they went in. That won’t be typical: for most vectors, points somewhere new. But certain vectors come out parallel to themselves, and those are the eigenvectors.
Take a second on . If the eigenvalue is zero, then — the eigenvectors with eigenvalue zero are exactly the vectors in the null space. So if is singular, meaning it takes some nonzero vector into zero, then is an eigenvalue. From the eigenvalue point of view, zero is no special deal anymore — it’s just one of the eigenvalues.
Notice the difficulty: this is not . We can’t just run elimination, because there are two unknowns, and , and they’re multiplied together. We’ll need a good idea. But first, some matrices where we can see the answer without any formulas.
Two matrices we can read by eye
A projection matrix. Let project every vector onto a plane. Take some vector poking out of the plane — is it an eigenvector? No: its projection points in a different direction. So which vectors do get projected onto themselves?
Any vector already in the plane: project it and you get it back, unchanged. So every in the plane is an eigenvector, and comparing with , the eigenvalue is . That’s a whole plane of eigenvectors — two independent ones. In three dimensions we hope for three, and the third is the vector perpendicular to the plane: its projection is zero, so , and the eigenvalue is . The eigenvalues of a projection matrix: one and zero — read off the picture, no formula needed.
A permutation matrix. Now take
which switches the two components of . What vector is unchanged when you swap its components? : then , so . A two-by-two matrix should have a second eigenvalue, and this one is going to be negative even though the matrix has no negative entries. Send in : swapping gives , which is minus the original. So and .
The trick: make A − λI singular
Time to face the equation in general. Here’s the trick — simple idea. Bring everything to one side:
We don’t know and we don’t know , but we know something: if this is to have a solution that isn’t the zero vector (a zero eigenvector is useless — doesn’t count), then the matrix — the matrix shifted by down its diagonal — must be singular. Otherwise the only solution would be . And singular means determinant zero:
So the plan is: find first. Then, for each eigenvalue, is a singular matrix and the eigenvectors are its null space — and we’re experts at finding null spaces. Elimination, identify the pivot columns, give the free variable the value one, done. Finding second is a doable job.
A worked example, with trace and determinant hiding in it
Two numbers in that quadratic deserve a second look. The in is — the trace. The is the determinant of , which equals the product of the eigenvalues: . In the two-by-two case it’s really nice:
And since is symmetric, two promised things happened: the eigenvalues came out as nice real numbers, and the eigenvectors and are perpendicular — dot product zero. That’s not luck; that’s the whole point, and it happened for the symmetric permutation matrix too.
Hunt for those eigenvectors yourself. Rotate around the unit circle and watch swing around — it lines up with only along and , where the stretch factor reads off the eigenvalue:
A = [3 1; 1 3]. Blue is x (unit length), pink is Ax. Most of the time Ax points somewhere new — but at four special directions it lines up with x. Those are the eigenvectors; the stretch factors are the eigenvalues.
Adding 3I — and why A + B is not so great
Compare this example with the permutation matrix. How are they related? is just plus . What happened to the eigenvalues? They went from to — three bigger. What happened to the eigenvectors? Nothing at all — still and . And it’s easy to see why: if , then
Same eigenvector , eigenvalue shifted to . This is the question we’ll keep asking all chapter: do something to the matrix — what happens to its eigenvalues and eigenvectors?
But now a caution. Suppose is not but some general matrix with eigenvalues . You might want to argue: and , add them, and has eigenvalue . That’s false. What’s the matter with the argument? We have no reason to believe is also an eigenvector of — a different matrix normally has different eigenvectors, some other vector , “and when I add I get just rubbish.”
Rotations: when the eigenvalues go complex
Another example, chosen to bring out a possibility — something is going to go wrong. Take the matrix that rotates every vector by ninety degrees:
It deserves the letter — a very, very orthogonal matrix. Before computing anything, the shortcuts already smell trouble. The trace is , so the two eigenvalues add to zero: a plus and a minus. But the determinant is , and the determinant is the product of the eigenvalues — a plus and a minus can’t multiply to . And geometrically: if every vector gets rotated by ninety degrees, what vector could possibly come out parallel to itself?
Follow the rules anyway:
The eigenvalues are and . Complex numbers have to enter 18.06 at this moment — a perfectly real matrix can have imaginary eigenvalues. There’s a little order in the chaos: complex eigenvalues of a real matrix come in complex conjugate pairs — if is an eigenvalue, so is the number with the sign of its imaginary part switched.
When does this happen? Symmetric matrices are safe: symmetric, or close to it, means real eigenvalues. But is as far from symmetric as you can get — it’s anti-symmetric, : flip across the diagonal and every sign reverses. Those are the extreme case, with pure imaginary eigenvalues; general matrices sit somewhere in between.
Repeated eigenvalues: a shortage of eigenvectors
One more bad thing can happen — Strang is getting through the bad things today, “so the next lecture can be pure happiness.” Take
This matrix is triangular, and that’s really useful to know: for a triangular matrix you can read the eigenvalues right off the diagonal. Check it honestly:
The determinant of a triangular matrix is the product down the diagonal, so and — a repeated eigenvalue. Why be pessimistic about a matrix whose eigenvalues can be read at a glance? The problem is in the eigenvectors. For :
Its null space is the line through . And the eigenvector for ? It’s three again — the same matrix, the same null space. We want a second, independent eigenvector, never one that depends on , and the conclusion is: there isn’t one. This is a degenerate matrix — a two-by-two matrix with only one line of eigenvectors instead of two. A repeated eigenvalue opens the possibility of a shortage of eigenvectors, and matrices like this are the ones where eigenvectors won’t give the complete story. Monday’s lecture gives the complete story for all the others.
Problems
Work these before revealing the solutions — each uses only this lecture’s methods.
Find the eigenvalues and eigenvectors of
Check your eigenvalues against the trace and the determinant, and check that the eigenvectors are perpendicular.
Show solution
so , . Checks: trace ✓ and ✓.
For : , whose null space gives .
For : , whose null space gives .
Perpendicular: ✓ — as they must be, since is symmetric.
The matrix
projects every vector in the plane onto the line through . Without writing the characteristic equation, use the projection picture to find both eigenvalues and their eigenvectors. Then verify the trace.
Show solution
A vector already on the line is unchanged by the projection: , so has eigenvalue .
A vector perpendicular to the line projects to zero: , so has eigenvalue — it’s in the null space, and is singular.
Trace check: ✓.
A matrix has trace and determinant .
(a) Find the eigenvalues of without knowing its entries.
(b) What are the eigenvalues of ? What happens to the eigenvectors?
Show solution
(a) The eigenvalues satisfy , so and . (Sum , product ✓.)
(b) If , then . So the eigenvalues shift to and , and the eigenvectors are exactly the same vectors .
Find the eigenvalues of
Before computing, predict from the trace and determinant why they can’t be real, and say what property of guarantees pure imaginary eigenvalues.
Show solution
Prediction: trace , so — one plus, one minus. But , and two real numbers that add to zero have a product . No real pair works.
Compute: , so and — a complex conjugate pair, as complex eigenvalues of a real matrix must be.
The guarantee: is anti-symmetric, , the extreme opposite of symmetric — those are exactly the matrices with pure imaginary eigenvalues.
Find the eigenvalues and all independent eigenvectors of the triangular matrix
Is there a full set of two independent eigenvectors?
Show solution
Triangular matrix: the eigenvalues sit on the diagonal, — repeated. Honestly: .
For :
The null space forces , so and the free variable is : the only eigenvectors are multiples of .
Both eigenvalues give the same singular matrix and the same null space, so there is no second independent eigenvector. The matrix is degenerate: one line of eigenvectors instead of two.