Quant Memo
Advanced

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 AA — a covariance matrix, say — and a candidate direction xx, how much does AA stretch things along that direction? The Rayleigh quotient answers exactly this:

R(x)=xAxxx.R(x) = \frac{x^\top A x}{x^\top x} .

In plain English: the numerator measures how much AA stretches xx (projected back onto xx itself), and dividing by xxx^\top x normalizes away the length of xx, so R(x)R(x) only depends on xx's direction, not its size. If you scan over every possible direction xx, the maximum value R(x)R(x) ever reaches is exactly AA's largest eigenvalue, achieved when xx is the corresponding eigenvector; the minimum value is AA'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 A=(2005)A = \begin{pmatrix}2 & 0\\0 & 5\end{pmatrix}, try x=(1,0)x = (1, 0): R(x)=2/1=2R(x) = 2/1 = 2. Try x=(0,1)x = (0,1): R(x)=5/1=5R(x) = 5/1 = 5. Try the diagonal direction x=(1,1)x=(1,1): R(x)=(2+5)/2=3.5R(x) = (2 + 5)/2 = 3.5, between the two. No direction ever beats 55 or falls below 22 — exactly AA's two eigenvalues.

The Rayleigh quotient R(x)=xAx/xxR(x) = x^\top A x / x^\top x measures how much a symmetric matrix stretches direction xx, and its maximum and minimum over all directions are exactly the matrix's largest and smallest eigenvalues — turning eigenvalue-finding into an optimization problem.

Related concepts

Further reading

  • Strang, Linear Algebra and Its Applications, ch. 6
ShareTwitterLinkedIn