Use primes for differentiation with respect to . Since , substituting the amplitude-phase representation into the differential equation and separating real and imaginary parts gives
The second equation is exactly . Thus, with a real constant and ,
This exact amplitude-phase equation is the Ermakov-Pinney equation for the oscillator. Conversely, any real nonvanishing satisfying it and gives an exact complex solution. Existence is not an asymptotic assumption: choose independent real solutions of the original equation, form , and set . Their nonzero constant Wronskian prevents simultaneous zeros. The phase derivative satisfies , so it is constant. Complex conjugation gives a second branch, and linear combinations recover real solutions.
For the WKB approximation, work on an interval where is smooth and bounded away from zero. Choose the positive phase branch and an -independent positive . The equations naturally admit even-power expansions
There is no order- phase correction in this convention. Leading order gives and . Comparing order in the real equation yields
Consequently
The constants absorb the normalization. The opposite phase branch changes the sign of and its correction. A zero of is a classical turning point where this particular expansion fails; the exact amplitude-phase equation itself remains valid for a suitable complex solution.
For the Sturm-Liouville problem, take and use the interval coordinate as , so on . Combining the conjugate branches to satisfy the left Dirichlet boundary condition produces a sine of the phase integral from zero. The right Dirichlet boundary condition requires an integer multiple of . No turning-point phase shift is present. We have
Thus the two-term Dirichlet WKB quantization is
Solving first for the square root and then squaring gives
As an independent sign check, the Liouville transformation of a second-order equation with and gives on an interval of length . The mean transformed potential is , consistent with the constant spectral correction.