A basis in which a matrix becomes diagonal must be made of vectors that the transformation merely stretches, and those vectors can be found by solving one polynomial equation.
The previous lesson showed what a change of basis does, and twice produced a diagonal matrix from a basis chosen without explanation. A diagonal matrix in a basis says exactly that each is sent to a multiple of itself, since column of the new matrix is the image of in the new coordinates, and having only the th entry non-zero means the image is a multiple of . So the search is for directions the map does not turn.
The definition
A non-zero vector is an eigenvector of a square matrix when
for some scalar , called the corresponding eigenvalue. The transformation may stretch , shrink it, or reverse it, but it leaves it on the line through the origin that it started on.
The requirement that be non-zero is not pedantry: holds for every and would make the definition empty. Eigenvalues, by contrast, may perfectly well be zero, and means for a non-zero , which says the null space is non-trivial and the matrix is singular. So a matrix is invertible exactly when zero is not one of its eigenvalues, which is the determinant criterion in a new dress.
Note also that eigenvectors come in lines, not as individual arrows: if works then so does for any non-zero , with the same eigenvalue, since . Quoting an eigenvector always means quoting one representative of a whole line.
Some are visible without any computation. For the projection , the vector is fixed, so it is an eigenvector with eigenvalue , and is sent to , so it is an eigenvector with eigenvalue . For a reflection, everything along the mirror has eigenvalue and everything perpendicular to it has eigenvalue . For a scaling by , every vector is an eigenvector with eigenvalue .
Finding them
Rewrite the definition as , and insert the identity so that both terms are matrices acting on :
This says is in the null space of . A non-zero vector is there only if that matrix is singular, and the test for singularity is the determinant. So the eigenvalues are exactly the solutions of the characteristic equation
and once a is known, its eigenvectors are found by solving the singular system , whose solutions form a subspace called the eigenspace of .
For a two by two matrix the equation takes a memorable form. With , the matrix is , whose determinant is . So
which is why the trace was worth naming in the previous lesson. Comparing coefficients with gives two facts that hold in every dimension: the eigenvalues sum to the trace and multiply to the determinant. Both are free checks on any computation, and both explain why trace and determinant survive a change of basis, since eigenvalues plainly do.
Example. Find the eigenvalues and eigenvectors of .
The trace is and the determinant is , so the characteristic equation is , factoring as . The eigenvalues are and , which sum to and multiply to as required.
For , solve . That matrix is , whose rows are and , so both equations say and the eigenvector is . Check: .
For , the matrix is , with rows and , so and the eigenvector is . Check: .
Now you. Find the eigenvalues and eigenvectors of .
Answer
The trace is and the determinant is , so , that is , giving and . For , the matrix has rows and , so and the eigenvector is ; check . For , the rows are and , so and the eigenvector is ; check . The negative eigenvalue means that direction is reversed as well as kept.
Reading the numbers
An eigenvalue is a stretch factor along its own direction, and its size and sign say what happens there. A value greater than one stretches, between zero and one shrinks, negative reverses, and exactly one leaves the direction fixed pointwise. Zero collapses it.
That reading makes repeated application easy, which is the main practical use of the whole idea. Since and so on, : along an eigenvector, applying the matrix a thousand times is one exponentiation. Whichever eigenvalue is largest in absolute value comes to dominate, since its power grows fastest, so the long-run behaviour of a repeated linear process is governed by the largest eigenvalue and its direction. The next lesson makes that quantitative.
Two more consequences are worth having. If is invertible and , then applying to both sides gives : the inverse has the same eigenvectors with reciprocal eigenvalues. And , so adding a multiple of the identity shifts every eigenvalue by and moves no eigenvector, a trick used constantly in numerical work.
A triangular matrix gives its eigenvalues away, since for a triangular matrix is the product of its diagonal entries minus . The matrix with columns , and has eigenvalues , and , read straight off the diagonal, and that is one reason elimination-based algorithms aim at triangular forms.
Example. The matrix has eigenvalues and with eigenvectors and . What is , and what does do to in the long run?
. For , write it in the eigenvector basis: , since and . Then . The first term grows without bound and the second stays fixed, so the direction of converges to , and after ten steps the two terms are against , so the deviation is already invisible.
Now you. For the same , what are the eigenvalues of and of ?
Answer
has eigenvalues and , with the same eigenvectors. has eigenvalues and , again with the same eigenvectors. As a check, has trace and determinant .
A three by three, and what its eigenvectors mean
Larger matrices work the same way, with a cubic to solve instead of a quadratic. Take the matrix with columns , and , which is symmetric and arises from three equal masses in a line, each joined by identical springs to its neighbours and the outer two to fixed walls.
Expanding along the first row, with for brevity, gives , which factors as . So or , and the eigenvalues are
They sum to , matching the trace, and multiply to , matching the determinant, which expands directly to .
Each eigenvector is found by solving . For the first equation is and the second is , giving : the middle mass stays still while the outer two move oppositely. For the equations give and , so : all three move the same way with the middle one furthest. For the sign flips, giving , with the middle mass opposing its neighbours. Checking the last: , which is times .
Those three patterns are the normal modes of the system: the shapes in which it can oscillate without changing shape, each at its own frequency, proportional to the square root of its eigenvalue. Any motion whatever is a combination of the three, which is why eigenvectors are how vibration is analysed, in a violin string, a bridge deck or a molecule. The highest mode here has times the frequency of the lowest.
When it fails
Two failures are guaranteed to be met, and pretending otherwise makes the next lesson impossible to understand.
A rotation has no real eigenvectors. Take the quarter turn . Its trace is and its determinant is , so the characteristic equation is , which has no real solution. The geometry says the same thing more plainly: a quarter turn moves every direction, so no line survives. For a rotation by the equation is , whose discriminant is negative unless is a multiple of .
Allowing complex numbers rescues the algebra: the roots are , of modulus one, which is the algebra reporting that a rotation preserves length while turning by . Complex eigenvalues of a real matrix always arrive in conjugate pairs, and a pair with non-zero imaginary part always signals rotation of some kind. This course keeps to real numbers, so a rotation is simply a matrix with no eigenvectors here, and the complex theory is the standard next step.
A shear has too few. Take , with trace and determinant , so the equation is and is a repeated root. Solving : the matrix has columns and , so its rows are and , and the condition is . The eigenspace is only the line through , one dimension, though the eigenvalue was repeated twice. Geometrically, the horizontal axis is fixed and every other direction is tilted, so there is nowhere else to look.
A matrix like this, whose eigenvectors do not supply a full basis, is called defective, and no change of basis makes it diagonal. That the failure is possible is exactly what makes the next lesson's theorem worth having.
Example. How many independent eigenvectors does the rotation by have in the real plane, and how many does have?
The rotation has none: its characteristic equation is , with discriminant , since . The identity has an eigenvalue repeated twice, and every non-zero vector is an eigenvector, so it has two independent ones and is already diagonal. A repeated eigenvalue therefore does not by itself imply trouble.
Now you. The matrix and the matrix both have twice. How many independent eigenvectors does each have?
Answer
The first is , which scales everything, so every vector is an eigenvector and there are two independent ones. For the second, has columns and , so the condition is and only the line through qualifies: one independent eigenvector, and the matrix is defective. Two matrices with identical characteristic equations can behave completely differently.
Honest limits
The characteristic polynomial is the right definition and a poor algorithm. Abel proved in 1824 that polynomials of degree five and above have no general solution in radicals, so for a five by five matrix there is no formula for the eigenvalues, and none can exist. Every practical eigenvalue computation is therefore iterative, and the standard method, the QR algorithm from about 1961, repeatedly factorises the matrix into an orthogonal part and a triangular part and reassembles them in the other order, which drives the matrix towards triangular form and reads the eigenvalues off the diagonal. Forming the characteristic polynomial explicitly is also numerically disastrous, since polynomial roots can be wildly sensitive to their coefficients.
Eigenvalues can also be badly conditioned in their own right: for a defective or nearly defective matrix, a perturbation of size in the entries can move the eigenvalues by about , so a change in the twelfth digit shifts the answer in the sixth. Symmetric matrices are free of this problem, which is one more reason the final lesson gives them a section to themselves.
When the eigenvectors do form a basis, the change of basis of the previous lesson turns the matrix diagonal, and everything about repeated application becomes arithmetic on a handful of numbers. That is the next lesson.