HexMathv1.0.4

Eigenvalues and eigenvectors calculator

This eigenvalue calculator finds the eigenvalues and eigenvectors of a 2×2 or 3×3 matrix. Type the matrix or scan it. HexMath sets up the characteristic equation, solves it for each eigenvalue and returns a matching eigenvector for each one, with the determinant and the solving of each system shown step by step.

Loading math input...

What this page covers

  • Eigenvalues of 2×2 and 3×3 matrices from the characteristic equation det⁡(A−λI)=0\det(A - \lambda I) = 0.
  • An eigenvector for each eigenvalue, by solving (A−λI)v=0(A - \lambda I)\mathbf{v} = \mathbf{0}.
  • Triangular and block matrices, where the eigenvalues can be read off quickly.
  • Not covered here: the characteristic polynomial on its own (type the problem into the solver) and determinants in general (see the matrix calculator).

How to enter the problem

  • Type it or paste it. Write eigenvalues of, then the matrix row by row, for example [[4, 1], [2, 3]], or use the math keyboard's matrix key.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1: Find the eigenvalues of [4, 1; 2, 3].

Problem

Find the eigenvalues of (4123)\displaystyle \begin{pmatrix}4 & 1\\ 2 & 3\end{pmatrix}.

Answer

Verified

The answer is

λ=2,λ=5\lambda = 2, \lambda = 5

Explanation

  1. Set up the characteristic equation
    det⁡(A−λI)=det⁡(4−λ123−λ)=(4−λ)(3−λ)−2=0\det(A - \lambda I) = \det\begin{pmatrix}4 - \lambda & 1\\ 2 & 3 - \lambda\end{pmatrix} = (4 - \lambda)(3 - \lambda) - 2 = 0
  2. Expand
    (4−λ)(3−λ)=λ2−7λ+12(4 - \lambda)(3 - \lambda) = \lambda^2 - 7\lambda + 12, so the equation is λ2−7λ+10=0\lambda^2 - 7\lambda + 10 = 0.
  3. Factor
    (λ−2)(λ−5)=0(\lambda - 2)(\lambda - 5) = 0, so λ=2\lambda = 2 or λ=5\lambda = 5.
  4. Check with the trace and determinant
    The eigenvalues must add to the trace 4+3=74 + 3 = 7 and multiply to the determinant 4⋅3−1⋅2=104 \cdot 3 - 1 \cdot 2 = 10. 2+5=72 + 5 = 7 and 2⋅5=102 \cdot 5 = 10.

Example 2: Find the eigenvalues of [5, 0, 0; 0, 1, 2; 0, 2, 1].

Problem

Find the eigenvalues of (500012021)\displaystyle \begin{pmatrix}5 & 0 & 0\\ 0 & 1 & 2\\ 0 & 2 & 1\end{pmatrix}.

Answer

Verified

The answer is

λ=−1,λ=3,λ=5\lambda = -1, \lambda = 3, \lambda = 5

Explanation

  1. Expand along the first row
    det⁡(A−λI)=(5−λ)[(1−λ)2−4]\det(A - \lambda I) = (5 - \lambda)\left[(1 - \lambda)^2 - 4\right], because the rest of the first row is zero.
  2. Set each factor to zero
    5−λ=05 - \lambda = 0 gives λ=5\lambda = 5. (1−λ)2=4(1 - \lambda)^2 = 4 gives 1−λ=±21 - \lambda = \pm 2.
  3. Solve the second factor
    λ=−1\lambda = -1 or λ=3\lambda = 3.

Example 3: Find the eigenvalues of the upper triangular matrix [3, 4, -1; 0, -2, 5; 0, 0, 1].

Problem

Find the eigenvalues of the upper triangular matrix (34−10−25001)\displaystyle \begin{pmatrix}3 & 4 & -1\\ 0 & -2 & 5\\ 0 & 0 & 1\end{pmatrix}.

Answer

Verified

The answer is

λ=−2,λ=1,λ=3\lambda = -2, \lambda = 1, \lambda = 3

Explanation

  1. Use the triangular shape
    A−λIA - \lambda I is still triangular, and the determinant of a triangular matrix is the product of its diagonal.
  2. Write the characteristic equation
    (3−λ)(−2−λ)(1−λ)=0(3 - \lambda)(-2 - \lambda)(1 - \lambda) = 0
  3. Read off the roots
    The eigenvalues are the diagonal entries 33, −2-2 and 11.

Common mistakes

  • Reading the diagonal entries as eigenvalues when the matrix is not triangular. For the example in the solver above, 44 and 33 are not eigenvalues; 22 and 55 are.
  • Subtracting λ\lambda from every entry instead of only the diagonal entries.
  • Sign errors in the characteristic polynomial. For a 2×2 matrix it is λ2−(trace)λ+det⁡A\lambda^2 - (\text{trace})\lambda + \det A.
  • Giving the zero vector as an eigenvector. An eigenvector must be nonzero.

Checks, assumptions and limits

  • Check with the trace and the determinant. The eigenvalues add up to the trace and multiply to the determinant. For the example in the solver above, 2+5=7=4+32 + 5 = 7 = 4 + 3 and 2⋅5=10=4⋅3−1⋅22 \cdot 5 = 10 = 4 \cdot 3 - 1 \cdot 2.
  • Eigenvalues exist only for square matrices. Some real matrices have complex eigenvalues; this page works with real ones, and eigenvectors are shown up to a nonzero multiple.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Yes, when you ask for them. For each eigenvalue the steps solve (A − λI)v = 0 and give one eigenvector. Any nonzero multiple of it is also an eigenvector.

Yes. The steps expand the determinant of A − λI into a cubic equation and solve it, using a zero row or a triangular shape when there is one.

Write eigenvalues of, then the matrix row by row in square brackets, such as [[4, 1], [2, 3]]. Or scan the problem with the camera.

Yes. The characteristic equation can have a repeated root. That eigenvalue then counts as many times as the root repeats, and it can have fewer independent eigenvectors than that count, depending on the matrix.

Ready to solve your next math problem?

Create a free account for 3 math questions a day in your browser. No card.

Get HexMath on your phone

The same solver and camera scan on iPhone and Android.

Last updated: · HexMath