The Rayleigh Quotient
A formula, $R(x) = x^\top A x / x^\top x$, that measures how much a symmetric matrix stretches a given direction — and whose maximum and minimum values turn out to be the matrix's largest and smallest eigenvalues.
Prerequisites: Eigenvalues & Eigenvectors
Given a symmetric matrix — a covariance matrix, say — and a candidate direction , how much does stretch things along that direction? The Rayleigh quotient answers exactly this:
In plain English: the numerator measures how much stretches (projected back onto itself), and dividing by normalizes away the length of , so only depends on 's direction, not its size. If you scan over every possible direction , the maximum value ever reaches is exactly 's largest eigenvalue, achieved when is the corresponding eigenvector; the minimum value is 's smallest eigenvalue, achieved at that eigenvector. This turns an eigenvalue problem into an optimization problem — maximizing a ratio — which is precisely the trick behind algorithms like power iteration and behind PCA's search for the direction of maximum variance.
Worked example. For , try : . Try : . Try the diagonal direction : , between the two. No direction ever beats or falls below — exactly 's two eigenvalues.
The Rayleigh quotient measures how much a symmetric matrix stretches direction , and its maximum and minimum over all directions are exactly the matrix's largest and smallest eigenvalues — turning eigenvalue-finding into an optimization problem.
Further reading
- Strang, Linear Algebra and Its Applications, ch. 6