Here is the potential energy and is the stationary energy eigenvalue. The Schrödinger equation is the eigenvalue equation for kinetic plus potential energy. Its boundary conditions select the allowed energies. For a normalized wavefunction, the Born rule assigns probability to a small area, and . A stationary state's full time dependence is ; its probability density is time-independent.
The infinite walls impose on all four boundaries. For a separated solution in the zero-potential interior,The first term depends only on and the second only on , so each is constant, and . Vanishing at and removes the cosine terms. Vanishing at the other boundaries givesThe normalized two-dimensional infinite square well eigenbasis and energies areNormalization follows from the two sine-squared integrals and . Zero quantum numbers would give an identically zero function. These separated products form a basis, not every possible wavefunction: a general state is their superposition, and a degenerate energy eigenspace can have nonseparable stationary combinations of products with that same energy.
For and , the ground state is and the nearest excitation is , along the longer side. The next quantum along the shorter side costs more energy. ThusThis transition has nonzero dipole matrix element for an electric-field component along . Light polarized strictly along would not drive it, so the minimum assumes an allowed polarization rather than an arbitrary fixed one.
For the requested degeneracy, keep . The first two states are necessarily and , since . The third level is the smaller of and : states with both indices at least two lie above , and higher states on the sequence lie above . Make these two candidates equal:The third-level degeneracy in a rectangular quantum box then has lowest distinct energies , and in units , with multiplicities one, one and two. The third-level pair is exactly and .
For in a two-dimensional infinite square well, the lowest two states are and , both nondegenerate. The next energy is the smaller of and : every other candidate lies above at least one of these. Requiring equality gives , or . In units the lowest distinct energies are then , and , with degeneracies one, one and two. The third-level pair is exactly and .