The designation “quantum” in “quantum mechanics” is meant to enshrine one of the main achievements of the theory: generating finite quantities in what were previously continuous classical systems. This is done by reinterpreting the classical Hamiltonian as an operator upon a quantum mechanical state vector that produces discrete energy eigenvalues. For a one-dimensional system this is written

$H|\psi \u27e9=[\frac{{p}^{2}}{2m}+V\left(x\right)]|\psi \u27e9=E|\psi \u27e9$

With the standard operator interpretation

$-\frac{{\hslash}^{2}}{2m}\frac{{d}^{2}\psi}{d{x}^{2}}+V\left(x\right)\psi =E\psi $

The equation can be solved in principle for any reasonable choice of the classical potential, both for bound and unbound systems. One of the standard examples worked out fully in any graduate-level textbook is the one-dimensional simple harmonic oscillator with classical frequency ω, for which the Schrödinger equation is

$-\frac{{\hslash}^{2}}{2m}\frac{{d}^{2}\psi}{d{x}^{2}}+\frac{m{\omega}^{2}}{2}{x}^{2}\psi =E\psi $

The normalized wave function solutions, or eigenfunctions, are given by physicist’s Hermite polynomials multiplied by a decreasing Gaussian function,

${\psi}_{k}\left(x\right)=\frac{1}{\sqrt{{2}^{k}k!}}[\frac{m\omega}{\pi \hslash}{]}^{\frac{1}{4}}exp[-\frac{m\omega}{2\hslash}{x}^{2}]{H}_{k}\left[\sqrt{\frac{m\omega}{\hslash}}\phantom{\rule{.2em}{0ex}}x\right]$

corresponding to the discrete energy eigenvalues

${E}_{k}=\hslash \omega (k+\frac{1}{2})\phantom{\rule{4em}{0ex}}k=0,1,2,\dots $

The reason this is one of the problems fully solved in texts is because it is the simplest example of the handful of systems that can be solved exactly. An apparently minor change to the potential, for example letting the exponent be an arbitrary continuous value compensated by an alteration in a dimensioned constant,

$-\frac{{\hslash}^{2}}{2m}\frac{{d}^{2}\psi}{d{x}^{2}}+\frac{m{\omega}_{a}^{2}}{2}{x}^{a}\psi =E\psi $

leads to cases of the equation that are extremely difficult to solve. For *a* = 1 , a linear potential, this equation can be transformed into the differential equation for Airy functions, and the resulting wave functions are said to represent a quantum mechanical bouncing ball subject to a constant force. There is an exact solution for *a* = 4 , which is a special case of the more general quartic oscillator, but it involves a triconfluent Heun function. The solution is quite detailed, with the relative simplicity of the harmonic oscillator disappearing very quickly.

The question then arises as to how one can get a sense of the behavior of a system that is not so different from a simple harmonic oscillator when the differential equation has a complicated analytic solution or none at all. The answer is that there is a straightforward method to approximate the energy eigenvalues and eigenfunctions for an arbitrary system, and these numerical solutions can be presented graphically for comparison with the harmonic oscillator.

In the interest of comparison, the potential to be used will be symmetric about the origin like the harmonic oscillator, so that the relevant Schrödinger equation is

$-\frac{{\hslash}^{2}}{2m}\frac{{d}^{2}\psi}{d{x}^{2}}+\frac{m{\omega}_{a}^{2}}{2}|x{|}^{a}\psi =E\psi $

with a nonanalytic absolute value to ensure symmetry and remove a potential phase factor in expectation values on the negative *x*-axis. Since the potential is continuous at the one point of nonanalyticity, the origin, the resulting wave functions are well behaved.

The exponent of the potential will be restricted to positive values for this presentation. The subscript on the frequency is an indication that its dimensioned units must change to accommodate the difference in spatial behavior from the simple harmonic oscillator, and by definition ${\omega}_{2}=\omega $ .

The variation of the potential with continuous exponent, apart from the constant fractional factor, is given by the following interactive graphic:

The method to be used in this presentation is based on a standard property of wave functions in quantum mechanics: given a complete set of eigenstates for a potential, any wave function can be expanded in terms of that basis set. If the basis states given above for the harmonic oscillator are abbreviated as

$|\Psi (a)\u27e9=\sum _{l=0}^{\infty}{c}_{l}|l\u27e9$

If one already knew the complete behavior of the wave function, then the coefficients would be determined by an inner product with each basis state in turn,

$\u27e8k|\Psi (a)\u27e9\equiv \underset{-\infty}{\overset{\infty}{\int}}dx\phantom{\rule{.3em}{0ex}}{\psi}_{k}^{*}\left(x\right)\Psi (a,x)=\sum _{l=0}^{\infty}{c}_{l}\u27e8k|l\u27e9=\sum _{m=0}^{\infty}{c}_{l}{\delta}_{kl}={c}_{k}$

since the orthogonality of the basis states picks out each coefficient when contracted with the complete expansion. The behavior of the wave function is in general known from solving Schrödinger’s equation explicitly, but one can approximate this solution in terms of the known harmonic oscillator basis states. What is first needed is a way to evaluate the eigenvalues

$H\left(a\right)|\Psi (a)\u27e9=[\frac{{p}^{2}}{2m}+\frac{m{\omega}_{a}^{2}}{2}|x{|}^{a}]|\Psi (a)\u27e9=E\left(a\right)|\Psi (a)\u27e9$

for the modified Hamiltonian as a function of the continuous exponent. Allow this Hamiltonian to act upon the expansion in terms of eigenstates,

$H\left(a\right)|\Psi (a)\u27e9=\sum _{l=0}^{\infty}{c}_{l}H\left(a\right)|l\u27e9\equiv E\left(a\right)\sum _{l=0}^{\infty}{c}_{l}|l\u27e9=E\left(a\right)|\Psi (a)\u27e9$

where the inner equivalence must hold by working in from the outer equalities. Now form an inner product with each basis state:

$\u27e8k|H\left(a\right)|\Psi \left(a\right)\u27e9=\sum _{l=0}^{\infty}{c}_{l}\u27e8k|H\left(a\right)|l\u27e9=E\left(a\right)\sum _{l=0}^{\infty}{c}_{l}\u27e8k|l\u27e9=E\left(a\right){c}_{k}$

This statement holds for each state *k* in turn. Arranging the wave function expansion as a column vector of coefficients, the second and fourth sections of this equality are equivalent to the infinite matrix equation

$\left[\begin{array}{cccc}\u27e80\left|H\right(a\left)\right|0\u27e9& \u27e80\left|H\right(a\left)\right|1\u27e9& \u27e80\left|H\right(a\left)\right|2\u27e9& \cdots \\ \u27e81\left|H\right(a\left)\right|0\u27e9& \u27e81\left|H\right(a\left)\right|1\u27e9& \u27e81\left|H\right(a\left)\right|2\u27e9& \cdots \\ \u27e82\left|H\right(a\left)\right|0\u27e9& \u27e82\left|H\right(a\left)\right|1\u27e9& \u27e82\left|H\right(a\left)\right|2\u27e9& \cdots \\ \vdots & \vdots & \vdots & \ddots \end{array}\right]\phantom{\rule{.1em}{0ex}}\left[\begin{array}{c}{c}_{0}\\ {c}_{1}\\ {c}_{2}\\ \vdots \end{array}\right]=E\left(a\right)\left[\begin{array}{c}{c}_{0}\\ {c}_{1}\\ {c}_{2}\\ \vdots \end{array}\right]$

This is now a standard eigenvalue problem in linear algebra: finding the eigenvalues and eigenvectors of the matrix on the left-hand side immediately gives the eigenvalues of the modified Hamiltonian, along with column eigenvectors for the expansion of each energy level in terms of harmonic oscillator basis states. The accuracy of the evaluation clearly depends upon how large a matrix is used.

The matrix elements of the modified Hamiltonian, as a linear operator, are the sum of matrix elements for the potential energy and matrix elements for the kinetic energy. In terms of the variable

$\begin{array}{l}\u27e8k|\phantom{\rule{.2em}{0ex}}\frac{m{\omega}_{a}^{2}}{2}|x{|}^{a}\phantom{\rule{.2em}{0ex}}|l\u27e9\\ \phantom{\rule{4em}{0ex}}=\frac{m{\omega}_{a}^{2}}{2}\frac{1}{\sqrt{{2}^{k+l}k!l!\pi}}(\frac{\hslash}{m\omega}{)}^{a/2}\underset{-\infty}{\overset{\infty}{\int}}du\phantom{\rule{.3em}{0ex}}|u{|}^{a}{e}^{-{u}^{2}}{H}_{k}\left(u\right){H}_{l}\left(u\right)\\ \phantom{\rule{4em}{0ex}}=\frac{m{\omega}_{a}^{2}}{2}\frac{[1+(-1{)}^{k+l}]}{\sqrt{{2}^{k+l}k!l!\pi}}(\frac{\hslash}{m\omega}{)}^{a/2}\underset{0}{\overset{\infty}{\int}}du\phantom{\rule{.3em}{0ex}}{u}^{a}{e}^{-{u}^{2}}{H}_{k}\left(u\right){H}_{l}\left(u\right)\end{array}$

where the last step uses the parity property
*a*th root of minus one.

For purposes of numerical evaluation, the finite series expansion of the product of Hermite polynomials can be integrated term by term and left as a finite double series. Performing the expansion, the integral in the matrix elements is

$\begin{array}{l}\underset{0}{\overset{\infty}{\int}}du\phantom{\rule{.3em}{0ex}}{u}^{a}{e}^{-{u}^{2}}{H}_{k}\left(u\right){H}_{l}\left(u\right)\\ \phantom{\rule{3em}{0ex}}=\sum _{i=0}^{int(k/2)}\sum _{j=0}^{int(l/2)}\frac{(-1{)}^{i+j}{2}^{k+l-2i-2j}k!l!}{(k-2i)!(l-2j)!i!j!}\underset{0}{\overset{\infty}{\int}}du\phantom{\rule{.2em}{0ex}}{e}^{-{u}^{2}}{u}^{a+k+l-2i-2j}\\ \phantom{\rule{3em}{0ex}}=\sum _{i=0}^{int(k/2)}\sum _{j=0}^{int(l/2)}\frac{(-1{)}^{i+j}{2}^{k+l-2i-2j-1}k!l!}{(k-2i)!(l-2j)!i!j!}\Gamma (\frac{a+k+l+1}{2}-i-j)\end{array}$

where the last step uses the integral definition of the gamma function with a squared variable of integration. While this form appears to be complicated, it is amenable to quick calculation and does not needed to be simplified any further for practical application. Substituting this double series in the previous formula gives the matrix elements for the potential energy.

The harmonic oscillator basis states are solutions of the Schrödinger equation, which means that the action of the kinetic energy term upon them must satisfy

$\frac{{p}^{2}}{2m}|l\u27e9=[{E}_{l}-\frac{m{\omega}^{2}}{2}{x}^{2}]|l\u27e9$

This simple statement means that the matrix elements of the kinetic energy can be given in terms of previous results with no additional calculation:

$\u27e8k|\frac{{p}^{2}}{2m}|l\u27e9=\hslash \omega (k+\frac{1}{2}){\delta}_{kl}-\u27e8k|\frac{m{\omega}^{2}}{2}{x}^{2}|l\u27e9$

The second term in this formula can be evaluated explicitly without much difficulty, but again for purposes of numerical evaluation can be left represented by the double series already determined.

Now the fun begins! For simplicity of code, let $\hslash =m=\omega ={\omega}_{a}=1$ . With these simple choices of parameters, the values of the first few matrix elements of the modified Hamiltonian as a function of the arbitrary exponent are listed in the following interactive matrix:

Evaluating the eigenvalues of this matrix for a variety of values of the exponent allows one to see how energy levels shift with exponent. In theory a larger matrix of these elements should produce more accurate results, but in practice larger matrices can lead to disruptive rounding errors during diagonalization. Restricting the number of basis states used can also lead to inaccurate results, so a suitable balance needs to be found.

Directly following this paragraph is a hidden interactive graphic ( ) that can be used to evaluate the first ten eigenvalues for sixteen representative values of exponent for a given number of basis states. The evaluation takes a very long time when the number of basis states exceeds about twenty, but the total evaluation can be broken into smaller blocks by editing the indicated range in the code and the data combined by hand.

With all of the eigenvalue data embedded in the page, the behavior of eigenvalues as a function of exponent for the indicated number of basis states is

Selecting different numbers of basis states shows how the resulting eigenvalue curves change as a function of that number. Clearly thirty basis states produces smoother curves than any lower number, but the curves for twenty basis states are not so very different. In the interest of shorter calculation times for live evaluation of wave functions in the browser this latter number will be used below, but can easily be changed in the underlying code.

Finding the eigenvectors of the set of matrix elements, then using them as coefficients in the expansion formula, leads to the following interactive graphic for the wave functions:

The red line is the potential itself, shifted downward by the calculated energy for the state, for comparison with the wave function. The resulting wave functions are clearly approximations because they are not strictly decreasing exponentials outside of the potential. The exaggeration of the wave functions near the potential wall is presumably akin to the Gibbs phenomenon in Fourier analysis.

Beginning with an exponent of two, which is the harmonic oscillator, one can vary the value to see how the wave function changes relative to the basis states. It is not surprising that the wave functions are all fairly similar, since one would expect that potentials that look similar should produce wave functions that look similar. What is more problematic is that although these functions all look similar, only the harmonic oscillator basis states have a simple statement in terms of known functions. The relatively minor changes in the wave functions for exponent values near two is not a behavior that can be described easily with analytic mathematics, apart from their expression as the expansion.

As the value of the exponent in the potential approaches infinity, the potential becomes an infinite square well with walls at plus and minus one. A wave function inside an infinite square is constrained entirely inside the well. This can be seen the in graphic as a compression of the wave function along the *x*-axis for increasing exponent value.

The simplicity of the mathematical expression of harmonic oscillator wave functions, along with a corresponding simplicity of expression of wave functions for the Coulomb potential, leads physicists to ascribe particular meaning to these soluble systems. This presentation has used the simplicity of harmonic oscillator states as a tool to explore states that should be close to them but not expressible analytically, apart from their expansion in term of the simple states. This is a matter of calculational expediency: the harmonic oscillator states are only special in that they are useful.

The structure of quantum mechanics provides a means to quantize any classical potential, not just those that are soluble. In this sense there is continuity hiding within the structure of quantum mechanics, readily accessible with enough computing power. One also has to be prepared to encounter mathematical complexity that cannot be expressed on the proverbial back of an envelope. The graphics here are intended as a step toward finding tools that grasp this complexity as securely as classical analysis would if it were readily extendable to these systems.

*Uploaded 2013.05.20 — Updated 2017.06.30*
analyticphysics.com