Ritz Variational Method and Excited States
The single-parameter variational method squeezes one number — the ground-state energy — out of a hand-built trial function. But almost every real calculation, from a molecule's orbitals to a solid's band structure, works differently: fix a set of basis functions once, let the wavefunction be an arbitrary linear combination of them, and let the algebra find the best mixture. That is the Ritz method, and this article derives its machinery from scratch. We show that making the Rayleigh quotient stationary over the mixing coefficients turns the variational problem into a single matrix equation — the generalized eigenvalue problem , where the overlap matrix appears precisely because a convenient basis need not be orthonormal. We then prove the result that makes the method trustworthy for excited states, not just the ground state: the MacDonald–Hylleraas interlacing theorem. Each of the eigenvalues of the Ritz problem is a rigorous upper bound to the corresponding exact level, the roots interlace the true spectrum, and enlarging the basis lowers every root monotonically toward the exact energies. One diagonalization bounds the whole low-lying spectrum at once. We close by showing how the single-state orthogonality bound is just a Ritz problem in disguise, and how a commuting symmetry block-diagonalizes the whole calculation for free. The variational theorem itself — why — is established in The Variational Principle and consumed here, not re-proved.
Write the trial state as in a fixed basis. Stationarity of in the coefficients gives the generalized eigenvalue problem (with overlap because the basis is not orthonormal). Its -th lowest root is a rigorous upper bound to the exact -th level, the roots interlace the true spectrum, and adding a basis function lowers every root. This turns "guess a function" into "diagonalize a small matrix," and it bounds excited states, not just the ground state.
Linear variation converts the search for a good wavefunction into a finite matrix diagonalization. The overlap matrix is the price of a non-orthogonal basis; the interlacing theorem is the reward — every Ritz root sits above the exact level it approximates, and the whole ladder tightens as you enlarge the basis.
Where this lives today
The Ritz method is the computational backbone of quantum chemistry and materials science. Every basis-set electronic-structure code — Hartree–Fock, configuration interaction, coupled cluster's reference, density-functional theory's Kohn–Sham problem — reduces to a generalized eigenvalue problem (the Roothaan equations), with the overlap matrix of atom-centred Gaussian basis functions. Finite-element and spectral methods for the Schrödinger equation are Ritz with localized or global basis functions. The interlacing theorem is what lets these codes report excited-state energies as bounds, and it underlies convergence studies where one systematically enlarges the basis and watches every level settle from above. The full self-consistent-field machinery and the design of Gaussian basis sets belong to the many-body track.
Origins · 1 minRayleigh Quotient and how this was discovered
The quotient at the heart of the method is Lord Rayleigh's, introduced in the Theory of Sound (§88) to bound the frequencies of vibrating systems: the ratio of a potential-to-kinetic energy integral is stationary at the true modes and bounds the lowest from above. Walther Ritz turned Rayleigh's continuous quotient into a finite matrix problem in 1908–09, discretizing over a basis so that stationarity became a secular equation — the step that made the method computable. In 1933 J. K. L. MacDonald proved the interlacing theorem that certifies each matrix root as a rigorous bound. The term secular equation for predates all of them, inherited from celestial mechanics.
The physical picture
The variational principle you already know is a promise: pick any normalizable trial state, and its energy expectation can never dip below the true ground state. Single-parameter variation exploits that with one adjustable knob — a width , an effective charge — and slides it to the lowest energy. The Ritz method changes the strategy. Instead of one flexible function, you commit to a fixed toolkit of functions and let the wavefunction be any linear combination of them. The knobs are now the mixing coefficients , and — this is the crucial point — the energy is a quadratic function of those coefficients. Quadratic minimization is linear algebra. The best mixture, and the best energy, come out of a matrix eigenvalue problem, not a nonlinear search.
Why does the overlap matrix appear? If your toolkit functions were mutually orthonormal, , the energy would be the ordinary quadratic form over a unit sphere, and you would get an ordinary eigenvalue problem. But convenient basis functions — atomic orbitals on different atoms, Gaussians of different widths, powers of — are almost never orthogonal. The overlaps bookkeep that non-orthogonality, and they turn the problem into a generalized eigenvalue problem. This is not a nuisance; it is what lets you throw physically motivated, redundant functions at a problem without first orthogonalizing them by hand.
From the Rayleigh quotient to the secular equation
The object to minimize is the Rayleigh quotient, the energy expectation of the trial state divided by its norm. Writing the trial state as a linear combination in a fixed basis, and collecting the coefficients into a column vector , the numerator and denominator both become quadratic forms in . Define the Hamiltonian matrix and the overlap matrix . Then the energy functional reads
where: and are the Hamiltonian and overlap matrices in the chosen basis, both Hermitian; is also positive-definite because it is a Gram matrix of linearly independent functions. Physically is just for the normalized version of — the variational principle guarantees it never drops below . The stationary points of this quotient — where its gradient with respect to the coefficients vanishes — are the best mixtures the basis can produce. Setting and clearing the denominator gives the central equation of the method.
The goal here is to show that the innocent act of minimizing an energy over mixing coefficients produces, with no further assumptions, a generalized matrix eigenvalue problem — and that the eigenvalue is exactly the stationary energy. We differentiate the quotient, set it to zero, and read off the equation. The overlap matrix survives on the right-hand side precisely because the basis is not orthonormal.
Step 1. Write with numerator and denominator . Both are real (the matrices are Hermitian), and for any nonzero .
Step 2. Differentiate with respect to the (independent) conjugate coefficients. The quotient rule gives
Step 3. Stationarity means this vanishes for every component. Since , the bracket must be zero:
which is the generalized eigenvalue problem. Non-trivial solutions exist only when the secular equation holds — an -th degree polynomial in with real roots.
Step 4. At a stationary point, left-multiply by : , so equals the eigenvalue. The stationary values of the Rayleigh quotient are exactly the roots of the secular equation. Why this matters. Every basis-set electronic-structure calculation ever run — Hartree–Fock, configuration interaction, tight-binding — is this equation with a particular basis. The same appears in Degenerate Perturbation Theory as the secular determinant that splits a degenerate level; here it is the master equation of an entire approximation method. Verified: the symbolic residual is identically zero for a general Hermitian (verify script, sympy).
The single equation carries the whole method. When the basis happens to be orthonormal, and it collapses to an ordinary eigenvalue problem; the general case is the honest one. The overlap grammar — the secular determinant — is the same object that Degenerate Perturbation Theory builds to diagonalize a perturbation within a degenerate subspace; there because the degenerate eigenstates are already orthonormal, so the two settings are the same algebra seen through different lenses.
Why the roots are trustworthy: interlacing
Getting a matrix equation is only useful if its eigenvalues mean something. The single-state variational principle already tells us the lowest Ritz root is an upper bound to the true ground energy. The far stronger — and less obvious — fact is that every root is an upper bound to the corresponding exact level, and that the roots interlace the true spectrum. This is the MacDonald–Hylleraas theorem, and it is what makes Ritz a method for excited states, not just a ground-state trick.
Go deeper · Derivation B · 1 minThe MacDonald-Hylleraas interlacing theorem
The goal is to prove that the -th lowest Ritz root bounds the exact -th level from above, and that enlarging the basis can only push every root downward. The engine is the Courant–Fischer min-max characterization of eigenvalues, applied to the Hamiltonian restricted to the trial subspace. This is the structural result that separates a rigorous bound from a hopeful estimate.
Step 1. The Ritz problem is exactly the Hamiltonian restricted to the finite subspace . Its roots are the eigenvalues of the compression , where projects onto .
Step 2. The Courant–Fischer theorem writes the exact -th eigenvalue as a min-max over -dimensional subspaces of the full space,
and the -th Ritz root as the same min-max but restricted to subspaces .
Step 3. Restricting the search to a smaller collection of subspaces can only raise the minimum. Therefore
the upper-bound half of the theorem: the -th Ritz root bounds the exact -th level (indexed from the ground state ).
Step 4. Now enlarge the basis, . The min-max search runs over a larger family of subspaces, so every root can only fall or hold: . Cauchy's interlacing theorem sharpens this to — the smaller problem's roots interlace the larger's. Why this matters. One diagonalization of an matrix yields certified upper bounds simultaneously. Enlarge the basis and every bound tightens monotonically — you can watch the whole low-lying spectrum converge from above. No excited-state calculation in quantum chemistry would be trustworthy without this theorem. Verified: on the infinite square well with a polynomial basis , the 3-function roots each exceed the exact levels ; adding a 4th function lowers them to (every shared root drops or holds), and the two sets interlace — verify script, scipy generalized eigensolver.
Limiting cases
| Situation | What the Ritz method gives | Reading |
|---|---|---|
| Orthonormal basis | Ordinary eigenproblem | The overlap disappears; the special case textbooks start from |
| Single basis function () | The Rayleigh quotient — ordinary one-shot variation | |
| Basis contains the exact eigenstate | That root equals the exact level exactly | The bound is saturated; the family "contained the answer" |
| Complete basis () | Every root exact level from above | Convergence governed by completeness of the set |
| Basis blind to a symmetry sector | Bounds only the states it can represent | Missing a symmetry class means missing those levels |
Worked examples
Example 1 — A two-state Ritz problem for hydrogen, and why one root is exact. Take the hydrogen atom (, atomic units, exact ground Ha) and the two-function basis . These are not orthogonal, so we need the overlap matrix. We build the Hamiltonian and overlap matrices from the radial integrals and solve the secular equation.
Step 1. Compute the matrix elements with the radial measure : and (kinetic term integrated by parts).
Step 2. Solve . The two roots come out at Ha and Ha.
Step 3. Read the result. The lower root is exactly Ha — because the basis contains , which is the true ground state, so the ground-state bound is saturated. The upper root, Ha, is a legitimate but weak upper bound to the true level at Ha: this crude two-function basis simply has nothing resembling a node, so its "excited" root is far above the real one. The bound is honest; the basis is inadequate for the excited state. The lesson: the interlacing guarantee holds regardless of basis quality — the roots are always upper bounds — but the tightness of each bound is only as good as the basis's ability to represent that state.
Example 2 — Watching interlacing tighten in the infinite square well. Take the infinite square well (, width ; exact levels , i.e. ) with the polynomial basis , which vanishes at both walls.
Step 1. With functions, the ground root is , already above the exact .
Step 2. With functions, the roots are — the ground bound has tightened to , and each root exceeds the corresponding exact level.
Step 3. Add a 4th function. The roots drop to : every one of the first three roots fell or held (the second dropped from to , toward the exact ), and the four-function roots interlace the three-function ones. This is the interlacing theorem made visible — a monotone descent toward the exact spectrum from above, one basis function at a time.
Check yourself
- Why does the overlap matrix appear, and when does it disappear?
- If the -th Ritz root is a bound to the exact -th level, what does adding a basis function do to it?
- When is a Ritz root equal to an exact level?
- How is the single-state orthogonality bound a Ritz problem?
Going further
The linear-variational method sits between single-parameter variation (The Variational Principle, which supplies the upper-bound theorem this article consumes) and the full apparatus of quantum chemistry. Its secular-determinant grammar is shared with Degenerate Perturbation Theory; its symmetry block-diagonalization draws on Symmetries and Conservation in Quantum Dynamics and Good Quantum Numbers and Symmetry-Adapted Bases; its convergence rests on Completeness Relation and Resolution of Identity. For the self-consistent-field and correlation methods built on top of it, see the many-body track. Provenance. Variational principle and Rayleigh quotient bound: Griffiths Ch. 8; Shankar Ch. 16. Secular/generalized eigenvalue equation derivation: Cohen-Tannoudji Vol. II Complement E_XI; Szabo & Ostlund for the Roothaan form. MacDonald–Hylleraas interlacing: J. K. L. MacDonald, Phys. Rev. 43, 830 (1933), and the matrix Cauchy interlacing theorem (any linear-algebra text). A verifier should confirm: (1) stationarity of the Rayleigh quotient yields ; (2) the min-max proof of ; (3) the orthogonality bound for ; and (4) symmetry block-diagonalization when . No numerical atomic energies are quoted to avoid imprecision; cited results are qualitative and theorem-level.
Is the Ritz method the same as diagonalizing the Hamiltonian?
In a finite basis, yes — that is exactly what it is. The subtlety is that a finite basis can only capture the projection of the Hamiltonian onto its span, so the eigenvalues are bounds, not exact levels. "Diagonalizing the Hamiltonian" in an infinite complete basis would be exact; Ritz is the finite, tractable version with a rigorous error direction (always from above).
Why not just orthogonalize the basis first and avoid the overlap matrix?
You can — Löwdin (symmetric) orthogonalization or Gram–Schmidt turns into the identity. But it is extra work, it mixes your physically transparent functions into less intuitive combinations, and modern eigensolvers handle the generalized problem directly. Keeping explicit is usually cleaner.
Can a Ritz root ever come out below the exact ground state?
No — that would violate the variational principle. If a computed root ever dips below the known exact ground energy, it is a numerical artifact: almost always a near-linear-dependent basis making nearly singular, so the generalized eigensolver returns garbage. The fix is to prune redundant functions or regularize .
How does the excited-state bound relate to the orthogonality method?
They are the same thing. The orthogonality bound — restrict the trial to be orthogonal to the ground state, then — is precisely the second root of a Ritz problem whose first basis function is the (exact or approximate) ground state. Ritz generalizes it to any number of states at once.
What does symmetry buy me in a Ritz calculation?
If the Hamiltonian commutes with a symmetry operator (parity, angular momentum, a point-group operation), choosing basis functions of definite -eigenvalue makes both and block-diagonal. Each block is an independent, smaller Ritz problem, and its roots bound the levels within that symmetry sector. This is how large calculations are split into manageable pieces — the same block structure Good Quantum Numbers exploits.
Why does a first-order wavefunction error give only a second-order energy error?
Because the energy is stationary at an eigenstate: near a stationary point, the leading change is quadratic in the displacement. That is the quadratic-accuracy theorem proved in The Variational Principle, and it is why even a mediocre Ritz basis can give a very good ground-state energy while the wavefunction is visibly wrong.
Does the interlacing theorem require the basis functions to be linearly independent?
Yes. Linear independence is what makes the overlap matrix positive-definite, which the min-max argument needs. Linearly dependent (or nearly dependent) functions make singular (or ill-conditioned), and the theorem's guarantees degrade along with the numerics.