Eigenvectors and Eigenvalues
The special directions a matrix can stretch but never turn.
On this page
Most vectors get knocked off their line#
Pick a matrix — say
and pick a vector. Almost any vector. Multiply, and two things happen: the vector changes length, and it changes direction. It gets knocked off the line it was sitting on.
Now try . Multiply: . Same direction, three times as long. Try : — unchanged entirely.
These two directions are special. The matrix does not turn them; it only scales them. They are the eigenvectors of , and the scale factors — and — are its eigenvalues. Every matrix has such directions (once you allow complex numbers), and finding them is the single most useful thing you can do to a matrix. It tells you what the transformation is really doing, stripped of the coordinate system you happened to write it in.
The defining equation#
A nonzero vector is an eigenvector of a square matrix with eigenvalue when
Read this as a sentence: applying the matrix does the same thing as multiplying by a single number. The whole apparatus of the matrix — all entries, all the mixing of coordinates — collapses, on this one direction, into a single scalar.
A few immediate consequences worth internalizing:
- Eigenvectors come in lines, not points. If then too. The eigenvector is really the whole span — the invariant line — and we usually normalize to length 1 just to have a representative.
- is excluded by fiat. It satisfies the equation for every , which would make the definition useless.
- Eigenvalues can be negative or zero. flips the vector to point backward along the same line — still the same span, so still an eigenvector. means : the matrix crushes that direction to nothing, which happens exactly when is singular.
Watching the invariant lines light up#
The clearest way to feel this is to apply a matrix to a whole circle of vectors at once and see which ones refuse to turn.
Every violet arrow starts on the unit circle and morphs into its image . Watch what happens: most arrows swing off their starting line as they grow. But a few slide straight out (or straight in) along the line they began on — those light up gold, and the dashed lines mark their spans. Those are the eigenvectors.
Things worth trying:
- Start with the default . Two gold directions appear at and , with and in the readout. Note that the direction doesn't move at all.
- Switch to Pure rotation 90° (). Nothing lights up, and the readout goes pink: . A rotation has no invariant line in the real plane, because it turns every direction. We will come back to this.
- Switch to Shear (). Only one gold line survives, along the horizontal axis. A shear slides everything sideways; the only direction it leaves alone is the one it slides along. This is a defective matrix — a repeated eigenvalue with only one eigenvector.
- Set so that (e.g. ). One eigenvalue drops to zero and that whole gold direction collapses to the origin.
Computing them: the characteristic polynomial#
How do you find these directions without hunting? Rearrange the defining equation:
We want a nonzero in the null space of . A matrix has a nonzero null vector precisely when it is singular, and a matrix is singular precisely when its determinant vanishes. So the eigenvalues are the solutions of the characteristic equation:
For a matrix , expand it:
The coefficients are exactly the trace and the determinant:
which gives the two identities you should keep in your pocket: and . The determinant is the product of the eigenvalues — which is why a zero eigenvalue and a singular matrix are the same statement.
Run it on our example: , , so , giving . To get the eigenvector for , solve :
The solution set is the whole line — as promised, a line rather than a point. That the rows came out proportional is not luck: we chose to make this matrix singular, so a redundant row is guaranteed. If you solve for an eigenvector and get only , you made an arithmetic error somewhere.
Real versus complex#
The discriminant decides everything:
- Positive — two distinct real eigenvalues, two distinct invariant lines.
- Zero — a repeated real eigenvalue. There may be two independent eigenvectors (as for , where every direction is an eigenvector) or only one (the shear).
- Negative — a complex conjugate pair , and no real eigenvector at all.
The rotation is the cleanest case: , , so and . There is genuinely no line in the plane that a rotation maps to itself, so the honest answer has to leave the real numbers. The complex eigenvalue is not a bookkeeping artifact — writing it as hands you the rotation angle and the per-step growth factor directly. Complex eigenvalues are the algebra's way of saying "this transformation spirals."
Diagonalization: the matrix in its own coordinates#
Suppose () has linearly independent eigenvectors. Stack them as the columns of a matrix , and put the eigenvalues down the diagonal of . Then , and since the independent columns make invertible:
This says: in the coordinate system built from its own eigenvectors, the matrix is just a list of scale factors. All the apparent complexity of was an artifact of describing it in the standard basis.
The payoff is that powers become trivial. The middle terms telescope:
and is just each raised to the . Computing by repeated multiplication is brutal; via diagonalization it costs one change of basis, exponentiations, and one change back. The same trick defines matrix functions in general — , which is how you solve a linear system of differential equations in closed form.
Not every matrix diagonalizes. The shear has twice but only a one-dimensional eigenspace, so there is no basis of eigenvectors and no . Such matrices are called defective, and they are why the Jordan normal form exists. But two big families are always safe: any matrix with distinct eigenvalues, and — by the spectral theorem — any real symmetric matrix, which is even better behaved, since its eigenvalues are all real and its eigenvectors can be chosen mutually orthogonal. That guarantee is precisely what makes PCA work.
Finding the dominant direction by brute force#
The characteristic polynomial is a fine tool for matrices and a terrible one for matrices — root-finding on a degree-2000 polynomial is numerically hopeless. So how does anyone compute eigenvectors at scale?
The oldest answer is embarrassingly simple: pick a vector and keep multiplying.
Each step applies and rescales back to unit length: . The gold arrow is the current iterate, the blue arrow is where sends it, and the green dashed line is the true dominant eigenvector. On the right, the Rayleigh quotient
is plotted at each step, climbing toward .
Try dragging the starting angle anywhere on the circle and stepping through: the iterate snaps onto the same green line almost regardless of where it starts. Then switch matrices and watch the rate change. That rate is the whole story. Decompose the start vector in the eigenbasis, , and apply repeatedly:
Since , the second term dies geometrically and the dominant eigenvector is all that survives. Convergence is linear with ratio : for () the error falls by a factor of each step, while for the eigenvalues are closer together and the error creeps down instead. And note the one way it can fail: if — if you start exactly perpendicular to the dominant eigenvector — the term you need was never there. In exact arithmetic you would stay stuck; in floating point, rounding error quietly supplies a nonzero and the iteration converges anyway.
Where this shows up#
Eigen-analysis is not one technique. It is the same technique wearing four disguises.
Principal component analysis. Take a data set, center it, and form the covariance matrix . It is symmetric, so the spectral theorem gives real eigenvalues and orthogonal eigenvectors. Those eigenvectors are the principal components — the directions of greatest variance — and each eigenvalue is the variance along its component. Keeping the top few and discarding the rest is dimensionality reduction: you are rewriting the data in the coordinate system where the matrix is diagonal, then throwing away the coordinates that barely move.
PageRank. Model a web surfer clicking links at random. The transition matrix has = probability of moving from page to page . The long-run fraction of time spent on each page is the vector with — the eigenvector for . Google's original algorithm computed it by power iteration, on a matrix with billions of rows, exactly as in the widget above. The Perron–Frobenius theorem is what guarantees such a dominant eigenvector exists and is unique for this kind of matrix.
Vibrational modes. A structure's small oscillations obey . The eigenvectors of are the normal modes — patterns of motion that oscillate coherently without exciting each other — and the eigenvalues give for each. Every complicated vibration is a superposition of modes. This is why bridge and aircraft engineers compute eigenvalues before building anything: a resonant mode whose frequency matches an external driving force is how structures shake themselves apart.
Stability of dynamical systems. For , write the state in the eigenbasis and every component evolves independently as . All trajectories decay to the origin exactly when every ; a single eigenvalue outside the unit circle means some initial condition blows up. In continuous time, , the condition becomes , and the imaginary part sets the oscillation frequency of the approach. Control engineers design feedback precisely to move a system's eigenvalues into the stable region.
The thread through all four: a matrix acting repeatedly is hard to think about, but a number raised to a power is easy. Eigenvectors are the directions along which a matrix is just a number.
- An eigenvector is a direction the matrix stretches but never turns: , with the eigenvalue as the stretch factor. Eigenvectors are really invariant lines, not single vectors.
- You find eigenvalues by forcing to be singular, i.e. solving ; for this is , so the eigenvalues sum to the trace and multiply to the determinant.
- Complex eigenvalues are not a failure — they mean the transformation rotates, and a rotation genuinely has no real invariant line.
- Diagonalizing, , rewrites the matrix in its own eigenvector coordinates where it is just a list of scale factors, making and easy. It needs a full basis of eigenvectors, which defective matrices like a shear lack.
- At scale nobody uses the characteristic polynomial: power iteration converges to the dominant eigenvector at rate , and it is how PCA, PageRank, vibrational modes, and stability analysis are all actually computed.
Share this article