Symmetric eigensolvers and Ritz values
Preserve symmetry, project onto useful subspaces, and interpret eigenpair residuals with spectral gaps.
On this page
The question for today
What you’ll understand
- Construct a Ritz pair from an orthonormal search subspace.
- Use an eigenpair residual to bound distance to the symmetric spectrum.
- Separate eigenvalue accuracy from eigenvector sensitivity near a cluster.
Symmetry makes the eigenproblem unusually well structured: eigenvalues are real and an orthonormal eigenbasis exists. Reliable algorithms preserve that structure rather than treating it as incidental. Dense methods reduce the matrix to a smaller-bandwidth form by orthogonal transformations, while large sparse methods project onto search spaces. Ritz values link these approaches, and their residuals provide a direct way to ask what an approximate eigenpair has actually established.
Orthogonal similarity preserves the symmetric problem
For a real symmetric matrix, orthogonal similarity transforms A into QᵀAQ without changing its eigenvalues. Dense algorithms commonly reduce A to symmetric tridiagonal form using Householder transformations, then solve that structured problem using a suitable method. The original eigenvectors are recovered by applying Q to the tridiagonal eigenvectors. The key feature is preservation of both symmetry and Euclidean geometry. Computing a characteristic polynomial and finding its roots is generally a poor numerical substitute, because coefficient formation can lose the matrix problem's favorable perturbation structure.
Under a symmetric perturbation E, each ordered eigenvalue changes by at most ‖E‖₂. This absolute bound does not promise small relative error for an eigenvalue very close to zero. Eigenvectors have a different sensitivity: when eigenvalues nearly coincide, a tiny perturbation can rotate their individual eigenvectors substantially. An invariant subspace associated with a separated cluster can be better determined than its individual basis vectors. At an exact repeated eigenvalue, choosing one normalized eigenvector is not a uniquely posed output at all.
Ritz values are projected eigenvalues with a testable residual
Take an orthonormal matrix V whose columns span a search space. The projected matrix T=VᵀAV is symmetric. An eigenpair of T gives a Ritz value θ and Ritz vector u=Vy. The defining Galerkin condition makes the residual Au−θu orthogonal to every search direction. This is analogous to an orthogonality condition in least squares, but the eigenproblem is different: both a scalar θ and a vector u are unknown. A Ritz value is not automatically an exact eigenvalue of A.
For any unit vector u and real θ, expanding u in an orthonormal eigenbasis proves that the residual norm is at least the distance from θ to the spectrum. Thus a small residual guarantees some true eigenvalue nearby. It does not identify which eigenvalue without separation information and does not by itself bound the angle to one selected eigenvector. For the Rayleigh quotient θ=uᵀAu, the residual is perpendicular to u. When a simple eigenvalue is separated from the others, residual-and-gap estimates can additionally control eigenvector angle.
Subspace methods trade dimension for targeted spectral information
Lanczos is the symmetric counterpart of Arnoldi: exact symmetry reduces the projected Hessenberg matrix to tridiagonal form and allows a three-term recurrence. This can make large sparse eigenproblems economical when only a few eigenvalues are required. In finite precision, orthogonality can be lost and previously converged eigenvalues may reappear as misleading copies. Reorthogonalization, restarting, and locking converged vectors address such effects at additional cost. The short exact recurrence is not a guarantee that a finite-precision basis remains orthonormal indefinitely.
Validate an eigensolver using residual norms and orthogonality checks, not only plausible-looking eigenvalues. If eigenvalues form a tight cluster, assess the subspace residual or projector rather than requiring one particular basis orientation. Specify whether accuracy is absolute or relative and whether only a spectral interval is needed. A dense all-eigenpairs computation and a sparse few-eigenpairs computation have different storage and work profiles. The most appropriate method follows from matrix structure, desired spectral information, and the reliability of its stopping certificate.
Work it through
A one-dimensional Ritz value between true eigenvalues
For A=[[2,1],[1,2]], use the search space span(e₁). Find its Ritz pair and residual certificate, then enlarge to the full space.
With V=e₁, the projected matrix is the scalar e₁ᵀAe₁=2. Its Ritz value is θ=2 and unit Ritz vector u=e₁.
The residual is Au−2u=(0,1), with norm 1. The exact eigenvalues are 1 and 3, so the distance from θ to the spectrum is 1, attaining the bound.
Using V=I instead makes the projected matrix equal to A. Its eigenvectors (1,1)/√2 and (1,−1)/√2 give exact eigenvalues 3 and 1 and zero residuals.
The first Ritz value is not itself an eigenvalue of A. Its residual correctly certifies a nearby spectral value, and expanding the space resolves both exact eigenpairs.
The living notebook
Explore the model
Interactive lab · matrix
Watch a symmetric spectral gap close
Reset, set a=1.5 and b=0. Predict diagonal eigenvalues 1.5 and 1, equal here to singular values because both are positive. Compare a fresh run with Reset, a=1 and b=0: the gap closes and every unit direction is an eigenvector of the identity. The instrument shows this diagonal family and singular-value readouts, not a Ritz iteration; the interpretation would change for a nonzero shear.
- Area scale · det A
- 1.4
- Singular values · σmax, σmin
- 1.597, 0.876
- Condition number · κ₂(A)
- 1.823
The selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forAn easy linear solve can coexist with a nonunique individual eigenvector at a repeated eigenvalue.
Pause & reason
Check your understanding
Your turn
Try it yourself
Let A=diag(1,3) and u=(√3/2,1/2). Compute its Rayleigh quotient and eigenpair residual norm, then compare with the distance to the nearest eigenvalue.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Compute θ from squared coordinate weights, then multiply each coordinate by its eigenvalue minus θ.
Compare with the solution
The quotient is θ=3/4+3/4=3/2. The residual is (−√3/4,3/4), with norm √(3/16+9/16)=√3/2. The nearest eigenvalue is 1, at distance 1/2, which is indeed at most √3/2. The residual is perpendicular to u. This certificate locates a spectral value but does not turn u into an exact eigenvector or determine all eigenvalues from one quotient.
Keep the idea
Take it with you
- Symmetric algorithms preserve orthogonal geometry and real spectral structure.
- A Ritz residual bounds distance to the spectrum, not an arbitrary eigenvector angle.
- Clusters call for subspace reasoning and gap-aware accuracy checks.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.