Eigenvalues and Eigenvectors Defined#
Week 2 treated a square matrix as a linear transformation: every input vector is sent to a new vector . In general points somewhere new — length and direction both change. There is a special class of directions where the transformation is as simple as possible: only scales the vector, without rotating it off its line.
A nonzero vector is an eigenvector of with eigenvalue when
The left side applies the matrix; the right side multiplies by a scalar. Equality means lies on the same line through the origin as . The number is the stretch factor along that line: stretches, shrinks, flips the direction and scales, and sends to the zero vector (so is in the null space ).
The zero vector is excluded by definition: holds for every , so it would not pin down a meaningful direction or eigenvalue.
Geometric picture. Think of as a map of the plane. Most arrows get sent to arrows that are not parallel to . Eigenvectors are the rare arrows that stay parallel: the map stretches or flips them along their own axis. Those invariant axes are the skeleton of the transformation — later weeks (diagonalization, symmetric matrices, SVD) rebuild from them.
The eigenvectors of define two invariant lines. A generic vector (green) does not stay on its own line — its image points in a different direction — but vectors along the eigen-lines are only scaled.
Quick check. Take
Then , so is an eigenvector with . The vector is an eigenvector with . Every axis-aligned stretch has the standard basis as eigenvectors; the interesting case is when is not diagonal and those special directions are tilted.
The Characteristic Equation#
Rewrite by moving every term to one side:
So is an eigenvector with eigenvalue exactly when is a nonzero vector in the null space of :
Week 4: a square matrix has a nonzero null-space vector if and only if (equivalently, is singular). Apply that test with :
This is the characteristic equation of . Its roots are the eigenvalues. Expanding the determinant produces a polynomial of degree in — the characteristic polynomial (equivalently , which differs only by a sign) — so an matrix has eigenvalues counted with algebraic multiplicity (some may be complex even when is real).
Why determinants reappear. The same singularity test that told you whether had a unique solution now tells you which stretch factors are compatible with . No new machinery: only “when is singular?”
Trace and determinant shortcuts (). For a matrix the characteristic polynomial is always
You can verify this by expanding . Vieta's formulas then read: the two eigenvalues sum to the trace and multiply to . These identities are not accidents of the case — they hold for every matrix, counted with algebraic multiplicity — but the explicit quadratic is special to .
Finding Eigenvectors#
Once you have a candidate , finding eigenvectors is a null-space computation from Week 6: row-reduce and solve . Every nonzero solution is an eigenvector for that . Scaling an eigenvector still yields an eigenvector for the same — you usually report a convenient representative (integer components, or unit length).
Worked example end to end. Let
Step 1 — eigenvalues. Trace and , so
Factor: . The eigenvalues are and .
Step 2 — eigenvector for . Form
Row 2 is times row 1, so the rank is . The equation gives . Free variable yields
Take . Check: .
Step 3 — eigenvector for . Form
The single independent equation is , so . Thus
is an eigenvector. Check: .
Summary. stretches the line spanned by by and the line spanned by by . Those two directions are the eigenbasis of this plane map.
Recipe for .
- Form and find the roots .
- For each root, solve by elimination; report a basis of the solution space (nonzero vectors only).
- Optionally normalize eigenvectors or choose integer multiples for readability.
For larger , hand expansion of is painful; production code uses iterative algorithms (QR iteration and variants). The conceptual pipeline — “characteristic roots, then null spaces” — stays the same. The browser lab below uses numpy.linalg.eig for the same matrix and verifies .
Find the eigenvalues of A = [[4,1],[2,3]]. The characteristic equation is λ² − trace(A)λ + det(A) = 0. Enter the larger eigenvalue.
Eigenspaces and Multiplicity#
For a fixed eigenvalue , the set of all solutions of is the null space . That set always includes the zero vector, and it is a subspace of . It is called the eigenspace of for :
(The zero vector is allowed here because subspaces must contain zero; “eigenvectors” still means the nonzero members of .)
The geometric multiplicity of is — how many independent eigenvectors you can find for that eigenvalue. The algebraic multiplicity is the multiplicity of as a root of the characteristic polynomial. These always sit in a fixed order (a standard result — see Strang, §6.1):
When the two multiplicities match for every eigenvalue and you can assemble a full basis of eigenvectors, is diagonalizable — Week 10's main topic. They need not match.
Repeated root without enough eigenvectors. Consider
Then , so has algebraic multiplicity . But
has rank , so . Every eigenvector is a multiple of ; there is no second independent eigenvector. Geometric multiplicity is , less than algebraic multiplicity . Matrices like are defective: they cannot be diagonalized. Week 10 returns to the exact criterion (a full set of independent eigenvectors) and to the Jordan form that replaces diagonalization when that criterion fails.
Knowledge check#
Eigenvalues of A are the roots of which equation?
Browser lab: eigenvalues and eigenvectors#
Compute eigenvalues/eigenvectors with numpy.linalg.eig and verify .
import numpy as np
A = np.array([[4., 1.],
[2., 3.]])
eigvals, eigvecs = np.linalg.eig(A)
print("eigenvalues =", eigvals)
print("eigenvectors (columns) =\n", eigvecs)
for i in range(2):
lhs = A @ eigvecs[:, i]
rhs = eigvals[i] * eigvecs[:, i]
print(f"A v{i+1} ≈ λ{i+1} v{i+1}:", np.allclose(lhs, rhs))
print("Notice: eigenvalues are 5 and 2, and Av ≈ λv prints True for each eigenpair.")
Try it: Change A to [[2, 1], [1, 2]] and verify the eigenvectors are orthogonal (their dot product is zero). Swap in [[0, 1], [-1, 0]] — what are the eigenvalues now and why are they complex?
Done when#
You can find the eigenvalues of a 2×2 matrix from , produce an eigenvector for each, and verify . Check it against the browser lab: for the printed eigenvalues are 5. and 2., and both A v ≈ λ v lines print True; then confirm the Try-it matrix gives orthogonal eigenvectors and the rotation has purely imaginary eigenvalues.
Further Reading#
- Strang, G. Introduction to Linear Algebra, 6th ed. (2023). Chapters 6.1–6.2. The classic eigenvalue exposition — clear worked examples and the trace/determinant shortcuts.
- 3Blue1Brown Essence of Linear Algebra, Chapters 13–14. Visual animations of eigenvectors as axes that stay on their span under a transformation.
- Axler, S. Linear Algebra Done Right, 4th ed. (2024). Chapter 5. Develops eigenvalues without determinants first (via invariant subspaces), then ties to the characteristic polynomial.
- Trefethen, L.N. and Bau, D. Numerical Linear Algebra (1997). Lectures 24–28. How production eigenvalue solvers (QR iteration, Arnoldi) work — the bridge from pen-and-paper to
numpy.linalg.eig.