TExcelTAD
Home › Linear Algebra & Matrix Theory › Geometric Interpretation of Eigenvectors

Geometric Interpretation of Eigenvectors

A 2×22 \times 2 or 3×33 \times 3 matrix is a transformation of the plane or of space. Its eigenvectors are the lines through the origin that the transformation maps onto themselves, and each eigenvalue says what happens along its line: stretched, shrunk, flipped or flattened. Looking at familiar transformations this way tells you their eigenvalues without any algebra.

Invariant lines

If Av=λvA\mathbf{v} = \lambda\mathbf{v}, then AA maps every point of the line {tv}\{t\mathbf{v}\} to another point of the same line, scaled by λ\lambda:

λ\lambda What happens along the eigenvector's line
λ>1\lambda > 1 stretched away from the origin
0<λ<10 < \lambda < 1 shrunk toward the origin
λ=1\lambda = 1 left fixed, point by point
λ=0\lambda = 0 collapsed onto the origin
λ<0\lambda < 0 flipped through the origin (and scaled by −λ-\lambda)

Every other line through the origin is turned onto a different line. So "find the eigenvectors" means "find the directions the transformation does not turn".

A catalogue of 2D transformations

These come from Geometric Interpretation of Linear Transformations. You can read off the eigen-information by thinking about the picture, then confirm it:

Transformation Matrix Eigenvalues Eigenvectors
scale xx by 3, yy by 12\frac{1}{2} [3000.5]\begin{bmatrix} 3 & 0 \\ 0 & 0.5 \end{bmatrix} 3, 0.5 the xx-axis, the yy-axis
reflect across the line y=xy = x [0110]\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} 1, −1 (1,1)(1, 1) is fixed, (1,−1)(1, -1) is flipped
project onto the xx-axis [1000]\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} 1, 0 xx-axis kept, yy-axis crushed
horizontal shear [1101]\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} 1 (double) only the xx-axis
rotate by 90∘90^\circ [0−110]\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} none real (±i\pm i) no real line survives
uniform scale by 2 [2002]\begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} 2 (double) every direction

Two rows deserve a second look. The shear slides every point horizontally by its height, so only horizontal vectors keep their direction: one eigenvalue counted twice, but just one line of eigenvectors. A rotation by 90∘90^\circ turns every line, so there is no real eigenvector at all. Its eigenvalues are the complex numbers ±i\pm i, covered in Complex Eigenvalues and Eigenvectors.

python · try it yourself
from sympy import Matrix

cases = {
    "reflect y=x": Matrix([[0, 1], [1, 0]]),
    "project x":   Matrix([[1, 0], [0, 0]]),
    "shear":       Matrix([[1, 1], [0, 1]]),
    "rotate 90":   Matrix([[0, -1], [1, 0]]),
}
for name, M in cases.items():
    info = [(val, mult, [list(v) for v in vecs]) for val, mult, vecs in M.eigenvects()]
    print(f"{name:12}", info)
reflect y=x  [(-1, 1, [[-1, 1]]), (1, 1, [[1, 1]])]
project x    [(0, 1, [[0, 1]]), (1, 1, [[1, 0]])]
shear        [(1, 2, [[1, 0]])]
rotate 90    [(-I, 1, [[-I, 1]]), (I, 1, [[I, 1]])]

Each tuple is (eigenvalue, algebraic multiplicity, eigenspace basis). The shear's eigenvalue 1 has multiplicity 2 but only one basis vector, and the rotation's eigenvectors contain I, SymPy's imaginary unit.

Circles become ellipses

A symmetric matrix such as S=[2112]S = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} (eigenvalues 3 and 1, eigenvectors (1,1)(1, 1) and (1,−1)(1, -1)) turns the unit circle into an ellipse whose axes are exactly the eigenvector lines, with semi-axis lengths 3 and 1. That is the picture behind PCA and behind the "principal stresses" of engineering.

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

S = np.array([[2.0, 1.0], [1.0, 2.0]])
t = np.linspace(0, 2 * np.pi, 200)
circle = np.vstack([np.cos(t), np.sin(t)])
ellipse = S @ circle
values, vectors = np.linalg.eigh(S)

plt.figure(figsize=(5, 5))
plt.plot(*circle, color="0.6", label="unit circle")
plt.plot(*ellipse, color="tab:blue", label="S · circle")
for val, vec in zip(values, vectors.T):
    plt.plot([0, val * vec[0]], [0, val * vec[1]], lw=3, label=f"λ = {val:g}")
plt.gca().set_aspect("equal"); plt.legend(); plt.grid(alpha=0.3)
lengths = np.linalg.norm(ellipse, axis=0)
print(f"longest image {lengths.max():.4f}, shortest {lengths.min():.4f}")
longest image 3.0000, shortest 1.0001

The longest image vector has length 3 and the shortest has length 1 (1.0001 only because the circle is sampled at 200 points): the eigenvalues. For a non-symmetric matrix the circle still becomes an ellipse, but the eigenvectors are no longer its axes. The axes are then given by the singular value decomposition.

Three dimensions

In 3D every rotation (other than the identity) has an axis: the line it leaves fixed. That axis is the eigenvector for λ=1\lambda = 1. A rotation about the zz-axis by angle θ\theta, [cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001]\begin{bmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{bmatrix}, has eigenvalue 1 with eigenvector (0,0,1)(0, 0, 1), plus the complex pair e±iθe^{\pm i\theta}. Game engines use this fact when they convert a rotation matrix to axis-angle form (Axis-Angle).

In software

  • Graphics: decomposing a transform into "stretch along these axes" is how tools display and edit non-uniform scale, and why a non-uniform scale bends normals.
  • Physics: the eigenvectors of an inertia tensor are a body's principal axes; spinning about them is stable or unstable depending on the eigenvalues.
  • Data: the eigenvectors of a covariance matrix point along the long and short axes of a data cloud.

Exercises

Exercise 1: Reflection across the xx-axis

Without computing, give the eigenvalues and eigenvectors of [100−1]\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}.

Answer

λ=1\lambda = 1 with the xx-axis (1,0)(1, 0); λ=−1\lambda = -1 with the yy-axis (0,1)(0, 1).

Solution

A reflection across the xx-axis leaves points on the xx-axis where they are (λ=1\lambda = 1) and sends (0,y)(0, y) to (0,−y)(0, -y), a flip (λ=−1\lambda = -1). No other line is mapped to itself.

Exercise 2: Projection onto a slanted line

P=15⋅[1224]P = \frac{1}{5} \cdot \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} projects onto the line through (1,2)(1, 2). Predict its eigenvalues and eigenvectors, then check one of them.

Answer

λ=1\lambda = 1 with (1,2)(1, 2) and λ=0\lambda = 0 with (2,−1)(2, -1).

Solution

Vectors on the line are unchanged (λ=1\lambda = 1) and vectors perpendicular to it are sent to 0 (λ=0\lambda = 0). The perpendicular direction to (1,2)(1, 2) is (2,−1)(2, -1).

P(1,2)=15(1+4,2+8)=(1,2)P(2,−1)=15(2−2,4−4)=(0,0)\begin{aligned} P(1, 2) &= \tfrac{1}{5}(1 + 4, 2 + 8) = (1, 2) \\ P(2, -1) &= \tfrac{1}{5}(2 - 2, 4 - 4) = (0, 0) \end{aligned}

Exercise 3: Which matrix has no real eigenvectors?

Among [2002]\begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}, [1201]\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}, [01−10]\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} and [3113]\begin{bmatrix} 3 & 1 \\ 1 & 3 \end{bmatrix}, which has no real eigenvector? Explain with the characteristic polynomial.

Answer

[01−10]\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}, a rotation by −90∘-90^\circ.

Solution
[01−10]: tr⁡=0, det⁡=1 → λ2+1=0 → λ=±i\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}: \ \operatorname{tr} = 0,\ \det = 1 \ \to\ \lambda^2 + 1 = 0 \ \to\ \lambda = \pm i

The others: [2002]\begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} has λ=2\lambda = 2 (every vector), the shear [1201]\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} has λ=1\lambda = 1 (xx-axis), and [3113]\begin{bmatrix} 3 & 1 \\ 1 & 3 \end{bmatrix} has λ=4,2\lambda = 4, 2 with (1,1)(1, 1), (1,−1)(1, -1).

Exercise 4: Find the rotation axis

R=[001100010]R = \begin{bmatrix} 0 & 0 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \end{bmatrix} maps x→y→z→xx \to y \to z \to x. Find its rotation axis as an eigenvector, and check it in code.

Answer

The axis is the line through (1,1,1)(1, 1, 1) (eigenvalue 1).

Solution

RR cycles the coordinates: R(a,b,c)=(c,a,b)R(a, b, c) = (c, a, b). A vector is fixed exactly when a=b=ca = b = c, so the axis is (1,1,1)(1, 1, 1). The rotation angle is 120∘120^\circ: the other eigenvalues are e±2πi/3e^{\pm 2\pi i/3}.

python · try it yourself
from sympy import Matrix

R = Matrix([[0, 0, 1], [1, 0, 0], [0, 1, 0]])
print("R (1,1,1) =", list(R * Matrix([1, 1, 1])))
print("null space of R - I:", [list(v) for v in (R - Matrix.eye(3)).nullspace()])
R (1,1,1) = [1, 1, 1]
null space of R - I: [[1, 1, 1]]

Test yourself

Which eigenvalues does a reflection of the plane across a line have?

  1. 1 and 1
  2. 1 and −1
  3. 0 and 1
  4. ii and −i-i

The shear [1101]\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} has eigenvalue 1 with algebraic multiplicity 2. How many independent eigenvectors does it have?

  1. One
  2. Two
  3. None
  4. Infinitely many independent ones

For a 3D rotation matrix (not the identity), what is the eigenvector with eigenvalue 1?

  1. Any vector
  2. The rotation axis
  3. There is none
  4. The vector perpendicular to the axis