Linear Algebra
Eigenvalues and Eigenvectors Explained with Examples
By MathSolver Pro Editorial Team · Published
An eigenvector of a matrix is a direction that the matrix only stretches or flips, never turns, and the eigenvalue is the stretch factor. They reveal the essential behaviour of a matrix and underpin diagonalization, stability analysis, Markov chains and data compression.
The defining equation
Most vectors change direction when you multiply them by a matrix. A few special vectors do not: the matrix simply stretches, shrinks or reverses them along the same line. These are the eigenvectors, and the factor by which each one is scaled is its eigenvalue. In symbols, a nonzero vector is an eigenvector of the square matrix with eigenvalue when:
The zero vector is excluded because it would satisfy the equation for every . Eigenvalues, however, can be zero, negative or even complex. An eigenvalue of 2 means vectors in that direction double in length, means they flip, and 0 means they are flattened to nothing, which happens exactly when the matrix is singular.
Finding eigenvalues with the characteristic equation
Rewrite the defining equation as . For a nonzero solution to exist, the matrix must be singular, so its determinant must be zero. That gives the characteristic equation:
For an matrix, this is a polynomial equation of degree in , so there are eigenvalues when they are counted with multiplicity and complex values are allowed. For a matrix the polynomial is a quadratic, which you can solve with the methods in how to solve quadratic equations.
A complete 2 by 2 example
Example 1: eigenvalues and eigenvectors of a 2 by 2 matrix
- Let . Then .
- Factor: , so the eigenvalues are and .
- For : . The first row says , so and an eigenvector is .
- For : , so and an eigenvector is .
- Check: .
Any nonzero multiple of an eigenvector is also an eigenvector, so or would be equally correct answers. What matters is the direction, not the length. Notice too that the two rows of were multiples of each other each time. That is guaranteed when is a true eigenvalue, and it is a handy check on your arithmetic.
Two shortcuts: trace and determinant
The eigenvalues of any square matrix are linked to two easy numbers. Their sum equals the trace, the sum of the diagonal entries, and their product equals the determinant:
In Example 1, the trace is and the determinant is . For a matrix, this means the characteristic equation is always , which saves expanding the determinant by hand. Triangular matrices are even easier: their eigenvalues are simply the diagonal entries.
Complex and repeated eigenvalues
The rotation matrix turns every vector by 90 degrees, so no real direction stays on its own line. Its characteristic equation is , giving the complex eigenvalues . Complex eigenvalues of a real matrix always come in conjugate pairs and signal rotation.
Eigenvalues can also repeat. The matrix has the double eigenvalue 2, yet forces , so the only eigenvectors are multiples of . A matrix like this, with fewer independent eigenvectors than its size, is called defective. The identity matrix, in contrast, also has the repeated eigenvalue 1, but every nonzero vector is an eigenvector.
Symmetric matrices avoid both complications. Their eigenvalues are always real, and eigenvectors for different eigenvalues are perpendicular. For , the eigenvalues are 3 and 1 with eigenvectors and , whose dot product is zero.
Diagonalization and matrix powers
When an matrix has independent eigenvectors, it can be diagonalized. Put the eigenvectors in the columns of and the eigenvalues on the diagonal of , and then:
Raising a diagonal matrix to a power just raises each diagonal entry to that power, so computing becomes easy. The eigenvalues also predict long-term behaviour: when one eigenvalue is larger in absolute value than all the others, repeated multiplication by pushes almost every starting vector towards that eigenvalue's eigenvector.
Example 2: the long-run state of a Markov chain
- Each year 90 percent of customers of company X stay and 10 percent switch to Y, while Y keeps 50 percent and loses 50 percent to X. The transition matrix is .
- The trace is 1.4 and the determinant is , so the eigenvalues are 1 and 0.4.
- For : , giving the eigenvector .
- Scaled to total 1, the long-run market shares are five sixths for X and one sixth for Y, whatever the starting shares, because the 0.4 component shrinks away each year.
Where eigenvalues matter
- Search engines: the original PageRank algorithm ranks web pages using the dominant eigenvector of a link matrix.
- Engineering: the natural vibration frequencies of bridges and buildings come from eigenvalues, which designers keep away from expected forcing frequencies.
- Data science: principal component analysis uses the eigenvectors of a covariance matrix to find the directions of greatest variation.
- Differential equations: the signs of eigenvalues decide whether an equilibrium is stable or unstable.
- Quantum mechanics: measurable quantities such as energy levels are eigenvalues of operators.
The eigenvalue calculator finds eigenvalues and eigenvectors, including complex ones, with the characteristic polynomial shown step by step. The determinant calculator is useful for checking at a candidate value.
A 3 by 3 example
Larger matrices follow the same recipe, and zeros help just as they do for determinants. Take the matrix with rows , and . Expanding along the first row gives times the characteristic polynomial of the smaller block with rows and . That block has trace 12 and determinant , so its polynomial is .
The eigenvalues are therefore 2, 1 and 11. As a check, they add up to 14, the trace of the full matrix, and multiply to 22, its determinant. The eigenvectors are for 2, for 1 and for 11. The matrix is symmetric, and as promised these three vectors are mutually perpendicular.
Common mistakes
- Subtracting from every entry instead of only the diagonal entries.
- Accepting the zero vector as an eigenvector after solving .
- Assuming a repeated eigenvalue always comes with two independent eigenvectors.
- Forgetting to check the result by computing and comparing it with .
The final check is the most valuable habit of all. It takes one matrix multiplication, and if is not a multiple of , either the eigenvalue or the eigenvector is wrong.
A geometric picture
Imagine applying the matrix from Example 1 to every point of a sheet of graph paper. Most arrows drawn from the origin are both stretched and turned. Arrows along the line through , however, simply become five times longer, and arrows along the line through become twice as long, staying on their lines. The eigenvectors are the skeleton of the transformation: once you know what happens along these two lines, you know what happens everywhere, because every vector can be split into pieces along them.
Frequently asked questions
Can an eigenvalue be zero?
Yes. An eigenvalue of zero means some nonzero vector is sent to the zero vector, so the matrix is singular and has no inverse. Eigenvectors, however, can never be the zero vector.
Are eigenvectors unique?
No. Any nonzero multiple of an eigenvector is also an eigenvector for the same eigenvalue, so answers are often scaled to have simple whole-number entries or length 1.
Do all matrices have real eigenvalues?
No. Rotation matrices, for instance, have complex eigenvalues. Real symmetric matrices, however, always have real eigenvalues.
What is the characteristic polynomial?
It is , a polynomial in whose roots are the eigenvalues. For a matrix it equals .
Where does the word eigen come from?
It is German for own or characteristic. An eigenvector is a matrix's own direction, one it maps onto itself, and an eigenvalue is its characteristic scaling factor.