PHYS-373 · Lesson 8 of 12 · 21 min

The variational principle: helium ground state and the hydrogen molecule ion

Perturbation theory needs a nearby solvable problem and a small parameter. Many important problems have neither. The helium atom's electron repulsion is not small, and no textbook Hamiltonian is close to a molecule. For ground states there is a different method that needs nothing but a good guess. It rests on a theorem so simple that its proof takes three lines, yet it underlies nearly all of computational chemistry and much of condensed-matter physics. This lesson proves the theorem, applies it to the helium ground state and to the simplest molecule, \(\text{H}_2^+\), and shows how it explains the chemical bond.

The variational principle

Let \(H\) be a Hamiltonian with ground-state energy \(E_{\text{gs}}\). For any normalized state \(\psi\), whatever its form,

\[E_{\text{gs}} \le \langle\psi|H|\psi\rangle \equiv \langle H\rangle .\]

The proof: expand \(\psi\) in the (unknown) eigenstates of \(H\), \(\psi = \sum_n c_n\psi_n\) with \(H\psi_n = E_n\psi_n\) and \(\sum_n|c_n|^2 = 1\). Then \(\langle H\rangle = \sum_n E_n|c_n|^2\), and since every \(E_n \ge E_{\text{gs}}\), \(\langle H\rangle \ge E_{\text{gs}}\sum_n|c_n|^2 = E_{\text{gs}}\). Equality holds only if \(\psi\) is the ground state. The principle turns the search for a ground state into a minimization: choose a trial function with adjustable parameters, compute \(\langle H\rangle\) as a function of them, and minimize. The result is always an upper bound, and better trial functions give lower, more accurate bounds.

Two further facts make the method more powerful than it looks. First, the energy is much less sensitive to errors in the trial function than the function itself: if \(\psi\) differs from the true ground state by a small amount of order \(\epsilon\), \(\langle H\rangle\) differs from \(E_{\text{gs}}\) only by order \(\epsilon^2\), because the true ground state makes \(\langle H\rangle\) stationary. A mediocre wave function can give an excellent energy. Second, if the trial function is constrained to be orthogonal to the true ground state, for instance by symmetry, the same argument gives an upper bound on the first excited state. A trial function that is odd under parity, for a symmetric potential, bounds the lowest odd state.

A first test: hydrogen with the wrong shape

To see the method at work, apply it to a problem whose answer we know, using a deliberately poor trial function. For hydrogen, try a Gaussian, \(\psi = (2b/\pi)^{3/4}e^{-br^2}\), which has the wrong behavior both at the origin (no cusp) and at large distance (it falls off too quickly). A short calculation in atomic units gives \(\langle T\rangle = 3b/2\) and \(\langle V\rangle = -2\sqrt{2b/\pi}\) hartree. Minimizing over \(b\) gives \(b = 8/9\pi\) and \(E = -(8/3\pi)(13.6\ \text{eV}) = -11.5\) eV, about 85 parts in 100 of the true binding. A function with the wrong shape still captures most of the energy. Quantum chemistry codes in fact build molecular orbitals from sums of Gaussians, because their integrals are easy, and use enough of them to fix the shape.

Helium: screening as a variational parameter

For helium, start from the product of two hydrogenic ground-state orbitals with nuclear charge \(Z\), \(\psi_0 = (Z^3/\pi a^3)e^{-Z(r_1 + r_2)/a}\). This is the exact ground state without the repulsion, and with \(Z = 2\) it gives the first-order energy \(-74.8\) eV of lesson 1. But each electron partly shields the nucleus from the other, so a better trial function lets the charge in the orbitals be a parameter \(Z_{\text{eff}}\), different from the true nuclear charge \(Z = 2\) in the Hamiltonian. The expectation value of the Hamiltonian, in hartrees, is

\[\langle H\rangle(Z_{\text{eff}}) = Z_{\text{eff}}^2 - 2ZZ_{\text{eff}} + \tfrac58 Z_{\text{eff}} .\]

The first term is the kinetic energy of two electrons in orbitals of charge \(Z_{\text{eff}}\); the second is their attraction to the true nucleus of charge \(Z\); the third is the repulsion, \(\tfrac58 Z_{\text{eff}}\) hartree, the same integral as in first-order perturbation theory but now with the smaller orbitals' charge. Setting the derivative to zero gives

\[Z_{\text{eff}} = Z - \tfrac{5}{16} = \tfrac{27}{16} = 1.6875, \qquad E = -\Big(\frac{27}{16}\Big)^2 \text{hartree} = -77.5\ \text{eV} .\]

Each electron sees the nucleus screened by about 5/16 of the other electron's charge, and the energy improves from \(-74.8\) to \(-77.5\) eV, within 2 parts in 100 of the measured \(-79.0\) eV. Better trial functions do even better. Hylleraas in 1929 added the interelectron distance \(r_{12}\) as a variable, building into the wave function the tendency of the electrons to avoid each other; with just a few terms he reached \(-78.98\) eV. Modern calculations with thousands of terms give the nonrelativistic helium energy to more than twenty significant figures, and after relativistic and QED corrections agree with the measured ionization energy, the most precise test of quantum mechanics in a three-body system.

A graph of the variational energy of helium against the effective charge from 1.2 to 2.2. The curve is a parabola with its minimum at 1.6875, where the energy is minus 77.5 electronvolts. A horizontal dashed line at minus 79.0 electronvolts marks the measured value, below the whole curve. A marker at effective charge 2 shows minus 74.8 electronvolts.
Variational energy of helium as a function of the effective charge in the trial orbitals. The minimum, at \(Z_{\text{eff}} = 27/16\), lies above the measured ground-state energy, as the variational principle guarantees

The hydrogen molecule ion

The simplest molecule is \(\text{H}_2^+\): two protons sharing one electron. Treating the protons as fixed at separation \(R\), an approximation justified by their mass, which makes them move far more slowly than the electron (the Born–Oppenheimer approximation of 1927), the electron's Hamiltonian is

\[H = -\frac{\hbar^2}{2m}\nabla^2 - \frac{e^2}{4\pi\varepsilon_0}\Big(\frac{1}{r_1} + \frac{1}{r_2}\Big), \qquad \psi = A\big[\psi_0(r_1) + \psi_0(r_2)\big] ,\]

where \(r_1\) and \(r_2\) are the distances from the electron to the two protons, and the trial function is a linear combination of hydrogen ground-state orbitals centered on each proton, the LCAO approximation (linear combination of atomic orbitals). It is the natural guess: when the electron is near one proton, it should look like a hydrogen atom. The calculation needs three integrals, all expressible in closed form: the overlap \(S = \langle\psi_0(r_1)|\psi_0(r_2)\rangle = e^{-R/a}(1 + R/a + R^2/3a^2)\), the direct integral \(D = a\langle\psi_0(r_1)|1/r_2|\psi_0(r_1)\rangle\) and the exchange integral \(X = a\langle\psi_0(r_1)|1/r_1|\psi_0(r_2)\rangle\). Adding the proton–proton repulsion \(e^2/4\pi\varepsilon_0R\), the total energy in rydbergs is

\[E(R) = -1 + \frac{2a}{R} - 2\,\frac{D + X}{1 + S} .\]

For bonding to occur, \(E(R)\) must dip below \(-1\) rydberg, the energy of a hydrogen atom and a distant proton. It does. The program finds the minimum at \(R = 2.49a = 0.132\) nm with a binding energy of 1.76 eV. The exact solution of the \(\text{H}_2^+\) problem, possible numerically because the potential separates in elliptic coordinates, gives \(R = 2.00a\) and 2.79 eV. The simple trial function proves that the molecule is bound, with an upper bound on the energy and a reasonable bond length, and improving it (for instance by letting the orbital charge vary, as for helium) brings the numbers close to exact.

Variational estimates for hydrogen, helium and the hydrogen molecule ion
import math
Ry = 13.605693            # eV; atomic-unit formulas below give energies in rydbergs or hartrees as noted

def golden_min(f, a, b, tol=1e-10):
    g = (math.sqrt(5) - 1) / 2
    c, d = b - g * (b - a), a + g * (b - a)
    while b - a > tol:
        if f(c) < f(d): b, d = d, c; c = b - g * (b - a)
        else: a, c = c, d; d = a + g * (b - a)
    x = (a + b) / 2; return x, f(x)

# 1. hydrogen with a Gaussian trial function exp(-b r^2): <H> = 3b/2 - 2 sqrt(2b/pi) hartree
EH = lambda b: 1.5 * b - 2 * math.sqrt(2 * b / math.pi)
b, E = golden_min(EH, 0.01, 2.0)
print(f"hydrogen, Gaussian trial: best b = {b:.4f} / a0^2, E = {E * 2 * Ry:.3f} eV (exact -13.606 eV, ratio {E * 2:.4f})")

# 2. helium with screened hydrogenic orbitals: <H> = Zeff^2 - 2 Z Zeff + (5/8) Zeff hartree, Z = 2
Z = 2
EHe = lambda z: z * z - 2 * Z * z + 5 / 8 * z
z, E = golden_min(EHe, 1.0, 2.0)
print(f"helium, screened orbitals: Zeff = {z:.4f} (27/16 = {27 / 16:.4f}), E = {E * 2 * Ry:.2f} eV (measured -79.00 eV)")
for zz in (2.0, 1.8, 1.6875, 1.5):
    print(f"   Zeff = {zz:6.4f}: <H> = {EHe(zz) * 2 * Ry:7.2f} eV")
# ionization energy of helium: E(He+) = -Z^2/2 hartree = -54.42 eV
print(f"   predicted first ionization energy: {-54.42 - E * 2 * Ry:.2f} eV (measured 24.59 eV)")

# 3. the hydrogen molecule ion H2+ with the LCAO trial function psi_1(r1) + psi_1(r2)
def H2plus(x):
    """Energy in rydbergs (relative to separated H + p is -1) at proton separation x = R / a0."""
    S = (1 + x + x * x / 3) * math.exp(-x)
    D = (1 / x - (1 + 1 / x) * math.exp(-2 * x))        # direct integral a <psi1|1/r2|psi1>
    X = (1 + x) * math.exp(-x)                          # exchange integral a <psi1|1/r1|psi2>
    return -1 + 2 / x - 2 * (D + X) / (1 + S)
x, E = golden_min(H2plus, 1.0, 5.0)
print()
print(f"H2+ LCAO: equilibrium R = {x:.3f} a0 = {x * 0.0529177:.4f} nm, binding {-(E + 1) * Ry:.2f} eV")
print("   (exact: R = 2.00 a0 = 0.106 nm, binding 2.79 eV)")
for xx in (1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 6.0):
    print(f"   R = {xx:3.1f} a0: E + 13.6 eV = {(H2plus(xx) + 1) * Ry:+6.3f} eV")
Output
hydrogen, Gaussian trial: best b = 0.2829 / a0^2, E = -11.549 eV (exact -13.606 eV, ratio -0.8488)
helium, screened orbitals: Zeff = 1.6875 (27/16 = 1.6875), E = -77.49 eV (measured -79.00 eV)
   Zeff = 2.0000: <H> =  -74.83 eV
   Zeff = 1.8000: <H> =  -77.14 eV
   Zeff = 1.6875: <H> =  -77.49 eV
   Zeff = 1.5000: <H> =  -76.53 eV
   predicted first ionization energy: 23.07 eV (measured 24.59 eV)

H2+ LCAO: equilibrium R = 2.493 a0 = 0.1319 nm, binding 1.76 eV
   (exact: R = 2.00 a0 = 0.106 nm, binding 2.79 eV)
   R = 1.0 a0: E + 13.6 eV = +5.759 eV
   R = 1.5 a0: E + 13.6 eV = +0.136 eV
   R = 2.0 a0: E + 13.6 eV = -1.463 eV
   R = 2.5 a0: E + 13.6 eV = -1.764 eV
   R = 3.0 a0: E + 13.6 eV = -1.608 eV
   R = 4.0 a0: E + 13.6 eV = -1.003 eV
   R = 6.0 a0: E + 13.6 eV = -0.247 eV
A graph of the energy of the hydrogen molecule ion against proton separation in Bohr radii. The bonding curve from the symmetric trial function dips to a minimum of about minus 1.8 electronvolts near 2.5 Bohr radii and rises steeply at small separation. The antibonding curve from the antisymmetric combination is repulsive at all separations. Both approach zero at large separation.
Energy of \(\text{H}_2^+\) relative to a hydrogen atom and a distant proton, from the LCAO trial functions \(\psi_0(r_1) \pm \psi_0(r_2)\). The symmetric combination binds; the antisymmetric one does not

Why the bond forms

The physics of the bond is visible in the trial function. The symmetric combination \(\psi_0(r_1) + \psi_0(r_2)\) piles up electron probability in the region between the protons, where it is attracted to both at once and where its wave function curves less, lowering its kinetic energy. The antisymmetric combination \(\psi_0(r_1) - \psi_0(r_2)\), which has a node midway between the protons, removes electron density from that region; its energy lies above \(-1\) rydberg at every separation, so it is an antibonding orbital. The exchange integral \(X\), which exists only because the electron can be near either proton, is what makes the difference. This is the quantum mechanical origin of the covalent bond, first worked out for the neutral \(\text{H}_2\) molecule by Walter Heitler and Fritz London in 1927. In \(\text{H}_2\) two electrons occupy the bonding orbital with opposite spins, the singlet of lesson 4, and the bond energy is 4.5 eV. Linus Pauling built a theory of chemical bonding on these ideas in the 1930s, and Robert Mulliken's molecular-orbital theory, which uses LCAO orbitals spread over the whole molecule, earned him the 1966 Nobel Prize in Chemistry.

The variational method in practice

Real calculations take the trial function to be a linear combination of many fixed basis functions, \(\psi = \sum_i c_i\phi_i\). Minimizing \(\langle H\rangle\) over the coefficients turns into a matrix eigenvalue problem, \(\mathbf H\mathbf c = E\,\mathbf S\mathbf c\), with \(H_{ij} = \langle\phi_i|H|\phi_j\rangle\) and overlap matrix \(S_{ij} = \langle\phi_i|\phi_j\rangle\). This is the Rayleigh–Ritz method, named for Lord Rayleigh (1870s) and Walther Ritz (1908). Its lowest eigenvalue bounds the ground state, and its higher eigenvalues bound the excited states in order, a result known as the Hylleraas–Undheim–MacDonald theorem. The exact diagonalization of the quartic oscillator in lesson 6 was just this method with oscillator basis functions. For many electrons, the Hartree–Fock method uses a single Slater determinant as the trial function and optimizes its orbitals, and density functional theory, for which Walter Kohn shared the 1998 Nobel Prize in Chemistry, rests on a variational principle for the electron density. Both are run every day on supercomputers to design catalysts, drugs and battery materials.

Worked problem

A variational bound for the oscillator

For the harmonic oscillator \(H = p^2/2m + \tfrac12m\omega^2x^2\), use the trial function \(\psi = Ae^{-bx^2}\) to find an upper bound on the ground-state energy.

Show solution
  1. With normalized \(\psi\), \(\langle T\rangle = \hbar^2b/2m\) and \(\langle V\rangle = m\omega^2/8b\).
  2. \(\langle H\rangle = \hbar^2b/2m + m\omega^2/8b\); setting \(d\langle H\rangle/db = 0\) gives \(b = m\omega/2\hbar\).
  3. Then \(\langle H\rangle = \hbar\omega/4 + \hbar\omega/4 = \hbar\omega/2\).

Answer: \(\langle H\rangle_{\min} = \tfrac12\hbar\omega\), exactly the ground-state energy, because the trial family contains the true ground state. When the guess has the right form, the variational method is exact.

Common mistakes

  • MistakeReporting a variational energy below the true ground state.

    InsteadThat signals an error: the principle guarantees \(\langle H\rangle \ge E_{\text{gs}}\).

  • MistakeUsing an unnormalized trial function without dividing by \(\langle\psi|\psi\rangle\).

    InsteadCompute \(\langle\psi|H|\psi\rangle/\langle\psi|\psi\rangle\).

  • MistakeAssuming an accurate energy means an accurate wave function.

    InsteadEnergy errors are second order in wave function errors; other properties may be much less accurate.

  • MistakePutting the effective charge into the Hamiltonian as well as the trial function.

    InsteadThe Hamiltonian keeps the true \(Z = 2\); only the trial orbitals use \(Z_{\text{eff}}\).

  • MistakeForgetting the proton–proton repulsion in \(\text{H}_2^+\).

    InsteadWithout it the energy has no minimum; the \(2a/R\) term is essential.

Summary and key terms

  • For any normalized trial state, \(\langle H\rangle \ge E_{\text{gs}}\); minimizing over parameters gives the best bound in the family.
  • Energy errors are second order in wave function errors, so simple trial functions give good energies.
  • Screened orbitals give helium \(Z_{\text{eff}} = 27/16\) and \(E = -77.5\) eV, against \(-79.0\) eV measured.
  • The LCAO trial function binds \(\text{H}_2^+\) by 1.76 eV at 0.132 nm; the exact values are 2.79 eV and 0.106 nm.
  • The Rayleigh–Ritz method, Hartree–Fock and density functional theory are systematic variational methods.
Variational principle
The theorem that \(\langle H\rangle\) in any state is at least the ground-state energy.
Trial function
A parametrized guess for the ground state, optimized by minimizing \(\langle H\rangle\).
Effective nuclear charge
The screened charge \(Z_{\text{eff}}\) seen by an electron in a many-electron atom.
LCAO
Linear combination of atomic orbitals, a trial form for molecular orbitals.
Born–Oppenheimer approximation
Treating nuclei as fixed while solving for the electrons, justified by the mass ratio.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Use the helium formula to estimate the ground-state energy of \(\text{Li}^+\) (\(Z = 3\)).

    Show answer

    \(Z_{\text{eff}} = 3 - 5/16 = 2.6875\); \(E = -(2.6875)^2\) hartree \(= -196.5\) eV (measured \(-198.1\) eV).

  2. Why does the helium variational energy improve when \(Z_{\text{eff}} < 2\)?

    Show answer

    The orbitals expand, reducing the repulsion more than they lose in attraction.

  3. What does the variational principle say about the lowest odd state of a symmetric well if the trial function is odd?

    Show answer

    \(\langle H\rangle\) is an upper bound on the first excited state, which is the lowest odd state.

  4. Using the program table, roughly where does the \(\text{H}_2^+\) curve cross zero at small \(R\)?

    Show answer

    Between 1.5 and 2.0 \(a\), about \(1.5a\).

  5. Predict helium's first ionization energy from the variational result and compare with experiment.

    Show answer

    \(-54.4 + 77.5 = 23.1\) eV against 24.6 eV measured.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz