The Variational Principle
Suppose you could never solve the Schrödinger equation exactly. Yet you needed to guess helium's ground-state energy within a fraction of an electron-volt. This is not hypothetical. For every system with more than one electron, the Schrödinger equation is not exactly solvable. Chemistry runs almost entirely on approximations. The variational principle is the theorem that makes those approximations trustworthy. It guarantees that any guessed wavefunction, plugged into the energy formula, returns a number. That number sits at or above the true ground-state energy. You can never accidentally undershoot. That one-directional guarantee turns "guessing" into a rigorous computational strategy. Minimize the energy, and you are provably closing in on the truth. This matters because essentially every practical quantum chemistry method relies on this. Hartree-Fock, configuration interaction, density functional theory's Kohn-Sham orbitals — all depend on it. So do countless textbook trial functions for helium, the hydrogen molecule ion, and the harmonic oscillator. All lean on this single inequality. Without it, lowering the energy of a trial function would tell you nothing. The number could be drifting further from the truth, or oscillating meaninglessly. With it, quantum chemistry becomes an optimization problem. Pick a flexible functional form, vary its parameters, and drive the energy down. Whatever parameters win the minimization race are, by the theorem, the best approximation available within your chosen form. The big picture is this: the true ground state minimizes the energy functional. That functional is , taken over all normalizable functions. Any other function you try is, loosely speaking, "not quite right." It pays an energy penalty proportional to how badly it approximates . That penalty appears at second order in the error. This convexity is key: the energy surface has a genuine minimum at the truth. It is not a saddle or an inflection. This is exactly what makes variational optimization converge sensibly, rather than chase spurious minima. This article builds the theorem from the ground up. First, expand a trial function in the exact (unknown) eigenbasis of the Hamiltonian. Then show algebraically why the expectation value cannot fall below . Finally, pin down exactly when equality holds. Two independent derivations are given. One proceeds by direct eigenbasis expansion. The other uses a Lagrange-multiplier stationarity argument. The theorem is important enough to deserve two viewpoints. The article closes with worked numerical examples on the harmonic oscillator and a hydrogen-like trial function. It also includes a table of edge cases. Finally, it covers the historical figures — Walther Ritz and John William Strutt (Lord Rayleigh). Their names are permanently attached to the method it enables. This foreshadows The Variational Method with Trial Functions and Linear Variation and Secular Equations.
- For any normalized trial function , , the true ground-state energy.
- Equality holds if and only if is exactly the true ground-state eigenfunction .
- The proof expands in the (unknown but complete) eigenbasis of and shows the excess energy is a sum of non-negative terms.
- The theorem converts "guess a wavefunction" into "minimize a number," making optimization the engine of quantum chemistry.
- It says nothing about excited states directly, though extensions (orthogonality constraints, the Hylleraas–Undheim / MacDonald theorem) recover analogous bounds.
- It requires only that be Hermitian and bounded below — true for all physically sensible molecular Hamiltonians.
- Key idea: any trial wavefunction's energy expectation value is a biased overestimate of the true ground-state energy, with the bias vanishing only at the exact answer.
Where this lives today
Every quantum chemistry software package in daily use — Gaussian, ORCA, Psi4, Q-Chem, NWChem — solves some form of the variational problem at its core. Hartree-Fock theory is a variational method restricted to single-Slater-determinant trial wavefunctions; the Roothaan-Hall equations that emerge from it are literally the stationarity condition of the second derivation applied to molecular-orbital expansion coefficients. Configuration interaction and multi-configurational self-consistent field methods extend the trial-function space to linear combinations of determinants, again minimizing energy subject to normalization, and the resulting energies are guaranteed upper bounds to the true (non-relativistic, Born-Oppenheimer) ground-state energy — a property routinely used to benchmark and rank the accuracy of competing methods, since a lower computed energy (for a size-consistent, variational method, at fixed basis set) is provably closer to the truth. Kohn-Sham density functional theory, though formally built on a different functional (of the electron density rather than the wavefunction), inherits an analogous variational structure through the Hohenberg-Kohn theorems, and DFT total-energy minimization software uses essentially the same numerical optimization technology (self-consistent field iteration, direct inversion in the iterative subspace) originally developed for wavefunction-based variational calculations. In drug design, variational quantum chemistry underlies the calculation of binding energies and conformational energy surfaces used in computer-aided drug discovery pipelines; in materials science, variational plane-wave DFT calculations predict formation energies, band structures, and phase stability for battery materials, catalysts, and semiconductors. In quantum computing, the Variational Quantum Eigensolver (VQE) — a leading near-term algorithm for simulating molecular electronic structure on quantum hardware — is a direct, literal descendant of this theorem: a quantum computer prepares a parameterized trial state, a classical computer measures its energy and adjusts the parameters downward, exploiting exactly the guarantee proven here that lower measured energy means closer to truth.
:::quiz[For the harmonic oscillator with trial Gaussian exponent α = 0.7 mω/ħ, the text computes E[φ] to be approximately]
- 0.500 ħω
- 0.529 ħω ✓
- 0.700 ħω
- 0.250 ħω
:::quiz[The equality E[φ] = E₀ in the variational principle holds if and only if]
- φ is any normalized function
- φ is orthogonal to all excited states but not necessarily equal to ψ₀
- φ equals the true ground-state wavefunction ψ₀ (up to phase, or membership in a degenerate ground manifold) ✓
- φ is a linear combination of exactly two eigenstates
:::quiz[For the hydrogen-atom Slater trial function with ζ = 0.85, the computed E[φ] was]
- exactly -0.5 Ha
- -0.48875 Ha, higher than the true -0.5 Ha ✓
- -0.51125 Ha, lower than the true -0.5 Ha
- 0.36125 Ha
Ask the tutor: How does the Rayleigh–Ritz linear variational method turn this inequality into a matrix eigenvalue problem with one bound per root?
The physical picture
Picture the space of all normalizable, well-behaved functions of the electronic coordinates — an infinite-dimensional space, but one you can still picture as a landscape. Over this landscape you can define a single number for every function you drop into it: the energy expectation value,
This is a functional — a number attached to an entire function, not to a point — and the variational principle says this functional has a global minimum, and that minimum value is exactly , the ground-state energy of . The minimizer itself — the function that achieves this floor — is , the true ground-state wavefunction (or, in the degenerate case, any wavefunction in the ground-state manifold). The physical intuition is that the exact eigenstates of form a complete orthonormal basis, so any trial function, however creatively you invented it, is secretly a superposition of true eigenstates with energies . The expectation value of in this superposition is a weighted average of the true energies, weighted by how much probability the trial function assigns to each eigenstate. A weighted average of numbers can never be smaller than the smallest number being averaged — it can only equal that smallest number if all the weight sits on it. This is the entire theorem in one sentence; the rest is bookkeeping. Chemically, this means a trial wavefunction that is missing some correct nodal structure, has the wrong cusp behavior near a nucleus, or simply lacks enough variational flexibility, will report an energy that is too high — and the deficiency is entirely traceable to "leakage" of probability into excited-state character. Improving the trial function — adding more basis functions, more variational parameters, more correlation — can only push the reported energy down toward , never past it. This is why optimization algorithms (steepest descent on parameters, self-consistent field iteration, configuration interaction diagonalization) are safe to run to convergence: the energy curve they trace is monotonically decreasing toward a known floor, not wandering near an unknown target.
The second picture worth holding in mind is the eigenbasis-weighting story rendered as a bar chart: a trial function is a mixture of "true" stationary states, and every unit of population sitting above the ground level costs you energy proportional to the gap.
Notice that every bar sits at or above the line, and the weighted average of bar heights — the reported expectation value — must therefore sit at or above as well, touching it only when every bar except has zero height.
The core ideas
The central inequality, valid for any normalizable function in the domain of a Hermitian, bounded-below Hamiltonian :
where:
- — any well-behaved trial (guessed) wavefunction, not necessarily an eigenfunction of ;
- — the true, exact Hamiltonian of the system (electronic Hamiltonian under the The Born-Oppenheimer Approximation, for a molecule);
- — the expectation value of the Hamiltonian in the (possibly unnormalized) state ;
- — the normalization integral, included explicitly so need not be pre-normalized;
- — the true, exact ground-state eigenvalue of , defined by .
Reading: no matter how you construct — a clever ansatz, a linear combination of atomic orbitals, a Gaussian, a wild guess — computing its Rayleigh quotient can only report a number that is too high or exactly right. It can never accidentally report a number below the truth. This is what makes energy minimization a legitimate search strategy rather than a leap of faith. A second, equally important statement pins down the equality condition:
where:
- the forward direction is the content of the main theorem (equality is achievable);
- the reverse direction says equality is achieved only by the true ground state (up to a phase and, if the ground level is degenerate, any member of that degenerate manifold).
Reading: hitting the floor exactly is diagnostic — if your trial function's expectation value ever equals , you have not merely approximated the ground state, you have found it exactly (or found a member of its degenerate subspace). A third relation quantifies how much excess energy you pay for using an imperfect trial function, connecting the theorem to a genuine error bound:
where:
- are the (unknown, but conceptually well-defined) overlaps of the trial function with the true excited eigenstates ;
- are the true excitation energies;
- the sum runs over all excited states .
Reading: the "energy error" is a strictly non-negative sum, vanishing termwise only if every for — i.e., only if has zero overlap with every excited state, which forces .
Goal. Show directly that for any normalizable , by writing as a superposition of the (unknown) true eigenstates of and manipulating the resulting sum.
Step 1 — Set up the eigenvalue problem and its completeness. Because is Hermitian and represents a physical bound system, it possesses a complete orthonormal set of eigenfunctions satisfying
with eigenvalues ordered . Completeness means any function in the same Hilbert space — including any trial function someone dreams up — can be written as a linear combination
Crucially, you do not need to know the or explicitly for this proof; their mere existence, guaranteed by the Hermiticity of , is enough.
Step 2 — Normalize the trial function in this basis. Using orthonormality,
Assume is normalized so that , which gives the constraint
(If is not pre-normalized, carry the denominator through; it only rescales every step by the same positive constant and changes nothing about the inequality's direction.)
Step 3 — Compute the expectation value of in this basis. Apply termwise, using :
Then
The expectation value of the energy is exactly a weighted average of the true eigenvalues , with non-negative weights that sum to one — precisely a probability distribution over the true stationary states.
Step 4 — Bound the weighted average from below. Since for every (by definition, is the smallest eigenvalue), multiply this inequality by the non-negative weight and sum over all :
The left-hand side is exactly from Step 3, and the right-hand side used the normalization constraint from Step 2. Therefore
which is the variational principle, established without ever needing to know the excited states explicitly.
Step 5 — Pin down the equality condition. Equality in Step 4 requires every term with to contribute exactly zero, i.e., for all . If the ground state is non-degenerate, strictly for all , forcing for every excited state. Combined with normalization, , so — the trial function is the true ground state up to an overall phase factor with . If the ground level is -fold degenerate, the same argument only forces for outside the degenerate manifold, so equality holds for any lying entirely within that manifold.
Go deeper · Derivation B · 2 minProof by Lagrange-multiplier stationarity
Goal. Show, from a completely different starting point — treating as a functional to be minimized subject to normalization — that its stationary points are exactly the eigenfunctions of , and that the smallest stationary value is . This is the route that generalizes most directly to practical variational calculations with parameterized trial functions.
Step 1 — Pose the constrained minimization. Seek the function that minimizes
subject to the normalization constraint
Introduce a Lagrange multiplier (a real number, since both the objective and the constraint are real for Hermitian ) and form the unconstrained functional
Step 2 — Take the functional derivative and set it to zero. Vary and demand the first-order change in vanish for arbitrary (treating and as independent variations, the standard trick in functional variation). Writing the inner products as integrals,
Because is Hermitian, after integrating by parts (boundary terms vanish for normalizable functions), so collecting the terms proportional to alone (the independent-variation trick) gives the stationarity condition
Step 3 — Recognize the stationarity condition as the Schrödinger equation. This is precisely the time-independent Schrödinger equation, with the Lagrange multiplier playing the role of the energy eigenvalue. In other words, the functional subject to normalization has stationary points exactly at the true eigenfunctions of , and nowhere else. This is a strong and non-obvious result on its own: unconstrained "guessing" of only becomes stationary (locally flat in energy) when happens to be an exact eigenstate.
Step 4 — Evaluate the stationary energy value. At a stationary point , multiply by and integrate:
using normalization. So the stationary values of the energy functional are exactly the eigenvalues of , each attained at its corresponding eigenfunction.
Step 5 — Identify the global minimum among the stationary values. Among all the stationary values , the smallest is by definition of the ground state. Since any trial function that is not an eigenfunction sits at a non-stationary point of the functional (Step 3), and the functional is continuous, the global minimum over the entire space of normalized functions cannot lie below the smallest stationary value found on the "ridge" of eigenfunctions — any deviation from either raises (if you are near the minimum) or corresponds to being near a higher, unstable stationary point (a saddle relative to the full function space, since exciting components in the directions costs positive energy per Step 4 of the first derivation). Combining this stationarity analysis with the direct eigenbasis-expansion proof (which independently established the global, not just local, lower bound) confirms
achieved uniquely at (up to phase, or up to any state in a degenerate ground manifold). This Lagrange-multiplier route is the one that matters most in practice: when a trial function depends on adjustable parameters , the same stationarity logic — — is exactly what the practical variational method solves, foreshadowing the machinery of Linear Variation and Secular Equations, where the parameters are linear expansion coefficients and the stationarity conditions become a matrix eigenvalue problem.
Worked examples
Example 1 — Foundational: a deliberately wrong Gaussian guess for the harmonic oscillator. Take the quantum harmonic oscillator Hamiltonian,
whose exact ground state is with exact energy . To test the variational principle honestly, choose a trial function with the wrong exponent — not the optimal one — so the check is non-trivial. Let
(a Gaussian narrower than the true ground state would require if were ; here is deliberately off by a factor of 1.4 from the true value , and this trial function is already normalized: ). Using the standard Gaussian integrals properly normalized, the known closed form for a Gaussian trial function's energy is
Substitute :
Compare to the exact value . Indeed , exactly as the theorem demands — the deliberately mis-tuned Gaussian overshoots by , about 5.7%.
Limiting-case check. Minimize over by setting , giving — recovering the exact ground-state Gaussian exponent — and substituting back gives exactly. This confirms that the family of Gaussian trial functions contains the true ground state as a special case, and only at that special value does the theorem's equality condition trigger.
Example 2 — Applied: the ground state of the hydrogen atom probed with a "wrong" trial exponent. Consider the hydrogen atom Hamiltonian (atomic units, ),
with exact ground state and . Suppose a chemist, in the spirit of Slater-type-orbital fitting, guesses an exponential trial function with the "wrong" screening parameter (representing, say, an under-screened attempt at a many-electron atom mapped naively onto hydrogen):
The general result for a normalized -type Slater trial function on a one-electron atom with nuclear charge is the standard closed form
Substituting :
Compare to : indeed , an overestimate of Ha ( eV), consistent with the theorem. The trial function with the wrong screening parameter is a poorer, higher-energy approximation, exactly as expected because it has non-zero overlap with excited -states of the true hydrogen spectrum.
Limiting-case check. Minimizing over gives , recovering the exact hydrogen orbital and Ha exactly — again confirming equality is achieved only at the true wavefunction.
Example 3 — Exam/competition level: bounding the ground state of a particle in a box using a non-eigenfunction trial function, and extracting a quantitative excess-energy estimate. Consider a particle of mass in an infinite square well of width , , with exact ground state and . As a classic variational exercise, use the smooth polynomial trial function (which satisfies the correct boundary conditions but is not a sine function and is asymmetric enough to test the theorem properly by choosing unequal weighting):
chosen with the non-round power specifically so this is not the standard textbook parabola, and so no special symmetry launders a wrong derivation.
Normalization. Compute (since ). Expand :
Compute the bracket with common denominator 60: . So
Kinetic energy expectation. . First derivative: , so
Then
Expand the integrand termwise:
Sum: . Integrate term by term from to :
So the integral of is . Therefore
Rayleigh quotient.
Compare to the exact answer. . The trial function gives , which is indeed larger:
an overestimate of about 14%, consistent with the theorem despite the asymmetric, non-round power () chosen specifically to avoid any accidental exact cancellation. This is a looser trial function than the familiar parabola (which gives the well-known tighter bound ... actually the parabola gives , so numerically — both trial functions overshoot, as required, with the polynomial power affecting how much they overshoot but never whether they do).
Limiting cases, scope & common traps
| Situation | What happens | Why |
|---|---|---|
| exactly | , equality | zero overlap with all excited states; the bound saturates |
| orthogonal to | (a tighter excited-state bound) | expansion has no term, so the weighted average starts from |
| unnormalized | theorem still holds using | the Rayleigh quotient is scale-invariant; normalizing first or dividing after gives the same number |
| unbounded below (unphysical/pathological) | no ground state exists, theorem fails | the proof needs a smallest eigenvalue to exist |
| Degenerate ground state | equality achieved by any member of the degenerate subspace, not a unique function | Step 5 of the eigenbasis proof only forces outside the degenerate manifold |
| Many-parameter trial function, optimized | , with equality only if the exact ground state lies within the parametrized family | this is the operational basis of the practical variational method |
| Excited-state trial functions (uncontrolled) | no general lower bound to holds unless orthogonality to is separately enforced | the raw variational theorem is a ground-state statement only |
The chemist behind it
The variational principle as an energy-minimization method is inseparable from two names. Lord Rayleigh (John William Strutt) developed the underlying "Rayleigh quotient" technique in the 1870s while studying the vibrational modes of mechanical and acoustic systems — the same mathematical structure (a ratio of quadratic forms bounded by the smallest eigenvalue of a differential operator) governs vibrating strings, membranes, and, decades later, the Schrödinger equation. Walther Ritz, a Swiss theoretical physicist, generalized this into what is now the Rayleigh–Ritz method: expand the unknown function in a finite basis of known functions with adjustable coefficients, and solve for the coefficients that minimize the resulting quadratic energy functional — precisely the linear-variational strategy used throughout quantum chemistry.
Origins · 1 minWalther Ritz and how this was discovered
Ritz was a Swiss physicist working at the turn of the 20th century, whose short life (he died of tuberculosis at 31) still produced two towering legacies: the Rayleigh–Ritz variational method for approximating eigenvalues of differential operators, and the Rydberg–Ritz combination principle in atomic spectroscopy, which stated that spectral line frequencies could be expressed as differences of "terms" — a purely empirical regularity that, only years later, Bohr's model and then full quantum mechanics explained as differences of quantized energy levels. Ritz's variational calculus, originally developed for classical vibration and elasticity problems with no reference to quantum theory at all, turned out to be exactly the right tool once Schrödinger's equation arrived in 1926, and it remains the computational backbone of nearly all quantum chemical methods used today.
Does the variational principle apply to any trial function, or only to "reasonable" ones?
It applies to any function that is normalizable and lies in the same function space as the true eigenstates — meaning it must be single-valued, square-integrable, and satisfy the same boundary conditions as physical wavefunctions (e.g., vanishing at infinity for bound states, vanishing at hard walls for a particle in a box). Beyond these technical requirements, the trial function can be arbitrarily "unreasonable" in form — a Gaussian, a polynomial, a sum of exponentials with wrong exponents — and the inequality still holds unconditionally, because the proof only used completeness of the true eigenbasis and non-negativity of the weights , never any assumption about how the trial function was constructed.
Why does the theorem only apply to the ground state and not directly to excited states?
The proof relies critically on holding for every excited state simultaneously, which lets every term in the weighted-average sum be bounded below by the same fixed number . For an excited state with , some eigenvalues (namely ) are smaller and others are larger, so a naive weighted average over all could land anywhere relative to depending on the unknown weights. Rigorous upper bounds to excited-state energies require additional structure — either exact orthogonality of the trial function to all lower eigenstates, or the ordering theorem used in linear variational (secular-equation) calculations, which guarantees that in a finite-basis diagonalization, the -th computed eigenvalue bounds the true -th eigenvalue from above.
Is the variational principle the same thing as the variational method?
No — the variational principle is the theorem (the inequality itself and its proof); the variational method is the practical technique built on top of it, in which a trial function is given adjustable parameters and those parameters are optimized (usually by calculus, setting derivatives of the energy to zero) to minimize the reported energy. The theorem is what makes the method meaningful: without the guarantee that lower energy means closer to truth, minimizing parameters would be an arbitrary exercise. The method itself, with explicit parameterized trial functions like linear combinations of atomic orbitals, is developed separately.
Can the variational principle give an energy below E₀ due to numerical or basis-set error?
The theorem itself is exact and admits no exceptions for a mathematically correct trial function and exact integration; if a computed energy comes out below the true , this signals either a genuine bug (an incorrectly evaluated integral, a sign error in the Hamiltonian, or an incomplete/non-Hermitian implementation of ) or the use of a non-variational method that does not obey the theorem, such as certain perturbative methods (e.g., Møller-Plesset perturbation theory) or non-variational coupled-cluster truncations, which are known to sometimes give energies below the exact value because they are not constructed as strict minimizations of a Rayleigh quotient.
Does the variational principle require knowing the excited states explicitly?
No, and this is one of its most powerful features. The eigenbasis-expansion proof invokes the existence of a complete set of excited states as a consequence of being Hermitian, but never requires you to compute, guess, or even enumerate them. This is precisely why the theorem is useful in practice: you can rigorously bound an unknown ground-state energy from above using only a trial function and the known Hamiltonian, with zero information about any excited state actually required for the calculation.
What happens if the trial function is not normalized?
Nothing changes substantively — the theorem is stated more generally as , the Rayleigh quotient, which is invariant under rescaling for any nonzero constant since both numerator and denominator scale as . In practice, chemists often normalize the trial function first for algebraic convenience (so the denominator is 1), but this is a bookkeeping choice, not a requirement of the theorem.
How does the variational principle relate to Hartree-Fock theory specifically?
Hartree-Fock theory restricts the trial wavefunction to the special form of a single Slater determinant built from orthonormal spin-orbitals, then applies the variational principle within that restricted space: it finds the spin-orbitals that minimize the energy expectation value subject to orthonormality. Because the restriction to a single determinant excludes the true many-electron wavefunction's correlation structure, the Hartree-Fock energy is a variational upper bound not just to the true ground-state energy in an absolute sense, but specifically overshoots by the "correlation energy" — the systematic gap between the best single-determinant description and the exact answer, later recovered by post-Hartree-Fock methods like configuration interaction and coupled-cluster theory.