Skip to content

How to find eigenvalues and eigenvectors of a 2×2 matrix

5 min read

Short answer

To find the eigenvalues of a 2×2 matrix AA, solve det⁡(A−λI)=0\det(A-\lambda I)=0. For each eigenvalue λ\lambda, solve (A−λI)v=0(A-\lambda I)\mathbf v=\mathbf 0 to get its eigenvector v\mathbf v. An eigenvector is a direction the matrix only stretches (by the factor λ\lambda) instead of turning.

Eigenvectors of a matrix: two directions that are only stretchedv₁ = (1, 1)Av₁ = 5v₁v₂ = (1, −2)Av₂ = 2v₂
For A = [[4, 1], [2, 3]], the directions (1, 1) and (1, −2) are only scaled, by 5 and by 2. Every other vector is also turned.

What an eigenvector actually is

Most vectors change direction when you multiply them by a matrix. An eigenvector is a nonzero vector that does not: Av=λvA\mathbf v=\lambda\mathbf v. The number λ\lambda is its eigenvalue, the factor by which the matrix stretches (or flips, if negative) that direction.

Rewrite the equation as (A−λI)v=0(A-\lambda I)\mathbf v=\mathbf 0. A nonzero v\mathbf v can only solve this if A−λIA-\lambda I squashes space onto a line, which happens exactly when its determinant is zero. That single observation gives the whole method.

The four steps

  1. Write A−λIA-\lambda I (subtract λ\lambda from each diagonal entry).
  2. Set det⁡(A−λI)=0\det(A-\lambda I)=0. For a 2×2 matrix this is the quadratic λ2−(tr⁡A)λ+det⁡A=0\lambda^2-(\operatorname{tr}A)\lambda+\det A=0.
  3. Solve for λ\lambda. These are the eigenvalues.
  4. For each λ\lambda, solve (A−λI)v=0(A-\lambda I)\mathbf v=\mathbf 0. The two rows are multiples of each other, so you only need one equation.

The shortcut in step 2 is worth memorising: the eigenvalues add up to the trace and multiply to the determinant. It doubles as a check on your arithmetic.

Worked example

Find the eigenvalues and eigenvectors of A=(4123)A=\begin{pmatrix}4&1\\2&3\end{pmatrix}.

Eigenvalues. tr⁡A=7\operatorname{tr}A=7 and det⁡A=4⋅3−1⋅2=10\det A=4\cdot3-1\cdot2=10, so λ2−7λ+10=0  ⇒  (λ−5)(λ−2)=0,λ1=5, λ2=2.\lambda^2-7\lambda+10=0\;\Rightarrow\;(\lambda-5)(\lambda-2)=0,\qquad \lambda_1=5,\ \lambda_2=2.

Eigenvector for λ=5\lambda=5. A−5I=(−112−2)A-5I=\begin{pmatrix}-1&1\\2&-2\end{pmatrix}. The first row says −x+y=0-x+y=0, so y=xy=x and v1=(1,1)\mathbf v_1=(1,1).

Eigenvector for λ=2\lambda=2. A−2I=(2121)A-2I=\begin{pmatrix}2&1\\2&1\end{pmatrix}. The row says 2x+y=02x+y=0, so y=−2xy=-2x and v2=(1,−2)\mathbf v_2=(1,-2).

Check. A(1,1)=(5,5)=5 (1,1)A(1,1)=(5,5)=5\,(1,1) and A(1,−2)=(2,−4)=2 (1,−2)A(1,-2)=(2,-4)=2\,(1,-2). Also 5+2=7=tr⁡A5+2=7=\operatorname{tr}A and 5⋅2=10=det⁡A5\cdot2=10=\det A.

Try it yourself

Find the eigenvalues and eigenvectors of B=(2013)B=\begin{pmatrix}2&0\\1&3\end{pmatrix}.

Show the answer

BB is triangular, so the eigenvalues are the diagonal entries: λ=2\lambda=2 and λ=3\lambda=3. For λ=3\lambda=3, B−3I=(−1010)B-3I=\begin{pmatrix}-1&0\\1&0\end{pmatrix} gives x=0x=0, so v=(0,1)\mathbf v=(0,1). For λ=2\lambda=2, B−2I=(0011)B-2I=\begin{pmatrix}0&0\\1&1\end{pmatrix} gives x+y=0x+y=0, so v=(1,−1)\mathbf v=(1,-1).

Keep going with practice

Eigenvalues and eigenvectors are covered in Vidi's Linear Algebra & Probability course, alongside an interactive transformation you can drag to see a matrix act on vectors.