Femtobytes
Problem type

Eigenvalues and eigenvectors

What it solves
Find the eigenvalues and eigenvectors of a 2 by 2 or 3 by 3 matrix: build the characteristic polynomial, solve it, find the directions the matrix does not turn, and check every one by multiplying.
Subject
Linear Algebra
Topic
Eigenvalues and eigenvectors
Also called
eigenvalue, eigenvector, characteristic polynomial, diagonalise
Your problem

Find the eigenvalues and eigenvectors of this matrix.

A=[20−26012003]A = \left[ \begin{array}{rrr} 2 & 0 & -2 \\ 6 & 0 & 12 \\ 0 & 0 & 3 \end{array} \right]
The square matrix
Size3
Whole numbers or fractions for 2 by 2; whole numbers for 3 by 3.
Invent a new one:
The problem

Find the eigenvalues and eigenvectors of this matrix.

A=[20−26012003]A = \left[ \begin{array}{rrr} 2 & 0 & -2 \\ 6 & 0 & 12 \\ 0 & 0 & 3 \end{array} \right]
The result
λ1=0:  [010],λ2=2:  [130],λ3=3:  [20−1]\lambda_{1} = 0: \; \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \quad \lambda_{2} = 2: \; \begin{bmatrix} 1 \\ 3 \\ 0 \end{bmatrix}, \quad \lambda_{3} = 3: \; \begin{bmatrix} 2 \\ 0 \\ -1 \end{bmatrix}

Three different eigenvalues, each with its own direction.

checked 70 lines of this solution were evaluated with exact arithmetic before it was shown to you. A solution with a false line is never served.
Picture 1 of 2Step 1: Say what we are looking for
The matrix whose own directions we are hunting
2200−2-266001212000033
A matrix turns most vectors off their own line. The question this page answers is which lines it does NOT turn: on those, the matrix only stretches or shrinks, and the amount it stretches by is the eigenvalue.
1

Say what we are looking for

Why this step

A matrix moves almost every vector to a new direction. The exceptions are rare and precious: directions the matrix does NOT turn, only stretches. Along such a direction the whole complicated matrix behaves like multiplication by a single number. Find those directions and the matrix stops being a table of numbers and becomes something you can see.

A=[20−26012003],A−λI=[2−λ0−26−λ12003−λ]A = \left[ \begin{array}{rrr} 2 & 0 & -2 \\ 6 & 0 & 12 \\ 0 & 0 & 3 \end{array} \right], \qquad A - \lambda I = \begin{bmatrix} 2 - \lambda & 0 & -2 \\ 6 & -\lambda & 12 \\ 0 & 0 & 3 - \lambda \end{bmatrix}
Subtracting λI\lambda I takes λ\lambda off each diagonal entry and leaves the rest alone.
2

Build the characteristic polynomial

Why this step

We expand det⁡(A−λI)\det\left( A - \lambda I \right) with λ\lambda left as a letter. The result is a polynomial in λ\lambda of degree 33, called the characteristic polynomial, and its roots are the eigenvalues. Two of its coefficients can be predicted before any work: the sum of the diagonal of AA (the trace) and det⁡A\det A. They make a free check on the algebra.

det⁡(A−λI)\displaystyle \det\left( A - \lambda I \right)==(2−λ)((−λ)(3−λ)−12⋅0)+(−2(6⋅0−(−λ)⋅0))\displaystyle \left( 2 - \lambda \right) \left( \left( -\lambda \right) \left( 3 - \lambda \right) - 12 \cdot 0 \right) + \left( -2 \left( 6 \cdot 0 - \left( -\lambda \right) \cdot 0 \right) \right)
Expand along the first row: each first-row entry times the 2×22 \times 2 determinant left when its row and column are struck out, with signs +,−,++, -, +. Entries that are 00 contribute nothing and are left out. checked
==(2−λ)(λ2−3λ)+(−2(0))\displaystyle \left( 2 - \lambda \right) \left( \lambda^{2} - 3 \lambda \right) + \left( -2 \left( 0 \right) \right)
Work out each 2×22 \times 2 determinant and collect its powers of λ\lambda. checked
==(−λ3+5λ2−6λ)+(0)\displaystyle \left( -\lambda^{3} + 5 \lambda^{2} - 6 \lambda \right) + \left( 0 \right)
Multiply each first-row entry into its bracket. checked
==−λ3+5λ2−6λ\displaystyle -\lambda^{3} + 5 \lambda^{2} - 6 \lambda
Remove the brackets, remembering that a minus sign in front reaches every term inside, and collect like powers of λ\lambda. checked
3

Solve the characteristic equation

4

Eigenvectors for lambda = 0: set up

5

lambda = 0, pivot 1: column 1, row 1

6

lambda = 0, pivot 2: column 3, row 2

7

Eigenvectors for lambda = 0: read off and check

8

Eigenvectors for lambda = 2: set up

9

lambda = 2, pivot 1: column 1, row 1

10

lambda = 2, pivot 2: column 3, row 2

11

Eigenvectors for lambda = 2: read off and check

12

Eigenvectors for lambda = 3: set up

13

lambda = 3, pivot 1: column 1, row 1

14

lambda = 3, pivot 2: column 2, row 2

15

Eigenvectors for lambda = 3: read off and check