MatrixStep

Eigenvalue and Eigenvector Calculator

Finds the characteristic polynomial, solves it for the eigenvalues, and solves (A − λI)v = 0 for the eigenvectors.

INPUT

Integers, fractions (1/3) and decimals (0.25) are accepted. Empty cells count as 0. Paste a block of numbers from a spreadsheet or textbook into the first cell to fill the whole matrix.

RESULT

LaTeX is the math code you can paste into Overleaf, Notion equation blocks or Word's equation editor.

Eigenvalues and eigenvectors

A nonzero vector v with Av = λv is an eigenvector and the number λ is its eigenvalue. The eigenvalues are the roots of the characteristic polynomial det(λI − A) = 0.

Rational eigenvalues are found exactly, and 2×2 matrices get exact roots of the form (a ± √b)/c. For 3×3 and larger, irrational roots are approximated numerically.

Full explanation with examples: How to Find Eigenvalues and Eigenvectors (2×2 Matrix Example)

Exam tipThe eigenvalues add up to the trace tr(A) and multiply to det(A). Use this to check your work.

How to do it by hand

  1. Set up the characteristic polynomial det(A − λI). Subtract λ from the diagonal entries only.
  2. Solve det(A − λI) = 0 for λ. For n×n this is a degree-n equation. For 2×2 you can write it directly as λ² − (trace)λ + det = 0.
  3. For each λ, substitute into A − λI and solve (A − λI)v = 0. The determinant is zero, so there is always a free variable; set it to 1 to get an eigenvector.
  4. Check: compute Av and confirm it equals λv. Any nonzero multiple of an eigenvector is also an eigenvector, so matching the answer key up to a scalar is fine.
Worked example

Find the eigenvalues and eigenvectors of A = [2 1; 1 2].

det(A − λI) = (2−λ)² − 1 = λ² − 4λ + 3 = (λ−1)(λ−3) → λ = 1, 3

λ = 1: A − I = [1 1; 1 1], x + y = 0 → v₁ = (1, −1)

λ = 3: A − 3I = [−1 1; 1 −1], −x + y = 0 → v₂ = (1, 1)

Check: A(1, 1) = (3, 3) = 3·(1, 1) ✓. Also, sum 1 + 3 = 4 = trace and product 1·3 = 3 = det.

Where is it used?

  • Google's PageRank is the eigenvector for eigenvalue 1 of the web link matrix.
  • Principal component analysis projects data onto the eigenvectors of the covariance matrix; the largest eigenvalue points along the direction of greatest spread.
  • Vibration analysis: the natural frequencies of a building or bridge are eigenvalues of its mass and stiffness matrices. In quantum mechanics, observable values are eigenvalues of operators.
  • For the system x' = Ax, positive eigenvalues mean growth and negative ones mean decay. That is the basis of stability analysis.

Common mistakes

  • Subtracting λ from off-diagonal entries. λI has λ on the diagonal only.
  • Solving Av = 0 instead of (A − λI)v = 0 when finding eigenvectors. That only gives v = 0.
  • Thinking the eigenvector is unique. (1, −1) and (−2, 2) are the same eigenvector up to scale.
  • Skipping the trace and determinant check. If the sum of the eigenvalues is not the trace or the product is not the determinant, something went wrong.

How to use

  1. Set the matrix size with the row and column buttons. Up to 6×6 is supported.
  2. Type numbers into the cells and the result updates instantly. Enter fractions as 1/3 and negatives as -2.
  3. Enter moves to the next cell; the ← → ↑ ↓ arrow keys move between cells.
  4. Open ‘Steps’ to see the full working. ‘Copy LaTeX’ copies the result as math code you can paste into Overleaf, a Notion equation block or Word's equation editor.

FAQ

Why are some eigenvalues shown as decimals?
When the roots of the characteristic polynomial are not rational, an exact expression gets unwieldy for 3×3 and larger, so they are approximated and marked with ≈. For 2×2 the exact form with √ is shown.
What if the eigenvalues are complex?
Then there are no real eigenvalues. For 2×2 they are shown exactly as a ± bi; for larger matrices as approximations.
How is diagonalizability decided?
A matrix is diagonalizable when the geometric multiplicities (numbers of eigenvectors) add up to n. The verdict is given only when every eigenvalue was found exactly.

Related guides