The Variational Principle

The variational principle is basically quantum gambling: guess a trial wave function, and the energy you calculate can never fall below the true ground-state energy. The proof, helium with an effective charge of 27/16, and Griffiths Problems 7.11 and 7.13.

The perturrrrbation thee-ree we learned in chapter 6….. what was it again? Yeah. It let us approximate something screwy and find a value that isn’t exact, but is clo~se enough!!!

Likewise, chapter 7 is also about computing approximations. Because depending on the case, you have to pick the right approximation theory to analyze an experiment, apparently that’s why we learn a who~le string of approximation theories like this.

(Spoiler: ch.8 and ch.9 are also chapters about finding approximations….)

Why do we even have to use approximation theory….?

Because these equations get brutally hard! Helium and more complicated atoms still have wave functions; what we usually lose is a neat, exact analytical solution. So we’ll learn the approximation methods that follow and wrap up quantum mechanics.

Then, let’s dive in. The variational principle is just gambling, gambling, the kind of gamble where if your wild guess hits, great, and if it doesn’t, you toss it and that’s that. So it’s damn simple. It’s easy to understand, and the accuracy depends on how good our trial family is. A better guess can make it very accurate.

Let’s get into the specifics. The variational principle is about getting at the energy of the ground state. We use a normalized trial function with a finite energy expectation. First, writing the variational principle as an equation,

The variational principle: ⟨ψ_trial|H|ψ_trial⟩ ≥ E_ground state

that’s what it is!! Putting it into words: “Ahhh~~ I really don’t know a thing, but by my assumption, the ground-state energy… the true ground-state energy $E_{gs}$ that only God knows is smaller than that thing we calculated!!!!” “That is, the left side we calculated from our assumption is always!!!! greater than or equal to the true value, okok?” That’s what it says.

With your own assumption, ψ_trial, you find the lowest energy expectation within your trial family, and that upper bound is never smaller than the true ground-state energy!!!! This is the ‘variational principle’.

A bit more concretely? “Hey hey hey hey hey, I don’t really know the wave function in some system?? But I think it looks something like this-and-that. I’ll call that this-and-that-looking thing ψ_trial, and if I compute the expectation value of the energy, ⟨H⟩_trial, it’s bigger than the Re-al E_gs!!!!”

Huh? Then why is it bigger?? Couldn’t it be smaller?

My answer goes like this: it wasn’t computed with the exact wave function, so the real one is smaller. Ah shit, but we used a wave function that isn’t exact, so couldn’t a smaller value come out just as well?? We need to prove it.

Let’s take a look. If we call some wave function we picked by guesswork ψ_trial, then that ψ_trial can be expanded in a complete discrete energy eigenbasis (even though nobody knows it) as ψ_trial = ΣCₙψₙ. If the spectrum also has a continuum, that part needs an integral; the same lower-bound argument still works.

Computing the expectation value of the Hamiltonian with such a ψ_trial gives,

⟨ψ_trial|H|ψ_trial⟩ = ΣₘΣₙ Cₘ*Cₙ⟨ψₘ|H|ψₙ⟩

How should I put this…. Let me run just the sum over m first….

Running the m-sum, then the n-sum: since the ψᵢ are orthogonal, only same-index terms survive, leaving |C₁|²E₁ + |C₂|²E₂ + ⋯ = Σ|Cₙ|²Eₙ

Σ|Cₙ|²Eₙ is a weighted average of E_gs and the higher Eₙ, so ⟨ψ_trial|H|ψ_trial⟩ ≥ E_gs

Proof of the variational principle: done.

Now, let’s try this variational principle on helium, which we couldn’t solve exactly.

Sketch of the helium atom: two electrons (−e) at distances r₁ and r₂ from a nucleus of charge 2e

Helium’s Hamiltonian is

Helium’s Hamiltonian: the kinetic energy of both electrons, their attraction to the 2e nucleus, and the electron–electron repulsion e²/4πε₀|r₁ − r₂| in red

Because of that damn red term for the Coulomb repulsion between the electrons, we couldn’t solve the Schrödinger equation for helium exactly. If we ignore that red term and solve for the ground-state energy (I think we did this in chapter 5 too), E_gs = −109 eV comes out as the result!!!!! The old reference picture gives Original approximate reference E_gs = −78.97 eV….

Reference-energy note: helium’s experimental total binding energy is about $79.005$ eV, the sum of its first and second ionization energies; the old $-78.97$ eV picture is only an approximate reference. The $-77.5$ eV trial result is still an upper bound, within about 2% of experiment.

N-now if we make an estimate with the variational principle we just learned, first, ψ_trial has to be assumed before we can do anything with the variational principle, so very roughly, ψ_trial we assume to be two electrons in the ground state of a hydrogen atom. But we think of it as a hydrogen atom whose nucleus has charge 2, that is,

Ψ_trial = ψ₁₀₀(r₁)ψ₁₀₀(r₂) = (2³/πa³)e^(−2(r₁ + r₂)/a)

That’s how we set up the trial wave function. But just plugging in 2 feels a bit iffy. Because

Sketch: one electron close to the 2e nucleus at r₁ and the other far out at r₂

(taking it to the extreme) there will be situations like this, and then the electron out back at r₂ feels a potential from the +2e that has to be weaker than − ~ 2e²/r₂ — yeah, weaker. Surely that electron fellow at r₂ doesn’t feel the full +2e.

So in the electron wave function,

Ψ_trial = (2³/πa³)e^(−2(r₁ + r₂)/a)

we’re saying, let’s put in a number a bit smaller than those 2’s that stand for the charge. “There’s just no way to figure out how much.” Ugh, whatever!!!! Let’s just call it the variable $Z$!!!!! That is,

Ψ_trial = (Z³/πa³)e^(−Z(r₁ + r₂)/a)

we just slap this assumption down. And then, with

⟨ψ_trial|H|ψ_trial⟩ ≥ E_gs

this theory, we look for the minimum value of ⟨H⟩_trial.

Now!!! Just look and you’ll see!!! Go go go! Let’s also write the Hamiltonian with all those 2’s for the charge changed to $Z$.

The Hamiltonian with Z written in place of the nuclear charge 2

But that’s no longer helium’s Hamiltonian, so we play a little trick on the real one, the one with the 2’s, and it lets us do the calculation a bit more easily. Just look and you’ll see!!

Helium’s real Hamiltonian rewritten: two hydrogen-like Hamiltonians with charge Z in red, plus (e²/4πε₀)((Z − 2)/r₁ + (Z − 2)/r₂ + 1/|r₁ − r₂|) in blue

Written this way, we can put E₁ to use. The red part is two of these, Z²E₁, and the blue part, let me expand and show below.

⟨H⟩_trial = 2Z²E₁ + 2(Z − 2)(e²/4πε₀)⟨1/r⟩ + ⟨V_ee⟩

The integral for $\langle V_{ee}\rangle$ is worked out in detail in the book, so I’ll skip the calculation. $\langle 1/r\rangle$ I already proved earlier to be $1/(an^2)$, so I’ll just use it, and allowing for the charge $Z$ and the fact that this is the ground state, ⟨1/r⟩ = Z/a is what I’ll plug in.

⟨V_ee⟩ = −(5Z/4)E₁

That is,

⟨H⟩_trial = 2Z²E₁ − 4Z(Z − 2)E₁ − (5Z/4)E₁ = (−2Z² + 27Z/4)E₁

$\langle H\rangle$ written as a function of $Z$. Let’s differentiate with respect to $Z$ and find the $Z$ that makes $\langle H\rangle$ smallest!!!

Setting d⟨H⟩/dZ to zero gives Z = 27/16 ≈ 1.69, the effective charge, and ⟨H⟩_min ≅ −77.5 eV, within 2% of experiment

Now the concept part is done. Let’s make the concept more solid by solving some exercises.

Ex. 1: Harmonic oscillator

As a function of $x$, $V(x)$ is

The oscillator potential V(x), a parabola

shaped like this, so we make a Guess.

How are we going to guess?

“Since $V(x)$ is shaped like that,” the wave function “probably looks like this!!!!”

The same parabola with the guessed wave function ψ_trial = A·e^(−bx²), a Gaussian bump, drawn in red

ψ_trial — let’s assume it’s a Gaussian! Alright then, let’s start. ψ_trial is a wave function too, after all, so 1) it has to be normalized!!!! That is,

⟨ψ_trial|ψ_trial⟩ = A²∫e^(−2bx²)dx and the substitution 2bx² = t

Normalizing with the Gamma function Γ(1/2) = √π: A²√(π/2b) = 1, so A = (2b/π)^(1/4)

Normalization: done!

The oscillator Hamiltonian −(ħ²/2m)d²/dx² + ½mω²x², to be split into ⟨T⟩ and ⟨V⟩

⟨T⟩ = −(ħ²/2m)(2b/π)^(1/2){4b²∫x²e^(−2bx²)dx − 2b∫e^(−2bx²)dx}

Differentiating ∫e^(−2bx²)dx = √(π/2b) with respect to b gives ∫x²e^(−2bx²)dx = (1/4√2)√(π/b³)

So the above calculation is

⟨T⟩ = ħ²b/2m

⟨V⟩ = ⟨ψ_trial|½mω²x²|ψ_trial⟩ = mω²/8b, with the same integral trick

⟨H⟩_trial = ħ²b/2m + mω²/8b ≥ E_gs

D⟨H⟩_trial/db = 0 gives b = mω/2ħ, and ⟨H⟩_min = ħω/2

Aha!!! So when $\langle T\rangle = \langle V\rangle$, $\langle H\rangle$ hits its minimum!!!!!

Oh?!?!! The harmonic oscillator’s minimum energy that we already know popped out?!?!?! That’s because the luck was insanely good. ψ_trial we just grabbed any old way~~, and by sheer luck it landed exactly on ψₙ — nailed it!!!….. If we had grabbed ψ_trial as another normalizable shape with finite energy, we would generally get an approximation instead….. A literal delta function won’t do: it isn’t a normalizable trial wave function.

All sorted??

Prob 7.11

a) Use a trial wave function of the following form to obtain a bound on the ground-state energy of the one-dimensional harmonic oscillator.

Trial wave function ψ_trial = A cos(πx/a) between −a/2 and a/2, and 0 otherwise

What is the best value of $a$? Compare $\langle H\rangle_{min}$ with the exact energy.

First, V is one-half m omega squared x squared~~~~ Then ψ_trial, starting with normalization,

Normalization: A²∫cos²(πx/a)dx = 1 over the interval from −a/2 to a/2

The substitution πx/a = t, dx = (a/π)dt, and its limits

A²(a/π)∫cos²t dt = (a/2)A² = 1, so A = √(2/a) and ψ_trial = √(2/a)cos(πx/a) inside the interval

With the given ψ_trial, let’s compute the expectation value of H. Tearing it into $\langle T\rangle$, $\langle V\rangle$~!~!!~!!!!

Handwritten: ⟨T⟩ = ⟨ψ_trial|−(ħ²/2m)d²/dx²|ψ_trial⟩ worked out to π²ħ²/2ma²

Ah…… looking at it as a photo, it’s kinda meh?? lol. This stuff is really hell to type up with an equation editor, and I really wish the Naver equation editor would get an update….

(If there’s too much to type or it’s too hard, I’ll substitute photos T_T) (I’ve very diligently submitted a proposal to Naver Blog suggestions. Please…… please update this lol)

⟨V⟩ = ⟨ψ_trial|½mω²x²|ψ_trial⟩ = (mω²/a)∫x²cos²(πx/a)dx

Substitution table for πx/a = t: dx = (a/π)dt, and x = ±a/2 goes to t = ±π/2

⟨V⟩ = (mω²/a)(a³/π³)∫t²cos²t dt

Euler’s formula: cos t = (e^(it) + e^(−it))/2, so cos²t = (e^(i2t) + e^(−i2t) + 2)/4

⟨V⟩ = (mω²/a)(a³/π³)∫(¼t²e^(i2t) + ¼t²e^(−i2t) + ½t²)dt

For the integral, I’ll use this formula.

Integral-table formula: ∫uⁿe^(au)du = (1/a)uⁿe^(au) − (n/a)∫uⁿ⁻¹e^(au)du

(It’s from the integral table I have; if you need it, get in touch. I’ll shoot it right over!)

And I’ll attach the details of the calculation as a photo.

Handwritten: using the formula twice with n = 2 and a = 2i, (1/4)∫t²e^(i2t)dt from −π/2 to π/2 comes out −π/8

So each complex-exponential piece gives −π/8, and ∫½t²dt = π³/24

That is,

⟨V⟩ = (mω²/a)(a³/π³){π³/24 − π/4} = (mω²/4)(a²/π²){π²/6 − 1}

So

⟨H⟩_trial = π²ħ²/2ma² + (mω²a²/4π²){π²/6 − 1}

Let’s find the value of $a$ that makes this $\langle H\rangle$ smallest, using $d/da$.

D⟨H⟩/da = 0 gives a = π√(ħ/mω)(2/(π²/6 − 1))^(1/4)

If we plug this into $\langle H\rangle_{trial}$, that’d be the minimum value it can have, right?!

⟨H⟩_min = ½ħω√(π²/3 − 2)

Punch √(π²/3 − 2) into a calculator and you get 1.135723616773. So the difference from the oscillator’s exact answer comes to about 0.1357….. roughly a 13.6% error…..hehe. Gotta grab the wave function better, huh?

Prob 7.13

Using the following Gaussian trial wave function, find the lowest upper bound you can get on the hydrogen ground-state energy.

The Gaussian trial wave function ψ = Ae^(−br²)

Here A is fixed by normalization, and b is a free parameter. Again, let’s start with normalization.

Normalization in spherical coordinates: the angles give 2 and 2π, leaving A²·4π∫e^(−2br²)r²dr = 1

Integral reference: differentiating ∫₀^∞e^(−αx²)dx = ½√(π/α) with respect to α gives ∫₀^∞x²e^(−αx²)dx = ¼√(π/α³), used with α = 2b

So A = (8b³/π³)^(1/4)

The hydrogen Hamiltonian H = −(ħ²/2m)∇² − (1/4πε₀)e²/r, now in 3 dimensions

Kinetic energy first: ⟨T⟩ = −(ħ²/2m)√(8b³/π³)∫e^(−br²)∇²e^(−br²)dV

In spherical coordinates, the Laplacian is

The Laplacian in spherical coordinates; for our ψ only the r part matters

∇²e^(−br²) = −6be^(−br²) + 4b²r²e^(−br²)

That is,

⟨T⟩ = (ħ²/2m)√(8b³/π³)·2b·2·2π∫(3e^(−2br²) − 2br²e^(−2br²))r²dr

⟨T⟩ = (ħ²/2m)√(8b³/π³)·8bπ{3∫r²e^(−2br²)dr − 2b∫r⁴e^(−2br²)dr}

Differentiating ∫₀^∞x²e^(−αx²) = ¼√(π/α³) with respect to α gives ∫₀^∞x⁴e^(−αx²) = (3/8)√(π/α⁵)

⟨T⟩ = 3ħ²b/2m

Jeez…. that was long……… Computing $\langle V\rangle$ too.

⟨V⟩ = −(e²/4πε₀)√(8b³/π³)·2·2π∫₀^∞re^(−2br²)dr

Substitution: −2br² = t, so r dr = −dt/4b

⟨V⟩ = −(e²√2/2πε₀)√(b/π)

So ⟨H⟩_trial = 3ħ²b/2m − (e²√2/2πε₀)√(b/π)

D⟨H⟩/db = 0 gives √b = (e²/4πε₀)(2m/3ħ²)√(2/π), and ⟨H⟩_min = (8/3π)E₁ ≅ −11.5 eV

E₁ = −(m/2ħ²)(e²/4πε₀)² = −13.6 eV

Since we used a function different from hydrogen’s actual wave function as the trial wave function, we ended up about 2.1 eV off.


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • Helium’s kinetic term is $-\frac{\hbar^2}{2m}(\nabla_1^2 + \nabla_2^2)$, not $\nabla_1^2 + \nabla_1^2$. And the Hamiltonian keeps the nuclear charge 2 even when the trial function uses $Z$: it is rewritten as $H = -\frac{\hbar^2}{2m}(\nabla_1^2 + \nabla_2^2) - \frac{e^2}{4\pi\varepsilon_0}\left(\frac{Z}{r_1} + \frac{Z}{r_2}\right) + \frac{e^2}{4\pi\varepsilon_0}\left(\frac{Z-2}{r_1} + \frac{Z-2}{r_2} + \frac{1}{|\vec{r}_1 - \vec{r}_2|}\right)$, so a Hamiltonian with $Z$ in place of 2 and nothing more is not helium’s.
  • In the helium minimization, $\frac{d\langle H\rangle}{dZ} = \left(-4Z + \frac{27}{4}\right)E_1 = 0$ (the picture drops $E_1$), and $\langle H\rangle$ is evaluated at $Z = \frac{27}{16} \approx 1.69$, not 1.67; the $-77.5$ eV is right.
  • In the Gaussian example, after $t = 2bx^2$ the integral over $t$ runs from 0 to $\infty$ (the whole line gives twice that), and the normalized trial function is $\left(\frac{2b}{\pi}\right)^{1/4}e^{-bx^2}$, not $e^{-2bx^2}$. In the $\langle V\rangle$ calculation, the second line $= \langle T\rangle$ does not belong: $\langle V\rangle = \frac{m\omega^2}{8b}$ equals $\langle T\rangle = \frac{\hbar^2 b}{2m}$ only at the minimum $b = \frac{m\omega}{2\hbar}$.
  • In the cosine example, $t = \frac{\pi}{a}x$ maps $x = \pm\frac{a}{2}$ to $t = \pm\frac{\pi}{2}$, so $x^2 = \frac{a^2}{\pi^2}t^2$ and the integrals run from $-\frac{\pi}{2}$ to $\frac{\pi}{2}$; and $\frac{d}{dx}\cos\frac{\pi x}{a} = -\frac{\pi}{a}\sin\frac{\pi x}{a}$ (the next line puts the $\frac{\pi}{a}$ back). The results are right.
  • In the hydrogen example, the trial function is $\psi(r) = Ae^{-br^2}$; $\int_0^\infty e^{-2br^2}r^2\,dr = \frac{1}{4}\sqrt{\frac{\pi}{8b^3}}$ (with the $4\pi$ from the angles this gives $\sqrt{\frac{\pi^3}{8b^3}}$, so $A = \left(\frac{8b^3}{\pi^3}\right)^{1/4}$ is right); the normalized function ends in $e^{-br^2}$, not $e^{-2br^2}$; and the best $b$ is just $\left(\frac{e^2}{4\pi\varepsilon_0}\right)^2\frac{8m^2}{9\pi\hbar^4}$ (the second term on that line is a stray). $\langle H\rangle_{min} = \frac{8}{3\pi}E_1 \approx -11.5$ eV is right.

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.