Tutorials › Graph Theory (Undergraduate) › Rayleigh Quotients and Least Eigenvalues

Spectra of Graphs · Tutorial 651 of 799

Rayleigh Quotients and Least Eigenvalues

Learn how the least adjacency eigenvalue controls quadratic forms, and how centering indicator vectors prepares spectral arguments about independent sets and colorings.

Advanced 9 min read

What You'll Learn

  • Define the Rayleigh quotient of a nonzero real vector and relate it to adjacency eigenvalues.
  • Prove the quadratic-form inequality for the least adjacency eigenvalue and identify its equality case.
  • Compute Rayleigh quotients for explicit paths, cycles and complete graphs.
  • Center an independent-set indicator vector in a regular graph and derive its quadratic-form inequality.
  • Apply the same calculation to the classes of a proper coloring.
  • Recognize why reversing the Rayleigh inequality is a common error.

From Eigenvalues to Quadratic Forms

The adjacency matrix records which vertex pairs are joined, while its eigenvalues summarize how that pattern acts on vectors. A basic way to connect the two is to evaluate a quadratic form \(x^{T}\mathbf{A}x\) and compare it with the squared length \(x^{T}x\). The resulting ratio cannot fall below the least adjacency eigenvalue. This simple inequality is a starting point for spectral arguments about independent sets and colorings.

Throughout, graphs are finite, simple and undirected. For a graph \(G=(V,E)\) with \(n\) vertices, \(\mathbf{A}=\mathbf{A}(G)\) is its \(n\times n\) adjacency matrix: its \(uv\) entry is \(1\) when \(uv\in E\) and \(0\) otherwise. Because the graph is undirected, \(\mathbf{A}\) is a real symmetric matrix. Write its eigenvalues in nonincreasing order as \(\lambda_1\ge\cdots\ge\lambda_n\), and let \(\lambda_{\min}=\lambda_n\).

Definition: For a nonzero real vector \(x\in\mathbb{R}^{n}\), the Rayleigh quotient of \(\mathbf{A}\) at \(x\) is \(R(x)=\dfrac{x^{T}\mathbf{A}x}{x^{T}x}\). The denominator is positive because \(x\ne0\).

The numerator has a useful graph interpretation. If \(x=(x_v)_{v\in V}\), then each edge contributes once from each of the two symmetric entries of \(\mathbf{A}\), so \(x^{T}\mathbf{A}x=2\sum_{uv\in E}x_ux_v\). The denominator is \(\sum_{v\in V}x_v^2\). Thus the quotient compares a sum over edges with a sum over vertices. The signs of the coordinates matter: an edge whose endpoints have opposite signs contributes negatively.

The Least-Eigenvalue Inequality

Theorem: For every nonzero real vector \(x\), \(R(x)\ge\lambda_{\min}\), or equivalently \(x^{T}\mathbf{A}x\ge\lambda_{\min}x^{T}x\). Equality holds exactly when \(x\) is an eigenvector of \(\mathbf{A}\) with eigenvalue \(\lambda_{\min}\).

Proof. Since \(\mathbf{A}\) is real symmetric, the spectral theorem gives an orthonormal basis of real eigenvectors \(u_1,\ldots,u_n\), with corresponding eigenvalues \(\lambda_1,\ldots,\lambda_n\). Expand \(x=\sum_{i=1}^{n}c_i u_i\). Orthonormality gives \(x^{T}x=\sum_i c_i^2\), and the eigenvector equations give \(x^{T}\mathbf{A}x=\sum_i\lambda_i c_i^2\). Since every \(\lambda_i\ge\lambda_{\min}\), \(x^{T}\mathbf{A}x-\lambda_{\min}x^{T}x=\sum_i(\lambda_i-\lambda_{\min})c_i^2\ge0\). Dividing by \(x^{T}x>0\) proves the quotient inequality. Equality holds precisely when every term with \(\lambda_i>\lambda_{\min}\) has \(c_i=0\), which says that \(x\) is a linear combination of eigenvectors with eigenvalue \(\lambda_{\min}\). Since \(x\ne0\), this is exactly the condition that \(x\) is an eigenvector for \(\lambda_{\min}\). \(\square\)

This result is also called the minimum characterization of the least eigenvalue: among all nonzero real vectors, the smallest Rayleigh quotient is \(\lambda_{\min}\). The proof shows both why the inequality holds and when it is sharp. In applications, the chosen vector need not be an eigenvector; the inequality still gives a constraint.

Worked Example: Rayleigh Quotients on a Path

Let \(G=P_3\), with \(V=\{1,2,3\}\) and \(E=\{12,23\}\). Its adjacency matrix is \(\mathbf{A}=\begin{pmatrix}0&1&0\\1&0&1\\0&1&0\end{pmatrix}\). The characteristic polynomial is \(\det(tI-\mathbf{A})=t(t^2-2)\), so the eigenvalues are \(\sqrt{2},0,-\sqrt{2}\) and \(\lambda_{\min}=-\sqrt{2}\).

First take \(x=(1,-\sqrt{2},1)^T\). Multiplication gives \(\mathbf{A}x=(-\sqrt{2},2,-\sqrt{2})^T=-\sqrt{2}x\). Therefore \(x^{T}\mathbf{A}x=-\sqrt{2}(x^{T}x)\). Since \(x^{T}x=1+2+1=4\), the numerator is \(-4\sqrt{2}\) and \(R(x)=-4\sqrt{2}/4=-\sqrt{2}\). Equality holds, as expected for a least-eigenvalue eigenvector.

Now take \(z=(1,1,0)^T\). Then \(\mathbf{A}z=(1,1,1)^T\), so \(z^{T}\mathbf{A}z=1+1+0=2\), while \(z^{T}z=1+1+0=2\). Hence \(R(z)=2/2=1\), and \(1\ge-\sqrt{2}\). Check: directly, \(z^{T}\mathbf{A}z=2z_1z_2+2z_2z_3=2(1)(1)+2(1)(0)=2\), agreeing with the matrix calculation.

Indicator Vectors and Independent Sets

For a vertex set \(S\subseteq V\), its indicator vector \(\mathbf{1}_S\) has coordinate \(1\) on \(S\) and \(0\) outside \(S\). Its squared length is \(|S|\). If \(S\) is independent, meaning that no two vertices of \(S\) are adjacent, then \(\mathbf{1}_S^{T}\mathbf{A}\mathbf{1}_S=0\): every edge has at least one endpoint outside \(S\). But inserting this vector directly into the least-eigenvalue inequality is usually not the most informative step. For a regular graph, centering the vector removes its component in the all-ones direction.

Proposition: Let \(G\) be a \(d\)-regular graph on \(n\) vertices, and let \(S\) be an independent set of size \(s\). If \(y=\mathbf{1}_S-(s/n)\mathbf{1}\), where \(\mathbf{1}\) is the all-ones vector, then \(y^{T}\mathbf{A}y=-ds^2/n\) and \(y^{T}y=s-s^2/n\). Consequently, \(y^{T}\mathbf{A}y\ge\lambda_{\min}y^{T}y\).

Proof. Regularity gives \(\mathbf{A}\mathbf{1}=d\mathbf{1}\), and hence \(\mathbf{1}^{T}\mathbf{A}\mathbf{1}=dn\). Independence gives \(\mathbf{1}_S^{T}\mathbf{A}\mathbf{1}_S=0\). Also, \(\mathbf{1}_S^{T}\mathbf{A}\mathbf{1}=ds\), because each of the \(s\) vertices in \(S\) has degree \(d\). Expanding the quadratic form, \(y^{T}\mathbf{A}y=\mathbf{1}_S^{T}\mathbf{A}\mathbf{1}_S-2(s/n)\mathbf{1}_S^{T}\mathbf{A}\mathbf{1}+(s^2/n^2)\mathbf{1}^{T}\mathbf{A}\mathbf{1}=0-2ds^2/n+ds^2/n=-ds^2/n\). For the squared length, \(\mathbf{1}_S^{T}\mathbf{1}_S=s\) and \(\mathbf{1}_S^{T}\mathbf{1}=s\), so \(y^{T}y=s-2s^2/n+(s^2/n^2)n=s-s^2/n\). The least-eigenvalue inequality applied to \(y\) gives the final assertion when \(y\ne0\); if \(y=0\), both sides of that inequality are \(0\), so it holds as well. \(\square\)

The centered vector has coordinate \(1-s/n\) on \(S\) and \(-s/n\) off \(S\). Its coordinates sum to zero, which is why it is useful when separating the uniform direction from variation across vertices. The proposition provides the quadratic-form relation used in spectral bounds; further algebraic steps turn such relations into bounds on the size of \(S\).

Worked Example: An Independent Set in a Four-Cycle

Let \(G=C_4\), with \(V=\{1,2,3,4\}\) and \(E=\{12,23,34,41\}\). This graph is \(2\)-regular. Its adjacency matrix is \(\mathbf{A}=\begin{pmatrix}0&1&0&1\\1&0&1&0\\0&1&0&1\\1&0&1&0\end{pmatrix}\). Take \(S=\{1,3\}\), an independent set of size \(s=2\). With \(n=4\), its centered indicator vector is \(y=(1,0,1,0)^T-\frac12(1,1,1,1)^T=(1/2,-1/2,1/2,-1/2)^T\).

Direct multiplication gives \(\mathbf{A}y=(-1,1,-1,1)^T=-2y\). Thus \(y^{T}\mathbf{A}y=-2y^{T}y\). The squared length is \(y^{T}y=4(1/2)^2=1\), so the quadratic form is \(-2\). The eigenvalues of \(C_4\) are \(2,0,0,-2\): the all-ones vector has eigenvalue \(2\), the alternating vector \(y\) has eigenvalue \(-2\), and \((1,0,-1,0)^T\) and \((0,1,0,-1)^T\) have eigenvalue \(0\). These four independent eigenvectors confirm \(\lambda_{\min}=-2\), so equality holds in the Rayleigh inequality.

Check: the proposition gives \(-ds^2/n=-2(2^2)/4=-2\), and \(s-s^2/n=2-4/4=1\). These match the direct quadratic form and squared length. Also \(S\) is independent because neither \(13\) nor any other edge joins its two vertices; the listed edge set contains only \(12,23,34,41\).

Color Classes and a Shared Quadratic Form

A proper coloring partitions the vertices into color classes, each of which is an independent set. The same centering calculation can therefore be applied to every class. The resulting summed inequality is a useful way to organize a spectral argument about the number of colors, without needing to know the individual locations of the classes.

Proposition: Suppose \(G\) is \(d\)-regular on \(n\) vertices and has a proper coloring with \(k\) nonempty classes \(C_1,\ldots,C_k\). Put \(s_i=|C_i|\), \(Q=\sum_{i=1}^{k}s_i^2\), and \(y_i=\mathbf{1}_{C_i}-(s_i/n)\mathbf{1}\). Then \(\sum_{i=1}^{k}y_i^{T}\mathbf{A}y_i=-dQ/n\) and \(\sum_{i=1}^{k}y_i^{T}y_i=n-Q/n\). In particular, \(-dQ/n\ge\lambda_{\min}(n-Q/n)\).

Proof. Each color class is independent, so the preceding expansion applies to each \(C_i\), giving \(y_i^{T}\mathbf{A}y_i=-ds_i^2/n\) and \(y_i^{T}y_i=s_i-s_i^2/n\). Summing the first identities gives \(\sum_i y_i^{T}\mathbf{A}y_i=-(d/n)\sum_i s_i^2=-dQ/n\). Since the classes partition \(V\), \(\sum_i s_i=n\). Thus summing the squared lengths gives \(\sum_i(s_i-s_i^2/n)=n-Q/n\). For each \(i\), the Rayleigh inequality gives \(y_i^{T}\mathbf{A}y_i\ge\lambda_{\min}y_i^{T}y_i\), including the case \(y_i=0\), when both sides are zero. Adding these \(k\) inequalities proves \(-dQ/n\ge\lambda_{\min}(n-Q/n)\). \(\square\)

Worked Example: Centered Color Classes in a Triangle

Let \(G=K_3\), with \(V=\{1,2,3\}\) and \(E=\{12,13,23\}\). The graph is \(2\)-regular, and a proper coloring uses three singleton classes \(C_1=\{1\}\), \(C_2=\{2\}\), \(C_3=\{3\}\). The adjacency matrix is \(\mathbf{A}=\begin{pmatrix}0&1&1\\1&0&1\\1&1&0\end{pmatrix}\). For each \(i\), \(s_i=1\), so \(Q=1^2+1^2+1^2=3\). The all-ones vector has eigenvalue \(2\); every vector whose coordinates sum to zero has eigenvalue \(-1\), because \(\mathbf{A}=J-I\), where \(J\) is the all-ones matrix. Hence \(\lambda_{\min}=-1\).

For \(C_1\), the centered vector is \(y_1=(2/3,-1/3,-1/3)^T\). Its coordinates sum to zero, so \(\mathbf{A}y_1=-y_1\). Its squared length is \(4/9+1/9+1/9=2/3\), and its quadratic form is \(-2/3\). The same calculation holds for \(y_2\) and \(y_3\), so the sums are \(-2\) for the quadratic forms and \(2\) for squared lengths.

Check: the proposition gives \(-dQ/n=-2(3)/3=-2\) and \(n-Q/n=3-3/3=2\). Thus its inequality reads \(-2\ge(-1)(2)=-2\), with equality. The coloring classes are independent because each contains just one vertex, and the edge list confirms there are no loops.

A Common Mistake and Why the Inequality Matters

Common mistake: reversing the inequality. The least eigenvalue is the minimum Rayleigh quotient, not the maximum. For the triangle in the example, take \(x=(1,0,0)^T\). Then \(x^{T}\mathbf{A}x=0\), \(x^{T}x=1\), and \(R(x)=0\), while \(\lambda_{\min}=-1\). The correct comparison is \(0\ge-1\). Claiming instead that \(R(x)\le\lambda_{\min}\) would give \(0\le-1\), which is false.

The vector used in a spectral argument should match the graph structure being studied. An indicator vector records membership in a set; centering it changes the coordinates without losing the set information, while making the regular-graph quadratic form computable. For a coloring, doing this once per class allows the inequalities to be added. In each case, the Rayleigh quotient supplies the same rigorous constraint, and equality occurs only when the relevant nonzero vector lies in the least-eigenvalue eigenspace.

Keep the assumptions visible when using these calculations. The inequality \(x^{T}\mathbf{A}x\ge\lambda_{\min}x^{T}x\) needs only a real symmetric adjacency matrix and a real vector; it does not require regularity or connectedness. The centered-vector identities above use \(d\)-regularity. They also remain valid when a centered vector is zero, as can happen when a class is all of \(V\); the zero vector satisfies the quadratic-form inequality with equality. For a graph with no edges, \(d=0\) and \(\lambda_{\min}=0\), so the formulas still hold, though they need not provide a useful numerical constraint.

Check Your Understanding

Use the definitions and inequalities above to answer each question. For calculations, state the vector and show its squared length.

  1. For a nonzero vector \(x\), explain why \(x^{T}x>0\) is needed when defining its Rayleigh quotient.
  2. Suppose a real symmetric matrix has orthonormal eigenvectors \(u_i\) with eigenvalues \(\lambda_i\). Use an expansion \(x=\sum_i c_i u_i\) to explain when \(R(x)=\lambda_{\min}\).
  3. For a \(d\)-regular graph and an independent set of size \(s\), derive \(y^{T}y=s-s^2/n\) for \(y=\mathbf{1}_S-(s/n)\mathbf{1}\).
  4. In a proper coloring with class sizes \(s_1,\ldots,s_k\), explain why \(\sum_i s_i=n\) and how this gives \(\sum_i y_i^{T}y_i=n-Q/n\).
  5. Give a concrete nonzero vector whose Rayleigh quotient is strictly greater than the least eigenvalue of \(C_4\), and verify the comparison.