A Particle in a Two-Dimensional Well
Confine a particle in a rectangular box of sides and — infinite walls, nothing inside. The Hamiltonian is a sum of two independent one-dimensional problems, one per direction, so the solution is a product of the two:
with — one quantum number per direction. Separability is the whole story here: energies add, wavefunctions multiply.
Each quantum number counts lobes along its own axis, and the sign alternates like a checkerboard — red where , blue where . Stretching the box with leaves the pattern intact and only moves the energy.
Degeneracy
Measuring energies in units of and writing for the aspect ratio, the spectrum collapses to a single expression:
This defines an ellipse in the plane. Every state is a point of the integer lattice, and the states of a given energy are exactly the lattice points that the ellipse passes through — so degeneracy is a counting problem in the plane.
On a square box, : the ellipse is a circle, and and always land together. That pairing is forced by the symmetry of the square — reflecting the box across its diagonal maps one state onto the other.
Tune away from and those pairs split apart, as the circle stretches into an ellipse that no longer passes through both points. But at certain commensurate ratios the ellipse hits a new pair. At the energy is , and and both give — a coincidence of arithmetic, with no symmetry of the box relating the two states. Degeneracies of this kind are called accidental.