Geometric Interpretation of Eigenvectors
A or 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 , then maps every point of the line to another point of the same line, scaled by :
| What happens along the eigenvector's line | |
|---|---|
| stretched away from the origin | |
| shrunk toward the origin | |
| left fixed, point by point | |
| collapsed onto the origin | |
| flipped through the origin (and scaled by ) |
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 by 3, by | 3, 0.5 | the -axis, the -axis | |
| reflect across the line | 1, −1 | is fixed, is flipped | |
| project onto the -axis | 1, 0 | -axis kept, -axis crushed | |
| horizontal shear | 1 (double) | only the -axis | |
| rotate by | none real () | no real line survives | |
| uniform scale by 2 | 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 turns every line, so there is no real eigenvector at all. Its eigenvalues are the complex numbers , covered in Complex Eigenvalues and Eigenvectors.
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 (eigenvalues 3 and 1, eigenvectors and ) 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.
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 . A rotation about the -axis by angle , , has eigenvalue 1 with eigenvector , plus the complex pair . 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 -axis
Without computing, give the eigenvalues and eigenvectors of .
Answer
with the -axis ; with the -axis .
Solution
A reflection across the -axis leaves points on the -axis where they are () and sends to , a flip (). No other line is mapped to itself.
Exercise 2: Projection onto a slanted line
projects onto the line through . Predict its eigenvalues and eigenvectors, then check one of them.
Answer
with and with .
Solution
Vectors on the line are unchanged () and vectors perpendicular to it are sent to 0 (). The perpendicular direction to is .
Exercise 3: Which matrix has no real eigenvectors?
Among , , and , which has no real eigenvector? Explain with the characteristic polynomial.
Answer
, a rotation by .
Solution
The others: has (every vector), the shear has (-axis), and has with , .
Exercise 4: Find the rotation axis
maps . Find its rotation axis as an eigenvector, and check it in code.
Answer
The axis is the line through (eigenvalue 1).
Solution
cycles the coordinates: . A vector is fixed exactly when , so the axis is . The rotation angle is : the other eigenvalues are .
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 and 1
- 1 and −1
- 0 and 1
- and
The shear has eigenvalue 1 with algebraic multiplicity 2. How many independent eigenvectors does it have?
- One
- Two
- None
- Infinitely many independent ones
For a 3D rotation matrix (not the identity), what is the eigenvector with eigenvalue 1?
- Any vector
- The rotation axis
- There is none
- The vector perpendicular to the axis