Maximizing a quadratic form xᵀAx over the unit sphere has an exact answer: the maximum is the largest eigenvalue of A, attained at its eigenvector, and the minimum is the smallest eigenvalue. Adding orthogonality constraints peels off the eigenvalues in order, characterizing the whole spectrum by optimization.
╌╌╌╌
A quadratic formQ(x)=x⊤Ax has no finite maximum on all of Rn: scaling x
by t scales Q by t2, so an unbounded input makes an unbounded output. The
question becomes well posed once x is confined to a bounded set, and the
natural choice is the unit sphere. This constrained problem has an exact
solution in terms of the eigenvalues, with no calculus of Lagrange multipliers
required.
The constraint that x be a unit vector has several equivalent forms:
∥x∥=1,∥x∥2=1,x⊤x=1,x12+⋯+xn2=1.
The expanded version x12+⋯+xn2=1 is the one that appears in most
applications.
The diagonal case
When Q has no cross-terms the answer can be read off directly.
The general theorem
For a general symmetric A, orthogonal diagonalization reduces the problem to
the diagonal case. Write the extreme values as
M=max{x⊤Ax:∥x∥=1},m=min{x⊤Ax:∥x∥=1}.
The set of attainable values {x⊤Ax:∥x∥=1} is a closed interval
[m,M] on the real axis, and its endpoints are eigenvalues.
Geometrically, the level sets of Q are nested conics, and on the unit circle
Q reaches its largest value where the circle is tangent to the widest level
curve it touches, in the direction of the top eigenvector.
On the unit circle, xᵀAx is largest where the circle meets the level curve tangent along u₁ and smallest along u₂; the tangency directions are the eigenvectors and the tangent values are the extreme eigenvalues.
The Rayleigh quotient
For nonzero x that is not required to be a unit vector, dividing by ∥x∥2
normalizes the form. The result is the Rayleigh quotient
R(x)=x⊤xx⊤Ax,
which is scale-invariant: R(tx)=R(x), so its values over all nonzero x
match those of x⊤Ax over the unit sphere. The extreme-values theorem then reads
λn≤R(x)≤λ1, with the bounds hit at the extreme
eigenvectors. Traversing the unit circle, R oscillates between m and M,
peaking each time the direction lines up with an eigenvector.
The Rayleigh quotient traced around the unit circle for a 2×2 form swings between the two eigenvalues, reaching M at the u₁ direction and m at the u₂ direction.
Successive constrained maxima
Restricting to directions orthogonal to u1 removes the top eigenvalue from
contention and exposes the next one.
The constraint x⊤u1=0 deletes the λ1y12 term from the
decoupled sum (it forces y1=0), leaving λ2y22+⋯+λnyn2, whose maximum on the remaining unit sphere is now λ2.
Continuing to constrain against u1,u2,… in turn peels the eigenvalues
off one at a time.
The whole spectrum is thus recoverable by a sequence of constrained
maximizations, each carried out on the subspace orthogonal to the eigenvectors
already found. This deflation viewpoint is the idea behind the
power method and its numerical
descendants.
Each orthogonality constraint removes the eigenvector already found, so the successive constrained maxima descend through the spectrum λ₁ ≥ λ₂ ≥ λ₃.
Allocating a budget
Constrained maximization of a quadratic form arises whenever a decision variable
is bounded by resource limits.
The budget curve 4x²+9y²=36 and the indifference curve xy=3 meet tangentially at the optimal schedule; there the resource limit is fully used and the utility is maximized.
The largest singular value of a matrix is this constrained maximum applied to
A⊤A, the starting point for the
singular value decomposition.