Quantum harmonic oscillator
The quantum harmonic oscillator solved via the confluent hypergeometric function \(_1F_1\) and Riemann's P-symbol. The page presents theory and derivation, lets you choose the state (eigenstate, superposition, coherent state, custom coefficients) and shows in 3D the complex wave function, the probability density and their time evolution. Eigenvalues and eigenfunctions are computed by the Python backend (via gw2py); the interface prepares its input and visualization.The guiding thread is confluence: Gauss's hypergeometric equation degenerates into Kummer's equation when two singularities merge, and the harmonic oscillator is exactly this confluent equation. Quantization emerges as the truncation condition of the \(_1F_1\) series.
Schrödinger equation and dimensionless form
The stationary problem for the one-dimensional harmonic oscillator is
\[ -\frac{\hbar^2}{2m}\,\psi''(x) + \tfrac12 m\omega^2 x^2\,\psi(x) = E\,\psi(x). \]Introducing the dimensionless variable \(\xi = x/x_0\) with characteristic length \(x_0=\sqrt{\hbar/m\omega}\) and reduced energy \(\varepsilon = E/(\hbar\omega)\), one gets
\[ \psi''(\xi) + \big(2\varepsilon - \xi^2\big)\,\psi(\xi) = 0. \tag{1} \]Asymptotic behaviour → Hermite equation
As \(\xi\to\pm\infty\) the term \(-\xi^2\psi\) dominates, whose normalizable solutions behave like \(e^{-\xi^2/2}\). Factoring \(\psi(\xi)=e^{-\xi^2/2}\,u(\xi)\) and substituting into (1) leaves the Hermite equation:
\[ u'' - 2\xi\,u' + (2\varepsilon-1)\,u = 0. \tag{2} \]Parity separation → Kummer equation
The potential is even, so the eigenfunctions have definite parity. With \(t=\xi^2\) the two sectors separate. For the even solutions, \(u(\xi)=f(t)\):
\[ t\,f'' + \big(\tfrac12 - t\big)f' + \tfrac{n}{2}\,f = 0, \]and for the odd ones, \(u(\xi)=\xi\,f(t)\):
\[ t\,f'' + \big(\tfrac32 - t\big)f' + \tfrac{n-1}{2}\,f = 0. \]Both have the form of Kummer's equation \(t\,f'' + (b-t)f' - a\,f = 0\), with
\[ a = -\Big\lfloor \tfrac{n}{2}\Big\rfloor, \qquad b = \begin{cases}\tfrac12 & n \text{ even}\\[2pt] \tfrac32 & n \text{ odd.}\end{cases} \]Riemann's P-symbol
Gauss's hypergeometric equation \(z(1-z)w'' + [c-(a+b+1)z]w' - ab\,w = 0\) has three Fuchsian singular points at \(0,1,\infty\), summarized by Riemann's P-symbol:
\[ w = P\!\begin{Bmatrix} 0 & 1 & \infty & \\ 0 & 0 & a & ;\,z \\ 1-c & c-a-b & b & \end{Bmatrix}. \]Each column collects the indicial exponents at the corresponding singular point; their sum equals \(1\) (Fuchs relation):
\[ (0 + 1-c) + (0 + c-a-b) + (a+b) = 1. \]Confluence → Kummer equation
Setting \(z\to x/b\) and letting \(b\to\infty\), the singular points \(1\) and \(\infty\) merge into a single irregular singular point at infinity, while the Fuchsian one at \(0\) remains. The ODE coefficients tend to
\[ x\,w'' + (c-x)\,w' - a\,w = 0, \]i.e. Kummer's equation, and Gauss's series reduces term by term to \(_1F_1\):
\[ {}_2F_1\!\big(a,b;c;\tfrac{x}{b}\big)\;\xrightarrow[\;b\to\infty\;]{}\;{}_1F_1(a;c;x). \]Quantization from series termination
As \(t\to+\infty\), \(_1F_1(a;b;t)\sim \dfrac{\Gamma(b)}{\Gamma(a)}e^{t}t^{a-b}\); multiplied by \(e^{-\xi^2/2}\) this would give \(\psi\sim e^{+\xi^2/2}\), not normalizable. The only way out is for the series to terminate, i.e.
\[ a = -\Big\lfloor\tfrac n2\Big\rfloor \in \{0,-1,-2,\dots\}. \]Eigenfunctions
In unified form, with \(m=\lfloor n/2\rfloor\):
\[ \psi_n(\xi) = N_n\,\xi^{\,(n\bmod 2)}\,e^{-\xi^2/2}\,{}_1F_1\!\Big(-m;\;b;\;\xi^2\Big), \]equivalent to the closed form \(\psi_n(\xi)=\big(2^n n!\sqrt\pi\big)^{-1/2}H_n(\xi)\,e^{-\xi^2/2}\) with the Hermite polynomials \(H_n\). The \(\psi_n\) form an orthonormal basis: \(\langle\psi_m|\psi_n\rangle=\delta_{mn}\).
Time evolution
A generic state expands on the eigenstates, \(\Psi(\xi,0)=\sum_n c_n\psi_n(\xi)\), and evolves as
\[ \Psi(\xi,\tau) = \sum_n c_n\,\psi_n(\xi)\,e^{-i\,\varepsilon_n\,\tau}, \qquad \tau=\omega t,\ \varepsilon_n=n+\tfrac12. \]- Single eigenstate: \(\Psi=\psi_n\,e^{-i\varepsilon_n\tau}\). The density \(|\Psi|^2\) is stationary; in the complex plane the wave function rotates rigidly about the \(\xi\) axis — the spiral shown in the 3D panel.
- Coherent state \(|\alpha\rangle\), with \(c_n=e^{-|\alpha|^2/2}\alpha^n/\sqrt{n!}\): a Gaussian packet oscillating as \(\langle\xi\rangle(\tau)=\sqrt2\,\mathrm{Re}\!\big(\alpha e^{-i\tau}\big)\), reproducing the classical motion.
- Periodicity: since the levels are equally spaced, every state is exactly periodic with \(T=2\pi/\omega\).
Eigenvalues and eigenfunctions are computed by the Python engine (via
gw2py); this page prepares its input and visualization.
State to represent
Physical parameters and grid
Results
- State
- —
- Energy \(\langle E\rangle\)
- —
- Characteristic length \(x_0\)
- —
- Period \(T=2\pi/\omega\)
- —
- Packet centre \(\langle\xi\rangle\)
- —
Visible elements
Where the \(_1F_1\) comes from, how Riemann's P-symbol generates it by confluence, why quantization coincides with series termination, and where the harmonic oscillator sits in the map of exactly solvable problems.
Confluence, in detail
At the level of the equation, the substitution \(z\to x/b\) in Gauss's equation, followed by \(b\to\infty\), sends the coefficients to Kummer's:
\[ \big(x-\tfrac{x^2}{b}\big)w'' + \Big(c-\tfrac{a+b+1}{b}x\Big)w' - a\,w = 0 \;\xrightarrow[\;b\to\infty\;]{}\; x\,w'' + (c-x)\,w' - a\,w = 0. \]At the level of the series, the \(k\)-th term converges to that of \(_1F_1\):
\[ \frac{(a)_k\,(b)_k}{(c)_k\,k!}\Big(\frac{x}{b}\Big)^k \;\xrightarrow[\;b\to\infty\;]{}\; \frac{(a)_k}{(c)_k\,k!}\,x^k, \]because \((b)_k/b^k\to 1\). The two singular points \(1\) and \(\infty\) collapse into a single irregular singularity at infinity.
The indicial exponents of the P-symbol
The content of the P-symbol are the roots of the Frobenius indicial equation at each singular point. Writing the ODE as \(w''+P(z)w'+Q(z)w=0\), at a finite point \(z_0\) the exponents solve \(\rho(\rho-1)+p_0\rho+q_0=0\); at infinity one uses \(z=1/s\). The result reproduces the tableau:
\[ z=0:\ \{0,\,1-c\}\qquad z=1:\ \{0,\,c-a-b\}\qquad z=\infty:\ \{a,\,b\}, \]with sum \(=1\) (Fuchs relation). It is this exponent structure that «survives» confluence.
Why two Kummer equations: parity
The even potential imposes definite parity. The substitution \(t=\xi^2\) splits the problem: for \(u(\xi)=f(t)\) (even) and \(u(\xi)=\xi f(t)\) (odd) one obtains two Kummer equations with the same \(a=-\lfloor n/2\rfloor\) but \(b=\tfrac12\) and \(b=\tfrac32\) respectively.
The two solutions and the physical selection
The exponents \(\{0,\,1-c\}\) at \(0\) give Kummer's two independent solutions, \({}_1F_1(a;c;x)\) and \(x^{1-c}\,{}_1F_1(a-c+1;2-c;x)\). It is the requirement of square-integrability at infinity that selects:
\[ {}_1F_1(a;b;t)\ \sim\ \frac{\Gamma(b)}{\Gamma(a)}\,e^{t}\,t^{\,a-b}\quad(t\to+\infty), \]which multiplied by \(e^{-\xi^2/2}\) diverges as \(e^{+\xi^2/2}\) — unless the series terminates. Termination \(a=-\lfloor n/2\rfloor\) is the quantization: \(\varepsilon=n+\tfrac12\).
Where the harmonic oscillator lives
It is the first-level confluent case, one step below the Heun equation that governs the anharmonic oscillator.
The other members of the confluent branch
The same scheme solves, with the same \(_1F_1\): the hydrogen atom (radial Kummer equation, \(E_n\propto-1/n^2\)) and the Morse potential (exponential change of variable, a finite number of bound states). The \(_2F_1\) branch instead gathers Pöschl–Teller, Eckart, Rosen–Morse, Hulthén, Scarf.
Computational evidence
- Residual of \(\psi''+(2\varepsilon-\xi^2)\psi\) with the \(_1F_1\) and \(\varepsilon=n+\tfrac12\): identically zero (symbolic check, \(n=0\ldots5\)).
- Indicial exponents reconstructed from the ODE: they match the P-symbol tableau.
- Numerical orthonormality: \(\max|\langle\psi_i|\psi_j\rangle-\delta_{ij}|\approx 1.7\times10^{-15}\).
- Agreement with the closed Hermite form: \(\sim10^{-16}\) over the whole grid.
References
- NIST, Digital Library of Mathematical Functions, ch. 13, 15, 18. dlmf.nist.gov/13.
- E. T. Whittaker, G. N. Watson, A Course of Modern Analysis, Cambridge Univ. Press.
- L. J. Slater, Confluent Hypergeometric Functions, Cambridge Univ. Press, 1960.
- G. A. Natanzon, Theor. Math. Phys. 38, 146 (1979). doi:10.1007/BF01016836.
- F. Cooper, A. Khare, U. Sukhatme, Phys. Rep. 251, 267 (1995). doi.
- G. Pöschl, E. Teller, Z. Phys. 83, 143 (1933).
WebNIR · CNR-IFAC | demo interface — numerical work is provided by the Python backend (gw2py).
Keywords: harmonic oscillator, Schrödinger, confluent hypergeometric, 1F1, Hermite, Riemann P-symbol, Kummer, quantum mechanics, eigenstates