Tutorials › Linear Algebra › Existence of Extremal Rayleigh Quotients

Symmetric Matrices and the Spectral Theorem · Tutorial 732 of 1000

Existence of Extremal Rayleigh Quotients

Learn why the Rayleigh quotient has actual extreme values on the unit sphere, not merely a supremum and an infimum.

Advanced 9 min read

What You'll Learn

  • Define the Rayleigh quotient and relate it to a quadratic form on the unit sphere
  • Verify continuity of the quadratic-form function from its coordinate expression
  • Use compactness and convergent subsequences to prove both extrema are attained
  • Distinguish a maximum or minimum from a supremum or infimum
  • Apply the existence result and check Rayleigh-quotient calculations
  • Avoid applying the compactness argument to the wrong domain

From a Bounded Range to an Attained Extreme

A continuous function on a compact set does more than have values that stay within bounds: it reaches its largest and smallest values. For a real symmetric matrix, the relevant function is the Rayleigh quotient, and the relevant compact set is the unit sphere. The key point of this tutorial is existence. We will prove that there are unit vectors where the quotient is greatest and least, without yet identifying those values in terms of eigenvalues.

Let \(n\) be a positive integer and let \(\mathbf{A}\in\mathbb{R}^{n\times n}\) be symmetric, meaning \(\mathbf{A}^{\top}=\mathbf{A}\). For every nonzero \(\mathbf{x}\in\mathbb{R}^n\), define the Rayleigh quotient by dividing the quadratic form by the squared length of \(\mathbf{x}\). The denominator is positive for every such vector.

$$ R_{\mathbf{A}}(\mathbf{x}) = \frac{\mathbf{x}^{\top}\mathbf{A}\mathbf{x}} {\mathbf{x}^{\top}\mathbf{x}}, \qquad \mathbf{x}\ne\mathbf{0}. $$

The unit sphere is \(S^{n-1}=\{\mathbf{x}\in\mathbb{R}^n:\mathbf{x}^{\top}\mathbf{x}=1\}\). On this sphere, the denominator in the Rayleigh quotient is \(1\). Thus the quotient there is the function \(f_{\mathbf{A}}(\mathbf{x})=\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\). In coordinates, this is a polynomial in the entries of \(\mathbf{x}\), so it is continuous.

Theorem (Existence of extremal Rayleigh quotients): If \(\mathbf{A}\in\mathbb{R}^{n\times n}\) is symmetric and \(n\ge1\), there are unit vectors \(\mathbf{x}_{\min},\mathbf{x}_{\max}\in\mathbb{R}^n\) such that \(R_{\mathbf{A}}(\mathbf{x}_{\min})\le R_{\mathbf{A}}(\mathbf{x})\le R_{\mathbf{A}}(\mathbf{x}_{\max})\) for every unit vector \(\mathbf{x}\). Consequently, the Rayleigh quotient has a minimum and a maximum on the unit sphere.

Proof. The unit sphere is nonempty because it contains the standard basis vector \(\mathbf{e}_1\). It is bounded, since every \(\mathbf{x}\in S^{n-1}\) satisfies \(|x_i|\le1\) for every coordinate \(i\). It is also closed: if a sequence of unit vectors converges to \(\mathbf{x}\), continuity of the squared norm gives \(\mathbf{x}^{\top}\mathbf{x}=1\). By the Heine–Borel theorem, a closed and bounded subset of \(\mathbb{R}^n\) is compact; in particular, every sequence in the sphere has a subsequence converging to a point of the sphere.

Write \(a_{ij}\) for the entries of \(\mathbf{A}\). For every unit vector \(\mathbf{x}\), the coordinate formula and \(|x_i|\le1\) give

$$ \left|f_{\mathbf{A}}(\mathbf{x})\right| = \left|\sum_{i=1}^{n}\sum_{j=1}^{n}a_{ij}x_ix_j\right| \le \sum_{i=1}^{n}\sum_{j=1}^{n}|a_{ij}|. $$

Therefore the values of \(f_{\mathbf{A}}\) on the sphere form a nonempty bounded subset of \(\mathbb{R}\). Let \(\alpha\) be their supremum. By the defining property of a supremum, for each \(k\in\mathbb{N}\) there is a unit vector \(\mathbf{x}_k\) such that \(\alpha-\tfrac1k<f_{\mathbf{A}}(\mathbf{x}_k)\le\alpha\). Compactness gives a convergent subsequence \(\mathbf{x}_{k_r}\to\mathbf{x}_{\max}\) with \(\mathbf{x}_{\max}\) on the sphere. Continuity then gives \(f_{\mathbf{A}}(\mathbf{x}_{k_r})\to f_{\mathbf{A}}(\mathbf{x}_{\max})\). The inequalities defining the sequence imply \(f_{\mathbf{A}}(\mathbf{x}_{k_r})\to\alpha\), so \(f_{\mathbf{A}}(\mathbf{x}_{\max})=\alpha\). Hence the supremum is a maximum.

For the minimum, let \(\beta\) be the infimum of the same bounded, nonempty set of values. Choose unit vectors \(\mathbf{y}_k\) with \(\beta\le f_{\mathbf{A}}(\mathbf{y}_k)<\beta+\tfrac1k\). A convergent subsequence has a limit \(\mathbf{x}_{\min}\) on the sphere, and continuity gives \(f_{\mathbf{A}}(\mathbf{x}_{\min})=\beta\). Thus the infimum is a minimum as well. Since \(R_{\mathbf{A}}=f_{\mathbf{A}}\) on the sphere, both conclusions hold for the Rayleigh quotient. \(\square\)

The proof has two separate jobs. The coordinate estimate ensures the quotient values cannot escape to infinity, so a supremum and an infimum exist as real numbers. Compactness supplies a convergent subsequence, and continuity ensures its limit has the limiting function value. Without that last step, a bound on the values alone would not show that either endpoint is attained.

Worked Applications on the Unit Sphere

Worked Example: Evaluating a Quotient at a Unit Vector

Let \(\mathbf{A}=\begin{bmatrix}2&1\\1&3\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}\tfrac35\\\tfrac45\end{bmatrix}\). Verify that \(\mathbf{x}\) is a unit vector and calculate its Rayleigh quotient.

First check its squared length:

$$ \mathbf{x}^{\top}\mathbf{x} = \left(\frac35\right)^2+\left(\frac45\right)^2 = \frac9{25}+\frac{16}{25} =1. $$

Now compute the matrix-vector product and then the quadratic form:

$$ \mathbf{A}\mathbf{x} = \begin{bmatrix}2&1\\1&3\end{bmatrix} \begin{bmatrix}\tfrac35\\\tfrac45\end{bmatrix} = \begin{bmatrix}\tfrac{10}{5}\\\tfrac{15}{5}\end{bmatrix} = \begin{bmatrix}2\\3\end{bmatrix}, \qquad \mathbf{x}^{\top}\mathbf{A}\mathbf{x} = \frac35(2)+\frac45(3) = \frac{18}{5}. $$

Since the denominator is \(1\), \(R_{\mathbf{A}}(\mathbf{x})=\tfrac{18}{5}\). This calculation gives the value at this particular unit vector. The existence theorem guarantees that the quotient also has a greatest and least value somewhere on the circle, even though this one evaluation does not determine either extreme.

Check: the product \(\mathbf{A}\mathbf{x}=\begin{bmatrix}2\\3\end{bmatrix}\) gives \(\mathbf{x}^{\top}(\mathbf{A}\mathbf{x})=\tfrac65+\tfrac{12}{5}=\tfrac{18}{5}\), as computed.

Worked Example: Seeing Attainment in a Diagonal Case

For \(\mathbf{A}=\begin{bmatrix}4&0\\0&1\end{bmatrix}\), express the quotient at a point on the unit circle and verify that its endpoint values are attained.

Write a point on the circle as \(\mathbf{x}=\begin{bmatrix}\cos t\\\sin t\end{bmatrix}\). Its squared length is \(\cos^2 t+\sin^2 t=1\). Direct multiplication gives

$$ \mathbf{A}\mathbf{x} = \begin{bmatrix}4\cos t\\\sin t\end{bmatrix}, \qquad R_{\mathbf{A}}(\mathbf{x}) = 4\cos^2 t+\sin^2 t = 1+3\cos^2 t. $$

Because \(0\le\cos^2 t\le1\), this value lies between \(1\) and \(4\). At \(t=\tfrac{\pi}{2}\), \(\mathbf{x}=\begin{bmatrix}0\\1\end{bmatrix}\) and the quotient is \(1\). At \(t=0\), \(\mathbf{x}=\begin{bmatrix}1\\0\end{bmatrix}\) and the quotient is \(4\). Thus the bounds are attained, not merely approached.

Check: for \(\begin{bmatrix}0\\1\end{bmatrix}\), the product with \(\mathbf{A}\) is \(\begin{bmatrix}0\\1\end{bmatrix}\), giving quotient \(1\). For \(\begin{bmatrix}1\\0\end{bmatrix}\), the product is \(\begin{bmatrix}4\\0\end{bmatrix}\), giving quotient \(4\). Both vectors have squared length \(1\).

Worked Example: A General Bound from the Entries

Let \(\mathbf{B}=\begin{bmatrix}1&2\\2&1\end{bmatrix}\). Use its entries to give a bound for the quotient on the unit circle, and evaluate the quotient at \(\mathbf{u}=\begin{bmatrix}\tfrac35\\\tfrac45\end{bmatrix}\).

For any unit vector \(\mathbf{x}=\begin{bmatrix}x_1\\x_2\end{bmatrix}\), both coordinates have absolute value at most \(1\). The coordinate formula is

$$ \mathbf{x}^{\top}\mathbf{B}\mathbf{x} = x_1^2+4x_1x_2+x_2^2. $$

Applying the triangle inequality gives \(\left|\mathbf{x}^{\top}\mathbf{B}\mathbf{x}\right| \le |x_1|^2+4|x_1||x_2|+|x_2|^2\le1+4+1=6\). This bound is not claimed to be sharp; it demonstrates directly that the values are bounded.

For the requested vector, \(\mathbf{u}^{\top}\mathbf{u}=\tfrac9{25}+\tfrac{16}{25}=1\), and

$$ \mathbf{B}\mathbf{u} = \begin{bmatrix}\tfrac35+\tfrac85\\\tfrac65+\tfrac45\end{bmatrix} = \begin{bmatrix}\tfrac{11}{5}\\2\end{bmatrix}, \qquad R_{\mathbf{B}}(\mathbf{u}) = \frac35\left(\frac{11}{5}\right)+\frac45(2) = \frac{33}{25}+\frac{40}{25} = \frac{73}{25}. $$

Check: the computed value satisfies the bound, since \(\left|\tfrac{73}{25}\right|<6\). The denominator is \(1\), so the quadratic form and the Rayleigh quotient agree for this vector.

Why Compactness Is the Right Hypothesis

The Rayleigh quotient is defined for every nonzero vector, but the existence proof is applied on the unit sphere. This restriction is useful for two reasons: it removes the denominator, and it gives a compact domain. Indeed, scaling a nonzero vector by a nonzero real number \(c\) does not change its quotient:

$$ 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}). $$

Also, every nonzero \(\mathbf{x}\) can be rescaled to the unit vector \(\mathbf{x}/\|\mathbf{x}\|\). Thus studying the quotient on the sphere does not discard any quotient values. The proof uses the finite number of matrix entries to bound the quadratic form and compactness to turn limiting values into actual values.

Symmetry is part of the stated setting for the spectral theory of real matrices. However, the existence argument itself uses only that the entries are real and the function \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) is continuous. The symmetry condition is therefore not needed for this particular existence claim. It becomes important when relating the extrema to the matrix’s eigenvalues and eigenvectors.

Common Pitfall: Confusing the Quadratic Form with the Quotient

Take \(\mathbf{A}=\begin{bmatrix}2&0\\0&5\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}1\\1\end{bmatrix}\). A common incorrect calculation says that the quotient is \(7\), because \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=7\). But \(\mathbf{x}\) is not a unit vector: \(\mathbf{x}^{\top}\mathbf{x}=2\). The correct calculation is

$$ R_{\mathbf{A}}(\mathbf{x}) = \frac{\mathbf{x}^{\top}\mathbf{A}\mathbf{x}} {\mathbf{x}^{\top}\mathbf{x}} = \frac{2+5}{1+1} = \frac72. $$

Check: \(\mathbf{A}\mathbf{x}=\begin{bmatrix}2\\5\end{bmatrix}\), so \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=1(2)+1(5)=7\), while the squared length is \(2\). The quotient is therefore \(\tfrac72\), not \(7\). On the unit sphere, and only because the denominator is then \(1\), the quadratic form itself equals the Rayleigh quotient.

Another logical distinction matters: a function being bounded does not by itself imply it reaches either bound. The proof establishes attainment by taking a sequence of values approaching the supremum or infimum, using compactness to obtain a convergent subsequence, and applying continuity at its limit. Omitting that sequence-and-limit step proves only boundedness, not existence of a maximum or minimum.

Check Your Understanding

Use the unit-sphere formulation and the existence proof to answer the following.

  1. For \(\mathbf{A}=\begin{bmatrix}3&1\\1&2\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}\tfrac35\\\tfrac45\end{bmatrix}\), verify that \(\mathbf{x}\) is a unit vector and compute \(R_{\mathbf{A}}(\mathbf{x})\).
  2. Why is \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) continuous as a function of \(\mathbf{x}\)? Give its coordinate form for a \(2\times2\) matrix.
  3. In the existence proof, what guarantees that the sequence approaching the supremum has a subsequence converging to a point on the unit sphere?
  4. For \(\mathbf{A}=\begin{bmatrix}2&0\\0&6\end{bmatrix}\), compute the quotient at \(\begin{bmatrix}0\\1\end{bmatrix}\) and verify the calculation by multiplying the matrix by the vector.
  5. Explain why computing \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) alone gives the quotient only when \(\mathbf{x}\) is a unit vector.

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