Spherical square well
Let us now consider the potential for , i.e., inside a sphere of radius and zero outside.
We first consider bound states, i.e., states which display the particle mostly inside the box (confined states). Those have an energy E less than the potential outside the sphere, i.e., they have negative energy, and we shall see that there are a discrete number of such states, which we shall compare to positive energy with a continuous spectrum, describing scattering on the sphere (of unbound states). Also worth noticing is that unlike Coulomb potential, featuring an infinite number of discrete bound states, the spherical square well has only a finite (if any) number because of its finite range (if it has finite depth).
The resolution essentially follows that of the vacuum with normalisation of the total wavefunction added, solving two Schrödinger equations—inside and outside the sphere—of the previous kind, i.e., with constant potential. Also the following constraints hold:
- The wavefunction must be regular at the origin.
- The wavefunction and its derivative must be continuous at the potential discontinuity.
- The wavefunction must converge at infinity.
The first constraint comes from the fact that Neumann N and Hankel H functions are nonsingular at the origin. The physical argument that ψ must be defined everywhere selected Bessel function of the first kind J over the other possibilities in the vacuum case. For the same reason, the solution will be of this kind inside the sphere:
with A a constant to be determined later. Note that for bound states, .
Bound states bring the novelty as compared to the vacuum case that E is now negative (in the vacuum it was to be positive). This, along with third constraint, selects Hankel function of the first kind as the only converging solution at infinity (the singularity at the origin of these functions does not matter since we are now outside the sphere):
Second constraint on continuity of ψ at along with normalization allows the determination of constants A and B. Continuity of the derivative (or logarithmic derivative for convenience) requires quantization of energy.
Infinite spherical square well
In case where the potential is infinitely deep, so that we can take inside the sphere and outside, the problem becomes that of matching the spherical Bessel function with identically zero wavefunction outside the sphere, thus providing a straightforward connection with the energy spectrum and the zero of spherical Bessel functions since—calling the kth zero of —allowed energies are those for which the radial wavefunction vanishes at the boundary. They go as the square of ordered Bessel J zeros:
So that one is reduced to the computations of these zeros and to their ordering them (as illustrated graphically below) (note that zeros of j are the same as those of J).

Zeros of the first spherical Bessel equations
Calling s, p, d, f, g, h, etc., states with l=0, 1, 2, 3, 4, 5, etc., respectively, we obtain the following spectrum:

Spectrum of the infinitely deep spherical square well