Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.The stiffest and the floppiest direction
Push on a rubber block. In some directions it’s very stiff, and in others it gives easily. If you test every direction, the stiffest and the floppiest ones are special. They are the block’s natural directions, and their stiffness numbers are its eigenvalues.
The Rayleigh quotient is the “stiffness in direction x” score. Sweep a direction around a circle and watch the score: its highest and lowest values are exactly the eigenvalues.
A bridge, an aircraft wing or a satellite boom vibrates most easily in its “floppiest” shape. Lord Rayleigh found in the 1870s that you can estimate that shape’s frequency by guessing a shape and computing this score. Engineers still use the idea, now inside every finite-element program.
- 1. A block stretches 4× one way and 2× another. Its smallest stretch over all directions?
- 2. The highest score over all directions equals…
- 3. Can any direction score above the largest eigenvalue?
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Quadratic forms
A quadratic form is
Example. For and : . In coordinates, . The off-diagonal entry appears twice.
The Rayleigh quotient
Scaling doesn’t change it, so only the direction matters. For the example, . For , ranges from 1 (along ) to 3 (along ).
- 1. xᵀAx for A = diag(3, 1), x = (1, 1)?
- 2. R(x) for the same?
- 3. Max of R for diag(5, 2, −1)?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Only the symmetric part matters
Write with symmetric and skew-symmetric. Since , we get . So we always assume is symmetric. Then it has real eigenvalues and an orthonormal eigenbasis (A2.3-2).
The Rayleigh quotient is trapped
Expand in the eigenbasis:
This is a weighted average of the eigenvalues, so . The extremes are reached at the eigenvectors. The gradient is
It vanishes exactly at eigenvectors. Eigenvectors are the critical points of .
Where quadratic forms and Rayleigh quotients appear
| Field | Quadratic form | Rayleigh-quotient problem |
|---|---|---|
| PCA (D9) | variance along : | first PC maximizes |
| Mechanics | kinetic energy , strain energy | natural frequencies: |
| Optimization (A6) | the Hessian term | sharpness = |
| Graphs | spectral clustering (Fiedler vector) | |
| Classification | between- and within-class scatter | Fisher LDA maximizes |
| Control | LQR cost | Lyapunov functions |
The generalized Rayleigh quotient (with ) is extremized by the generalized eigenproblem .
To see the shape of a 2-D quadratic form (bowl, saddle or valley), use this explorer:
- 1. For A = [[2, 1], [1, 2]], max R = ?
- 2. The symmetric part of [[1, 4], [0, 1]] has off-diagonal…
- 3. The gradient of R vanishes at…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Courant–Fischer min–max
For symmetric with :
Proof idea (first form). Choosing gives a minimum of , so the max is . Any -dimensional meets the -dimensional in a nonzero vector, by counting dimensions. On that span, , so every ’s minimum is . ∎ Every eigenvalue is a solution to an optimization problem. That’s why eigenvalues behave well under perturbation (A2.4-4) and why interlacing theorems hold.
Eigenvalue estimates are second-order accurate
If with , then , because . A 1% error in the vector gives about a 0.01% error in the eigenvalue. This is why Rayleigh’s method works so well, and why Rayleigh quotient iteration, which shifts by the current , converges cubically for symmetric matrices.
Sylvester’s law of inertia
For invertible , has the same number of positive, negative and zero eigenvalues as .
A change of variables can bend a bowl into a different bowl, but never into a saddle. The signature (the inertia) is the coordinate-free part of a quadratic form. It classifies critical points (A3) and underlies the LDLᵀ test of definiteness.
Exercise 3.1: Show that xᵀKx = 0 when K is skew-symmetric
is a scalar, so it equals its own transpose . Hence it is 0.
- 1. λ₂ of diag(5, 3, 1) via Courant–Fischer?
- 2. Eigenvector error 10⁻³ ⇒ Rayleigh eigenvalue error about…
- 3. SᵀAS (S invertible) always keeps…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Rayleigh quotient iteration
Inverse iteration with an adaptive shift converges cubically for symmetric , so the number of correct digits roughly triples each step (Parlett, 1998). It is one ingredient of the shifted QR algorithm that every eigen-solver uses.
Rayleigh quotients in modern research
- Spectral clustering and multi-robot networks. Minimizing over relaxes the NP-hard balanced graph cut (Shi and Malik, 2000; von Luxburg, 2007). The value (the algebraic connectivity, Fiedler 1973) sets how fast a robot swarm reaches consensus, and how close a communication network is to splitting.
- Sharpness in deep learning. The top Hessian eigenvalue governs training stability. Gradient descent drives it to (“edge of stability”, Cohen et al., 2021), and SAM optimizes against the worst direction nearby (Foret et al., 2021). It is computed by power iteration on Hessian–vector products.
- Structural dynamics. The Rayleigh–Ritz method restricts to a subspace, which gives upper bounds on natural frequencies. It is the foundation of finite-element modal analysis and of spacecraft modal surveys before launch.
- Fisher LDA and CCA are generalized Rayleigh quotients (D3, D9).
References
- Lord Rayleigh (1877). The Theory of Sound, Vol. 1. Macmillan.
- R. Courant (1920). “Über die Eigenwerte bei den Differentialgleichungen der mathematischen Physik.” Mathematische Zeitschrift, 7.
- M. Fiedler (1973). “Algebraic connectivity of graphs.” Czechoslovak Mathematical Journal, 23.
- B. Parlett (1998). The Symmetric Eigenvalue Problem. SIAM. Chapter 4.
- J. Shi, J. Malik (2000). “Normalized cuts and image segmentation.” IEEE TPAMI, 22(8).
- U. von Luxburg (2007). “A tutorial on spectral clustering.” Statistics and Computing, 17.
- 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.
- P. Foret, A. Kleiner, H. Mobahi, B. Neyshabur (2021). “Sharpness-aware minimization for efficiently improving generalization.” ICLR.