What eigenvalues are and why you need them
An eigenvalue is a number that tells you how a matrix stretches or shrinks a vector in a particular direction. When you multiply a matrix by one of its eigenvectors, the result is the same vector scaled by its eigenvalue — no rotation, just scaling. This property makes eigenvalues essential in physics, engineering, computer graphics, and data analysis.
Computing eigenvalues by hand is straightforward for small matrices but becomes tedious quickly. The core idea is the same regardless of size: you are solving a polynomial equation derived from the matrix itself. Understanding the method helps you know what a computer is doing when you ask it to find eigenvalues, and it lets you verify results or catch errors.
Key Takeaways
- Eigenvalues come from solving the characteristic equation det(A − λI) = 0, where A is your matrix, λ is the eigenvalue, and I is the identity matrix.
- For a 2×2 matrix, you expand the determinant by hand, get a quadratic equation, and solve it using the quadratic formula.
- For larger matrices, hand calculation becomes impractical; use a calculator, spreadsheet, or programming language like Python or MATLAB.
- Always check your work by substituting an eigenvalue back into the characteristic equation to confirm it equals zero.
The characteristic equation: the foundation of eigenvalue computation
Every eigenvalue satisfies the equation (A − λI)v = 0, where v is a nonzero vector. For this equation to have a solution other than v = 0, the matrix (A − λI) must be singular — meaning its determinant is zero. This gives you the characteristic equation: det(A − λI) = 0.
The determinant of (A − λI) is a polynomial in λ. The degree of that polynomial equals the size of the matrix. A 2×2 matrix gives a quadratic (degree 2), a 3×3 matrix gives a cubic (degree 3), and so on. The roots of this polynomial are your eigenvalues.
For a 2×2 matrix A = [[a, b], [c, d]], the characteristic equation is (a − λ)(d − λ) − bc = 0, which simplifies to λ² − (a + d)λ + (ad − bc) = 0. The sum a + d is called the trace, and ad − bc is the determinant of A itself.
Computing eigenvalues for a 2×2 matrix by hand
Start with your matrix. Suppose A = [[4, 1], [2, 3]]. Write out (A − λI): [[4 − λ, 1], [2, 3 − λ]]. Now compute the determinant: (4 − λ)(3 − λ) − (1)(2) = 12 − 4λ − 3λ + λ² − 2 = λ² − 7λ + 10.
Set this equal to zero: λ² − 7λ + 10 = 0. Factor or use the quadratic formula. Factoring gives (λ − 5)(λ − 2) = 0, so λ = 5 and λ = 2. These are your eigenvalues.
To verify, substitute λ = 5 back into the characteristic polynomial: 5² − 7(5) + 10 = 25 − 35 + 10 = 0. ✓ Substitute λ = 2: 2² − 7(2) + 10 = 4 − 14 + 10 = 0. ✓ Both check out.
Computing eigenvalues for a 3×3 matrix
For larger matrices, the algebra grows quickly. Take A = [[2, 1, 0], [1, 2, 1], [0, 1, 2]]. You need det(A − λI), which is the determinant of [[2 − λ, 1, 0], [1, 2 − λ, 1], [0, 1, 2 − λ]].
Expand along the first row: (2 − λ) times the determinant of [[2 − λ, 1], [1, 2 − λ]] minus 1 times the determinant of [[1, 1], [0, 2 − λ]]. The first minor is (2 − λ)² − 1. The second minor is (2 − λ). So the full determinant is (2 − λ)[(2 − λ)² − 1] − (2 − λ) = (2 − λ)[(2 − λ)² − 1 − 1] = (2 − λ)[(2 − λ)² − 2].
Expand (2 − λ)² − 2 = 4 − 4λ + λ² − 2 = λ² − 4λ + 2. So the characteristic polynomial is (2 − λ)(λ² − 4λ + 2) = 0. One eigenvalue is λ = 2. The others come from λ² − 4λ + 2 = 0, which gives λ = (4 ± √(16 − 8))/2 = (4 ± √8)/2 = 2 ± √2. The three eigenvalues are 2, 2 + √2, and 2 − √2.
Using a calculator or computer for larger matrices
Hand computation becomes impractical for 4×4 matrices and larger. The characteristic polynomial grows in degree, and the algebra becomes error-prone. For real work, use a tool.
In Python with NumPy, load your matrix and call numpy.linalg.eigvals(A) to get the eigenvalues. In MATLAB, use eig(A). In a spreadsheet like Excel or Google Sheets, you can use matrix functions or add-ins, though the interface is less direct. A scientific calculator with matrix support can also compute eigenvalues for small matrices.
When you use a tool, you are still solving the characteristic equation — the software just does it numerically rather than symbolically. For matrices with repeated eigenvalues or complex eigenvalues, numerical methods are often more reliable than hand algebra.
Eigenvalues of special matrix types
Some matrices have eigenvalues you can spot without full computation. A diagonal matrix — one with nonzero entries only on the main diagonal — has eigenvalues equal to those diagonal entries. A triangular matrix (upper or lower) also has eigenvalues equal to its diagonal entries, because the determinant of a triangular matrix is the product of its diagonal.
A symmetric matrix (one that equals its transpose) always has real eigenvalues, never complex ones. This property is useful in physics and statistics, where symmetric matrices appear often. An orthogonal matrix (one whose columns are perpendicular unit vectors) has eigenvalues with absolute value 1.
Recognizing these patterns can save you time. If your matrix is diagonal or triangular, read the eigenvalues directly from the diagonal. If it is symmetric, you know the eigenvalues are real even before computing them.
Common mistakes and how to avoid them
The most frequent error is a sign mistake when forming (A − λI). Write it out carefully: subtract λ from each diagonal entry, leave off-diagonal entries unchanged. A second common mistake is arithmetic errors in the determinant expansion, especially for 3×3 matrices. Expand along a row or column with the most zeros to reduce the work.
Another pitfall is forgetting that the characteristic polynomial has degree equal to the matrix size. A 3×3 matrix must have exactly three eigenvalues (counting multiplicity and including complex ones). If you find only two, you made an error. Finally, always substitute your eigenvalues back into the characteristic equation to verify they give zero. This check catches most mistakes.
Frequently Asked Questions
Can a matrix have complex eigenvalues?
Yes. A real matrix can have complex eigenvalues, but they always come in conjugate pairs. For example, a 2×2 matrix might have eigenvalues 3 + 2i and 3 − 2i. Symmetric matrices are an exception — they always have real eigenvalues, even if the entries are real.
What does it mean if two eigenvalues are the same?
A repeated eigenvalue means the characteristic polynomial has a repeated root. This can happen, and it is not an error. The matrix may still have enough eigenvectors (called a diagonalizable case) or it may not (called a defective case). For most practical purposes, you treat repeated eigenvalues the same way as distinct ones.
Why do I need eigenvalues if I can just use the matrix directly?
Eigenvalues reveal the behavior of the matrix. They tell you how much the matrix stretches or shrinks in different directions. In stability analysis, the largest eigenvalue determines whether a system grows or decays. In data analysis, eigenvalues of a covariance matrix show which directions in your data have the most variation.
Is there a faster way to compute eigenvalues than the characteristic equation?
For hand calculation, the characteristic equation is the standard method. For computers, numerical algorithms like the QR algorithm are much faster than computing the characteristic polynomial explicitly, especially for large matrices. These algorithms converge to the eigenvalues iteratively rather than solving a polynomial.
What if my matrix is not square?
Eigenvalues are defined only for square matrices. If your matrix is rectangular, you might be interested in singular values instead, which come from the singular value decomposition (SVD). Singular values are related to eigenvalues but explore to any matrix shape.