TL;DR
Most vectors change direction when a matrix acts on them. A few special vectors only get longer or shorter. Those are the eigenvectors, and the factor by which each one is stretched is its eigenvalue. Together they describe the matrix's action in the simplest possible terms: along each eigenvector, the matrix is just multiplication by a number.
To find them, you solve for the eigenvalues , then solve for each eigenvector .
Where you'll see it: in principal component analysis, which finds the directions of greatest variance in data, in the steady state of a Markov chain, and in the stability of repeated matrix updates such as iterative training or dynamical systems.
Intuition
Directions that do not turn
Apply a matrix to a vector (a Linear Transformation, computed by Matrix Multiplication) and you get a new vector, usually pointing somewhere else. Take the matrix
Feed in and you get . That output points in a different direction, so is not special. Feed in and you get . That is times the input, pointing in exactly the same direction. So is special: does nothing to its direction except stretch it by .
The same happens for . Feeding it in gives itself, so stretches that direction by . Those two directions are the eigenvectors of , and and are their eigenvalues.
This matters because the matrix becomes easy to understand along these directions. Any vector can be split into a piece along and a piece along . Each piece is simply scaled. The complicated mixing that does in standard coordinates is just stretching along two axes that happen to be tilted.
flowchart LR V[Vector v] --> S[Split into eigen-directions] S --> E1[Scale piece along first eigenvector by its eigenvalue] S --> E2[Scale piece along second eigenvector by its eigenvalue] E1 --> R[Add the scaled pieces] E2 --> R R --> Out[Result A v]
Why it exists
Repeated operations are where eigenvectors earn their keep. Applying a hundred times to a generic vector gives a mess. But along an eigenvector, applying a hundred times just multiplies by . If is larger than 1 in size, that direction grows. If it is smaller than 1, it shrinks toward zero. The eigenvalues tell you the long-run behaviour, and the eigenvectors tell you which directions drive it.
The math
Definition
Let be a square matrix. A nonzero vector is an eigenvector of with eigenvalue if
Here is a number, a scalar, and must not be the zero vector. The zero vector satisfies the equation for every , so it is excluded.
Read the equation as: applying to gives the same result as multiplying by . The direction is preserved, and only the length changes, by a factor . If is negative, the direction flips. If , the vector is squashed to zero, which means is not invertible.
Finding eigenvalues
Rewrite the equation as , where is the identity matrix. This homogeneous system has a nonzero solution exactly when the matrix is singular, meaning its Determinant is zero. So the eigenvalues are the roots of the characteristic equation
For an matrix this is a polynomial of degree in , so there are at most eigenvalues. Over the real numbers there may be fewer, as the tradeoffs section shows.
Finding eigenvectors
For each eigenvalue , solve . The solutions form a subspace called the eigenspace. Any nonzero multiple of an eigenvector is also an eigenvector, so eigenvectors are usually reported up to scaling.
Two useful identities
For a square matrix with eigenvalues , counted with multiplicity:
Here is the trace, the sum of the diagonal entries of . These give a fast check on hand calculations.
Symmetric matrices
When is symmetric, meaning , all its eigenvalues are real, and eigenvectors for different eigenvalues are perpendicular. This is why symmetric matrices are so common in statistics and physics: covariance matrices are symmetric, and their eigenvectors give orthogonal directions of spread.
Worked examples
Let .
- Form .
- Compute the determinant: .
- Set it to zero and factor: . So or .
- For : . The equation gives . An eigenvector is .
- Check: . Correct.
- For : . The equation gives . An eigenvector is .
- Check the identities: the trace is , and the determinant is . Both match.
The matrix stretches by and by . Any other vector is a combination of these two directions, and acts on each piece separately.
A customer switches each month between two brands. Let be the matrix whose columns give the probabilities of moving from one brand to the other. Column 1 says brand 1 keeps 90% of its customers and loses 10%. Column 2 says brand 2 keeps 80% and loses 20%:
Each column sums to 1, so the total market stays the same.
- Try . Then .
- So is an eigenvector with eigenvalue .
- The trace is , so the other eigenvalue is .
- Its eigenvector: , and gives .
Interpretation: the eigenvector for eigenvalue is the steady state after normalising to a total of 1. It gives of customers to brand 1 and to brand 2. The other eigenvalue, , is less than 1 in size, so its contribution shrinks each month. Whatever the starting split, the market converges to and .
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| Real rotation, such as | Characteristic equation has no real roots, so no real eigenvectors | Work over complex numbers, or use the singular value decomposition |
| Non-symmetric matrix | Eigenvectors may not be perpendicular, and some matrices lack a full set of them | Use the SVD, which always exists |
| Repeated eigenvalues | There may be fewer independent eigenvectors than the multiplicity suggests | Check the eigenspace dimension directly |
| Large matrices | Solving the characteristic polynomial is numerically unstable | Use iterative methods such as power iteration or library routines |
| Mistaking scale for meaning | Eigenvectors are only defined up to scaling; sign and length are arbitrary | Normalise to unit length and fix a sign convention |
Eigenvalues of non-symmetric matrices can be very sensitive: a tiny change in the entries can move them a lot. Numerical libraries rarely use the characteristic polynomial; they use algorithms that work directly on the matrix.
History
The idea grew out of the study of rotating bodies. In the 1700s, Leonhard Euler showed that a rigid body spinning freely has three perpendicular axes, the principal axes, around which it turns without wobbling. Those axes are eigenvectors of the inertia matrix. In the 1820s, Augustin-Louis Cauchy showed that symmetric matrices have real eigenvalues.
The name is German. Around 1904, David Hilbert used "eigen", meaning own or characteristic, for these quantities, and the term stuck. Eigenvalue methods became central in quantum mechanics in the 1920s, where observable quantities correspond to eigenvalues of operators. In the late 1990s, PageRank used the dominant eigenvector of a web link matrix to rank pages, and principal component analysis has used the same tool for data analysis since the early 1900s.
Check yourself
QuestionWhat is the defining equation of an eigenvector and its eigenvalue, and why must the eigenvector be nonzero?Show answer
An eigenvector with eigenvalue satisfies . The zero vector satisfies this equation for every , so it would say nothing about the matrix. Requiring keeps only the directions that preserves.
QuestionFind the eigenvalues of and verify them with the trace and determinant.Show answer
The characteristic equation is , which factors as . The eigenvalues are and . The trace is , which equals . The determinant is , which equals . Both checks pass.
QuestionWhy does the eigenvalue in the Markov example shrink toward zero, while the eigenvalue does not?Show answer
Repeated application multiplies the eigen-component by its eigenvalue each step. A component with eigenvalue is multiplied by each month, so it decays as . A component with eigenvalue is multiplied by each month and persists. Only the steady state survives in the long run.
QuestionA data scientist has a covariance matrix of measurements. What do its eigenvectors and eigenvalues tell them, and why is the matrix guaranteed to have real eigenvalues?Show answer
The eigenvectors give the principal directions of spread in the data, and the eigenvalues give the variance along each direction. The largest eigenvalue points to the direction of greatest variation. The covariance matrix is symmetric, and symmetric matrices always have real eigenvalues and perpendicular eigenvectors, so these directions form a clean set of orthogonal axes.