The 2D and 3D Box and Degeneracy

Take a single one-dimensional particle-in-a-box and simply grow it. Add a second independent direction of confinement, then a third. Something remarkable happens: distinct, physically different standing-wave patterns can share exactly the same energy. This is degeneracy. It is not a mathematical curiosity bolted onto quantum mechanics. It is a direct fingerprint of geometric symmetry. A particle confined in a square or cubic box has more ways to arrange its quantum numbers into the same total energy. This is compared to a particle confined in a rectangular or brick-shaped box. The moment you stretch one side relative to the others, that degeneracy breaks. This matters because degeneracy is the single most important organizing concept. It connects particle-in-a-box toy models to real chemistry. The threefold degeneracy of pp orbitals, the fivefold degeneracy of dd orbitals, the near-degeneracies exploited in dye chemistry and quantum dots, and the symmetry-driven selection rules of spectroscopy all trace back to the same logic. That logic is developed here in its cleanest possible form. The 2D and 3D box is where a student first sees, with total algebraic transparency, why symmetry produces degeneracy. It also shows why breaking symmetry lifts it. No group theory is required, only counting integers. The big picture is deceptively simple. The Hamiltonian for a particle in a multidimensional box separates into independent one-dimensional pieces. Because of this, the full wavefunction factors into a product of 1D box wavefunctions. The total energy is simply their sum. This is the separation-of-variables trick in its most transparent chemistry-facing form. It recurs throughout the subject wherever a Hamiltonian splits into non-interacting pieces. Examples include translational/rotational/vibrational energy separations, orbital approximations in the Hartree–Fock sense, and beyond. This article builds the 2D and 3D box from the ground up. It covers the separation of the Schrödinger equation, and the product wavefunctions and additive energies that result. It also covers the precise combinatorial condition for degeneracy. Worked examples show exactly which quantum-number combinations collide at the same energy, and which do not. It closes with the real chemical payoff. It shows how "accidental" degeneracies in symmetric boxes become organizing principles. These principles govern orbital degeneracy, quantum dot engineering, and spectroscopic selection rules.

Key takeaways
  • A particle confined in a rectangular 2D or brick-shaped 3D box has a Hamiltonian that separates exactly into independent 1D pieces along each axis.
  • The full wavefunction is a product of 1D particle-in-a-box wavefunctions, one per dimension, each with its own independent quantum number.
  • The total energy is the sum of the corresponding 1D energies — additivity, not multiplication.
  • Degeneracy occurs when different (nx,ny)(n_x, n_y) or (nx,ny,nz)(n_x,n_y,n_z) combinations give the same total energy; this happens systematically when box edge lengths are commensurate (e.g., equal, in a square or cube).
  • Stretching or squeezing one box dimension relative to the others breaks the commensurability and lifts (splits) the degeneracy — a direct mechanical analogue of symmetry-breaking in real molecules and crystals.
  • Key idea: separability turns a multidimensional quantum problem into independent 1D problems whose wavefunctions multiply and whose energies add, and geometric symmetry of the box is what makes several different combinations of quantum numbers land on the identical energy.

Where this lives today

The 2D and 3D box is not merely a classroom toy; it is the qualitative skeleton behind quantum-dot engineering, where semiconductor nanocrystals of tunable, roughly cuboidal or spherical shape are synthesized specifically because confining an electron and hole in a nanometer-scale box shifts the absorption and emission energies in a controllable way — the additive-energy, quantum-number-squared scaling derived here is the zeroth-order explanation for why smaller dots absorb bluer light. Anisotropic "nanorod" quantum dots are engineered precisely to break the cubic degeneracy pattern and produce polarized emission, a direct real-world echo of the tetragonal-splitting calculation above. In molecular spectroscopy, the free-electron model treats linear conjugated polyenes and cyanine dyes as effectively 1D or quasi-2D boxes; the additive, product-wavefunction structure explored here is the conceptual seed for understanding why extending conjugation redshifts absorption, and why breaking planarity or symmetry (twisting a dye, substituent effects) removes accidental near-degeneracies and reorganizes absorption bands. In atomic and molecular orbital theory, the same symmetry-degeneracy logic — states related by a symmetry operation of the potential must be degenerate — is the deep reason px,py,pzp_x,p_y,p_z orbitals are threefold degenerate in a free atom (spherical symmetry) and the reason that degeneracy splits in crystal-field or ligand-field environments of lower symmetry, exactly analogous to the cubic-to-tetragonal box splitting worked out above. In solid-state physics, the 3D box (with periodic rather than hard-wall boundaries) underlies the free-electron model of metals and the counting of density-of-states via kk-space integer triples, a direct descendant of the nx2+ny2+nz2n_x^2+n_y^2+n_z^2 counting problem solved here. This connects forward to the treatment of Particle on a Ring, where a different symmetry (rotational) produces a different, and in some ways richer, degeneracy structure, and to the broader machinery of Separation of Variables in Multidimensional Problems, of which the 2D/3D box is the cleanest possible instance.

Ask the tutor: How would the degeneracy pattern change if the box had periodic boundary conditions instead of hard infinite walls?

The physical picture — thorough prose

Picture an electron trapped in a rectangular quantum dot of dimensions Lx×LyL_x \times L_y, with potential energy zero inside the rectangle and infinite at its walls. The time-independent Schrödinger equation is

−ℏ22m(∂2ψ∂x2+∂2ψ∂y2)=Eψ-\frac{\hbar^2}{2m}\left(\frac{\partial^2\psi}{\partial x^2} + \frac{\partial^2\psi}{\partial y^2}\right) = E\psi

for 0<x<Lx0 < x < L_x, 0<y<Ly0 < y < L_y, with ψ=0\psi = 0 on the boundary and everywhere outside. There is no term in the Hamiltonian that couples xx-motion to yy-motion — no xyxy cross term, no coupling potential — so the kinetic energy operator is simply the sum of an xx-piece and a yy-piece. This structural fact, that the Hamiltonian is a sum of commuting operators acting on separate variables, is what makes the equation separable and is the single mechanical reason the whole apparatus below works. It is the same logic that will later organize the treatment of any multidimensional separable Hamiltonian. Because the box has straight, mutually perpendicular walls, the boundary conditions themselves separate: ψ(0,y)=ψ(Lx,y)=0\psi(0,y)=\psi(L_x,y)=0 for all yy, and ψ(x,0)=ψ(x,Ly)=0\psi(x,0)=\psi(x,L_y)=0 for all xx. A product ansatz ψ(x,y)=X(x)Y(y)\psi(x,y) = X(x)Y(y) turns the partial differential equation into two ordinary 1D box equations, each identical in form to the equation you already know from the 1D box, just with its own box length and its own quantum number. The result is that every stationary state of the rectangular box is labeled by an independent pair of positive integers (nx,ny)(n_x, n_y), and its energy is literally the arithmetic sum of two 1D box energies. The chemically loaded question is what happens when Lx=LyL_x = L_y — a square box, or in three dimensions a cube. Now the two 1D problems are identical except for which axis they run along, so swapping nx↔nyn_x \leftrightarrow n_y leaves the energy completely unchanged while producing a genuinely different wavefunction (different nodal pattern, different orientation of the standing wave). This exchange symmetry is the geometric origin of degeneracy: the box's square (or cubic) shape possesses a symmetry — a 90° rotation maps the box onto itself — and states related by that symmetry operation are forced to share an energy. Break the symmetry (make Lx≠LyL_x \ne L_y) and the states are no longer related by any symmetry of the container, so nothing forces their energies to coincide; the degeneracy splits into two distinct levels.

Figure
Product wavefunction for the (2,1) state of a 2D box: nodal lines from each factor
nodal line: X(x)=0 at x=L_x/2 y x 0 L_x 0 L_y n_x = 2 (one internal node) n_y = 1 (no internal node) Y(y): single half-wave ψ(x,y) = X(x)·Y(y): product of two independent standing waves

The picture to hold onto: the xx-part of the wavefunction has nx−1n_x - 1 internal nodal lines running parallel to the yy-axis, and the yy-part has ny−1n_y - 1 nodal lines running parallel to the xx-axis. The full 2D nodal pattern is a grid — literally the superposition of the two 1D nodal patterns — because the wavefunction is a product. This is a direct, visual consequence of separability: nodes don't get more complicated in higher dimensions, they simply accumulate additively from each independent factor.

Figure
Degeneracy in a square box: (2,1) and (1,2) are different patterns, same energy
Square box, L_x = L_y = L: states (n_x,n_y)=(2,1) and (1,2) (n_x,n_y) = (2,1) E = (4+1)h²/8mL² (n_x,n_y) = (1,2) E = (1+4)h²/8mL² =

That equals sign in the figure is the entire point: two visibly different standing-wave patterns, one with its nodal line vertical and one with its nodal line horizontal, produce numerically identical energies solely because the box is square. Stretch the box even slightly in one direction and that equals sign becomes a "≠\ne" — the degeneracy is not fundamental, it is contingent on the box's shape, and this contingency is exactly what makes it a useful teaching model for degeneracy in atoms and molecules, where px,py,pzp_x, p_y, p_z orbitals are degenerate only because free atoms are spherically symmetric.

Figure
3D cube: sixfold permutation degeneracy of quantum numbers (1,1,2) and permutations
Cubic box: permutations of (1,1,2) all share one energy (n_x,n_y,n_z) = (1,1,2) (n_x,n_y,n_z) = (1,2,1) (n_x,n_y,n_z) = (2,1,1) E = 6h²/8mL² degeneracy g = 3 Each has n_x²+n_y²+n_z² = 1+1+4 = 6, identical sum, distinct labels. In a non-cubic box these three states would split into up to three energies.

The core ideas — the governing equations/relationships

The 2D rectangular box Hamiltonian separates as

H^=−ℏ22m∂2∂x2−ℏ22m∂2∂y2=H^x+H^y\hat{H} = -\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2} - \frac{\hbar^2}{2m}\frac{\partial^2}{\partial y^2} = \hat{H}_x + \hat{H}_y

where: H^x\hat{H}_x and H^y\hat{H}_y are each identical in form to the 1D particle-in-a-box Hamiltonian, but act only on xx or only on yy respectively, and commute with each other since they involve independent variables.

Reading: because [H^x,H^y]=0[\hat H_x, \hat H_y] = 0 and each acts on a different variable, they can be diagonalized simultaneously; their common eigenfunctions are products, and eigenvalues add. The normalized stationary states of the 2D rectangular box are

ψnx,ny(x,y)=2Lxsin⁡ ⁣(nxπxLx)2Lysin⁡ ⁣(nyπyLy),nx,ny=1,2,3,…\psi_{n_x,n_y}(x,y) = \sqrt{\frac{2}{L_x}}\sin\!\left(\frac{n_x\pi x}{L_x}\right)\sqrt{\frac{2}{L_y}}\sin\!\left(\frac{n_y\pi y}{L_y}\right), \qquad n_x, n_y = 1,2,3,\dots

where: nxn_x and nyn_y are independent positive integer quantum numbers, one per confined direction, and each square-root prefactor is the normalization constant for a 1D box of the corresponding length.

Reading: the wavefunction is literally the product of two ordinary 1D box wavefunctions; nothing new is invented, the same function you already know is simply reused twice with different labels. The corresponding energy is

Enx,ny=h28m(nx2Lx2+ny2Ly2)E_{n_x,n_y} = \frac{h^2}{8m}\left(\frac{n_x^2}{L_x^2} + \frac{n_y^2}{L_y^2}\right)

where: hh is Planck's constant, mm the particle mass, LxL_x and LyL_y the box edge lengths, and the two terms are exactly the 1D box energies for quantum numbers nxn_x and nyn_y in boxes of length LxL_x and LyL_y.

Reading: the total energy is a sum, not a product — this additivity is the direct energetic consequence of the separable, additive Hamiltonian above. Extending to three dimensions with edges Lx,Ly,LzL_x, L_y, L_z:

ψnx,ny,nz(x,y,z)=8LxLyLz sin⁡ ⁣(nxπxLx)sin⁡ ⁣(nyπyLy)sin⁡ ⁣(nzπzLz)\psi_{n_x,n_y,n_z}(x,y,z) = \sqrt{\frac{8}{L_xL_yL_z}}\,\sin\!\left(\frac{n_x\pi x}{L_x}\right)\sin\!\left(\frac{n_y\pi y}{L_y}\right)\sin\!\left(\frac{n_z\pi z}{L_z}\right)
Enx,ny,nz=h28m(nx2Lx2+ny2Ly2+nz2Lz2)E_{n_x,n_y,n_z} = \frac{h^2}{8m}\left(\frac{n_x^2}{L_x^2} + \frac{n_y^2}{L_y^2} + \frac{n_z^2}{L_z^2}\right)

where: nx,ny,nz=1,2,3,…n_x,n_y,n_z = 1,2,3,\dots independently, and the three-term sum is three independent 1D box energies added together.

Reading: three independent standing waves, three independent quantum numbers, one additive total energy — the pattern from 2D simply repeats. For the special case of a cube, Lx=Ly=Lz=LL_x=L_y=L_z=L, this collapses to

Enx,ny,nz=h28mL2(nx2+ny2+nz2)E_{n_x,n_y,n_z} = \frac{h^2}{8mL^2}\left(n_x^2+n_y^2+n_z^2\right)

where: the energy now depends only on the sum of squares of the three quantum numbers, not on which axis carries which value.

Reading: this single fact — that energy depends on nx2+ny2+nz2n_x^2+n_y^2+n_z^2 and not on the individual assignment — is the entire mathematical origin of degeneracy in the cubic box; any permutation of a fixed triple of integers gives the identical energy. The degeneracy gg of a level is the number of distinct quantum-number combinations giving that energy:

g(E)=#{(nx,ny,nz)∈Z>03:nx2+ny2+nz2=const}g(E) = \#\{(n_x,n_y,n_z)\in\mathbb{Z}_{>0}^3 : n_x^2+n_y^2+n_z^2 = \text{const}\}

where: the count runs over all positive-integer triples whose squares sum to the fixed value corresponding to energy EE.

Reading: degeneracy is fundamentally a number-theory counting question once the box is cubic — how many ways can a given integer be written as an ordered sum of three positive squares.

Derivation ASeparation of variables for the 2D infinite box

Goal. Show rigorously that the 2D Schrödinger equation for a rectangular infinite well reduces to two independent 1D equations, and that the product ansatz is not just a guess but the unique consequence of separability.

Step 1 — Write the full equation. Inside the box, V(x,y)=0V(x,y)=0, so

−ℏ22m(∂2ψ∂x2+∂2ψ∂y2)=Eψ.-\frac{\hbar^2}{2m}\left(\frac{\partial^2\psi}{\partial x^2}+\frac{\partial^2\psi}{\partial y^2}\right) = E\psi.

Outside the box or on the walls, V→∞V\to\infty forces ψ=0\psi = 0 there, giving boundary conditions ψ(0,y)=ψ(Lx,y)=ψ(x,0)=ψ(x,Ly)=0\psi(0,y)=\psi(L_x,y)=\psi(x,0)=\psi(x,L_y)=0.

Step 2 — Propose the product ansatz. Let ψ(x,y)=X(x)Y(y)\psi(x,y) = X(x)Y(y). Substituting,

−ℏ22m(Y(y)X′′(x)+X(x)Y′′(y))=E X(x)Y(y).-\frac{\hbar^2}{2m}\Big(Y(y)X''(x) + X(x)Y''(y)\Big) = E\,X(x)Y(y).

Divide every term by X(x)Y(y)X(x)Y(y) (valid wherever ψ≠0\psi\ne 0):

−ℏ22mX′′(x)X(x)−ℏ22mY′′(y)Y(y)=E.-\frac{\hbar^2}{2m}\frac{X''(x)}{X(x)} - \frac{\hbar^2}{2m}\frac{Y''(y)}{Y(y)} = E.

Step 3 — Separate the variables. The first term depends only on xx, the second only on yy, and their sum is the constant EE. Rearranging,

−ℏ22mX′′(x)X(x)=E−(−ℏ22mY′′(y)Y(y)).-\frac{\hbar^2}{2m}\frac{X''(x)}{X(x)} = E - \left(-\frac{\hbar^2}{2m}\frac{Y''(y)}{Y(y)}\right).

The left side is a function of xx alone; the right side, after regrouping, is a function of yy alone plus the constant EE. A function of xx alone can equal a function of yy alone for all x,yx,y only if both equal the same constant. Call that constant ExE_x, and define Ey≡E−ExE_y \equiv E-E_x:

−ℏ22mX′′(x)=ExX(x),−ℏ22mY′′(y)=EyY(y).-\frac{\hbar^2}{2m}X''(x) = E_x X(x), \qquad -\frac{\hbar^2}{2m}Y''(y) = E_y Y(y).

Step 4 — Recognize two independent 1D box problems. Each equation, together with its own boundary conditions (X(0)=X(Lx)=0X(0)=X(L_x)=0; Y(0)=Y(Ly)=0Y(0)=Y(L_y)=0), is precisely the 1D infinite box eigenvalue problem. Its normalized solutions are known:

Xnx(x)=2Lxsin⁡ ⁣(nxπxLx),Ex=nx2h28mLx2,X_{n_x}(x) = \sqrt{\frac{2}{L_x}}\sin\!\left(\frac{n_x\pi x}{L_x}\right), \qquad E_x = \frac{n_x^2h^2}{8mL_x^2},

and analogously for Yny(y)Y_{n_y}(y) with LyL_y and nyn_y.

Step 5 — Reassemble. Since E=Ex+EyE = E_x + E_y, and ψ=Xnx(x)Yny(y)\psi = X_{n_x}(x)Y_{n_y}(y), we obtain exactly the product wavefunction and additive-energy formulas stated above. Crucially, nxn_x and nyn_y range over all positive integers independently — the separation constant ExE_x was arbitrary in Step 3 until quantized by the xx-boundary conditions, and likewise for EyE_y, so there is no hidden coupling between them.

Go deeper · Derivation B · 2 minCounting degeneracy in the cubic box via nx2+ny2+nz2n_x^2+n_y^2+n_z^2
Derivation BCounting degeneracy in the cubic box via nx2+ny2+nz2n_x^2+n_y^2+n_z^2

Goal. Derive the degeneracy of a given energy level in a cubic box directly from the additive energy formula, and show explicitly why a non-cubic box generically has no degeneracy at all.

Step 1 — State the cubic energy formula. With Lx=Ly=Lz=LL_x=L_y=L_z=L,

Enx,ny,nz=h28mL2(nx2+ny2+nz2)≡h28mL2 N,N≡nx2+ny2+nz2.E_{n_x,n_y,n_z} = \frac{h^2}{8mL^2}\big(n_x^2+n_y^2+n_z^2\big) \equiv \frac{h^2}{8mL^2}\,N, \qquad N \equiv n_x^2+n_y^2+n_z^2.

The energy is a function of the single integer NN only. It cannot distinguish which axis carries which quantum number.

Step 2 — Define degeneracy formally. Two states (nx,ny,nz)(n_x,n_y,n_z) and (nx′,ny′,nz′)(n_x',n_y',n_z') are degenerate if and only if N=N′N=N', i.e., if the two ordered triples of positive integers have identical sums of squares. The degeneracy of the level with value NN is

g(N)=#{(nx,ny,nz)∈Z>03:nx2+ny2+nz2=N}.g(N) = \#\{(n_x,n_y,n_z)\in\mathbb{Z}_{>0}^3 : n_x^2+n_y^2+n_z^2=N\}.

Step 3 — Show permutations always work. If (a,b,c)(a,b,c) is any solution with a,b,ca,b,c positive integers, then every permutation of (a,b,c)(a,b,c) — up to 3!=63! = 6 of them if a,b,ca,b,c are all different, 3 if exactly two are equal, 1 if all three are equal — is also a solution, because addition is commutative: a2+b2+c2a^2+b^2+c^2 does not care about ordering. This is the symmetry-guaranteed part of the degeneracy, present in every cubic box regardless of NN.

Step 4 — Note "accidental" extra degeneracy. Beyond permutations, some values of NN admit inequivalent triples (not related by permutation) that happen to sum to the same NN purely by number-theoretic coincidence — for example N=27N=27 is reached both by (1,1,5)(1,1,5) (since 1+1+25=271+1+25=27) and by (3,3,3)(3,3,3) (since 9+9+9=279+9+9=27), and also by (1,5,1)(1,5,1)-type permutations of the first. These extra coincidences are not guaranteed by the cube's symmetry; they are arithmetic accidents layered on top of the symmetry-guaranteed permutation degeneracy.

Step 5 — Show a generic non-cubic box has no degeneracy. If Lx,Ly,LzL_x, L_y, L_z are incommensurate (their ratios are irrational, or even just "generic" rational numbers with no special relationship), then

Enx,ny,nz=h28m(nx2Lx2+ny2Ly2+nz2Lz2)E_{n_x,n_y,n_z} = \frac{h^2}{8m}\left(\frac{n_x^2}{L_x^2}+\frac{n_y^2}{L_y^2}+\frac{n_z^2}{L_z^2}\right)

is, for almost every choice of edge lengths, a one-to-one function of the triple (nx,ny,nz)(n_x,n_y,n_z): permuting the quantum numbers while keeping the same box changes which term gets divided by which L2L^2, and since Lx≠Ly≠LzL_x\ne L_y\ne L_z these permuted sums are generically different real numbers. No symmetry operation maps the box onto itself except the identity (a brick has no rotational symmetry mixing x,y,zx,y,z unless two or more edges are equal), so nothing forces any two distinct triples to share an energy. Degeneracy in a box is therefore not an automatic feature of dimensionality — it is a direct, removable consequence of the box's geometric symmetry.

Worked examples

Example 1 — Foundational: energies and degeneracy in a square 2D box. An electron (m=9.109×10−31 kgm = 9.109\times10^{-31}\ \text{kg}) is confined to a square 2D box with Lx=Ly=L=2.00 A˚=2.00×10−10 mL_x = L_y = L = 2.00\ \text{Å} = 2.00\times10^{-10}\ \text{m}. Find the two lowest distinct energies and their degeneracies. The 2D energy formula for a square box is

Enx,ny=h28mL2(nx2+ny2).E_{n_x,n_y} = \frac{h^2}{8mL^2}\left(n_x^2+n_y^2\right).

First compute the prefactor:

h28mL2=(6.626×10−34)28(9.109×10−31)(2.00×10−10)2 J.\frac{h^2}{8mL^2} = \frac{(6.626\times10^{-34})^2}{8(9.109\times10^{-31})(2.00\times10^{-10})^2}\ \text{J}.

Numerator: (6.626×10−34)2=4.390×10−67 J2s2(6.626\times10^{-34})^2 = 4.390\times10^{-67}\ \text{J}^2\text{s}^2. Denominator: 8×9.109×10−31×(2.00×10−10)2=8×9.109×10−31×4.00×10−20=2.915×10−49 kg m28 \times 9.109\times10^{-31} \times (2.00\times10^{-10})^2 = 8\times9.109\times10^{-31}\times4.00\times10^{-20} = 2.915\times10^{-49}\ \text{kg m}^2.

h28mL2=4.390×10−672.915×10−49=1.506×10−18 J.\frac{h^2}{8mL^2} = \frac{4.390\times10^{-67}}{2.915\times10^{-49}} = 1.506\times10^{-18}\ \text{J}.

The ground state is (nx,ny)=(1,1)(n_x,n_y)=(1,1), non-degenerate (the only way to write N=2N=2 as a sum of two positive squares, since order doesn't matter when both are equal):

E1,1=1.506×10−18 J×(1+1)=3.012×10−18 J=18.80 eV.E_{1,1} = 1.506\times10^{-18}\ \text{J}\times(1+1) = 3.012\times10^{-18}\ \text{J} = 18.80\ \text{eV}.

The first excited level has N=nx2+ny2=5N = n_x^2+n_y^2 = 5, reached by (nx,ny)=(1,2)(n_x,n_y)=(1,2) and (2,1)(2,1) — two distinct wavefunctions (nodal line vertical vs. horizontal), same energy:

E1,2=E2,1=1.506×10−18×5=7.530×10−18 J=47.01 eV,g=2.E_{1,2}=E_{2,1} = 1.506\times10^{-18}\times5 = 7.530\times10^{-18}\ \text{J} = 47.01\ \text{eV},\qquad g=2.

Limiting-case check: if instead Lx≠LyL_x \ne L_y (say Ly=1.01LxL_y = 1.01 L_x, a 1% stretch), then E1,2≠E2,1E_{1,2} \ne E_{2,1} because the ny2n_y^2 term is divided by a different Ly2L_y^2 than the nx2n_x^2 term is by Lx2L_x^2; the twofold degeneracy above splits into two distinct energies separated by roughly 2% of the level spacing, confirming that the degeneracy found is contingent on the exact equality Lx=LyL_x=L_y and vanishes continuously as that equality is broken.

Example 2 — Applied: a rectangular quantum dot model for a conjugated dye. Model an elongated organic chromophore as a 2D electron confined to a rectangle with Lx=8.00L_x = 8.00 Å (along the conjugated backbone) and Ly=3.00L_y = 3.00 Å (across it), representing the effective delocalization dimensions of a linear polyene-like dye. Compare the lowest two energy levels and determine whether any accidental degeneracy occurs for small quantum numbers. Using the same prefactor structure but separately for each axis:

h28mLx2=4.390×10−678(9.109×10−31)(8.00×10−10)2.\frac{h^2}{8mL_x^2} = \frac{4.390\times10^{-67}}{8(9.109\times10^{-31})(8.00\times10^{-10})^2}.

Denominator: 8×9.109×10−31×64.0×10−20=4.664×10−48 kg m28\times9.109\times10^{-31}\times64.0\times10^{-20} = 4.664\times10^{-48}\ \text{kg m}^2.

h28mLx2=4.390×10−674.664×10−48=9.412×10−20 J.\frac{h^2}{8mL_x^2} = \frac{4.390\times10^{-67}}{4.664\times10^{-48}} = 9.412\times10^{-20}\ \text{J}.

For the yy-direction:

h28mLy2=4.390×10−678(9.109×10−31)(3.00×10−10)2=4.390×10−676.559×10−49=6.694×10−19 J.\frac{h^2}{8mL_y^2} = \frac{4.390\times10^{-67}}{8(9.109\times10^{-31})(3.00\times10^{-10})^2} = \frac{4.390\times10^{-67}}{6.559\times10^{-49}} = 6.694\times10^{-19}\ \text{J}.

The general energy is

Enx,ny=9.412×10−20 nx2+6.694×10−19 ny2  (J).E_{n_x,n_y} = 9.412\times10^{-20}\,n_x^2 + 6.694\times10^{-19}\,n_y^2\ \ \text{(J)}.

Ground state (1,1)(1,1):

E1,1=9.412×10−20+6.694×10−19=7.635×10−19 J=4.766 eV.E_{1,1} = 9.412\times10^{-20} + 6.694\times10^{-19} = 7.635\times10^{-19}\ \text{J} = 4.766\ \text{eV}.

First excited state — since the box is strongly non-square, increasing nxn_x costs far less energy than increasing nyn_y (because Lx≫LyL_x \gg L_y makes the xx-direction "soft"), so the next level is (2,1)(2,1):

E2,1=9.412×10−20(4)+6.694×10−19(1)=3.765×10−19+6.694×10−19=1.046×10−18 J=6.529 eV.E_{2,1} = 9.412\times10^{-20}(4) + 6.694\times10^{-19}(1) = 3.765\times10^{-19}+6.694\times10^{-19} = 1.046\times10^{-18}\ \text{J} = 6.529\ \text{eV}.

Compare to (1,2)(1,2), which would require exciting the "hard" yy-direction:

E1,2=9.412×10−20(1)+6.694×10−19(4)=9.412×10−20+2.678×10−18=2.772×10−18 J=17.30 eV.E_{1,2} = 9.412\times10^{-20}(1) + 6.694\times10^{-19}(4) = 9.412\times10^{-20}+2.678\times10^{-18} = 2.772\times10^{-18}\ \text{J} = 17.30\ \text{eV}.

These three levels (4.7664.766, 6.5296.529, 17.3017.30 eV) are all numerically distinct — no accidental degeneracy appears for small quantum numbers in this rectangle, precisely because Lx/Ly=8.00/3.00=2.667L_x/L_y = 8.00/3.00 = 2.667 is not a ratio that makes any pair of (nx2,ny2)(n_x^2, n_y^2) combinations coincide. This models a real physical trend: elongating a chromophore lowers the HOMO–LUMO-type gap along the long axis dramatically (compare 4.766→6.5294.766\to6.529 eV, a modest shift) while transitions requiring excitation across the short axis remain far higher in energy (17.30 eV) — consistent with why extending conjugation length is a standard strategy for red-shifting dye absorption, since the low-lying transitions are dominated by the soft, long direction.

Limiting-case check: as Ly→LxL_y \to L_x (dot becomes square), the coefficients 9.412×10−209.412\times10^{-20} and 6.694×10−196.694\times10^{-19} converge to the same value, and E2,1→E1,2E_{2,1} \to E_{1,2} — recovering exactly the degenerate pair found in Example 1, confirming the formula continuously interpolates between the non-degenerate rectangular case and the degenerate square case.

Example 3 — Exam/competition level: degeneracy and its splitting in a 3D box under anisotropic distortion. A particle is confined in a 3D box. In the perfectly cubic case (Lx=Ly=Lz=LL_x=L_y=L_z=L), find the degeneracy of the level with N=nx2+ny2+nz2=9N = n_x^2+n_y^2+n_z^2 = 9, list every contributing state, and then determine, to first order, how that degeneracy splits if the box is compressed slightly along zz so that Lz=L(1−ε)L_z = L(1-\varepsilon) with ε=0.02\varepsilon = 0.02, while Lx=Ly=LL_x=L_y=L remain fixed.

Part A — cubic degeneracy at N=9. We need all ordered triples of positive integers with nx2+ny2+nz2=9n_x^2+n_y^2+n_z^2=9. Systematically:

  • (1,2,2)(1,2,2): 1+4+4=91+4+4=9 ✓ — and its permutations (2,1,2)(2,1,2), (2,2,1)(2,2,1): three states.
  • (3,...)(3,...): 9+ny2+nz2=99 + n_y^2+n_z^2 = 9 requires ny=nz=0n_y=n_z=0, not allowed (quantum numbers start at 1). So no contribution from any triple containing a 3 together with two more positive integers ≥1 unless the other two vanish, which is forbidden.
  • Check (1,1,7)(1,1,\sqrt7): not an integer, discard.
  • No other combinations of three positive squares reach 9 besides permutations of (1,2,2)(1,2,2).

So g(N=9)=3g(N=9) = 3, contributed entirely by permutations of (1,2,2)(1,2,2): states (1,2,2)(1,2,2), (2,1,2)(2,1,2), (2,2,1)(2,2,1), all with

E=h28mL2(9).E = \frac{h^2}{8mL^2}(9).

Part B — splitting under compression. With Lx=Ly=LL_x=L_y=L and Lz=L(1−ε)L_z = L(1-\varepsilon), the energy becomes

Enx,ny,nz=h28mL2(nx2+ny2+nz2(1−ε)2).E_{n_x,n_y,n_z} = \frac{h^2}{8mL^2}\left(n_x^2+n_y^2+\frac{n_z^2}{(1-\varepsilon)^2}\right).

To first order in small ε\varepsilon, (1−ε)−2≈1+2ε(1-\varepsilon)^{-2} \approx 1+2\varepsilon, so

Enx,ny,nz≈h28mL2(nx2+ny2+nz2+2ε nz2)=h28mL2(9+2ε nz2).E_{n_x,n_y,n_z} \approx \frac{h^2}{8mL^2}\left(n_x^2+n_y^2+n_z^2 + 2\varepsilon\, n_z^2\right) = \frac{h^2}{8mL^2}\left(9 + 2\varepsilon\, n_z^2\right).

Now evaluate the correction term 2εnz22\varepsilon n_z^2 for each of the three formerly degenerate states, using ε=0.02\varepsilon = 0.02:

  • (nx,ny,nz)=(1,2,2)(n_x,n_y,n_z) = (1,2,2): nz=2n_z = 2, correction =2(0.02)(4)=0.160= 2(0.02)(4) = 0.160.
  • (nx,ny,nz)=(2,1,2)(n_x,n_y,n_z) = (2,1,2): nz=2n_z = 2, correction =2(0.02)(4)=0.160= 2(0.02)(4) = 0.160.
  • (nx,ny,nz)=(2,2,1)(n_x,n_y,n_z) = (2,2,1): nz=1n_z = 1, correction =2(0.02)(1)=0.040= 2(0.02)(1) = 0.040.

So compression along zz splits the threefold-degenerate cubic level into two levels: a doubly-degenerate level at E=h28mL2(9.160)E = \frac{h^2}{8mL^2}(9.160) (states with nz=2n_z=2, i.e., (1,2,2)(1,2,2) and (2,1,2)(2,1,2), which remain degenerate with each other because they still differ only by swapping x↔yx\leftrightarrow y, and Lx=LyL_x=L_y is untouched), and a non-degenerate level at E=h28mL2(9.040)E = \frac{h^2}{8mL^2}(9.040) (the state (2,2,1)(2,2,1), which is pushed to lower relative energy because compressing zz makes it energetically cheap to put the larger quantum number along the now-shorter, "stiffer" axis only if nzn_z is small — here nz=1n_z=1 costs the least extra confinement energy). This is exactly the group-theoretic pattern found in real triply-degenerate levels (e.g., T2gT_{2g} or t2ut_{2u} orbital sets) under a tetragonal (uniaxial) distortion: a symmetry lowering from cubic (OhO_h-like) to tetragonal splits a threefold degeneracy into a 1+21+2 pattern, never into three fully separate levels from a single first-order uniaxial distortion, because the xx–yy symmetry (Lx=LyL_x=L_y) is preserved.

Limiting-case check: setting ε=0\varepsilon = 0 collapses both split energies back to 9.0009.000 in units of h2/8mL2h^2/8mL^2, recovering the exact threefold-degenerate cubic result of Part A, confirming the perturbative splitting formula reduces correctly to the unperturbed case.

Limiting cases, scope & common traps

CaseWhat happensWhy
Lx=LyL_x = L_y (2D square)Every state with nx≠nyn_x \ne n_y is at least doubly degenerateSwapping nx↔nyn_x\leftrightarrow n_y leaves nx2+ny2n_x^2+n_y^2 unchanged
Lx=Ly=LzL_x=L_y=L_z (3D cube)Degeneracy from permutations, up to 6-fold, occasionally more (accidental)Energy depends only on nx2+ny2+nz2n_x^2+n_y^2+n_z^2
Lx,LyL_x, L_y generic/incommensurateNo degeneracy except rare numerical coincidencesNo symmetry operation maps box to itself nontrivially
One axis L→∞L\to\infty (2D limit of 3D box)3D box reduces to a continuum in that direction; discrete nn for that axis effectively disappears from the low-energy spectrumThe corresponding 1D energy term n2h2/8mL2→0n^2h^2/8mL^2\to0 for all finite nn, so that quantum number stops mattering energetically
nx=ny=nz=1n_x=n_y=n_z=1 alwaysGround state is always non-degenerateOnly one way to have all quantum numbers equal to the smallest allowed integer
Two edges equal, one different (tetragonal box)Partial degeneracy: states related by swapping the two equal axes remain degenerate; the third axis splits independentlyOnly a subgroup of the full permutation symmetry survives

The chemist behind it

The particle-in-a-box model, in one, two, and three dimensions, is a direct application of the wave mechanics developed by Erwin Schrödinger in 1926, but its systematic chemical use — as a model for π-electron delocalization, quantum confinement, and orbital degeneracy — was popularized through mid-20th-century quantum chemistry pedagogy, most influentially in the treatments by Linus Pauling and E. Bright Wilson, and later canonized in the textbooks of Ira Levine and Donald McQuarrie that generations of chemistry students have used to connect this exactly solvable toy model to real molecular orbital theory.

Origins · 1 minErwin Schrödinger and how this was discovered
ES
Erwin Schrödinger
1887–1961 · Vienna and Zurich, the birth of wave mechanics, 1925–1926

Schrödinger developed the wave equation that bears his name while working out Louis de Broglie's matter-wave hypothesis into a full dynamical theory, publishing the equation and its application to the hydrogen atom in a rapid sequence of papers in 1926. The particle-in-a-box, in any number of dimensions, is one of the very first exactly solvable applications of that equation, and its separability into a product of one-dimensional problems is the same technique Schrödinger used to solve the hydrogen atom by separating radial and angular variables. He shared the 1933 Nobel Prize in Physics with Paul Dirac for the discovery of new productive forms of atomic theory.

History
- 1925 — Werner Heisenberg formulates matrix mechanics, the first complete quantum theory, developed independently of wave mechanics.
- 1926 — Erwin Schrödinger publishes the wave equation and shows it is equivalent to Heisenberg's matrix mechanics; the particle-in-a-box becomes a standard exactly solvable example.
- 1927 — Separation of variables becomes the standard technique for multidimensional quantum problems, following its success on hydrogen and simple box models.
- 1930s–1950s — The particle-in-a-box (1D, 2D, 3D) is adopted as a pedagogical and semi-quantitative model for π-electron delocalization in conjugated organic molecules, notably in free-electron models of dyes.
- 1980s–present — The 2D and 3D box becomes the conceptual foundation for quantum-confinement engineering in nanocrystals and quantum dots, where box symmetry and its breaking directly control degeneracy and optical absorption/emission energies.
Why does the energy add instead of multiply when going from 1D to 3D?

Energy adds because the Hamiltonian itself is a sum of independent kinetic-energy operators, one per direction: H^=H^x+H^y+H^z\hat H = \hat H_x+\hat H_y+\hat H_z, with no cross terms coupling the directions. When you act with a sum of commuting operators on a product eigenfunction, each operator "sees" only its own factor and returns its own eigenvalue, and the total eigenvalue of the sum is the sum of those individual eigenvalues — this is a completely general feature of separable operators, not specific to boxes. If the potential contained a coupling term like V(x,y)=cxyV(x,y)=cxy, the Hamiltonian would no longer separate, the wavefunction would no longer factor into a simple product, and energies would not simply add.

Is the wavefunction product ψ(x,y) = X(x)Y(y) always the general solution, or just a special case?

For the infinite rectangular box, every stationary state actually is exactly a single product Xnx(x)Yny(y)X_{n_x}(x)Y_{n_y}(y) — this is the complete solution set, because the 1D eigenfunctions in each direction form a complete orthonormal basis, and separation of variables generates all of them. A general (non-stationary) wavefunction, however, is a superposition of many such products with different time-dependent phases, so an arbitrary wavefunction at a single instant need not itself be a single product; only the energy eigenstates (stationary states) are guaranteed to factor this simply.

Why does a square box have degenerate states but a generic rectangle does not?

Degeneracy requires a symmetry operation that maps the box (and hence the Hamiltonian) onto itself while permuting the quantum numbers. A square has a 90° rotation symmetry that swaps the roles of xx and yy; because Lx=LyL_x=L_y, this rotation maps the Hamiltonian to itself, and states related by that operation, like (nx,ny)=(2,1)(n_x,n_y)=(2,1) and (1,2)(1,2), are forced to share an energy. A generic rectangle with Lx≠LyL_x\ne L_y has no such symmetry — a 90° rotation would map the box onto a different-shaped rectangle, not itself — so nothing forces any two distinct quantum-number assignments to share an energy.

Does degeneracy in a box ever appear "by accident," without any obvious symmetry reason?

Yes. In a cubic box, beyond the guaranteed permutation degeneracy, purely numerical coincidences occur where two triples of squares that are not permutations of each other happen to sum to the same integer — for example N=27N=27 is reached both by permutations of (1,1,5)(1,1,5) and by (3,3,3)(3,3,3). These "accidental" degeneracies are a genuine feature of the number theory of sums of three squares and are not required by the geometric symmetry of the cube; they simply occur more often as NN grows, because there are more ways to partition larger integers into three squares.

How does this connect to real atomic orbital degeneracy, like p or d orbitals?

The mechanism is identical in spirit: a free atom's Coulomb potential is spherically symmetric, so any rotation of space leaves the Hamiltonian unchanged, and states connected by rotations (like px,py,pzp_x, p_y, p_z) must share the same energy — exactly as the square box's 90° rotation symmetry forces (2,1)(2,1) and (1,2)(1,2) to share an energy. Lowering the symmetry (placing the atom in a ligand field with, say, tetragonal rather than spherical symmetry) splits the threefold pp or fivefold dd degeneracy into fewer symmetry-related subsets, mirroring exactly the box compression calculation where a cubic threefold degeneracy splits into a 2+1 pattern under tetragonal distortion.

What happens to degeneracy as one box dimension becomes very large or very small?

If one edge, say LzL_z, becomes very large, the corresponding energy term nz2h2/8mLz2n_z^2h^2/8mL_z^2 shrinks toward zero for any finite nzn_z, so the low-lying spectrum is dominated entirely by nxn_x and nyn_y and effectively behaves like a 2D box; distinguishing different small nzn_z values costs negligible energy. Conversely, if LzL_z becomes very small, exciting nzn_z beyond 1 costs enormous energy, so at accessible energies the particle is frozen into nz=1n_z=1 and again behaves as an effectively 2D system in x,yx,y — this is precisely the physical basis for how real quantum wells confine carriers to an effectively lower-dimensional system by making one box dimension very small.

Can two energy levels of a rectangular box coincide even without L_x = L_y, just by choosing special ratios?

Yes, whenever Lx/LyL_x/L_y (or Lx2/Ly2L_x^2/L_y^2, more precisely) is chosen so that nx2/Lx2+ny2/Ly2n_x^2/L_x^2+n_y^2/L_y^2 equals nx′2/Lx2+ny′2/Ly2n_x'^2/L_x^2+n_y'^2/L_y^2 for some other pair, a degeneracy appears even though the box is not square. For instance, if Ly2=4Lx2L_y^2 = 4L_x^2 exactly, then (nx,ny)=(2,1)(n_x,n_y)=(2,1) and (nx,ny)=(1,2)(n_x,n_y)=(1,2)... a short check shows this requires care, but in general commensurate (rational-ratio) edge lengths can produce isolated coincidental degeneracies at special quantum numbers, even for rectangles that are not square. These are the direct generalization of the "accidental" cubic degeneracies discussed above, extended to two dimensions with unequal but commensurate edges.

Before this

Where this leads