The Quotient Depends on Direction, Not Length
A matrix sends a vector to another vector, but a quadratic expression such as \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) assigns a single number to the input. That number changes when \(\mathbf{x}\) is lengthened. Dividing by the squared length removes this change and gives a quantity associated with the direction of \(\mathbf{x}\). For a real symmetric matrix, this quantity is called the Rayleigh quotient.
Throughout, \(\mathbf{A}\in\mathbb{R}^{n\times n}\) is symmetric, so \(\mathbf{A}^{\top}=\mathbf{A}\), and \(\mathbf{x}\in\mathbb{R}^n\) is nonzero. The Euclidean norm satisfies \(\|\mathbf{x}\|^2=\mathbf{x}^{\top}\mathbf{x}>0\) for every nonzero \(\mathbf{x}\). This positivity ensures that the quotient below is defined.
The numerator is a quadratic form: it uses the vector twice, once on each side of the matrix. If \(\mathbf{A}\) is symmetric, then \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) is real, and the quotient is a real number. Symmetry also gives the quadratic form its standard connection with eigenvectors and orthogonal directions. The denominator is the squared length, not the length itself; that matching degree is what makes the quotient unchanged by rescaling.
Scale Invariance and the Unit Sphere
Proof. Since \(c\ne0\) and \(\mathbf{x}\ne\mathbf{0}\), the vector \(c\mathbf{x}\) is nonzero, so its quotient is defined. Using the rule for transposes and scalar multiplication, the numerator becomes \((c\mathbf{x})^{\top}\mathbf{A}(c\mathbf{x})=c^2\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\), and the denominator becomes \((c\mathbf{x})^{\top}(c\mathbf{x})=c^2\mathbf{x}^{\top}\mathbf{x}\). Because \(c^2\ne0\), it cancels from the ratio. Therefore \(R_{\mathbf{A}}(c\mathbf{x})=\dfrac{\mathbf{x}^{\top}\mathbf{A}\mathbf{x}}{\mathbf{x}^{\top}\mathbf{x}}=R_{\mathbf{A}}(\mathbf{x})\). \(\square\)
For each nonzero \(\mathbf{x}\), the vector \(\mathbf{u}=\mathbf{x}/\|\mathbf{x}\|\) is a unit vector pointing in the same direction, since \(\|\mathbf{u}\|=\|\mathbf{x}\|/\|\mathbf{x}\|=1\). Scale invariance says the quotient at \(\mathbf{x}\) equals its value at \(\mathbf{u}\). On the sphere, \(\mathbf{u}^{\top}\mathbf{u}=1\), so the denominator disappears:
This gives a precise geometric interpretation: the quotient at a nonzero vector is the value of the quadratic form at the unit vector in that direction. Every nonzero vector can be replaced by a unit vector without changing the quotient. In \(\mathbb{R}^2\), the unit sphere is the unit circle; in \(\mathbb{R}^3\), it is the unit sphere in ordinary space. For any dimension, it is the set of all unit-length vectors.
In real space, a direction through the origin has two unit representatives, \(\mathbf{u}\) and \(-\mathbf{u}\). They give the same quotient because \((-\mathbf{u})^{\top}\mathbf{A}(-\mathbf{u})=\mathbf{u}^{\top}\mathbf{A}\mathbf{u}\). Thus the sphere displays all possible directions, while antipodal points represent the same direction for this calculation. The quotient is not a function of vector length: it is a function of direction.
Worked Example: Rescaling a Vector
Let \(\mathbf{A}=\begin{bmatrix}2&1\\1&3\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}1\\2\end{bmatrix}\). Compute the quotient, then verify it using the scaled vector \(-3\mathbf{x}\).
First multiply the matrix by the vector:
The numerator is \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=1(4)+2(7)=18\), and the denominator is \(\mathbf{x}^{\top}\mathbf{x}=1^2+2^2=5\). Therefore \(R_{\mathbf{A}}(\mathbf{x})=18/5\). Now \(-3\mathbf{x}=\begin{bmatrix}-3\\-6\end{bmatrix}\), and
The new numerator is \((-3)(-12)+(-6)(-21)=36+126=162\), and the new denominator is \((-3)^2+(-6)^2=9+36=45\). Thus \(R_{\mathbf{A}}(-3\mathbf{x})=162/45=18/5\), agreeing with the original quotient. This checks the scale invariance directly.
Reading the Quotient on a Circle
A unit vector in \(\mathbb{R}^2\) can be written as \(\mathbf{u}=\begin{bmatrix}\cos\theta\\\sin\theta\end{bmatrix}\), since \(\cos^2\theta+\sin^2\theta=1\). Substituting such a vector into the quadratic form shows how the quotient varies as the point moves around the unit circle. This is a useful way to see that the quotient is tied to direction; it does not require a general conclusion about where the quotient is largest or smallest.
Worked Example: Values Around the Unit Circle
Take \(\mathbf{A}=\begin{bmatrix}4&0\\0&1\end{bmatrix}\). For \(\mathbf{u}=\begin{bmatrix}\cos\theta\\\sin\theta\end{bmatrix}\), calculate the quotient and evaluate it at three directions.
Because \(\mathbf{u}\) is a unit vector, its quotient is \(\mathbf{u}^{\top}\mathbf{A}\mathbf{u}\). The matrix product and scalar product are
At \(\theta=0\), the unit vector is \(\begin{bmatrix}1\\0\end{bmatrix}\). The product with \(\mathbf{A}\) is \(\begin{bmatrix}4\\0\end{bmatrix}\), so the quotient is \(4\). At \(\theta=\pi/2\), the unit vector is \(\begin{bmatrix}0\\1\end{bmatrix}\), its image is \(\begin{bmatrix}0\\1\end{bmatrix}\), and the quotient is \(1\). At \(\theta=\pi/4\), the unit vector is \(\frac{1}{\sqrt{2}}\begin{bmatrix}1\\1\end{bmatrix}\), and the image is \(\frac{1}{\sqrt{2}}\begin{bmatrix}4\\1\end{bmatrix}\). Their dot product is \((4+1)/2=5/2\).
Check: The formula \(1+3\cos^2\theta\) gives \(1+3=4\) at \(0\), \(1+0=1\) at \(\pi/2\), and \(1+3/2=5/2\) at \(\pi/4\). These match the direct computations. The calculation shows that different directions on the circle can produce different quotient values.
Coordinates Along Orthogonal Eigenvectors
The unit-sphere viewpoint becomes especially transparent when a vector is expressed using orthonormal eigenvectors. An eigenvector \(\mathbf{q}\ne\mathbf{0}\) of \(\mathbf{A}\) with eigenvalue \(\lambda\) satisfies \(\mathbf{A}\mathbf{q}=\lambda\mathbf{q}\). A list of vectors is orthonormal if every vector has norm \(1\) and distinct vectors in the list have dot product \(0\). The next result concerns a vector that is already expressed as a combination of such eigenvectors; it does not require us to assume that every vector has such an expression.
Proof. From \(\mathbf{A}\mathbf{q}_i=\lambda_i\mathbf{q}_i\), linearity gives \(\mathbf{A}\mathbf{x}=\sum_{i=1}^k c_i\lambda_i\mathbf{q}_i\). Therefore \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=\sum_{i=1}^k\sum_{j=1}^k c_i c_j\lambda_j\mathbf{q}_i^{\top}\mathbf{q}_j\). Orthonormality means \(\mathbf{q}_i^{\top}\mathbf{q}_j=0\) for \(i\ne j\) and \(\mathbf{q}_i^{\top}\mathbf{q}_i=1\), so only the terms with \(i=j\) remain. The numerator is consequently \(\sum_{i=1}^k\lambda_i c_i^2\). Applying the same orthonormality calculation to \(\mathbf{x}^{\top}\mathbf{x}\) gives \(\sum_{i=1}^k c_i^2\). Since \(\mathbf{x}\ne\mathbf{0}\), this denominator is positive, and division gives the claimed expression. \(\square\)
The coefficients appear squared, so their signs do not affect their contribution. The denominator is the sum of those squared coefficients, and each eigenvalue is weighted by its corresponding squared coefficient. In particular, if \(\mathbf{x}\) is itself an eigenvector with eigenvalue \(\lambda\), its quotient is \(\lambda\): for any nonzero eigenvector, \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=\mathbf{x}^{\top}(\lambda\mathbf{x})=\lambda\mathbf{x}^{\top}\mathbf{x}\).
Worked Example: Combining Three Orthogonal Eigenvectors
Let \(\mathbf{A}=\begin{bmatrix}5&0&0\\0&2&0\\0&0&-1\end{bmatrix}\) and \(\mathbf{x}=\begin{bmatrix}2\\-1\\2\end{bmatrix}\). Use the standard unit vectors to compute the quotient, then check it directly.
The standard unit vectors \(\mathbf{e}_1,\mathbf{e}_2,\mathbf{e}_3\) are orthonormal. Multiplying each by \(\mathbf{A}\) gives \(\mathbf{A}\mathbf{e}_1=5\mathbf{e}_1\), \(\mathbf{A}\mathbf{e}_2=2\mathbf{e}_2\), and \(\mathbf{A}\mathbf{e}_3=-\mathbf{e}_3\). Also, \(\mathbf{x}=2\mathbf{e}_1-\mathbf{e}_2+2\mathbf{e}_3\). The proposition gives
For a direct check, \(\mathbf{A}\mathbf{x}=\begin{bmatrix}10\\-2\\-2\end{bmatrix}\). Hence \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=2(10)+(-1)(-2)+2(-2)=20+2-4=18\), while \(\mathbf{x}^{\top}\mathbf{x}=4+1+4=9\). The direct quotient is \(18/9=2\), as before.
A Common Scaling Error
A frequent mistake is to scale the numerator and denominator by different powers of the scale factor. For the first worked example, the original numerator is \(18\) and the denominator is \(5\). If \(\mathbf{x}\) is replaced by \(2\mathbf{x}\), it is wrong to double the numerator and square the denominator, giving \(36/20=9/5\). Both expressions are quadratic in \(\mathbf{x}\), so both must be multiplied by \(2^2=4\).
The corrected quotient is \(72/20=18/5\), exactly the original value. The reliable check is to count the factors: scaling the vector by \(c\) puts one factor \(c\) on each side of the numerator and also gives \(c^2\) in the denominator.
It is also important not to drop the denominator for a vector that is not known to have unit length. The expression \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) equals the Rayleigh quotient only when \(\mathbf{x}^{\top}\mathbf{x}=1\). For an arbitrary nonzero vector, divide by its squared norm, or first normalize it to a unit vector.
Check Your Understanding
For each question, keep track of whether the vector is unit length before using the quadratic form alone.
- For a nonzero \(\mathbf{x}\) and a nonzero real \(c\), why do both the numerator and denominator of \(R_{\mathbf{A}}(c\mathbf{x})\) acquire the same factor?
- What unit vector represents the direction of \(\mathbf{x}=\begin{bmatrix}3\\4\end{bmatrix}\), and why does it have the same quotient as \(\mathbf{x}\)?
- For \(\mathbf{A}=\begin{bmatrix}2&0\\0&6\end{bmatrix}\), find the quotient at \(\mathbf{u}=\frac{1}{\sqrt{2}}\begin{bmatrix}1\\1\end{bmatrix}\).
- If \(\mathbf{x}=c_1\mathbf{q}_1+c_2\mathbf{q}_2\) for orthonormal eigenvectors with eigenvalues \(\lambda_1,\lambda_2\), write the weighted-eigenvalue formula for \(R_{\mathbf{A}}(\mathbf{x})\).
- Explain why the quotient at \(-\mathbf{u}\) equals the quotient at a unit vector \(\mathbf{u}\).