Derivation (stationary state in harmonic oscillator)

The stationary state satisfies the time-independent Schrodinger's equation $$ \begin{align*} -\frac{\hbar^2}{2m} \dfd[2]{\chi}{x} + \frac{1}{2}m\omega^2 x^2 \chi = E\chi. \end{align*} $$

The wavefunctions we obtain in the end will be in terms of Hermite polynomials, which are series solutions of $$ \begin{align*} y'' - 2xy' + nf = 0. \end{align*} $$

Rescale the variables as $$ \begin{align*} \xi = \sqrt{\frac{m\omega}{\hbar}}x, \qquad \epsilon = \frac{2E}{\hbar\omega} \end{align*} $$ to get $$ \begin{align*} -\dfd[2]{\chi}{\xi} + \xi^2\chi = \epsilon \chi. \end{align*} $$

Try a substitution $\chi(x) = u(x) v(x)$: $$ \begin{align*} -v'' - \frac{2u'}{u}v' + \left(-\frac{u''}{u} + \xi^2 - \epsilon\right)v = 0. \end{align*} $$ Set $$ \begin{align*} -\frac{u'}{u} = x \implies u(x) = e^{-x^2/2}, \quad \frac{u''}{u} = \xi^2 - 1. \end{align*} $$

Set $$ \begin{align*} \chi(\xi) = f(\xi) \exp\left(-\frac{1}{2}\xi^2\right). \end{align*} $$ Then we obtain $$ \begin{align*} \dfd[2]{f}{\xi} - 2\xi \dfd{f}{\xi} + (\epsilon-1)f = 0 \end{align*} $$

The solutions are Hermite polynomials $$ \begin{align*} f(\xi) = H_n(\xi), \quad \epsilon = 2n + 1, \qquad n=0,1,2,\ldots. \end{align*} $$ $\xi=0$ is a regular point, so we have series solutions $$ \begin{align*} f(\xi) = \sum_{n=0}^{\infty} a_n \xi^n. \end{align*} $$ Substituting, $$ \begin{align*} 0 = \sum_{n=0}^{\infty} \left((n+1)(n+2)a_{n+2} + \big(-2n + \epsilon-1\big)a_n\right) \xi^n \end{align*} $$ so we have the recurrence relation $$ \begin{align*} a_{n+2} = \frac{2n - \epsilon + 1}{(n+1)(n+2)}a_n. \end{align*} $$

If $\epsilon = 2n+1$ where $n=0,1,2,\ldots$, then the series terminates and we obtain solutions $$ \begin{align*} \chi_n(\xi) = \exp\left(-\frac{1}{2}\xi^2\right) H_n(\xi), \quad \epsilon = 2n+1, \qquad n=0,1,2,\ldots \end{align*} $$ which are normalisable because exponentials beat polynomials.

Otherwise, the coefficients decay as $$ \begin{align*} \frac{a_{n+2}}{a_n} \sim \frac{2}{n} \end{align*} $$ which is similar to those in $\exp(\xi^2) = \sum_{n} b_n\xi^n$ since for $n$ even, $$ \begin{align*} \frac{b_{n+2}}{b_n} = \frac{(n/2)!}{(n/2 + 1)!} = \frac{1}{n/2 + 1} \sim \frac{2}{n}. \end{align*} $$ Therefore $$ \begin{align*} \chi_n(\xi) \sim \exp\left(-\frac{1}{2}\xi^2\right) \exp\left(\xi^2\right) = \exp\left(\frac{1}{2}\xi^2\right) \end{align*} $$ so this leads to a non-normalisable solution.