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 orbitals, the fivefold degeneracy of 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.
- 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 or 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 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 -space integer triples, a direct descendant of the 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 , with potential energy zero inside the rectangle and infinite at its walls. The time-independent Schrödinger equation is
for , , with on the boundary and everywhere outside. There is no term in the Hamiltonian that couples -motion to -motion — no cross term, no coupling potential — so the kinetic energy operator is simply the sum of an -piece and a -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: for all , and for all . A product ansatz 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 , and its energy is literally the arithmetic sum of two 1D box energies. The chemically loaded question is what happens when — 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 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 ) 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.
The picture to hold onto: the -part of the wavefunction has internal nodal lines running parallel to the -axis, and the -part has nodal lines running parallel to the -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.
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 "" — 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 orbitals are degenerate only because free atoms are spherically symmetric.
The core ideas — the governing equations/relationships
The 2D rectangular box Hamiltonian separates as
where: and are each identical in form to the 1D particle-in-a-box Hamiltonian, but act only on or only on respectively, and commute with each other since they involve independent variables.
Reading: because 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
where: and 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
where: is Planck's constant, the particle mass, and the box edge lengths, and the two terms are exactly the 1D box energies for quantum numbers and in boxes of length and .
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 :
where: 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, , this collapses to
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 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 of a level is the number of distinct quantum-number combinations giving that energy:
where: the count runs over all positive-integer triples whose squares sum to the fixed value corresponding to energy .
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.
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, , so
Outside the box or on the walls, forces there, giving boundary conditions .
Step 2 — Propose the product ansatz. Let . Substituting,
Divide every term by (valid wherever ):
Step 3 — Separate the variables. The first term depends only on , the second only on , and their sum is the constant . Rearranging,
The left side is a function of alone; the right side, after regrouping, is a function of alone plus the constant . A function of alone can equal a function of alone for all only if both equal the same constant. Call that constant , and define :
Step 4 — Recognize two independent 1D box problems. Each equation, together with its own boundary conditions (; ), is precisely the 1D infinite box eigenvalue problem. Its normalized solutions are known:
and analogously for with and .
Step 5 — Reassemble. Since , and , we obtain exactly the product wavefunction and additive-energy formulas stated above. Crucially, and range over all positive integers independently — the separation constant was arbitrary in Step 3 until quantized by the -boundary conditions, and likewise for , so there is no hidden coupling between them.
Go deeper · Derivation B · 2 minCounting degeneracy in the cubic box via
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 ,
The energy is a function of the single integer only. It cannot distinguish which axis carries which quantum number.
Step 2 — Define degeneracy formally. Two states and are degenerate if and only if , i.e., if the two ordered triples of positive integers have identical sums of squares. The degeneracy of the level with value is
Step 3 — Show permutations always work. If is any solution with positive integers, then every permutation of — up to of them if are all different, 3 if exactly two are equal, 1 if all three are equal — is also a solution, because addition is commutative: does not care about ordering. This is the symmetry-guaranteed part of the degeneracy, present in every cubic box regardless of .
Step 4 — Note "accidental" extra degeneracy. Beyond permutations, some values of admit inequivalent triples (not related by permutation) that happen to sum to the same purely by number-theoretic coincidence — for example is reached both by (since ) and by (since ), and also by -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 are incommensurate (their ratios are irrational, or even just "generic" rational numbers with no special relationship), then
is, for almost every choice of edge lengths, a one-to-one function of the triple : permuting the quantum numbers while keeping the same box changes which term gets divided by which , and since 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 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 () is confined to a square 2D box with . Find the two lowest distinct energies and their degeneracies. The 2D energy formula for a square box is
First compute the prefactor:
Numerator: . Denominator: .
The ground state is , non-degenerate (the only way to write as a sum of two positive squares, since order doesn't matter when both are equal):
The first excited level has , reached by and — two distinct wavefunctions (nodal line vertical vs. horizontal), same energy:
Limiting-case check: if instead (say , a 1% stretch), then because the term is divided by a different than the term is by ; 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 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 Å (along the conjugated backbone) and Å (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:
Denominator: .
For the -direction:
The general energy is
Ground state :
First excited state — since the box is strongly non-square, increasing costs far less energy than increasing (because makes the -direction "soft"), so the next level is :
Compare to , which would require exciting the "hard" -direction:
These three levels (, , eV) are all numerically distinct — no accidental degeneracy appears for small quantum numbers in this rectangle, precisely because is not a ratio that makes any pair of combinations coincide. This models a real physical trend: elongating a chromophore lowers the HOMO–LUMO-type gap along the long axis dramatically (compare 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 (dot becomes square), the coefficients and converge to the same value, and — 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 (), find the degeneracy of the level with , list every contributing state, and then determine, to first order, how that degeneracy splits if the box is compressed slightly along so that with , while remain fixed.
Part A — cubic degeneracy at N=9. We need all ordered triples of positive integers with . Systematically:
- : ✓ — and its permutations , : three states.
- : requires , 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 : not an integer, discard.
- No other combinations of three positive squares reach 9 besides permutations of .
So , contributed entirely by permutations of : states , , , all with
Part B — splitting under compression. With and , the energy becomes
To first order in small , , so
Now evaluate the correction term for each of the three formerly degenerate states, using :
- : , correction .
- : , correction .
- : , correction .
So compression along splits the threefold-degenerate cubic level into two levels: a doubly-degenerate level at (states with , i.e., and , which remain degenerate with each other because they still differ only by swapping , and is untouched), and a non-degenerate level at (the state , which is pushed to lower relative energy because compressing makes it energetically cheap to put the larger quantum number along the now-shorter, "stiffer" axis only if is small — here costs the least extra confinement energy). This is exactly the group-theoretic pattern found in real triply-degenerate levels (e.g., or orbital sets) under a tetragonal (uniaxial) distortion: a symmetry lowering from cubic (-like) to tetragonal splits a threefold degeneracy into a pattern, never into three fully separate levels from a single first-order uniaxial distortion, because the – symmetry () is preserved.
Limiting-case check: setting collapses both split energies back to in units of , 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
| Case | What happens | Why |
|---|---|---|
| (2D square) | Every state with is at least doubly degenerate | Swapping leaves unchanged |
| (3D cube) | Degeneracy from permutations, up to 6-fold, occasionally more (accidental) | Energy depends only on |
| generic/incommensurate | No degeneracy except rare numerical coincidences | No symmetry operation maps box to itself nontrivially |
| One axis (2D limit of 3D box) | 3D box reduces to a continuum in that direction; discrete for that axis effectively disappears from the low-energy spectrum | The corresponding 1D energy term for all finite , so that quantum number stops mattering energetically |
| always | Ground state is always non-degenerate | Only 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 independently | Only 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
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.
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: , 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 , 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 — 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 and ; because , this rotation maps the Hamiltonian to itself, and states related by that operation, like and , are forced to share an energy. A generic rectangle with 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 is reached both by permutations of and by . 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 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 ) must share the same energy — exactly as the square box's 90° rotation symmetry forces and to share an energy. Lowering the symmetry (placing the atom in a ligand field with, say, tetragonal rather than spherical symmetry) splits the threefold or fivefold 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 , becomes very large, the corresponding energy term shrinks toward zero for any finite , so the low-lying spectrum is dominated entirely by and and effectively behaves like a 2D box; distinguishing different small values costs negligible energy. Conversely, if becomes very small, exciting beyond 1 costs enormous energy, so at accessible energies the particle is frozen into and again behaves as an effectively 2D system in — 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 (or , more precisely) is chosen so that equals for some other pair, a degeneracy appears even though the box is not square. For instance, if exactly, then and ... 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.