Eigenvalue & Eigenvector
calculator.
Find the eigenvalues and eigenvectors of a 2 by 2 or 3 by 3 matrix, step by step.
- Trace (sum of λ)
- 7
- Determinant (product)
- 10
- Diagonalizable
- Yes
Along each eigenvector A only stretches: (1, 1) by 5, (−1/2, 1) by 2. Every other direction gets turned as well.
The characteristic polynomial
The characteristic polynomial crosses zero at 5, 2.
Where the eigenvalues sit
Each eigenvalue is a point with its real part across and its imaginary part up: 5; 2. The dotted circle has radius 1, the line where an eigenvalue neither grows nor shrinks.
Eigenvalues, eigenvectors and multiplicities
| λ | Eigenvectors | Algebraic | Geometric |
|---|---|---|---|
| 5 | (1, 1)Algebraic 1, geometric 1 | 1 | 1 |
| 2 | (−1/2, 1)Algebraic 1, geometric 1 | 1 | 1 |
Any nonzero multiple of an eigenvector is also one. Real eigenvectors are shown with a free entry set to 1.
A = PDP⁻¹
P =D =The columns of P are the eigenvectors and D holds the eigenvalues in the same order, 5, 2. Then Aᵏ = PDᵏP⁻¹.
Working
- 1Subtract λ from the diagonalA − λI =
- 2Characteristic polynomialdet(A − λI) = λ² − tr(A)λ + det(A) = λ² − (7)λ + (10) = λ² − 7λ + 10
- 3Quadratic formulaDiscriminant = tr² − 4·det = 9, λ = (7 ± √9) ÷ 2
- 4λ = 5Row-reduce A − (5)I and solve (A − λI)v = 0: (1, 1).
- 5λ = 2Row-reduce A − (2)I and solve (A − λI)v = 0: (−12, 1).
- 6Check: the eigenvalues add to the trace and multiply to the determinantSum of eigenvalues = 7 = trace 7; product = det(A) = 10.
- 7DiagonalizeWith P = eigenvectors as columns and D = diag(5, 2), PDP⁻¹ reproduces A (largest difference 0).
- 8Check: A times the eigenvector for λ = 5A(1,1)=(5,5)=5(1,1)
How it's worked out
An eigenvector of a square matrix A is a nonzero vector v that A only stretches, shrinks or flips. The stretch factor λ (lambda) is its eigenvalue.
Moving λv to the left gives (A − λI)v = 0, where I is the identity. A nonzero v can solve that only when A − λI has no inverse, which is when its determinant is 0. That determinant is the characteristic polynomial, and its roots are the eigenvalues.
For a 2 by 2 matrix the polynomial only needs the trace (the sum of the diagonal) and the determinant, so the quadratic formula finishes the job. For a 3 by 3 matrix it is a cubic: the tool finds one real root, divides it out and solves the quadratic that is left.
Each eigenvector then comes from row-reducing A − λI and solving for the free entries. The set of all solutions is the eigenspace for that λ. Two numbers describe each eigenvalue. The algebraic multiplicity counts how often it repeats as a root. The geometric multiplicity is the size of its eigenspace, and it is never more than the algebraic one.
Worked examples
Priya checks a 2 by 2 homework answer
Priya's matrix has trace 7 and determinant 10, so the polynomial is λ² − 7λ + 10.
Its roots are λ = 5 and 2. For λ = 5 the eigenvector is (1, 1), and for λ = 2 it is (−1/2, 1). Her answer key shows (−1, 2) for the second one, which is the same direction doubled.
As a check, the eigenvalues add to 7, the trace, and multiply to 10, the determinant.
Omar models bikes moving between two stations
Each night 80% of the bikes at station 1 stay and 20% move to station 2, while station 2 keeps 70% and sends 30% back. Each column adds to 1, so this is a Markov matrix.
The eigenvalues are 1 and 1/2. The eigenvector for λ = 1 is (3/2, 1), so in the long run the bikes split 3 to 2 between the stations. The other eigenvalue, 1/2, says any gap from that split halves every night.
Lena gets eigenvalues with a square root
For rows 1, 2 and 3, 4 the polynomial is λ² − 5λ − 2. Its discriminant is not a perfect square, so the exact eigenvalues keep a root.
In decimals that is about 5.3723 and −0.3723. One is negative, so along its eigenvector A flips vectors as well as scaling them.
Reading your result
Triangular matrices are quick. The eigenvalues of a triangular matrix are its diagonal entries. For rows 3, 6, −8 and 0, 0, 6 and 0, 0, 2 they are 3, 2, 0.
A zero eigenvalue means no inverse. For rows 1, 2 and 2, 4 the eigenvalues are 5 and 0. The determinant is their product, 0, so the matrix is singular.
Complex pairs mean turning. The 90° rotation leaves no real direction on its own line, and its eigenvalues are i and −i. Complex eigenvalues of a real matrix always come as a conjugate pair.
Repeats need a second look. The shear with rows 2, 1 and 0, 2 has λ = 2 twice but only 1 eigenvector, so it cannot be diagonalized. The 3 by 3 example from Lay has λ = 2 twice with 2 eigenvectors, so it can.
Diagonalizing gives powers. When there are as many independent eigenvectors as rows, A = PDP⁻¹ with the eigenvectors in P and the eigenvalues in D. Then the kth power of A is P times the kth power of D times P⁻¹, and powers of a diagonal matrix just raise each entry.
Common mistakes
- Subtracting λ from every entry. Only the diagonal changes: A − λI takes λ from each diagonal entry and leaves the rest alone.
- Expecting one right eigenvector. Any nonzero multiple works, so (1, 1) and (3, 3) are both answers. Check yours by multiplying by A.
- Calling a repeated eigenvalue defective without checking. The identity matrix repeats λ = 1 and is still diagonal. Count the eigenvectors, not the repeats.
- Rounding before the eigenvectors. A rounded λ makes A − λI slightly invertible, so the only solution looks like 0. Keep the exact value until the end.
- Reading eigenvalues off the diagonal of a full matrix. That shortcut only works for triangular matrices.
Questions people ask
Sources
- Margalit and Rabinoff, Interactive Linear Algebra, section 5.1 Eigenvalues and Eigenvectors
- Margalit and Rabinoff, Interactive Linear Algebra, section 5.2 The Characteristic Polynomial
- Margalit and Rabinoff, Interactive Linear Algebra, section 5.4 Diagonalization
- Margalit and Rabinoff, Interactive Linear Algebra, section 5.5 Complex Eigenvalues