Foundations to Frontier
Tests
A. Mathematical Foundations › A2 Linear Algebra › Decompositions

Eigenvalues and Eigenvectors

The special directions a matrix only stretches, never turns. They reveal how systems vibrate, whether a robot's controller is stable, which pages Google ranks first, and how fast learning converges.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Arrows that don’t turn

Stretch a rubber sheet with a grid drawn on it. Most arrows drawn on the sheet get turned as well as stretched: they end up pointing somewhere new. But a few special directions only get longer or shorter, and keep pointing exactly the same way (or exactly backwards).

Those special directions are the eigenvectors (“eigen” is German for “own”). How much each one is stretched is its eigenvalue.

Turn the arrow x\mathbf x with the slider. Most of the time AxA\mathbf x points somewhere else, but along the green bands it lines up:

Eigenvector hunt: find directions that Ax doesn't turn
xAx
A = [[2, 1], [1, 2]] · Ax points in a different direction: keep turning x.
Eigenvalues: λ₁ = 3.000, λ₂ = 1.000 (green bands = eigen-directions).

Try the rotation preset. A rotation turns every arrow, so it has no real eigenvectors at all.

In robotics and space

A bridge, an aircraft wing, or a robot arm vibrates in special patterns called modes. Each mode is an eigenvector of the structure’s equations, and its eigenvalue sets how fast it wobbles. Engineers check these before launch so that rocket vibrations don’t shake a satellite apart.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A machine doubles every arrow. How much is the arrow (1, 2) stretched?
  2. 2. Does any arrow keep its direction under a 90° rotation?
  3. 3. A mirror reflects across a line. An arrow lying along the mirror line is stretched by…

Level 1: Beginner

★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.

The defining equation

Av=λv,v≠0A\mathbf v = \lambda\mathbf v, \qquad \mathbf v \ne \mathbf 0

v\mathbf v is an eigenvector, and λ\lambda (lambda) is its eigenvalue.

Worked example. A=(2112)A = \begin{pmatrix}2&1\\1&2\end{pmatrix}.

  • A(11)=(33)=3(11)A\begin{pmatrix}1\\1\end{pmatrix} = \begin{pmatrix}3\\3\end{pmatrix} = 3\begin{pmatrix}1\\1\end{pmatrix}, so (1,1)(1,1) is an eigenvector with λ=3\lambda = 3.
  • A(1−1)=(1−1)A\begin{pmatrix}1\\-1\end{pmatrix} = \begin{pmatrix}1\\-1\end{pmatrix}, so (1,−1)(1,-1) is an eigenvector with λ=1\lambda = 1.
  • A(10)=(21)A\begin{pmatrix}1\\0\end{pmatrix} = \begin{pmatrix}2\\1\end{pmatrix}, which isn’t a multiple of (1,0)(1,0). Not an eigenvector.

Any non-zero multiple of an eigenvector is also an eigenvector, with the same λ\lambda.

Easy cases

  • Diagonal matrices: the eigenvalues are the diagonal entries, and the eigenvectors are the axes.
  • Triangular matrices: the eigenvalues are still the diagonal entries.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Eigenvalues of diag(2, 5)?
  2. 2. Eigenvalues of [[3, 1], [0, 2]]?
  3. 3. If v is an eigenvector, so is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Finding eigenvalues: the characteristic polynomial

Av=λvA\mathbf v = \lambda\mathbf v means (A−λI)v=0(A - \lambda I)\mathbf v = \mathbf 0 with v≠0\mathbf v\ne\mathbf 0, so A−λIA - \lambda I must be singular:

det⁡(A−λI)=0\det(A - \lambda I) = 0

For a 2×22\times2 matrix this is a quadratic:

λ2−(tr⁡A) λ+det⁡A=0\lambda^2 - (\operatorname{tr}A)\,\lambda + \det A = 0

Example. A=(4123)A = \begin{pmatrix}4&1\\2&3\end{pmatrix}: λ2−7λ+10=0\lambda^2 - 7\lambda + 10 = 0, so λ=5\lambda = 5 or 22. For λ=5\lambda = 5: (A−5I)v=(−112−2)v=0(A - 5I)\mathbf v = \begin{pmatrix}-1&1\\2&-2\end{pmatrix}\mathbf v = \mathbf 0, giving v=(1,1)\mathbf v = (1,1).

Eigenspaces and multiplicities

For each eigenvalue, the eigenspace is ker⁡(A−λI)\ker(A - \lambda I) (A2.1-6). The algebraic multiplicity is how many times λ\lambda is a root of the characteristic polynomial. The geometric multiplicity is the dimension of the eigenspace, which is never larger. The shear (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} has λ=1\lambda = 1 twice, but only one eigen-direction. It’s called defective.

Complex eigenvalues mean rotation

A real matrix can have complex eigenvalues, in conjugate pairs (A1-5). The 90° rotation has λ=±i\lambda = \pm i. In dynamics, a complex pair σ±iω\sigma \pm i\omega means oscillation at frequency ω\omega, which grows if σ>0\sigma > 0 and decays if σ<0\sigma < 0.

How eigenvalues change

If Av=λvA\mathbf v = \lambda\mathbf v, then Akv=λkvA^k\mathbf v = \lambda^k\mathbf v, A−1v=λ−1vA^{-1}\mathbf v = \lambda^{-1}\mathbf v, and (A+cI)v=(λ+c)v(A + cI)\mathbf v = (\lambda + c)\mathbf v, with the same eigenvectors.

🐍 Exercise 1: eigenvalues and eigenvectors of a 2×2 matrix
Solve λ² − (tr)λ + det = 0 (return None if complex) and find an eigenvector for each λ. The tests check Av = λv.

Why everyone cares

Field Eigen-question
Data science PCA: eigenvectors of the covariance matrix are the directions of greatest variance (D9)
Web and graphs PageRank: the ranking is the eigenvector of the link matrix with λ=1\lambda = 1
Robotics and control linearised dynamics x˙=Ax\dot{\mathbf x} = A\mathbf x are stable iff every eigenvalue has negative real part (S2)
Mechanics vibration modes and natural frequencies of arms, drones and spacecraft
ML optimization Hessian eigenvalues set the safe learning rate: gradient descent on a quadratic needs η<2/λmax⁡\eta < 2/\lambda_{\max}
📝 Quick check (Level 2)
0/3 answered
  1. 1. Eigenvalues of [[4, 1], [2, 3]]?
  2. 2. A has eigenvalue 3. A² has eigenvalue…
  3. 3. Eigenvalues of the 90° rotation?

Level 3: Advanced

★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.

Distinct eigenvalues give independent eigenvectors

Theorem

Eigenvectors belonging to distinct eigenvalues are linearly independent.

Proof (two eigenvectors). Suppose c1v1+c2v2=0c_1\mathbf v_1 + c_2\mathbf v_2 = \mathbf 0 with λ1≠λ2\lambda_1\ne\lambda_2. Apply AA to get c1λ1v1+c2λ2v2=0c_1\lambda_1\mathbf v_1 + c_2\lambda_2\mathbf v_2 = \mathbf 0. Subtract λ2\lambda_2 times the first equation: c1(λ1−λ2)v1=0c_1(\lambda_1 - \lambda_2)\mathbf v_1 = \mathbf 0, so c1=0c_1 = 0, and then c2=0c_2 = 0. The general case follows by induction. ∎ So an n×nn\times n matrix with nn distinct eigenvalues has a full basis of eigenvectors (A2.3-2).

Trace, determinant and eigenvalues

Theorem

Counting complex eigenvalues with multiplicity: tr⁡A=∑iλi\operatorname{tr}A = \sum_i\lambda_i and det⁡A=∏iλi\det A = \prod_i\lambda_i.

Proof. det⁡(λI−A)=∏i(λ−λi)\det(\lambda I - A) = \prod_i(\lambda - \lambda_i). Comparing the λn−1\lambda^{n-1} coefficients gives −tr⁡A=−∑λi-\operatorname{tr}A = -\sum\lambda_i. Setting λ=0\lambda = 0 gives det⁡(−A)=∏(−λi)\det(-A) = \prod(-\lambda_i). ∎ Corollary: AA is invertible iff 0 is not an eigenvalue.

Similar matrices share eigenvalues

det⁡(P−1AP−λI)=det⁡(P−1(A−λI)P)=det⁡(A−λI)\det(P^{-1}AP - \lambda I) = \det(P^{-1}(A - \lambda I)P) = \det(A - \lambda I). So eigenvalues belong to the linear map, not to the coordinates.

Two more classic results

  • Cayley–Hamilton theorem. Every matrix satisfies its own characteristic polynomial. For 2×22\times2: A2−(tr⁡A)A+(det⁡A)I=0A^2 - (\operatorname{tr}A)A + (\det A)I = 0.
  • Gershgorin circle theorem. Every eigenvalue lies in at least one disc centred at aiia_{ii} with radius ∑j≠i∣aij∣\sum_{j\ne i}\lvert a_{ij}\rvert. It’s a quick way to bound eigenvalues without computing them, for example to show a matrix is invertible or that a system is stable.
Exercise 3.1: Use Gershgorin to show [[10,1,0],[1,5,1],[0,1,1]] has no negative eigenvalues (it is symmetric, so they are real)

The discs are [9,11][9,11], [3,7][3,7] and [0,2][0,2]. All lie in [0,∞)[0,\infty), so every eigenvalue is ≥0\ge 0. (The actual eigenvalues are about 10.20, 5.05 and 0.76.)

📝 Quick check (Level 3)
0/3 answered
  1. 1. A 3 × 3 matrix has eigenvalues 1, 2, 3. det A = ?
  2. 2. Cayley–Hamilton for a characteristic polynomial λ² − 3λ + 2 gives A² = ?
  3. 3. 0 is an eigenvalue of A exactly when…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

How eigenvalues are really computed

Solving det⁡(A−λI)=0\det(A - \lambda I) = 0 is only for hand calculations. Polynomial roots are badly conditioned, so tiny coefficient errors move the roots a lot. Software uses:

  • Power iteration (von Mises, 1929). Repeatedly apply AA and normalise. It converges to the dominant eigenvector at rate ∣λ2/λ1∣\lvert\lambda_2/\lambda_1\rvert per step. It’s simple and needs only matrix–vector products, so it works for huge sparse matrices. PageRank was computed this way.
  • The QR algorithm (Francis, 1961; Kublanovskaya, 1961). Repeated QR factorizations with shifts find all eigenvalues in O(n3)O(n^3). It’s one of the “top 10 algorithms of the 20th century”.
  • Lanczos and Arnoldi (A2.4) find a few extreme eigenvalues of enormous sparse matrices.
🐍 Exercise 2 (research): power iteration and its convergence rate
Implement power iteration with a Rayleigh-quotient estimate, then measure the error ratio per step and compare it with theory, (λ₂/λ₁)² = 0.81.

Eigenvalues in current research

  • The edge of stability. For gradient descent with step size η\eta, classical theory needs the sharpness λmax⁡(∇2L)\lambda_{\max}(\nabla^2L) to stay below 2/η2/\eta. Cohen et al. (2021) found that when training real networks, the sharpness rises until it hovers right at 2/η2/\eta, and training keeps making progress there. This opened a new line of optimization research (B4).
  • Spectral graph theory. The second-smallest eigenvalue of a graph Laplacian (the algebraic connectivity, Fiedler, 1973) measures how well connected the graph is. Its eigenvector splits the graph into clusters. This is used in spectral clustering (D8), and in multi-robot networks, where it governs how fast consensus algorithms converge (U8).
  • Stability of learned controllers. For a robot controlled by a learned policy, the eigenvalues of the closed-loop Jacobian at an equilibrium tell you whether small disturbances die out. That’s a basic check before deploying on hardware (S3, M2).

References

  1. A.-L. Cauchy (1829). “Sur l’équation à l’aide de laquelle on détermine les inégalités séculaires des mouvements des planètes.” (Eigenvalues of symmetric matrices.)
  2. R. von Mises and H. Pollaczek-Geiringer (1929). “Praktische Verfahren der Gleichungsauflösung.” ZAMM, 9. (Power iteration.)
  3. S. Gershgorin (1931). “Über die Abgrenzung der Eigenwerte einer Matrix.” Izvestiya Akademii Nauk SSSR, 6.
  4. J. G. F. Francis (1961/62). “The QR transformation, parts I and II.” The Computer Journal, 4.
  5. M. Fiedler (1973). “Algebraic connectivity of graphs.” Czechoslovak Mathematical Journal, 23(2).
  6. L. Page, S. Brin, R. Motwani, T. Winograd (1999). “The PageRank citation ranking.” Stanford InfoLab.
  7. J. Cohen, S. Kaur, Y. Li, J. Z. Kolter, A. Talwalkar (2021). “Gradient descent on neural networks typically occurs at the edge of stability.” ICLR.
  8. G. Strang (2016). Introduction to Linear Algebra, 5th ed. Chapter 6.