Finite Wells & Quantization
A particle bound in a potential well cannot carry an arbitrary energy. Normalizability and continuity of the wave function select a discrete set. The infinite well is the case you can solve in closed form; the finite well keeps the same mechanism and a harder matching equation.