Energy levels in a potential well

The above simulation shows the energy levels. These have been determined numerically by finding the values of the energy for which the wavefunction can be normalized, in very much the same way you can do manually.