Tutorials › Linear Algebra › The Rayleigh Quotient And Its Bounds

Quadratic Forms and Definiteness · Tutorial 763 of 1000

The Rayleigh Quotient And Its Bounds

Learn to compute the Rayleigh quotient and understand, with proof, why it is bounded by the extreme eigenvalues of a real symmetric matrix.

Advanced 10 min read

What You'll Learn

  • Define the Rayleigh quotient for a nonzero real vector.
  • Compute the quotient directly and using orthogonal eigenvector coordinates.
  • Prove the bounds from the smallest and largest eigenvalues.
  • Determine when the quotient equals either bound.
  • Recognize how scaling a vector affects its Rayleigh quotient.
  • Avoid confusing the quotient with the unnormalized quadratic form.

From a Quadratic Form to a Quotient

A real symmetric matrix assigns a real number \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) to each vector \(\mathbf{x}\). This quadratic form depends on the size of the vector as well as its direction: replacing \(\mathbf{x}\) by \(c\mathbf{x}\) multiplies the value by \(c^2\). Dividing by \(\mathbf{x}^{\top}\mathbf{x}\), the squared length of \(\mathbf{x}\), removes this dependence on scale. The resulting quantity is the Rayleigh quotient. Its central bound is particularly useful because it connects the values of a quadratic form to the eigenvalues of its matrix.

Throughout this tutorial, \(\mathbf{A}\) is a real symmetric \(n\times n\) matrix with \(n\ge 1\), and \(\mathbf{x}\) is a nonzero vector in \(\mathbb{R}^n\). Because \(\mathbf{x}\ne\mathbf{0}\), at least one component of \(\mathbf{x}\) is nonzero, so \(\mathbf{x}^{\top}\mathbf{x}\), the sum of the squares of its components, is positive.

Definition: The Rayleigh quotient of a real symmetric matrix \(\mathbf{A}\) at a nonzero vector \(\mathbf{x}\in\mathbb{R}^n\) is \(R_{\mathbf{A}}(\mathbf{x})=\dfrac{\mathbf{x}^{\top}\mathbf{A}\mathbf{x}}{\mathbf{x}^{\top}\mathbf{x}}\). It is defined only for \(\mathbf{x}\ne\mathbf{0}\), since the denominator is zero at the zero vector.

The quotient is unchanged by nonzero scaling. In fact, if \(c\in\mathbb{R}\) and \(c\ne0\), then

$$ R_{\mathbf{A}}(c\mathbf{x}) =\frac{(c\mathbf{x})^{\top}\mathbf{A}(c\mathbf{x})} {(c\mathbf{x})^{\top}(c\mathbf{x})} =\frac{c^2\mathbf{x}^{\top}\mathbf{A}\mathbf{x}} {c^2\mathbf{x}^{\top}\mathbf{x}} =R_{\mathbf{A}}(\mathbf{x}). $$

Thus the quotient depends on the direction of a nonzero vector, not on its length. In particular, it is enough to calculate it on unit vectors, for which \(\mathbf{x}^{\top}\mathbf{x}=1\). This observation does not say which directions give the smallest or largest values; the bound below is a statement about every nonzero vector.

Why the Extreme Eigenvalues Bound Every Value

The Spectral Theorem for real symmetric matrices states that a real symmetric matrix has an orthonormal basis of real eigenvectors. Equivalently, there is an orthogonal matrix \(\mathbf{Q}\) and a diagonal matrix \(\mathbf{D}\) such that \(\mathbf{A}=\mathbf{Q}\mathbf{D}\mathbf{Q}^{\top}\). Here, orthogonal means \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), and the diagonal entries of \(\mathbf{D}\) are the real eigenvalues of \(\mathbf{A}\). We use this earlier result to express the quotient as a weighted average of those eigenvalues.

Theorem (Rayleigh quotient bounds): Let \(\mathbf{A}\in\mathbb{R}^{n\times n}\) be symmetric, where \(n\ge1\). Let \(\lambda_{\min}\) and \(\lambda_{\max}\) be its smallest and largest eigenvalues. Then, for every \(\mathbf{x}\in\mathbb{R}^n\) with \(\mathbf{x}\ne\mathbf{0}\), \(\lambda_{\min}\le R_{\mathbf{A}}(\mathbf{x})\le\lambda_{\max}\).

Proof. By the Spectral Theorem, choose an orthogonal matrix \(\mathbf{Q}\) whose columns are an orthonormal eigenbasis of \(\mathbf{A}\), and write \(\mathbf{A}=\mathbf{Q}\mathbf{D}\mathbf{Q}^{\top}\), where \(\mathbf{D}=\operatorname{diag}(\lambda_1,\dots,\lambda_n)\). Every \(\lambda_i\) lies between \(\lambda_{\min}\) and \(\lambda_{\max}\). Set \(\mathbf{y}=\mathbf{Q}^{\top}\mathbf{x}\). Since \(\mathbf{Q}\) is invertible and \(\mathbf{x}\ne\mathbf{0}\), \(\mathbf{y}\ne\mathbf{0}\). Also, \(\mathbf{x}=\mathbf{Q}\mathbf{y}\), so orthogonality gives \(\mathbf{x}^{\top}\mathbf{x}=\mathbf{y}^{\top}\mathbf{y}=\sum_{i=1}^n y_i^2\), and \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=\mathbf{y}^{\top}\mathbf{D}\mathbf{y}=\sum_{i=1}^n\lambda_i y_i^2\). Consequently, \(R_{\mathbf{A}}(\mathbf{x})=\dfrac{\sum_{i=1}^n\lambda_i y_i^2}{\sum_{i=1}^n y_i^2}\). For each \(i\), \(\lambda_{\min}\le\lambda_i\le\lambda_{\max}\). Multiplying these inequalities by \(y_i^2\ge0\) and summing gives \(\lambda_{\min}\sum_{i=1}^n y_i^2\le\sum_{i=1}^n\lambda_i y_i^2\le\lambda_{\max}\sum_{i=1}^n y_i^2\). The sum \(\sum_{i=1}^n y_i^2\) is positive because \(\mathbf{y}\ne\mathbf{0}\). Dividing by it proves both claimed inequalities. \(\square\)

This proof reveals the structure of the bound. The numbers \(y_i^2/\sum_j y_j^2\) are nonnegative and add to \(1\). The quotient is therefore an average of the eigenvalues, with weights determined by the squared components of \(\mathbf{x}\) in an orthonormal eigenbasis. No weight is negative, so the average cannot fall below every eigenvalue or rise above every eigenvalue.

Theorem (Equality cases): Under the hypotheses of the Rayleigh quotient bounds theorem, \(R_{\mathbf{A}}(\mathbf{x})=\lambda_{\min}\) exactly when \(\mathbf{x}\) belongs to the eigenspace for \(\lambda_{\min}\). Likewise, \(R_{\mathbf{A}}(\mathbf{x})=\lambda_{\max}\) exactly when \(\mathbf{x}\) belongs to the eigenspace for \(\lambda_{\max}\).

Proof. Use the orthonormal eigenbasis and coordinates \(y_i\) from the preceding proof. For the lower bound, subtract \(\lambda_{\min}\) from the quotient: \(R_{\mathbf{A}}(\mathbf{x})-\lambda_{\min}=\dfrac{\sum_{i=1}^n(\lambda_i-\lambda_{\min})y_i^2}{\sum_{i=1}^n y_i^2}\). The denominator is positive, and every term in the numerator is nonnegative. The quotient equals \(\lambda_{\min}\) if and only if the numerator is zero. A sum of nonnegative terms is zero exactly when each term is zero. Thus \(y_i=0\) whenever \(\lambda_i>\lambda_{\min}\); the only possibly nonzero coordinates are those belonging to eigenvectors with eigenvalue \(\lambda_{\min}\). This is exactly the condition that \(\mathbf{x}\) belongs to the eigenspace for \(\lambda_{\min}\). Conversely, if \(\mathbf{x}\) belongs to that eigenspace, its coordinates in the chosen eigenbasis are zero outside the \(\lambda_{\min}\) eigenspace, so the quotient is \(\lambda_{\min}\). For the upper bound, \(\lambda_{\max}-R_{\mathbf{A}}(\mathbf{x})=\dfrac{\sum_{i=1}^n(\lambda_{\max}-\lambda_i)y_i^2}{\sum_{i=1}^n y_i^2}\). The same reasoning shows that this is zero exactly when \(y_i=0\) for every \(\lambda_i<\lambda_{\max}\), which is equivalent to \(\mathbf{x}\) belonging to the \(\lambda_{\max}\) eigenspace. \(\square\)

Computing the Quotient and Reading the Weights

Worked Example: A Diagonal Matrix

Let \(\mathbf{A}=\begin{bmatrix}1&0&0\\0&3&0\\0&0&5\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}1\\2\\2\end{bmatrix}\). Compute the Rayleigh quotient and check its bounds.

The eigenvalues are the diagonal entries \(1,3,5\), so \(\lambda_{\min}=1\) and \(\lambda_{\max}=5\). First compute the matrix-vector product and the numerator:

$$ \mathbf{A}\mathbf{x} =\begin{bmatrix}1\\6\\10\end{bmatrix}, \qquad \mathbf{x}^{\top}\mathbf{A}\mathbf{x} =\begin{bmatrix}1&2&2\end{bmatrix} \begin{bmatrix}1\\6\\10\end{bmatrix} =1+12+20=33. $$

The denominator is \(\mathbf{x}^{\top}\mathbf{x}=1^2+2^2+2^2=9\). Hence \(R_{\mathbf{A}}(\mathbf{x})=33/9=11/3\). Since \(1\le 11/3\le5\), the result satisfies the bound.

Check using eigenbasis coordinates: the matrix is already diagonal, so the coordinates are \(1,2,2\). The weighted-average expression gives \((1\cdot1^2+3\cdot2^2+5\cdot2^2)/(1^2+2^2+2^2)=(1+12+20)/9=11/3\), agreeing with the direct computation. The vector has nonzero components in eigendirections with different eigenvalues, so the quotient is strictly between the two bounds.

Worked Example: A Symmetric Matrix That Is Not Diagonal

For \(\mathbf{A}=\begin{bmatrix}2&1\\1&2\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}2\\1\end{bmatrix}\), compute the quotient both directly and in an orthonormal eigenbasis.

The vectors \(\mathbf{q}_1=\frac{1}{\sqrt{2}}\begin{bmatrix}1\\-1\end{bmatrix}\) and \(\mathbf{q}_2=\frac{1}{\sqrt{2}}\begin{bmatrix}1\\1\end{bmatrix}\) are orthonormal. Direct multiplication verifies their eigenvalues:

$$ \mathbf{A}\mathbf{q}_1 =\frac{1}{\sqrt{2}}\begin{bmatrix}1\\-1\end{bmatrix} =1\mathbf{q}_1, \qquad \mathbf{A}\mathbf{q}_2 =\frac{1}{\sqrt{2}}\begin{bmatrix}3\\3\end{bmatrix} =3\mathbf{q}_2. $$

Thus the smallest and largest eigenvalues are \(1\) and \(3\). The coordinates of \(\mathbf{x}\) in this eigenbasis are \(\mathbf{Q}^{\top}\mathbf{x}\), where \(\mathbf{Q}=\begin{bmatrix}\mathbf{q}_1&\mathbf{q}_2\end{bmatrix}\):

$$ \mathbf{Q}^{\top}\mathbf{x} =\begin{bmatrix} \frac{1}{\sqrt{2}}&-\frac{1}{\sqrt{2}}\\ \frac{1}{\sqrt{2}}&\frac{1}{\sqrt{2}} \end{bmatrix} \begin{bmatrix}2\\1\end{bmatrix} =\begin{bmatrix}\frac{1}{\sqrt{2}}\\\frac{3}{\sqrt{2}}\end{bmatrix}. $$

The weighted-average expression is \(\bigl(1\cdot\frac12+3\cdot\frac92\bigr)/(\frac12+\frac92)=14/5\). Independently, \(\mathbf{A}\mathbf{x}=\begin{bmatrix}5\\4\end{bmatrix}\), so \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=2\cdot5+1\cdot4=14\) and \(\mathbf{x}^{\top}\mathbf{x}=4+1=5\). The direct quotient is also \(14/5\), and \(1\le14/5\le3\).

Worked Example: Checking Both Equality Cases

Let \(\mathbf{A}=\begin{bmatrix}-2&0&0\\0&1&0\\0&0&4\end{bmatrix}\). Compare the quotient for a vector in each extreme eigenspace with its value for a vector mixing eigendirections.

The smallest eigenvalue is \(-2\) and the largest is \(4\). For \(\mathbf{x}=\begin{bmatrix}3\\0\\0\end{bmatrix}\), we have \(\mathbf{A}\mathbf{x}=\begin{bmatrix}-6\\0\\0\end{bmatrix}\), giving \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=-18\) and \(\mathbf{x}^{\top}\mathbf{x}=9\). Therefore \(R_{\mathbf{A}}(\mathbf{x})=-18/9=-2\). For \(\mathbf{z}=\begin{bmatrix}0\\0\\-2\end{bmatrix}\), we have \(\mathbf{A}\mathbf{z}=\begin{bmatrix}0\\0\\-8\end{bmatrix}\), giving numerator \(16\) and denominator \(4\); hence \(R_{\mathbf{A}}(\mathbf{z})=4\).

Now take \(\mathbf{w}=\begin{bmatrix}1\\0\\2\end{bmatrix}\). Then \(\mathbf{A}\mathbf{w}=\begin{bmatrix}-2\\0\\8\end{bmatrix}\), so the numerator is \(-2+16=14\) and the denominator is \(1+4=5\). Thus \(R_{\mathbf{A}}(\mathbf{w})=14/5\), which lies strictly between \(-2\) and \(4\). The equality cases agree with the theorem: the first two vectors each lie in one extreme eigenspace, while \(\mathbf{w}\) has components in eigenspaces for two different eigenvalues.

Common Mistake: Omitting the Denominator

The Rayleigh quotient is not the quadratic form by itself. For \(\mathbf{A}=\begin{bmatrix}2&0\\0&5\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}2\\1\end{bmatrix}\), the smallest and largest eigenvalues are \(2\) and \(5\). A wrong calculation treats \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=2\cdot4+5\cdot1=13\) as the quotient and concludes that the value exceeds \(5\). The correction is to include the denominator: \(\mathbf{x}^{\top}\mathbf{x}=4+1=5\), so \(R_{\mathbf{A}}(\mathbf{x})=13/5\), which is between \(2\) and \(5\). The bound applies to the ratio, not to the unnormalized numerator.

A second useful check is to confirm that the matrix is real and symmetric before applying this theorem. Its proof uses an orthonormal basis of real eigenvectors, supplied by the Spectral Theorem for real symmetric matrices. The bound as stated does not automatically apply to a matrix that fails these hypotheses.

What the Bound Tells Us

The quotient turns eigenvalue information into a bound on a quadratic expression evaluated at any nonzero vector. It also gives a way to compare a direction with the extreme eigendirections: a vector in the smallest or largest eigenspace gives the corresponding endpoint, while a vector mixing different eigenvalues gives an average weighted by its squared eigenbasis coordinates. Repeated extreme eigenvalues cause no difficulty; equality holds for every nonzero vector in the corresponding eigenspace, not just for one selected eigenvector.

When using the quotient, check three things: the matrix is symmetric, the input vector is nonzero, and the denominator is \(\mathbf{x}^{\top}\mathbf{x}\). Then identify the smallest and largest eigenvalues and compare the computed ratio against them. The bounds hold for every such vector, whether or not it is an eigenvector.

Check Your Understanding

Use the definition and the bounds theorem to answer each question. Where asked to compute a quotient, show both its numerator and denominator.

  1. For \(\mathbf{A}=\begin{bmatrix}2&0\\0&6\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}1\\2\end{bmatrix}\), compute \(R_{\mathbf{A}}(\mathbf{x})\) and verify the eigenvalue bounds.
  2. Explain why the Rayleigh quotient is unchanged when a nonzero vector is multiplied by a nonzero real scalar.
  3. For a real symmetric matrix, what must be true of the eigenbasis coordinates of \(\mathbf{x}\) if its quotient equals the smallest eigenvalue?
  4. For \(\mathbf{A}=\begin{bmatrix}-1&0\\0&3\end{bmatrix}\), compute the quotient at \(\mathbf{x}=\begin{bmatrix}0\\2\end{bmatrix}\). Which equality case does it illustrate?
  5. Identify the error in claiming that the quadratic form \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\), without dividing by \(\mathbf{x}^{\top}\mathbf{x}\), must lie between the extreme eigenvalues.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon