Eigenvalue and Eigenvector Calculator (2×2 and 3×3)

AlgebraFreeNo sign-up

An eigenvalue calculator solves det(A − λI) = 0. For A = [[4, 1], [2, 3]], the trace is 7 and the determinant is 10, so the characteristic polynomial is λ² − 7λ + 10 = (λ − 5)(λ − 2). The eigenvalues are 5 and 2. Solving (A − λI)v = 0 gives the eigenvectors (1, 1) for λ = 5 and (1, −2) for λ = 2.

Eigenvalue and eigenvector calculator: matrix size

Try:
Entries can be whole numbers, decimals or fractions such as 3/4. Press Tab to move between entries.
Eigenvalues
λ = 5, 2

det(A − λI) = 0 → λ² − 7λ + 10 = 0

The 2×2 matrix has characteristic polynomial λ² − 7λ + 10 and eigenvalues 5, 2. For λ = 5: eigenvector (1, 1). For λ = 2: eigenvector (1, −2).

Eigenvalues5, 2
Characteristic polynomialλ² − 7λ + 10
Factored(λ − 5)(λ − 2)
Trace (sum of eigenvalues)7
Determinant (product)10
Diagonalizableyes

Eigenvalues and eigenvectors

Eigenvalue Alg. mult. Geo. mult. Eigenvector(s)
λ₁ = 5 1 1 (1, 1)
λ₂ = 2 1 1 (1, −2)
Show steps
  1. Subtract λ from each diagonal entry to get A − λI:
    4 − λ 1
    2 3 − λ
  2. det(A − λI) = (4 − λ)(3 − λ) − (1)(2) = λ² − (trace)λ + det = λ² − 7λ + 10, with trace = 7 and det(A) = 10.
  3. Look for rational roots: try divisors of the constant term (over divisors of the leading coefficient). p(2) = 0 and p(5) = 0, so λ = 2 and λ = 5 are eigenvalues.
  4. All roots found: λ = 5, 2. Factored: (λ − 5)(λ − 2) = 0.
  5. For λ₁ = 5, solve (A − 5I)v = 0. The matrix
    −1 1
    2 −2
    row-reduces to
    1 −1
    0 0
    One free variable (y). Set it to 1, solve for the others and clear any fractions: (1, 1).
  6. For λ₂ = 2, solve (A − 2I)v = 0. The matrix
    2 1
    2 1
    row-reduces to
    1 1/2
    0 0
    One free variable (y). Set it to 1, solve for the others and clear any fractions: (1, −2).
  7. Check: the eigenvalues (counted with multiplicity) add up to the trace 7 and multiply to the determinant 10. ✓

Every eigenvector can be multiplied by any nonzero number and is still an eigenvector, so your answer may be a multiple of the one shown. Check it with Av = λv.

Eigenvalue and Eigenvector Calculator (2×2 and 3×3)
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the eigenvalue calculator

  1. Choose a 2 × 2 or 3 × 3 matrix and type the entries row by row. Whole numbers, decimals and fractions such as 3/4 all work.
  2. Read the eigenvalues, the characteristic polynomial (factored when possible), the trace, the determinant and whether the matrix is diagonalizable.
  3. Use the table for each eigenvalue’s algebraic multiplicity, geometric multiplicity and eigenvectors. Exact fractions, square roots and complex numbers are kept exact.
  4. Open Show steps to see A − λI, the determinant, how the polynomial was solved, and the row reduction for every eigenvector.

How eigenvalues and eigenvectors work

An eigenvector of a square matrix A is a nonzero vector v that A only stretches: Av = λv. The number λ is its eigenvalue. Rewriting the equation as (A − λI)v = 0 shows that A − λI must send a nonzero vector to 0, which happens exactly when its determinant is 0. That gives the characteristic equation det(A − λI) = 0, a polynomial equation in λ of the same degree as the size of the matrix.

The 2 × 2 shortcut

For A = [[a, b], [c, d]], the characteristic polynomial is λ² − (a + d)λ + (ad − bc), that is λ² − (trace)λ + det. Then λ = (trace ± √(trace² − 4·det))/2. The discriminant trace² − 4·det tells you the type: positive gives two real eigenvalues, zero gives one repeated eigenvalue, and negative gives a complex conjugate pair.

The 3 × 3 formula

For a 3 × 3 matrix, det(λI − A) = λ³ − (trace)λ² + Mλ − det(A), where M is the sum of the three principal 2 × 2 minors (delete row i and column i, take the determinant, add the three results). Look for rational roots among the divisors of det(A), divide them out, and solve the remaining quadratic.

Worked examples

Example 1: a 2 × 2 matrix with whole-number eigenvalues

A = [[4, 1], [2, 3]] has trace 7 and determinant 4 · 3 − 1 · 2 = 10, so λ² − 7λ + 10 = 0 and λ = 5 or 2. For λ = 5, A − 5I = [[−1, 1], [2, −2]] gives −x + y = 0, so v = (1, 1). For λ = 2, A − 2I = [[2, 1], [2, 1]] gives 2x + y = 0, so v = (1, −2). Check: 5 + 2 = 7 is the trace and 5 · 2 = 10 is the determinant.

Example 2: complex eigenvalues

A = [[2, −1], [1, 2]] has trace 4 and determinant 5, so λ² − 4λ + 5 = 0. The discriminant is 16 − 20 = −4, so λ = (4 ± 2i)/2 = 2 ± i. For λ = 2 + i, the first row of A − λI is (−i, −1), which gives the eigenvector (1, −i). The eigenvector for 2 − i is its conjugate, (1, i).

Example 3: a 3 × 3 matrix with a repeated eigenvalue

A = [[2, 0, 0], [1, 3, 1], [1, 1, 3]] has trace 8, principal minors 8, 6 and 6 (sum 20) and determinant 16, so p(λ) = λ³ − 8λ² + 20λ − 16 = (λ − 2)²(λ − 4). For λ = 2, A − 2I has rank 1, so there are two free variables and two independent eigenvectors, (1, −1, 0) and (1, 0, −1). For λ = 4 the eigenvector is (0, 1, 1). Every eigenvalue has as many eigenvectors as its multiplicity, so A is diagonalizable.

Example 4: a triangular matrix

For A = [[2, 1, 0], [0, 3, 4], [0, 0, 5]], everything below the diagonal is 0, so det(A − λI) is the product of the diagonal entries (2 − λ)(3 − λ)(5 − λ). The eigenvalues are simply 2, 3 and 5.

Algebraic and geometric multiplicity

The algebraic multiplicity of an eigenvalue is how many times it is a root of the characteristic polynomial. The geometric multiplicity is how many independent eigenvectors it has, which is the number of free variables when you row-reduce A − λI. The geometric multiplicity is always at least 1 and never more than the algebraic one. When they are equal for every eigenvalue, A is diagonalizable: A = PDP⁻¹ with the eigenvectors as the columns of P.

Matrix Eigenvalues Eigenvectors Diagonalizable?
[[4, 1], [2, 3]] 5, 2 (1, 1), (1, −2) yes
[[3, 1], [0, 3]] 3 (twice) (1, 0) only no
[[5, 0], [0, 5]] 5 (twice) (1, 0), (0, 1) yes
[[1, 1], [1, 0]] (1 ± √5)/2 (1 ± √5, 2) yes
[[2, −1], [1, 2]] 2 ± i (1, ∓i) yes, over ℂ

Common mistakes with eigenvalues

  • Subtracting λ from every entry. Only the diagonal entries change: A − λI subtracts λ on the diagonal.
  • Sign errors in the determinant. For 2 × 2, it is (a − λ)(d − λ) − bc. Check your polynomial: its λ coefficient must be −trace and its constant must be det(A).
  • Giving the zero vector as an eigenvector. v = 0 always solves (A − λI)v = 0, but it is never an eigenvector.
  • Thinking your eigenvector is wrong because it differs from the book. Any nonzero multiple of an eigenvector is also an eigenvector. Check it with Av = λv.
  • Assuming a repeated eigenvalue gives two eigenvectors. [[3, 1], [0, 3]] has λ = 3 twice but only one independent eigenvector.

Eigenvalue practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What are the eigenvalues of A = [[5, 2], [2, 2]]?

Found a mistake? Let us know!

2. What is the characteristic polynomial of [[3, 4], [1, 2]]?

Found a mistake? Let us know!

3. What are the eigenvalues of the triangular matrix [[7, 3, −1], [0, −2, 5], [0, 0, 4]]?

Found a mistake? Let us know!

4. Which vector is an eigenvector of [[2, 3], [0, 5]] for λ = 5?

Found a mistake? Let us know!

5. What are the eigenvalues of [[0, −1], [1, 0]]?

Found a mistake? Let us know!

6. A 2 × 2 matrix has trace 6 and determinant 9. What are its eigenvalues?

Found a mistake? Let us know!

7. How many independent eigenvectors does [[4, 1], [0, 4]] have?

Found a mistake? Let us know!

8. The eigenvalues of a 3 × 3 matrix are 2, −1 and 5. What is its determinant?

Found a mistake? Let us know!

9. If v is an eigenvector of A with eigenvalue 3, what is A(2v)?

Found a mistake? Let us know!

10. What are the eigenvalues of [[1, 2], [2, 1]]?

Found a mistake? Let us know!

Frequently asked questions

How do you calculate eigenvalues?

Subtract λ from the diagonal of A, take the determinant, and set it equal to 0. The roots of that characteristic polynomial are the eigenvalues. For a 2 × 2 matrix, solve λ² − (trace)λ + det = 0.

What is the eigenvalue equation?

Av = λv, where v is a nonzero vector and λ is a number. It says that A acting on v only scales it by λ. Its consequence det(A − λI) = 0 is the characteristic equation used to find λ.

How do you calculate eigenvalues and eigenvectors?

First find each eigenvalue from det(A − λI) = 0. Then, for each λ, solve the system (A − λI)v = 0 by row reduction. The free variables give the eigenvectors: set one free variable to 1 at a time and solve for the rest.

How do you find the eigenvalues of a 3 × 3 matrix?

Write the cubic λ³ − (trace)λ² + Mλ − det(A), where M is the sum of the principal 2 × 2 minors. Test rational candidates (divisors of det(A)), divide out each root you find, and solve the quadratic that is left. If the cubic has no rational roots, the roots must be found numerically.

What is eigenvalue analysis?

It is the study of a matrix through its eigenvalues and eigenvectors. Engineers use it to find natural vibration frequencies, statisticians use it in principal component analysis, and in systems of differential equations or Markov chains the eigenvalues decide whether solutions grow, decay or settle to a steady state.

Related calculators

More algebra calculators

Browse all 541 calculators

Related to This Article

What people say about "Eigenvalue and Eigenvector Calculator: 2×2, 3×3, Steps"?

No one replied yet.

Leave a Reply