The Schr\"odinger equation for a quantum mechanical particle of mass m moving in a one-dimensional harmonic oscillator potential V(x)=kx2/2 is
−2mℏ2dx2d2ψ+2kx2ψ=Eψ.
For physically acceptable solutions, the wavefunction ψ(x) must be finite at x=0, tend to zero as x→±∞ and be normalised, so that ∫∣ψ∣2dx=1. In practice, these constraints mean that only certain (quantised) values of E, the energy of the particle, are allowed. The allowed values fall into two groups: those for which ψ(0)=0 and those for which ψ(0)=0.
Show that if the unit of length is taken as [ℏ2/(mk)]1/4 and the unit of energy is taken as ℏ(k/m)1/2, then the Schr\"odinger equation takes the form
dy2d2ψ+(2E′−y2)ψ=0.
Devise an outline computerised scheme, using Runge--Kutta integration, that will enable you to:
(a) determine the three lowest allowed values of E;
(b) tabulate the normalised wavefunction corresponding to the lowest allowed energy.
You should consider explicitly:
(i) the variables to use in the numerical integration;
(ii) how starting values near y=0 are to be chosen;
(iii) how the condition on ψ as y→±∞ is to be implemented;
(iv) how the required values of E are to be extracted from the results of the integration;
(v) how the normalisation is to be carried out.