First Spectral Problem: Why Two Decay Conditions Quantize Energy
A second-order ODE has two independent solutions. Requiring decay at one end selects one direction in that two-dimensional solution space. Requiring decay at the other end selects another. A bound state exists when those two directions coincide. This page calculates that condition completely for the harmonic oscillator.
Before starting: you need basic quantum mechanics, differentiation, and elementary trigonometry. The two Airy asymptotic formulas used below are stated explicitly. No previous exact-WKB course is assumed.
First session: allow an estimated 60–90 minutes for the boundary condition, phase matching, exact spectrum, and Exercises 1–2. The numerical laboratory and normalization derivation are extensions. Reader trials have not yet validated this time estimate.
Decay selects a solution at each end
Section titled “Decay selects a solution at each end”Use dimensionless oscillator units and let :
Here is the spectral parameter. The coefficient of and the potential fix the normalization: this is not the convention .
Let be the solution decaying as , and the solution decaying as , each with a fixed leading normalization. A nonzero solution decays at both ends precisely when
The Wronskian is constant in because the equation has no term. If the determinant vanishes, the two solutions are proportional; that single solution meets both boundary conditions. Multiplying either endpoint solution by a nonzero constant changes but preserves its zeros.
For , the turning points are . Between them, is real and solutions oscillate. Outside them, solutions have growing and decaying exponential behavior.
Each turning point supplies a phase
Section titled “Each turning point supplies a phase”Near the right turning point, the potential is linear to first order: . After rescaling, the local equation is the Airy equation . Its decaying solution has the asymptotic forms
The phase belongs to matching the decaying solution through a simple turning point. Applying this connection at both ends gives the leading interior forms, up to nonzero amplitudes,
The approximation is used away from the turning points and matched to the local Airy solutions near them. Its usual controlled limit keeps the turning points separated as becomes small. We will verify the resulting oscillator spectrum exactly, including low levels where that limiting argument alone would not suffice.
Match the two oscillatory solutions
Section titled “Match the two oscillatory solutions”Set
Writing , the right-hand sine becomes
The left-decaying solution contains only . The two solutions are proportional throughout the interior when the independent component disappears:
The action integral is the area of a semicircle:
Thus the leading WKB condition predicts . The half-integer shift has been derived from the two connection phases; it was not inserted into the action integral. For a generic potential, this argument gives a leading approximation and additional corrections can change the spectrum.
An exact calculation for the oscillator
Section titled “An exact calculation for the oscillator”Put
The equation becomes . Define as the parabolic-cylinder solution with for positive large . The endpoint solutions are then
Their exact Wronskian is
The reciprocal gamma function has zeros at . Therefore
This establishes the exact result, independently of the leading WKB argument. Agreement in this solvable model does not make the leading rule exact for an anharmonic potential.
Derive the Wronskian normalization
The parabolic-cylinder values at zero are
The prime here means differentiation with respect to . At , the left solution has derivative and the right solution has the opposite sign. Hence
where the gamma duplication formula gives the final simplification. As a sign check, gives . Interchanging reverses this sign while preserving all zeros.
Compute the spectrum by a different method
Section titled “Compute the spectrum by a different method”Download weber-starter-check.py. It first checks the exact Wronskian at several points away from its zeros. It then independently solves a finite-difference eigenvalue problem on , with zero endpoint values. The matrix uses only the differential operator, not its known eigenvalues.
For a grid spacing , the interior matrix entries are
The supported baseline is Python 3.10 or later with mpmath, NumPy, and SciPy. From the directory containing the downloaded file, run
python3 -m pip install mpmath==1.3.0 numpy==2.0.2 scipy==1.13.1python3 weber-starter-check.py --jsonAt , the program uses 1200, 2400, and 4800 intervals and extrapolates the leading squared-spacing error. It also increases the endpoint distance at fixed grid spacing. One run gave
| Level | Exact energy | Extrapolated grid energy |
|---|---|---|
| 0 | 1 | 1.00000000003 |
| 1 | 3 | 3.00000000003 |
| 2 | 5 | 5.00000000007 |
| 3 | 7 | 7.00000000021 |
The largest spectral difference was about , the extrapolation changed by between refinements, and the endpoint change was below . The declared pass tolerance is in units of ; the finer agreement is an observed result, not a rigorous error bound. Last digits can vary with the numerical library and platform.
Try --half-width 2: a small interval can give a stable answer to the
wrong boundary problem. The check must fail at the default tolerance.
Increasing arithmetic precision alone cannot remove this domain error.
Exercises with progressive help
Section titled “Exercises with progressive help”1. Find the missing phase
Section titled “1. Find the missing phase”Suppose you replace both Airy phases by zero. What matching rule follows, and why does it give the wrong ground-state energy?
Hint 1
Compare with .
Hint 2
The coefficient of must vanish. Compare its zeros with those of in the correct calculation.
Solution
The incorrect condition is , giving the wrong offset at positive energies. Formally extending this rule to also permits , where the two turning points merge and the preceding simple-turning-point argument no longer applies. Both endpoint-decaying solutions carry a turning-point phase, so the omitted phases change the connection condition. The exact gamma-function Wronskian is nonzero at zero energy.
2. Transfer: a different Hamiltonian normalization
Section titled “2. Transfer: a different Hamiltonian normalization”For , find the energies and explain whether its bound-state functions differ from those above.
Hint
Multiply by two before reusing a formula.
Solution
The ODE has , so . The functions and endpoint conditions are the same. An apparent factor-of-two disagreement can therefore be an operator-convention difference rather than a mathematical error.
3. Transfer: change one boundary condition
Section titled “3. Transfer: change one boundary condition”Restrict the oscillator to , require decay at infinity, and impose . Which full-line levels remain? What changes for ?
Hint 1
The admissible function at infinity is still . Use its value or derivative at zero.
Hint 2
For Dirichlet data, the reciprocal gamma argument is . For Neumann data, it is .
Solution
Dirichlet data select , the odd full-line states, with . Neumann data select , the even states, with , in both cases . The equation alone did not determine the spectrum; the domain and boundary condition changed it.
Continue from the solved problem
Section titled “Continue from the solved problem”Before moving on, explain why two endpoint conditions select discrete energies, derive the half-integer shift without memorizing it, and say which part of the argument is approximate and which is exact.
Continue to formal WKB recursion for higher corrections, exact boundary quantization for the summed connection problem, or the pure quartic oscillator to see a problem where the harmonic-oscillator coincidence no longer suffices. The quartic calculation introduces nonlinear integral equations; use Route B’s preparation and laboratory sessions to approach it in stages.
The source formulas are the Airy asymptotics, the parabolic-cylinder equation and values at zero, and the gamma duplication formula.