Skip to content

Eigenvalue Calculator: Eigenvalues, Eigenvectors and Characteristic Polynomial

Eigenvalues, eigenvectors and the characteristic polynomial of a 2 × 2 or 3 × 3 matrix, exact where possible, with steps.

Your details

Rows separated by “;”, entries by spaces. Fractions and decimals allowed: 4 1; 2 3

Results update as you type

Eigenvalues

λ₁ = 1, λ₂ = 2, λ₃ = 3

Characteristic polynomial det(λI − A)
λ³ − 6λ² + 11λ − 6
Eigenvectors
λ = 1: (0, −1, 1); λ = 2: (−1, 1, 1); λ = 3: (0, 1, 1)
Diagonalizable?
Yes — 3 independent real eigenvectors
Trace tr A
6
Determinant det A
6

Step-by-step solution
  1. Characteristic polynomial: det(λI − A) = λ³ − (tr A)λ² + (M₁₁ + M₂₂ + M₃₃)λ − det A, with tr A = 6, sum of principal 2 × 2 minors = 11, det A = 6: p(λ) = λ³ − 6λ² + 11λ − 6
  2. Rational root test on p(λ): λ = 1, 2, 3
  3. λ = 1: solve (A − λI)v = 0, A − λI = [1 0 0; 1 1 1; 1 1 1] → v = (0, −1, 1)
  4. λ = 2: solve (A − λI)v = 0, A − λI = [0 0 0; 1 0 1; 1 1 0] → v = (−1, 1, 1)
  5. λ = 3: solve (A − λI)v = 0, A − λI = [−1 0 0; 1 −1 1; 1 1 −1] → v = (0, 1, 1)
  6. Check: sum of eigenvalues = 6 = tr A = 6 ✓
  7. Check: product of eigenvalues = 6 = det A = 6 ✓

Eigenvalues and eigenvectors

An eigenvector of a square matrix AA is a nonzero vector v\mathbf{v} that the matrix only stretches: Av=λvA\mathbf{v} = \lambda\mathbf{v}. The stretch factor λ\lambda is the eigenvalue. Eigenvalues tell you how a linear transformation behaves along its natural directions, and they appear everywhere: stability of differential equations, vibration modes, Markov chains, principal component analysis and Google's PageRank.

This eigenvalue calculator handles real 2 × 2 and 3 × 3 matrices. It builds the characteristic polynomial det⁡(λI−A)\det(\lambda I - A) with exact fractions, solves it, and returns every eigenvalue: rational ones as fractions, irrational ones with square roots such as 1+52\frac{1 + \sqrt{5}}{2}, and complex conjugate pairs such as 1±2i1 \pm 2i. When a 3 × 3 polynomial has no rational root, the cubic is solved by the trigonometric method or Cardano's formula and the eigenvalues are given to six decimals.

For each real eigenvalue it then finds the eigenvectors by solving (A−λI)v=0(A - \lambda I)\mathbf{v} = \mathbf{0} — exactly, as small integer vectors, when the eigenvalue is rational — and states whether the matrix is diagonalizable. Two quick checks confirm the result: the eigenvalues add up to the trace and multiply to the determinant. Inputs may be integers, decimals or fractions; for other matrix operations, use the matrix calculator.

How to use this calculator

  1. Type the matrix row by row: rows separated by semicolons, entries by spaces. 4 1; 2 3 is a 2 × 2 matrix, 2 0 0; 1 2 1; 1 1 2 a 3 × 3 one.
  2. Read the eigenvalues at the top. Repeated eigenvalues are grouped (λ₁ = λ₂ = 2) and decimals are shown under them when they are irrational.
  3. Read the characteristic polynomial, the eigenvectors and the diagonalizability verdict.
  4. Open the steps to see the trace, the determinant, the root-finding method, each null-space computation and the trace and determinant checks. Any nonzero multiple of an eigenvector is also an eigenvector, so your answer may differ by a factor.

The formula

The eigenvalues are the roots of the characteristic polynomial p(λ)=det⁡(λI−A)p(\lambda) = \det(\lambda I - A). For a 2 × 2 and a 3 × 3 matrix it can be written with the trace, the principal minors and the determinant:

p(λ)=λ2−(tr⁡A) λ+det⁡Ap(\lambda) = \lambda^2 - (\operatorname{tr} A)\,\lambda + \det A
p(λ)=λ3−(tr⁡A) λ2+(M11+M22+M33) λ−det⁡Ap(\lambda) = \lambda^3 - (\operatorname{tr} A)\,\lambda^2 + (M_{11} + M_{22} + M_{33})\,\lambda - \det A

where MiiM_{ii} is the 2 × 2 minor obtained by deleting row ii and column ii. For the 2 × 2 case the eigenvalues are λ=tr⁡A±(tr⁡A)2−4det⁡A2\lambda = \frac{\operatorname{tr} A \pm \sqrt{(\operatorname{tr} A)^2 - 4\det A}}{2}. For the cubic, the calculator first tests rational candidates, then uses the quadratic formula on what is left or, without a rational root, the trigonometric method (three real roots) or Cardano's formula (one real root and a complex pair).

The eigenvectors for λ\lambda form the null space of A−λIA - \lambda I, found by row reduction. Because p(λ)p(\lambda) factors as ∏(λ−λi)\prod (\lambda - \lambda_i), comparing coefficients gives ∑λi=tr⁡A\sum \lambda_i = \operatorname{tr} A and ∏λi=det⁡A\prod \lambda_i = \det A.

Worked example

2 × 2 matrix. For A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}, tr⁡A=7\operatorname{tr} A = 7 and det⁡A=10\det A = 10, so p(λ)=λ2−7λ+10p(\lambda) = \lambda ^2 - 7\lambda + 10 and the eigenvalues are λ=2\lambda = 2 and λ=5\lambda = 5. For λ=2\lambda = 2, A−2IA - 2I has rows (2,1)(2, 1), giving v=(−1,2)\mathbf{v} = (-1, 2); for λ=5\lambda = 5, v=(1,1)\mathbf{v} = (1, 1). Check: 2+5=72 + 5 = 7 and 2×5=102 \times 5 = 10.

3 × 3 matrix (the default). For A=(200121112)A = \begin{pmatrix} 2 & 0 & 0 \\ 1 & 2 & 1 \\ 1 & 1 & 2 \end{pmatrix}: tr⁡A=6\operatorname{tr} A = 6, M11+M22+M33=3+4+4=11M_{11} + M_{22} + M_{33} = 3 + 4 + 4 = 11 and det⁡A=6\det A = 6, so p(λ)=λ3−6λ2+11λ−6p(\lambda) = \lambda ^3 - 6\lambda ^2 + 11\lambda - 6, with roots 1, 2, 3.

Irrational and complex eigenvalues. (1110)\begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} has p(λ)=λ2−λ−1p(\lambda) = \lambda ^2 - \lambda - 1 and eigenvalues (1−5)/2, (1+5)/2(1 - \sqrt{5})/2,\ (1 + \sqrt{5})/2 (about −0.618034-0.618034 and 1.6180341.618034), the golden ratio and its conjugate. The 90° rotation (0−110)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} has p(λ)=λ2+1p(\lambda) = \lambda^2 + 1 and eigenvalues −i, i-i,\ i: no real direction is left unchanged.

Characteristic polynomial calculator

The characteristic polynomial is worth knowing on its own: its coefficients are invariants of the matrix (they do not change under a change of basis), and by the Cayley–Hamilton theorem every matrix satisfies its own characteristic polynomial, p(A)=0p(A) = 0. That gives, for example, A−1=1det⁡A((tr⁡A) I−A)A^{-1} = \frac{1}{\det A}\big((\operatorname{tr} A)\,I - A\big) for an invertible 2 × 2 matrix.

Two sign conventions exist. This page uses det⁡(λI−A)\det(\lambda I - A), which is monic (leading coefficient 1). Some textbooks, including Strang, write det⁡(A−λI)\det(A - \lambda I), which equals (−1)ndet⁡(λI−A)(-1)^n \det(\lambda I - A): the same polynomial for a 2 × 2 matrix and its negative for a 3 × 3 matrix. Both have exactly the same roots, so the eigenvalues never depend on the convention.

Algebraic and geometric multiplicity

An eigenvalue that is a double root of p(λ)p(\lambda) has algebraic multiplicity 2. The number of independent eigenvectors it has is its geometric multiplicity, which can be smaller. The shear (1101)\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} has λ=1\lambda = 1 twice but only one eigenvector direction, (1,0)(1, 0): it is defective and cannot be diagonalized. A matrix is diagonalizable over the reals exactly when all its eigenvalues are real and each geometric multiplicity equals the algebraic one; distinct eigenvalues always guarantee it, and real symmetric matrices are always diagonalizable.

Frequently asked questions

How do you find eigenvalues by hand?

Write det(λI − A) = 0, expand the determinant into a polynomial in λ, and solve it. For a 2 × 2 matrix this is the quadratic λ² − (trace)λ + det = 0. For a 3 × 3 matrix, try small integer roots first, divide them out and solve the remaining quadratic.

Can eigenvalues be zero or negative?

Yes. A zero eigenvalue means the matrix is singular (det A = 0) and squashes some direction to nothing. A negative eigenvalue flips vectors along its eigenvector direction.

Why are my eigenvectors different from the answer key?

Any nonzero multiple of an eigenvector is also an eigenvector. (1, 2) and (−2, −4) describe the same direction. The calculator gives the simplest integer vector when the eigenvalue is rational, and a vector scaled so its largest entry is 1 otherwise.

What is the characteristic polynomial of a matrix?

It is det(λI − A), a polynomial of degree n whose roots are the eigenvalues. Its λⁿ⁻¹ coefficient is minus the trace and its constant term is (−1)ⁿ det A.

What do complex eigenvalues mean?

For a real matrix they come in conjugate pairs a ± bi and indicate a rotation combined with scaling: no real vector keeps its direction. In dynamical systems they produce oscillations.

Sources

Last updated:

More Math calculators

People also use