The Variational Principle

The variational principle is basically quantum gambling — guess a trial wavefunction, and your calculated energy is always ≥ the true ground state energy.

Perturbation theory, which we met in Chapter 6, was our first systematic way to approximate a problem that could not be solved exactly. Chapter 7 introduces another approximation method, and Chapters 8 and 9 will continue the theme.

Why so many approximations? Because exact, closed-form wavefunctions are rare. Once we move beyond simple systems such as hydrogen, we usually need a controlled way to get useful answers without pretending that the full Schrödinger equation has become easy.

The method in this chapter is the variational principle. I like to think of it as informed quantum gambling: propose a plausible trial wavefunction, calculate its energy, and improve the guess. The crucial difference from ordinary gambling is that the result comes with a guarantee—the calculated energy cannot lie below the exact ground-state energy.

The variational principle

Let $H$ be a self-adjoint Hamiltonian bounded below, and let $Q(H)$ denote its quadratic-form domain. For any normalized admissible trial state $\lvert\psi_{\mathrm{trial}}\rangle\in Q(H)$,

$$ E_{\mathrm{trial}} =q_H[\psi_{\mathrm{trial}}] \ge E_0, $$

where $E_0$ is the exact ground-state energy. If the trial state also lies in the operator domain $D(H)$, then $q_H[\psi]=\langle\psi\rvert H\lvert\psi\rangle$. The form-domain statement is the more general one and will matter for the compact-support example below.

Variational bound: the trial-state expectation value of the Hamiltonian is no smaller than the ground-state energy

In plain language: I may not know the true ground-state wavefunction, but any admissible normalized guess gives an upper bound on its energy. A poor guess gives a loose upper bound; a better guess brings the estimate down toward $E_0$.

We therefore choose a family of trial functions,

Trial wavefunction used to estimate the ground-state energy

vary its free parameters, and minimize the expectation value. That minimum still satisfies $E_{\mathrm{trial,min}}\ge E_0$. This one-sided guarantee is the variational principle.

More concretely, suppose I do not know the exact state but propose

Symbol for the proposed trial wavefunction

and calculate

Trial expectation value of the Hamiltonian

Then the result is bounded below by

Symbol for the exact ground-state energy

Why must the estimate be higher? Let us prove it.

Proof

Call the normalized guess

Trial state introduced for the variational-principle proof

Because the Hamiltonian’s energy eigenstates form a complete basis, the trial state can be expanded in that basis:

Trial state to be expanded in the energy eigenbasis

Expansion of the trial state as a sum of energy eigenstates with coefficients c sub n

The normalization condition gives $\sum_n|c_n|^2=1$. Now evaluate the Hamiltonian in the trial state:

Trial wavefunction appearing in the Hamiltonian expectation value

Double-sum expression for the trial-state Hamiltonian expectation value

Using $H\lvert\psi_n\rangle=E_n\lvert\psi_n\rangle$ and orthonormality, all cross terms vanish:

Reduction of the Hamiltonian expectation value to the weighted energy sum over eigenstates

Thus

$$ E_{\mathrm{trial}}=\sum_n |c_n|^2E_n \ge E_0\sum_n|c_n|^2=E_0. $$

Final weighted-sum proof that the trial energy is at least the ground-state energy

That completes the proof.

Application: the helium ground state

Now let us use the principle on helium, the first atom for which electron–electron repulsion prevents an exact elementary solution.

Sketch of a helium nucleus with charge plus 2e and two electrons at position vectors r1 and r2

The physical nonrelativistic Hamiltonian is

$$ H=-\frac{\hbar^2}{2m}\left(\nabla_1^2+\nabla_2^2\right) -\frac{e^2}{4\pi\varepsilon_0}\left(\frac{2}{r_1}+\frac{2}{r_2}\right) +\frac{e^2}{4\pi\varepsilon_0r_{12}}, \qquad r_{12}=|\mathbf r_1-\mathbf r_2|. $$

Source Hamiltonian image for helium, with the electron-electron term highlighted in red

Source correction. The retained source image above places $1/r_{12}$ inside the same overall negative bracket as the nuclear-attraction terms, which would make the electron–electron interaction attractive. It also appears to repeat $\nabla_1^2$ where the second term should be $\nabla_2^2$. The native equation written immediately above is the corrected helium Hamiltonian; the archived image is preserved rather than silently altered.

If we ignore electron–electron repulsion, each electron occupies a hydrogenic $1s$ orbital with nuclear charge $+2e$, giving

Independent-electron helium estimate E ground state equals about minus 109 electronvolts

The measured ground-state energy is approximately

Experimental helium ground-state energy of about minus 78.97 electronvolts

The independent-electron value is far too negative because it neglects the electrons’ mutual repulsion.

A screened-charge trial state

To use the variational method, we first need

Trial-state symbol for the helium variational calculation

A natural first guess is a product of two hydrogenic $1s$ orbitals,

Helium trial-state symbol before specifying its functional form

initially with nuclear charge $Z=2$:

Product of two hydrogenic 1s orbitals for helium with charge parameter 2

But each electron partially screens the nucleus from the other electron.

Screening sketch showing one helium electron farther from the nucleus than the other

The outer electron therefore feels a weaker attraction than the unscreened term

Unscreened nuclear potential energy minus 2e squared divided by 4 pi epsilon zero r2

would suggest. We account for screening by replacing the fixed charge 2 in the orbital with a variational parameter $Z$:

Hydrogenic two-electron trial function written before introducing the variable effective charge

$$ \psi_{\mathrm{trial}}(\mathbf r_1,\mathbf r_2) =\frac{Z^3}{\pi a^3}\exp\!\left[-\frac{Z(r_1+r_2)}{a}\right], $$

where $a$ is the Bohr radius.

Helium trial wavefunction with variational effective charge Z

The variational theorem says

Variational inequality applied to the helium trial wavefunction

so we minimize

Trial Hamiltonian expectation value to be minimized over effective charge Z

with respect to $Z$.

For the calculation, split the correct Hamiltonian into a hydrogenic part with charge $Z$ plus a correction. The retained source first writes

Source image of the helium Hamiltonian rewritten with the charge parameter Z

and then rearranges it as

Color-coded decomposition of the helium Hamiltonian into a charge-Z reference part and correction

Source correction. As in the earlier Hamiltonian image, the standalone source image at eq_107.jpg shows the wrong sign for electron–electron repulsion and repeats the first Laplacian. The color-coded eq_111.jpg decomposition does contain the intended positive $1/r_{12}$ correction, but its red reference Hamiltonian also repeats $\nabla_1^2$ where the second kinetic term should be $\nabla_2^2$. The calculation below uses the physical Hamiltonian written in native math above.

Let $E_1=-13.6\,\mathrm{eV}$ denote the hydrogen ground-state energy.

Definition of E1 for the hydrogenic reference energy

The two charge-$Z$ one-electron pieces contribute $2Z^2E_1$:

Single charge-Z hydrogenic contribution Z squared E1

The remaining expectation values give

Expectation value of the decomposed helium Hamiltonian in terms of hydrogenic and repulsion contributions

For a hydrogenic $1s$ orbital,

Expectation value of one over r equals Z over the Bohr radius

and the electron–electron repulsion integral is

Electron-electron expectation value expressed as minus five Z over four times E1

where the expression is positive because $E_1\lt0$. Combining the terms,

Helium trial energy simplified to the quadratic expression in effective charge Z

or

$$ E_{\mathrm{trial}}(Z)=\left(-2Z^2+\frac{27}{4}Z\right)E_1. $$

Setting $dE_{\mathrm{trial}}/dZ=0$ gives $Z=27/16=1.6875$ and

$$ E_{\mathrm{trial,min}}=\frac{729}{128}E_1 =-\frac{729}{128}(13.6\,\mathrm{eV})\approx-77.5\,\mathrm{eV}. $$

Minimization of the helium trial energy at effective charge 27 over 16, giving about minus 77.5 electronvolts

This is within about 2% of the measured value and, as required, lies above it. The source image evaluates the final expression with a rounded label $Z=1.67$; the stationary value is exactly $27/16=1.6875$.

Example 1: harmonic oscillator with a Gaussian trial state

The one-dimensional harmonic-oscillator potential is parabolic:

Parabolic harmonic-oscillator potential V of x

That shape suggests a Gaussian trial function,

Harmonic-oscillator potential with a Gaussian trial wavefunction drawn in red

Trial-state symbol for the Gaussian harmonic-oscillator example

Take

$$ \psi_{\mathrm{trial}}(x)=A e^{-bx^2},\qquad b>0. $$

Gaussian trial wavefunction before normalization

Normalization requires $\langle\psi_{\mathrm{trial}}|\psi_{\mathrm{trial}}\rangle=1$.

Substitution used to normalize the Gaussian trial wavefunction

Normalization integral giving A equals the fourth root of 2b over pi

Source correction. In eq_148-en.png, the substitution $t=2bx^2$ is applied to the full interval $-\infty\lt x\lt\infty$ without separating the two branches of $x=\pm\sqrt{t/(2b)}$. The retained eq_149.jpg then writes a $t^{-1/2}e^{-t}$ integral over negative $t$, although $t\ge0$. The final constant is correct, but those intermediate limits are not. The valid symmetry-reduced derivation is shown below.

$$ 1=2A^2\int_0^\infty e^{-2bx^2}\,dx =\frac{A^2}{\sqrt{2b}}\int_0^\infty t^{-1/2}e^{-t}\,dt =A^2\sqrt{\frac{\pi}{2b}}. $$

Thus $A=(2b/\pi)^{1/4}$.

With

$$ H=-\frac{\hbar^2}{2m}\frac{d^2}{dx^2}+\frac12m\omega^2x^2, $$

we calculate the kinetic and potential contributions separately.

Harmonic-oscillator Hamiltonian and plan to evaluate kinetic and potential expectations

Derivation of the Gaussian trial state’s kinetic-energy expectation value

Gaussian integral and differentiated identity used in the expectation values

The kinetic term reduces to

Final algebra yielding kinetic expectation hbar squared b over 2m

$$ \langle T\rangle=\frac{\hbar^2b}{2m}. $$

The potential term is

Potential-energy expectation calculation yielding m omega squared over 8b

$$ \langle V\rangle=\frac{m\omega^2}{8b}. $$

Therefore

Total Gaussian trial energy as hbar squared b over 2m plus m omega squared over 8b

and minimization gives

Derivative with respect to b and minimum at b equals m omega over 2 hbar

$$ b_{\min}=\frac{m\omega}{2\hbar}, \qquad E_{\mathrm{trial,min}}=\frac12\hbar\omega. $$

At the minimizing value, $\langle T\rangle=\langle V\rangle=\hbar\omega/4$.

Source correction. The original prose says the energy becomes a maximum when $\langle T\rangle=\langle V\rangle$; it is the minimum of this variational family. The retained eq_156-en.png also states $\langle V\rangle=\langle T\rangle$ before optimization, but the equality holds only at $b=m\omega/(2\hbar)$.

Why did the estimate reproduce the exact answer? We happened to choose the exact functional form:

Gaussian trial-wavefunction symbol used in the harmonic-oscillator example

matches the true ground-state eigenfunction

Exact harmonic-oscillator eigenfunction symbol psi sub n

when $b=m\omega/(2\hbar)$. A poorly chosen family—for example, something much too sharply localized—would yield a higher variational energy.

Alternative trial-wavefunction symbol illustrating a less suitable functional family

Problem 7.11: a compact-support cosine trial state

Use

Piecewise cosine trial wavefunction supported between minus a over 2 and plus a over 2

for the one-dimensional harmonic oscillator and optimize $a$. In native form,

$$ \psi_{\mathrm{trial}}(x)= \begin{cases} A\cos(\pi x/a),& |x|\lt a/2,\\ 0,&\text{otherwise}. \end{cases} $$

First normalize the state.

Trial-state symbol for normalization in Problem 7.11

Normalization integral for the compact-support cosine trial state

Change of variable t equals pi x over a for the normalization integral

Source correction. The endpoint lines in eq_179.jpg are dimensionally and algebraically inconsistent. For $t=\pi x/a$, the actual limits are $x=-a/2\mapsto t=-\pi/2$ and $x=+a/2\mapsto t=+\pi/2$. The corrected normalization is

$$ 1=A^2\frac{a}{\pi}\int_{-\pi/2}^{\pi/2}\cos^2t\,dt =A^2\frac{a}{2}. $$

This gives the correctly normalized result shown next.

Normalized piecewise cosine trial function with A equals square root of 2 over a

Thus $A=\sqrt{2/a}$.

Normalized trial-state symbol used to evaluate the oscillator Hamiltonian

The kinetic contribution is

Handwritten derivation of kinetic energy pi squared hbar squared over 2ma squared

$$ \langle T\rangle =\frac{\hbar^2}{2m}\int_{-\infty}^{\infty}|\psi'_{\mathrm{trial}}(x)|^2\,dx =\frac{\pi^2\hbar^2}{2ma^2}. $$

This continuous piecewise cosine belongs to the oscillator’s quadratic-form domain because its weak first derivative is square-integrable. Its first derivative jumps at $x=\pm a/2$, however, so it is generally not in the $H^2$ operator domain of the differential Hamiltonian. The retained img_185.jpg differentiates only on the interior of the support and omits that boundary qualification; the authoritative kinetic value above is the quadratic-form evaluation, not an unqualified application of the pointwise second derivative across the endpoints.

The original post switched to a handwritten photo here—the equation editor was making the calculation more painful than the physics. Fair enough; the derivation is preserved above.

For the potential contribution,

Potential-energy expectation integral for the compact-support cosine state

Substitution t equals pi x over a for the potential-energy integral

Potential integral rewritten as an integral of t squared cosine squared t

Euler-form expansion of cosine squared t

Potential integral after replacing cosine squared t by complex exponentials

The integration-by-parts identity used is

General integration-by-parts recurrence for the integral of u to the n times e to the au

and the detailed evaluation is shown here:

Handwritten evaluation of the complex-exponential integral in the cosine trial-state problem

Three component integrals used to evaluate the cosine-squared potential term

Combining them gives

Potential expectation simplified to m omega squared a squared over 4 pi squared times pi squared over 6 minus 1

and therefore

Total trial energy for the compact-support cosine function

$$ E_{\mathrm{trial}}(a)=\frac{\pi^2\hbar^2}{2ma^2} +\frac{m\omega^2a^2}{4\pi^2}\left(\frac{\pi^2}{6}-1\right). $$

Setting $dE_{\mathrm{trial}}/da=0$ yields

Differentiation of the cosine trial energy and optimized width a

and substitution gives

Minimum cosine-trial energy equal to one half hbar omega times the square root of pi squared over 3 minus 2

Numerical factor square root of pi squared over 3 minus 2

That is,

$$ E_{\mathrm{trial,min}}=\frac12\hbar\omega \sqrt{\frac{\pi^2}{3}-2} \approx0.5679\hbar\omega. $$

The exact value is $E_0=0.5\hbar\omega$, so the trial result is higher by $0.0679\hbar\omega$, or about 13.6% relative to the exact energy. The source prose’s “difference of about 0.1357” refers to the excess of the dimensionless square-root factor above 1, not the energy difference itself.

The lesson is exactly what the variational principle promises: the bound is reliable, but its accuracy depends on the trial family.

Problem 7.13: a Gaussian trial state for hydrogen

Now approximate the hydrogen ground state with the Gaussian

Gaussian hydrogen trial wavefunction A times e to the minus b r squared

Source notation note. The retained eq_217.jpg labels the radial Gaussian as $\psi(x)$ even though its exponent uses $r^2$. The radial coordinate is $r$, so the authoritative notation below is $\psi_{\mathrm{trial}}(r)$.

$$ \psi_{\mathrm{trial}}(r)=Ae^{-br^2},\qquad b>0. $$

The task is to minimize the upper bound on the ground-state energy. The source problem calls this a “maximum lower bound,” but the variational theorem supplies an upper bound, and minimizing it produces the tightest value within this family.

Normalization begins with

Three-dimensional normalization integral for the Gaussian hydrogen trial state

Gaussian radial integral obtained by differentiating the standard Gaussian integral

Normalization constant and normalized Gaussian hydrogen trial wavefunction

so $A=(8b^3/\pi^3)^{1/4}$.

The hydrogen Hamiltonian is

Hydrogen Hamiltonian with kinetic energy and Coulomb attraction

and the kinetic expectation starts as

Kinetic-energy expectation value for the normalized Gaussian hydrogen trial state

For a spherically symmetric function, only the radial part of the Laplacian contributes:

Spherical-coordinate Laplacian with radial angular and azimuthal terms

Radial Laplacian acting on e to the minus b r squared

Substitution into the expectation value gives

First stages of the radial kinetic-energy integration for the Gaussian hydrogen state

Kinetic integral reduced to Gaussian moments of r squared and r to the fourth

Gaussian fourth-moment identity derived from the second-moment integral

and hence

Completed kinetic-energy calculation yielding three hbar squared b over 2m

$$ \langle T\rangle=\frac{3\hbar^2b}{2m}. $$

For the Coulomb potential,

Coulomb potential-energy expectation integral for the Gaussian hydrogen state

Substitution t equals minus 2b r squared for the Coulomb radial integral

Completed Coulomb integral for the Gaussian hydrogen trial state

so

Total Gaussian hydrogen trial energy as a function of b

$$ E_{\mathrm{trial}}(b)=\frac{3\hbar^2b}{2m} -\frac{e^2\sqrt2}{2\pi\varepsilon_0}\sqrt{\frac{b}{\pi}}. $$

Minimizing with respect to $b$ gives

Derivative with respect to b and minimum Gaussian hydrogen energy of eight over three pi times E1

$$ E_{\mathrm{trial,min}}=\frac{8}{3\pi}E_1\approx-11.5\,\mathrm{eV}, $$

where

Exact hydrogen ground-state energy E1 equals minus 13.6 electronvolts

Because $-11.5\,\mathrm{eV}>-13.6\,\mathrm{eV}$, the result obeys the variational bound. Its error is about $2.056\,\mathrm{eV}$, or 15.117% relative to the magnitude of the exact ground-state energy. A Gaussian falls off as $e^{-br^2}$ rather than the exact hydrogenic $e^{-r/a}$, so some error is unavoidable within this one-parameter family.

That is the central habit of variational work: choose a physically sensible family, normalize it, calculate $\langle H\rangle$, and minimize. The theorem guarantees the direction of the error; the quality of the guess determines its size.

Comments

Discussion happens via GitHub Discussions. You'll need a GitHub account to comment.