How it’s calculated
An eigenvector of a square matrix A is a non-zero vector v that A only stretches: Av = λv. The number λ is its eigenvalue. Rewriting this as (λI − A)v = 0 shows that a non-zero v exists only when λI − A is singular, so the eigenvalues are the roots of the characteristic polynomial det(λI − A). For each eigenvalue the eigenvectors are the non-zero solutions of (A − λI)v = 0.
The roots of the polynomial are found exactly where possible: every rational eigenvalue is found by exact integer arithmetic, irrational ones are shown as square roots when the entries are whole numbers, and complex ones as a ± bi. An eigenvalue that is a root more than once is repeated. If it has fewer independent eigenvectors than its multiplicity it is defective and the matrix cannot be diagonalized; [1 1; 0 1] is the classic case.
Example: A = [−5 2; −7 4]. The trace is −1 and det(A) = −20 + 14 = −6, so det(λI − A) = λ² + λ − 6 = (λ − 2)(λ + 3) and the eigenvalues are λ = 2 and λ = −3. For λ = 2, A − 2I = [−7 2; −7 2], so −7x + 2y = 0 and v = (2, 7). For λ = −3, A + 3I = [−2 2; −7 7] gives v = (1, 1). Check: A(2, 7) = (4, 14) = 2(2, 7).
Frequently asked questions
Why are my eigenvectors different from my textbook’s?
Any non-zero multiple of an eigenvector is also an eigenvector, so (2, 7), (−2, −7) and (1, 3.5) are all correct for the same eigenvalue. This calculator scales exact answers to the smallest whole numbers and decimal answers so the largest component is 1.
Can a real matrix have complex eigenvalues?
Yes. A rotation such as [0 −1; 1 0] has λ² + 1 = 0, so λ = ±i. Complex eigenvalues of a real matrix always come in conjugate pairs a + bi and a − bi.
What is a defective eigenvalue?
One that is a root of the characteristic polynomial more times than it has independent eigenvectors. [1 1; 0 1] has λ = 1 twice but only the eigenvector (1, 0), so it cannot be diagonalized.
How can I check the answer?
The eigenvalues always add up to the trace (the sum of the diagonal) and multiply to the determinant. You can also multiply A by each eigenvector and confirm you get λ times the vector.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- A First Course in Linear Algebra (Kuttler), §7.1 Eigenvalues and Eigenvectors of a Matrix — LibreTexts Mathematics
- A First Course in Linear Algebra (Kuttler), §7.2 Diagonalization (complex eigenvalues and matrices that cannot be diagonalized) — LibreTexts Mathematics
- NIST Digital Library of Mathematical Functions, §1.11(iii) Cubic Polynomials — NIST
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator