Checkpoint: Approximate a Spectrum
This checkpoint puts the module's two big tools side by side on one system — the infinite square well — and asks them to agree. You will quantize the spectrum with WKB and bound the ground state with the variational method, then verify the variational principle is respected.
The system
A particle of mass confined to with infinite walls, in natural units and . The exact spectrum is
For this is .
(A) WKB with hard walls
Inside the box , so the momentum is constant. The two confining walls are hard turning points, where the wavefunction must vanish rather than turn smoothly. Each hard wall contributes a phase (not ), so the Maslov correction cancels and the quantization condition becomes
WKB reproduces the exact spectrum here, because the wavefunction inside the box is a pure sinusoid with no curvature in the "wavelength" — the slowly-varying assumption is trivially satisfied.
(B) Variational bound on the ground state
Use the smooth trial state that vanishes at both walls,
With inside the box, the needed integrals are
so the variational energy is
The cross-check
Compare the two estimates against the truth:
WKB is exact for the box; the variational bound sits about above the true ground state, on the correct side of the inequality — the variational principle is respected. Two independent approximations, agreeing with each other and with the exact result, is the kind of consistency check that builds confidence in either method when the exact answer is unknown.
Try it
Compute the WKB and exact energies, the variational bound from , and a boolean
saying the bound is respected. return the object
{ wkb1, exact1, varBound, boundHolds }.
Sign in on the full site to ask questions and join the discussion.