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 ψ0\psi_0 minimizes the energy functional. That functional is E[ψ]=⟨ψ∣H^∣ψ⟩/⟨ψ∣ψ⟩E[\psi] = \langle\psi|\hat H|\psi\rangle/\langle\psi|\psi\rangle, 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 ψ0\psi_0. 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 E0E_0. 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.

Key takeaways
  • For any normalized trial function ϕ\phi, ⟨ϕ∣H^∣ϕ⟩≥E0\langle\phi|\hat H|\phi\rangle \ge E_0, the true ground-state energy.
  • Equality holds if and only if ϕ\phi is exactly the true ground-state eigenfunction ψ0\psi_0.
  • The proof expands ϕ\phi in the (unknown but complete) eigenbasis of H^\hat H 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 H^\hat H 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 ∂E/∂ci=0\partial E/\partial c_i = 0 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 ϕ\phi you drop into it: the energy expectation value,

E[ϕ]=⟨ϕ∣H^∣ϕ⟩⟨ϕ∣ϕ⟩.E[\phi] = \frac{\langle\phi|\hat H|\phi\rangle}{\langle\phi|\phi\rangle}.

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 E0E_0, the ground-state energy of H^\hat H. The minimizer itself — the function that achieves this floor — is ψ0\psi_0, 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 H^\hat H form a complete orthonormal basis, so any trial function, however creatively you invented it, is secretly a superposition of true eigenstates ψ0,ψ1,ψ2,…\psi_0, \psi_1, \psi_2, \dots with energies E0≤E1≤E2≤…E_0 \le E_1 \le E_2 \le \dots. The expectation value of H^\hat H 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 E0E_0, 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.

Figure
The energy landscape over trial-function space, with the true ground state as the unique global floor
Energy functional E[φ] over trial-function space trial function φ (schematic axis) E E₀ — true ground-state energy (floor) φ = ψ₀ (unique minimizer) poor trial φ₁ better trial φ₂ Any φ lands on or above the dashed line; only ψ₀ touches it.

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.

Figure
A trial wavefunction as a mixture of true eigenstates — every non-ground-state weight raises the expectation value
φ = c₀ψ₀ + c₁ψ₁ + c₂ψ₂ + … Eₙ |c₀|² , E₀ |c₁|² , E₁ |c₂|² , E₂ |c₃|² , E₃ E[φ] = Σₙ |cₙ|² Eₙ (weighted average, weights |cₙ|² ≥ 0, Σ|cₙ|²=1) E₀ level

Notice that every bar sits at or above the E0E_0 line, and the weighted average of bar heights — the reported expectation value — must therefore sit at or above E0E_0 as well, touching it only when every bar except n=0n=0 has zero height.

The core ideas

The central inequality, valid for any normalizable function ϕ\phi in the domain of a Hermitian, bounded-below Hamiltonian H^\hat H:

⟨ϕ∣H^∣ϕ⟩⟨ϕ∣ϕ⟩  ≥  E0\frac{\langle\phi|\hat H|\phi\rangle}{\langle\phi|\phi\rangle} \;\ge\; E_0

where:

  • ϕ\phi — any well-behaved trial (guessed) wavefunction, not necessarily an eigenfunction of H^\hat H;
  • H^\hat H — the true, exact Hamiltonian of the system (electronic Hamiltonian under the The Born-Oppenheimer Approximation, for a molecule);
  • ⟨ϕ∣H^∣ϕ⟩\langle\phi|\hat H|\phi\rangle — the expectation value of the Hamiltonian in the (possibly unnormalized) state ϕ\phi;
  • ⟨ϕ∣ϕ⟩\langle\phi|\phi\rangle — the normalization integral, included explicitly so ϕ\phi need not be pre-normalized;
  • E0E_0 — the true, exact ground-state eigenvalue of H^\hat H, defined by H^ψ0=E0ψ0\hat H\psi_0 = E_0\psi_0.

Reading: no matter how you construct ϕ\phi — 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:

E[ϕ]=E0⟺ϕ=ψ0E[\phi] = E_0 \quad \Longleftrightarrow \quad \phi = \psi_0

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 E0E_0, 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:

E[ϕ]−E0=∑n≠0∣cn∣2(En−E0)∑n∣cn∣2E[\phi] - E_0 = \frac{\sum_{n\neq 0} |c_n|^2 (E_n - E_0)}{\sum_n |c_n|^2}

where:

  • cn=⟨ψn∣ϕ⟩c_n = \langle\psi_n|\phi\rangle are the (unknown, but conceptually well-defined) overlaps of the trial function with the true excited eigenstates ψn\psi_n;
  • En−E0≥0E_n - E_0 \ge 0 are the true excitation energies;
  • the sum runs over all excited states n≥1n \ge 1.

Reading: the "energy error" is a strictly non-negative sum, vanishing termwise only if every cn=0c_n = 0 for n≠0n\ne0 — i.e., only if ϕ\phi has zero overlap with every excited state, which forces ϕ∝ψ0\phi \propto \psi_0.

Derivation AProof by expansion in the exact eigenbasis

Goal. Show directly that E[ϕ]≥E0E[\phi] \ge E_0 for any normalizable ϕ\phi, by writing ϕ\phi as a superposition of the (unknown) true eigenstates of H^\hat H and manipulating the resulting sum.

Step 1 — Set up the eigenvalue problem and its completeness. Because H^\hat H is Hermitian and represents a physical bound system, it possesses a complete orthonormal set of eigenfunctions {ψn}\{\psi_n\} satisfying

H^ψn=Enψn,⟨ψm∣ψn⟩=δmn,\hat H \psi_n = E_n \psi_n, \qquad \langle\psi_m|\psi_n\rangle = \delta_{mn},

with eigenvalues ordered E0≤E1≤E2≤⋯E_0 \le E_1 \le E_2 \le \cdots. Completeness means any function in the same Hilbert space — including any trial function ϕ\phi someone dreams up — can be written as a linear combination

ϕ=∑ncnψn,cn=⟨ψn∣ϕ⟩.\phi = \sum_n c_n \psi_n, \qquad c_n = \langle\psi_n|\phi\rangle.

Crucially, you do not need to know the ψn\psi_n or cnc_n explicitly for this proof; their mere existence, guaranteed by the Hermiticity of H^\hat H, is enough.

Step 2 — Normalize the trial function in this basis. Using orthonormality,

⟨ϕ∣ϕ⟩=∑m∑ncm∗cn⟨ψm∣ψn⟩=∑n∣cn∣2.\langle\phi|\phi\rangle = \sum_m \sum_n c_m^* c_n \langle\psi_m|\psi_n\rangle = \sum_n |c_n|^2.

Assume ϕ\phi is normalized so that ⟨ϕ∣ϕ⟩=1\langle\phi|\phi\rangle = 1, which gives the constraint

∑n∣cn∣2=1.\sum_n |c_n|^2 = 1.

(If ϕ\phi 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 H^\hat H in this basis. Apply H^\hat H termwise, using H^ψn=Enψn\hat H\psi_n = E_n\psi_n:

H^ϕ=∑ncnH^ψn=∑ncnEnψn.\hat H \phi = \sum_n c_n \hat H\psi_n = \sum_n c_n E_n \psi_n.

Then

⟨ϕ∣H^∣ϕ⟩=∑m∑ncm∗cnEn⟨ψm∣ψn⟩=∑n∣cn∣2En.\langle\phi|\hat H|\phi\rangle = \sum_m\sum_n c_m^* c_n E_n \langle\psi_m|\psi_n\rangle = \sum_n |c_n|^2 E_n.

The expectation value of the energy is exactly a weighted average of the true eigenvalues EnE_n, with non-negative weights ∣cn∣2|c_n|^2 that sum to one — precisely a probability distribution over the true stationary states.

Step 4 — Bound the weighted average from below. Since En≥E0E_n \ge E_0 for every nn (by definition, E0E_0 is the smallest eigenvalue), multiply this inequality by the non-negative weight ∣cn∣2|c_n|^2 and sum over all nn:

∑n∣cn∣2En  ≥  ∑n∣cn∣2E0=E0∑n∣cn∣2=E0⋅1=E0.\sum_n |c_n|^2 E_n \;\ge\; \sum_n |c_n|^2 E_0 = E_0 \sum_n |c_n|^2 = E_0 \cdot 1 = E_0.

The left-hand side is exactly ⟨ϕ∣H^∣ϕ⟩\langle\phi|\hat H|\phi\rangle from Step 3, and the right-hand side used the normalization constraint from Step 2. Therefore

⟨ϕ∣H^∣ϕ⟩≥E0,\langle\phi|\hat H|\phi\rangle \ge E_0,

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 En>E0E_n > E_0 to contribute exactly zero, i.e., ∣cn∣2(En−E0)=0|c_n|^2(E_n - E_0) = 0 for all nn. If the ground state is non-degenerate, En>E0E_n > E_0 strictly for all n≥1n \ge 1, forcing cn=0c_n = 0 for every excited state. Combined with normalization, ∣c0∣2=1|c_0|^2 = 1, so ϕ=c0ψ0\phi = c_0 \psi_0 — the trial function is the true ground state up to an overall phase factor c0c_0 with ∣c0∣=1|c_0|=1. If the ground level is gg-fold degenerate, the same argument only forces cn=0c_n=0 for nn outside the degenerate manifold, so equality holds for any ϕ\phi lying entirely within that manifold.

Go deeper · Derivation B · 2 minProof by Lagrange-multiplier stationarity
Derivation BProof by Lagrange-multiplier stationarity

Goal. Show, from a completely different starting point — treating E[ϕ]E[\phi] as a functional to be minimized subject to normalization — that its stationary points are exactly the eigenfunctions of H^\hat H, and that the smallest stationary value is E0E_0. 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 ϕ\phi that minimizes

⟨ϕ∣H^∣ϕ⟩\langle\phi|\hat H|\phi\rangle

subject to the normalization constraint

⟨ϕ∣ϕ⟩=1.\langle\phi|\phi\rangle = 1.

Introduce a Lagrange multiplier ε\varepsilon (a real number, since both the objective and the constraint are real for Hermitian H^\hat H) and form the unconstrained functional

L[ϕ]=⟨ϕ∣H^∣ϕ⟩−ε(⟨ϕ∣ϕ⟩−1).\mathcal{L}[\phi] = \langle\phi|\hat H|\phi\rangle - \varepsilon\big(\langle\phi|\phi\rangle - 1\big).

Step 2 — Take the functional derivative and set it to zero. Vary ϕ→ϕ+δϕ\phi \to \phi + \delta\phi and demand the first-order change in L\mathcal{L} vanish for arbitrary δϕ\delta\phi (treating ϕ\phi and ϕ∗\phi^* as independent variations, the standard trick in functional variation). Writing the inner products as integrals,

δL=∫δϕ∗ H^ϕ dτ+∫ϕ∗ H^ δϕ dτ−ε∫δϕ∗ϕ dτ−ε∫ϕ∗δϕ dτ.\delta\mathcal{L} = \int \delta\phi^*\,\hat H\phi\,d\tau + \int \phi^*\,\hat H\,\delta\phi\,d\tau - \varepsilon\int \delta\phi^*\phi\,d\tau - \varepsilon\int\phi^*\delta\phi\,d\tau .

Because H^\hat H is Hermitian, ∫ϕ∗H^ δϕ dτ=∫(H^ϕ)∗δϕ dτ\int \phi^*\hat H\,\delta\phi\,d\tau = \int (\hat H\phi)^*\delta\phi\,d\tau after integrating by parts (boundary terms vanish for normalizable functions), so collecting the terms proportional to δϕ∗\delta\phi^* alone (the independent-variation trick) gives the stationarity condition

H^ϕ=ε ϕ.\hat H\phi = \varepsilon\,\phi.

Step 3 — Recognize the stationarity condition as the Schrödinger equation. This is precisely the time-independent Schrödinger equation, with the Lagrange multiplier ε\varepsilon playing the role of the energy eigenvalue. In other words, the functional E[ϕ]=⟨ϕ∣H^∣ϕ⟩E[\phi] = \langle\phi|\hat H|\phi\rangle subject to normalization has stationary points exactly at the true eigenfunctions of H^\hat H, and nowhere else. This is a strong and non-obvious result on its own: unconstrained "guessing" of ϕ\phi only becomes stationary (locally flat in energy) when ϕ\phi happens to be an exact eigenstate.

Step 4 — Evaluate the stationary energy value. At a stationary point ϕ=ψn\phi = \psi_n, multiply H^ψn=εψn\hat H\psi_n = \varepsilon\psi_n by ψn∗\psi_n^* and integrate:

⟨ψn∣H^∣ψn⟩=ε⟨ψn∣ψn⟩=ε,\langle\psi_n|\hat H|\psi_n\rangle = \varepsilon\langle\psi_n|\psi_n\rangle = \varepsilon,

using normalization. So the stationary values of the energy functional are exactly the eigenvalues {En}\{E_n\} of H^\hat H, each attained at its corresponding eigenfunction.

Step 5 — Identify the global minimum among the stationary values. Among all the stationary values {E0,E1,E2,… }\{E_0, E_1, E_2,\dots\}, the smallest is E0E_0 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 ψ0\psi_0 either raises E[ϕ]E[\phi] (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 ψn>0\psi_{n>0} 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

min⁡ϕ: ⟨ϕ∣ϕ⟩=1⟨ϕ∣H^∣ϕ⟩=E0,\min_{\phi:\, \langle\phi|\phi\rangle=1} \langle\phi|\hat H|\phi\rangle = E_0,

achieved uniquely at ϕ=ψ0\phi = \psi_0 (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 ϕ(r⃗; c1,c2,… )\phi(\vec r;\, c_1, c_2,\dots) depends on adjustable parameters cic_i, the same stationarity logic — ∂E/∂ci=0\partial E/\partial c_i = 0 — 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,

H^=−ℏ22md2dx2+12mω2x2,\hat H = -\frac{\hbar^2}{2m}\frac{d^2}{dx^2} + \frac{1}{2}m\omega^2 x^2,

whose exact ground state is ψ0(x)=(mω/πℏ)1/4e−mωx2/2ℏ\psi_0(x) = (m\omega/\pi\hbar)^{1/4}e^{-m\omega x^2/2\hbar} with exact energy E0=12ℏωE_0 = \tfrac12\hbar\omega. 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

ϕ(x)=(2απ)1/4e−αx2,α=0.7 mωℏ\phi(x) = \left(\frac{2\alpha}{\pi}\right)^{1/4} e^{-\alpha x^2}, \qquad \alpha = \frac{0.7\,m\omega}{\hbar}

(a Gaussian narrower than the true ground state would require if α\alpha were mω/2ℏm\omega/2\hbar; here α\alpha is deliberately off by a factor of 1.4 from the true value mω/2ℏm\omega/2\hbar, and this trial function is already normalized: ∫−∞∞∣ϕ∣2dx=1\int_{-\infty}^{\infty}|\phi|^2 dx = 1). Using the standard Gaussian integrals ∫x2e−2αx2dx=14π/(2α)3⋅2=14απ/2α\int x^2 e^{-2\alpha x^2}dx = \tfrac14\sqrt{\pi/(2\alpha)^3}\cdot 2 = \frac{1}{4\alpha}\sqrt{\pi/2\alpha} properly normalized, the known closed form for a Gaussian trial function's energy is

E[ϕ]=ℏ2α2m+mω28α.E[\phi] = \frac{\hbar^2\alpha}{2m} + \frac{m\omega^2}{8\alpha}.

Substitute α=0.7 mω/ℏ\alpha = 0.7\,m\omega/\hbar:

E[ϕ]=ℏ22m⋅0.7 mωℏ+mω28⋅ℏ0.7 mωE[\phi] = \frac{\hbar^2}{2m}\cdot\frac{0.7\,m\omega}{\hbar} + \frac{m\omega^2}{8}\cdot\frac{\hbar}{0.7\,m\omega}
=0.7 ℏω2+ℏω5.6= \frac{0.7\,\hbar\omega}{2} + \frac{\hbar\omega}{5.6}
=0.350 ℏω+0.1786 ℏω=0.5286 ℏω.= 0.350\,\hbar\omega + 0.1786\,\hbar\omega = 0.5286\,\hbar\omega.

Compare to the exact value E0=0.5000 ℏωE_0 = 0.5000\,\hbar\omega. Indeed 0.5286 ℏω>0.5000 ℏω0.5286\,\hbar\omega > 0.5000\,\hbar\omega, exactly as the theorem demands — the deliberately mis-tuned Gaussian overshoots by 0.0286 ℏω0.0286\,\hbar\omega, about 5.7%.

Limiting-case check. Minimize E[ϕ]E[\phi] over α\alpha by setting dE/dα=ℏ2/2m−mω2/8α2=0dE/d\alpha = \hbar^2/2m - m\omega^2/8\alpha^2 = 0, giving αopt=mω/2ℏ\alpha_{\text{opt}} = m\omega/2\hbar — recovering the exact ground-state Gaussian exponent — and substituting back gives E[ϕ]min⁡=ℏω/4+ℏω/4=ℏω/2=E0E[\phi]_{\min} = \hbar\omega/4 + \hbar\omega/4 = \hbar\omega/2 = E_0 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, ℏ=me=e=4πϵ0=1\hbar=m_e=e=4\pi\epsilon_0=1),

H^=−12∇2−1r,\hat H = -\frac12\nabla^2 - \frac{1}{r},

with exact ground state ψ0=π−1/2e−r\psi_0 = \pi^{-1/2}e^{-r} and E0=−0.5 HaE_0 = -0.5\text{ Ha}. Suppose a chemist, in the spirit of Slater-type-orbital fitting, guesses an exponential trial function with the "wrong" screening parameter ζ=0.85\zeta = 0.85 (representing, say, an under-screened attempt at a many-electron atom mapped naively onto hydrogen):

ϕ(r)=(ζ3π)1/2e−ζr.\phi(r) = \left(\frac{\zeta^3}{\pi}\right)^{1/2} e^{-\zeta r}.

The general result for a normalized 1s1s-type Slater trial function on a one-electron atom with nuclear charge Z=1Z=1 is the standard closed form

E[ϕ]=ζ22−ζ.E[\phi] = \frac{\zeta^2}{2} - \zeta.

Substituting ζ=0.85\zeta = 0.85:

E[ϕ]=(0.85)22−0.85=0.72252−0.85=0.36125−0.85=−0.48875 Ha.E[\phi] = \frac{(0.85)^2}{2} - 0.85 = \frac{0.7225}{2} - 0.85 = 0.36125 - 0.85 = -0.48875\text{ Ha}.

Compare to E0=−0.5 HaE_0 = -0.5\text{ Ha}: indeed −0.48875>−0.5-0.48875 > -0.5, an overestimate of 0.011250.01125 Ha (≈0.306\approx 0.306 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 ss-states of the true hydrogen spectrum.

Limiting-case check. Minimizing E[ϕ]=ζ2/2−ζE[\phi] = \zeta^2/2 - \zeta over ζ\zeta gives dE/dζ=ζ−1=0⇒ζopt=1dE/d\zeta = \zeta - 1 = 0 \Rightarrow \zeta_{\text{opt}} = 1, recovering the exact hydrogen 1s1s orbital and E[ϕ]min⁡=1/2−1=−0.5E[\phi]_{\min} = 1/2 - 1 = -0.5 Ha =E0= E_0 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 mm in an infinite square well of width LL, 0≤x≤L0 \le x \le L, with exact ground state ψ0(x)=2/Lsin⁡(πx/L)\psi_0(x) = \sqrt{2/L}\sin(\pi x/L) and E0=π2ℏ2/(2mL2)E_0 = \pi^2\hbar^2/(2mL^2). As a classic variational exercise, use the smooth polynomial trial function (which satisfies the correct boundary conditions ϕ(0)=ϕ(L)=0\phi(0)=\phi(L)=0 but is not a sine function and is asymmetric enough to test the theorem properly by choosing unequal weighting):

ϕ(x)=x1.5(L−x),0≤x≤L,\phi(x) = x^{1.5}(L-x), \qquad 0\le x\le L,

chosen with the non-round power 1.51.5 specifically so this is not the standard textbook x(L−x)x(L-x) parabola, and so no special symmetry launders a wrong derivation.

Normalization. Compute ⟨ϕ∣ϕ⟩=∫0Lx3(L−x)2 dx\langle\phi|\phi\rangle = \int_0^L x^{3}(L-x)^2\,dx (since ϕ2=x3(L−x)2\phi^2 = x^{3}(L-x)^2). Expand (L−x)2=L2−2Lx+x2(L-x)^2 = L^2 - 2Lx + x^2:

∫0Lx3(L2−2Lx+x2) dx=L2∫0Lx3dx−2L∫0Lx4dx+∫0Lx5dx\int_0^L x^3(L^2 - 2Lx + x^2)\,dx = L^2\int_0^L x^3dx - 2L\int_0^L x^4dx + \int_0^L x^5dx
=L2⋅L44−2L⋅L55+L66=L6(14−25+16).= L^2\cdot\frac{L^4}{4} - 2L\cdot\frac{L^5}{5} + \frac{L^6}{6} = L^6\left(\frac14 - \frac25 + \frac16\right).

Compute the bracket with common denominator 60: 1560−2460+1060=160\frac{15}{60} - \frac{24}{60} + \frac{10}{60} = \frac{1}{60}. So

⟨ϕ∣ϕ⟩=L660.\langle\phi|\phi\rangle = \frac{L^6}{60}.

Kinetic energy expectation. H^ϕ=−ℏ22mϕ′′\hat H\phi = -\dfrac{\hbar^2}{2m}\phi''. First derivative: ϕ=x1.5L−x2.5\phi = x^{1.5}L - x^{2.5}, so

ϕ′=1.5 L x0.5−2.5 x1.5,ϕ′′=0.75 L x−0.5−3.75 x0.5.\phi' = 1.5\,L\,x^{0.5} - 2.5\,x^{1.5}, \qquad \phi'' = 0.75\,L\,x^{-0.5} - 3.75\,x^{0.5}.

Then

⟨ϕ∣H^∣ϕ⟩=−ℏ22m∫0Lϕ ϕ′′ dx=−ℏ22m∫0L(x1.5L−x2.5)(0.75Lx−0.5−3.75x0.5) dx.\langle\phi|\hat H|\phi\rangle = -\frac{\hbar^2}{2m}\int_0^L \phi\,\phi''\,dx = -\frac{\hbar^2}{2m}\int_0^L (x^{1.5}L - x^{2.5})(0.75Lx^{-0.5} - 3.75x^{0.5})\,dx.

Expand the integrand termwise:

x1.5L⋅0.75Lx−0.5=0.75L2x1,x1.5L⋅(−3.75x0.5)=−3.75L x2,x^{1.5}L\cdot 0.75Lx^{-0.5} = 0.75L^2 x^{1}, \qquad x^{1.5}L\cdot(-3.75x^{0.5}) = -3.75L\,x^{2},
(−x2.5)⋅0.75Lx−0.5=−0.75L x2,(−x2.5)(−3.75x0.5)=3.75 x3.(-x^{2.5})\cdot 0.75Lx^{-0.5} = -0.75L\,x^{2}, \qquad (-x^{2.5})(-3.75x^{0.5}) = 3.75\,x^{3}.

Sum: 0.75L2x−(3.75+0.75)Lx2+3.75x3=0.75L2x−4.5Lx2+3.75x30.75L^2x - (3.75+0.75)Lx^2 + 3.75x^3 = 0.75L^2x - 4.5Lx^2 + 3.75x^3. Integrate term by term from 00 to LL:

∫0L0.75L2x dx=0.75L2⋅L22=0.375L4,\int_0^L 0.75L^2x\,dx = 0.75L^2\cdot\frac{L^2}{2} = 0.375L^4,
∫0L4.5Lx2 dx=4.5L⋅L33=1.5L4,\int_0^L 4.5Lx^2\,dx = 4.5L\cdot\frac{L^3}{3} = 1.5L^4,
∫0L3.75x3 dx=3.75⋅L44=0.9375L4.\int_0^L 3.75x^3\,dx = 3.75\cdot\frac{L^4}{4} = 0.9375L^4.

So the integral of ϕϕ′′\phi\phi'' is 0.375L4−1.5L4+0.9375L4=−0.1875 L40.375L^4 - 1.5L^4 + 0.9375L^4 = -0.1875\,L^4. Therefore

⟨ϕ∣H^∣ϕ⟩=−ℏ22m×(−0.1875 L4)=0.1875 ℏ2L42m=0.09375 ℏ2L4m.\langle\phi|\hat H|\phi\rangle = -\frac{\hbar^2}{2m}\times(-0.1875\,L^4) = \frac{0.1875\,\hbar^2 L^4}{2m} = \frac{0.09375\,\hbar^2 L^4}{m}.

Rayleigh quotient.

E[ϕ]=⟨ϕ∣H^∣ϕ⟩⟨ϕ∣ϕ⟩=0.09375 ℏ2L4/mL6/60=0.09375×60 ℏ2mL2=5.625 ℏ2mL2.E[\phi] = \frac{\langle\phi|\hat H|\phi\rangle}{\langle\phi|\phi\rangle} = \frac{0.09375\,\hbar^2 L^4/m}{L^6/60} = \frac{0.09375\times 60\,\hbar^2}{mL^2} = \frac{5.625\,\hbar^2}{mL^2}.

Compare to the exact answer. E0=π2ℏ2/(2mL2)=4.9348 ℏ2/(mL2)E_0 = \pi^2\hbar^2/(2mL^2) = 4.9348\,\hbar^2/(mL^2). The trial function gives 5.625 ℏ2/(mL2)5.625\,\hbar^2/(mL^2), which is indeed larger:

E[ϕ]−E0=(5.625−4.9348)ℏ2mL2=0.690 ℏ2mL2>0,E[\phi] - E_0 = (5.625 - 4.9348)\frac{\hbar^2}{mL^2} = 0.690\,\frac{\hbar^2}{mL^2} > 0,

an overestimate of about 14%, consistent with the theorem despite the asymmetric, non-round power (x1.5x^{1.5}) chosen specifically to avoid any accidental exact cancellation. This is a looser trial function than the familiar x(L−x)x(L-x) parabola (which gives the well-known tighter bound 10ℏ2/(mL2)≈2.03 E010\hbar^2/(mL^2) \approx 2.03\,E_0... actually the parabola gives E[ϕ]=10ℏ2/mL2/≈2.03E0E[\phi]=10\hbar^2/mL^2/ \approx2.03E_0, so numerically 10ℏ2/(mL2)=10/4.9348 E0≈2.03E010 \hbar^2/(mL^2)=10/4.9348\,E_0\approx2.03E_0 — 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

SituationWhat happensWhy
ϕ=ψ0\phi = \psi_0 exactlyE[ϕ]=E0E[\phi] = E_0, equalityzero overlap with all excited states; the bound saturates
ϕ\phi orthogonal to ψ0\psi_0E[ϕ]≥E1E[\phi] \ge E_1 (a tighter excited-state bound)expansion has no c0c_0 term, so the weighted average starts from E1E_1
ϕ\phi unnormalizedtheorem still holds using ⟨ϕ∣H^∣ϕ⟩/⟨ϕ∣ϕ⟩\langle\phi|\hat H|\phi\rangle/\langle\phi|\phi\ranglethe Rayleigh quotient is scale-invariant; normalizing first or dividing after gives the same number
H^\hat H unbounded below (unphysical/pathological)no ground state exists, theorem failsthe proof needs a smallest eigenvalue E0E_0 to exist
Degenerate ground stateequality achieved by any member of the degenerate subspace, not a unique functionStep 5 of the eigenbasis proof only forces cn=0c_n=0 outside the degenerate manifold
Many-parameter trial function, optimizedE[ϕ(c⃗ ∗)]≥E0E[\phi(\vec c^{\,*})] \ge E_0, with equality only if the exact ground state lies within the parametrized familythis is the operational basis of the practical variational method
Excited-state trial functions (uncontrolled)no general lower bound to E1E_1 holds unless orthogonality to ψ0\psi_0 is separately enforcedthe 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
WR
Walther Ritz
1878–1909 · classical and early quantum spectroscopy, variational calculus in physics

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.

History
- 1870s — Rayleigh develops the Rayleigh quotient for bounding vibrational eigenfrequencies of mechanical systems.
- 1908 — Ritz formalizes the finite-basis-expansion variational method (Rayleigh–Ritz method) for differential eigenvalue problems.
- 1926 — Schrödinger's wave equation is published; the eigenvalue structure of quantum mechanics is immediately recognized as suited to Rayleigh–Ritz techniques.
- 1929–1930 — Hylleraas applies variational trial functions with explicit electron correlation terms to helium, achieving spectacular agreement with experiment and cementing the method's chemical credibility.
- 1951 — Roothaan and Hall formalize the Roothaan–Hall equations, casting Hartree-Fock theory as a Rayleigh–Ritz linear variational problem in a finite atomic-orbital basis, the direct ancestor of essentially all modern electronic structure codes.
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 ∣cn∣2|c_n|^2, 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 En≥E0E_n \ge E_0 holding for every excited state simultaneously, which lets every term in the weighted-average sum be bounded below by the same fixed number E0E_0. For an excited state EkE_k with k>0k>0, some eigenvalues (namely E0,…,Ek−1E_0,\dots,E_{k-1}) are smaller and others are larger, so a naive weighted average over all nn could land anywhere relative to EkE_k 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 kk-th computed eigenvalue bounds the true kk-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 E0E_0, this signals either a genuine bug (an incorrectly evaluated integral, a sign error in the Hamiltonian, or an incomplete/non-Hermitian implementation of H^\hat H) 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 H^\hat H 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 ⟨ϕ∣H^∣ϕ⟩/⟨ϕ∣ϕ⟩≥E0\langle\phi|\hat H|\phi\rangle/\langle\phi|\phi\rangle \ge E_0, the Rayleigh quotient, which is invariant under rescaling ϕ→cϕ\phi \to c\phi for any nonzero constant cc since both numerator and denominator scale as ∣c∣2|c|^2. 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.

Before this

Where this leads