The Particle in a Three-Dimensional Box
The infinite square well is the first exactly solvable problem in quantum mechanics, but it lives in one dimension. Real systems — atoms in a trap, electrons in a metal, a gas in a container — occupy three. The particle in a three-dimensional box is the cleanest bridge: a particle confined to a rectangular region with impenetrable walls, free inside and forbidden outside. Because the walls act independently along each Cartesian axis, the Schrödinger equation separates into three one-dimensional problems, and the full solution is a product of the wavefunctions you already know. The payoff is not the energies alone but their pattern. In a cubic box the energy depends only on the sum , so many distinct states — distinguished by which direction carries the excitation — share one energy. This is degeneracy, and it is the central new phenomenon of the three-dimensional problem. Most of it is forced by the cube's symmetry: the three axes are interchangeable, so permuting the quantum numbers cannot change the energy. But not all of it. At the level the states and collide even though neither is a permutation of the other — a genuine accidental degeneracy that symmetry does not explain. This article builds the solution by separation of variables, counts the degeneracies from the ground state up, exhibits the accidental collision, and then lets the box grow large. In that limit the discrete levels crowd together into a smooth density of states that scales as the volume — the very quantity that, filled with electrons up to a Fermi surface, becomes the free-electron model of a metal. The three-dimensional box is a warm-up that already contains the seeds of solid-state physics.
- A particle in a rigid rectangular box separates: , each factor a one-dimensional infinite-well eigenfunction, and the energy is the sum of the three 1D energies.
- For a cubic box of side , with each ; the ground state has energy where .
- The energy depends only on , so states that permute the quantum numbers are degenerate: for the lowest levels.
- Most degeneracy comes from the cube's symmetry, but accidental degeneracy also occurs — the clearest case is and , both giving though one is not a permutation of the other.
- Letting the box grow, the level count below energy scales as the volume, giving a density of states — the entry point to the free-electron model of metals.
- Key idea: confinement in each Cartesian direction is independent, so a 3D box is three 1D boxes multiplied together — and the interchangeability of the axes is exactly what produces the rich degeneracy structure.
The three-dimensional box separates into three independent one-dimensional infinite wells; the total energy is the sum of the three, and because that sum is symmetric under permuting the axes, distinct states share energies — the origin of quantum degeneracy.
Where this lives today
The three-dimensional box is a workhorse well beyond its textbook role. Its density of states — the number of levels per unit energy, growing as — is the starting point of the free-electron model of metals: fill the box states with electrons up to the Fermi energy and you predict electronic heat capacity, Pauli paramagnetism, and the Fermi surface, all before adding any lattice potential. The same counting underlies blackbody radiation (photon modes in a cavity), the Debye model of phonons (vibrational modes in a crystal), and the Sackur–Tetrode entropy of an ideal gas. In nanoscience the box is nearly literal: a quantum dot is an electron confined to a few-nanometer region, and its discrete, size-tunable levels — exactly the scaling derived here — are engineered to emit specific colors in displays and biological markers. Degeneracy, the article's central theme, reappears everywhere a system has symmetry, and the accidental degeneracy first met at foreshadows the hidden symmetries that make problems like the hydrogen atom and the isotropic oscillator exactly solvable.
The physical picture
A particle sits inside a rectangular region , , , with the potential zero inside and infinite outside. Infinite walls force the wavefunction to vanish on every face, exactly as in one dimension. Inside, the particle is free, so the time-independent Schrödinger equation is with . The crucial structural fact is that this operator is a sum of pieces, one per axis, and the boundary conditions decouple axis-by-axis. That is precisely the situation in which separation of variables works: a product ansatz turns one three-dimensional partial differential equation into three one-dimensional ordinary ones. Each factor is a familiar standing wave — and likewise for — vanishing at both walls and carrying an integer number of half-wavelengths. The energy is additive because the kinetic energy is: the particle's motion along , , contributes independently. The whole novelty of three dimensions is therefore not the individual factors but how their energies combine, and what happens when the box is symmetric enough that different combinations tie.
The degeneracy structure is easiest to see as a lattice. Each state is a point with positive-integer coordinates, and its energy is proportional to the squared distance from the origin, . States of equal energy therefore lie on a sphere of fixed radius . Counting degeneracy becomes counting lattice points on a sphere — a number-theoretic question, which is exactly why "accidental" coincidences appear: two lattice points at the same radius need not be related by any symmetry of the cube.
The core equations
Start from the free Schrödinger equation inside the box, where the potential vanishes and only the Laplacian appears. This is the equation whose separability drives everything that follows.
where: is the reduced Planck constant; is the particle mass; is the stationary-state wavefunction; is the energy eigenvalue; and the parenthesis is the three-dimensional Laplacian . Outside the box , and continuity forces to vanish on all six faces. Physically, the particle is free inside but perfectly reflected at every wall. Separation of variables produces normalized product eigenfunctions, one standing wave per axis, each vanishing at its two walls.
where: are the box side lengths; are three independent positive integers; and the prefactor normalizes the product to unit probability over the box. Each quantum number counts the half-wavelengths along one axis; setting any would kill the wavefunction, so the counting starts at one. The corresponding energies add, because the kinetic energy along each direction is independent.
where: each term is the energy of the corresponding one-dimensional infinite well. The energy is a sum of squares, so the levels form a three-dimensional grid rather than a single ladder — the structural difference from the 1D problem. For the symmetric special case (the cubic box), the energy collapses to a single integer combination, and this is where degeneracy appears.
where: is the single-axis ground energy and is the integer "shell index." Two states with the same have the same energy regardless of how the excitation is distributed among the axes — the defining feature of the cubic box.
The core equations — the degeneracy count
The number of states at a given energy is the number of ordered triples of positive integers whose squares sum to ; we denote it .
where: the count is over ordered triples, so , , are three distinct states. The lowest values are , , , : the degeneracy jumps around erratically because it is a lattice-point count on a sphere, not a smooth function of energy.
The goal of this derivation is to show that the three-dimensional problem is not genuinely three-dimensional at all: the product ansatz turns the single partial differential equation (1) into three independent one-dimensional eigenvalue problems, each identical to the ordinary infinite square well. The key move is to divide the full equation by the product so that it splits into three terms, each depending on only one variable; since a function of alone can equal a constant only if it is a constant, each term must separately be constant, and the total energy is their sum. We then import the known 1D well solution three times.
Step 1. Insert the product into (1) and divide through by . Because acts only on , and likewise for the others, the equation becomes . Each ratio depends on a different variable.
Step 2. Argue term-by-term. The first term depends only on , the second only on , the third only on , yet they sum to the constant . Varying alone, while holding and fixed, cannot change the sum, so the -dependent term cannot vary with and so is itself a constant; the same holds for and . Thus . Why this step is legal: a relation of the form over an open region forces each of to be constant, since the partial derivatives of the constant all vanish.
Step 3. Solve each one-dimensional problem. The equation with and boundary conditions is exactly the infinite square well: with and ,
Step 4. Assemble. Multiplying the three normalized factors gives (2); adding the three energies gives (3). The counting starts at because makes the corresponding sine vanish identically, which is not a physical state. The product ansatz indeed solves (1) with eigenvalue (3), and the lowest ordered-triple energies reproduce the level sequence used below.
Go deeper · Derivation B · 2 minSymmetry degeneracy versus accidental degeneracy
Here, the aim is to separate the degeneracy of the cubic box into two physically distinct kinds and to prove that the second kind genuinely exists. The first kind is forced by the cube's symmetry group: interchanging any two axes is a symmetry of the Hamiltonian, so permuting the quantum numbers must give a state of the same energy. The second kind — accidental degeneracy — is a coincidence of the number-theoretic function that no symmetry of the cube explains. The route is to first count the permutation multiplicities, then exhibit a level where two states of different sorted quantum numbers share , which no relabeling of axes can connect.
Step 1. Count symmetry degeneracy. For a triple with all three quantum numbers distinct, there are orderings; for a triple with exactly two equal, there are orderings; for all three equal, there is . So -type levels have , -type have , and -type have from this source alone. This accounts for , , , .
Step 2. Look for a collision that permutations cannot produce. Compute for : . Compute for : . These are equal, but and are different multisets — no reordering of one gives the other.
Step 3. Conclude the total multiplicity at . The permutations of contribute states and contributes , so , but this is not a single permutation orbit: it is two orbits that happen to sit at the same radius. That is accidental degeneracy — a lattice-point coincidence on the sphere . Why this matters: symmetry degeneracy is "explained" (a symmetry operator maps the states into each other), while accidental degeneracy signals either a hidden symmetry or, as here, a pure coincidence of sums of squares; distinguishing them is a recurring theme (the hydrogen atom's "accidental" -degeneracy turns out to hide the Runge–Lenz symmetry). *Enumerating all ordered triples with yields exactly the multiset with , confirming the two sorted triples are distinct.*
Limiting cases
Each limit recovers a simpler or complementary picture and checks the construction.
| Case | Result | Meaning |
|---|---|---|
| Two dimensions squeezed, | Energy | The transverse modes cost enormous energy and freeze out; the 1D infinite well is recovered. |
| Rectangular box, all different | Generic (accidental ties possible) | Breaking the cube's symmetry lifts the permutation degeneracy: distinct axes give distinct energies. |
| Cubic box | The three equal sides make the axes interchangeable, restoring the symmetry degeneracy. | |
| Large box / high energy | Density of states | Discrete levels crowd into a smooth continuum; the count below scales with the volume . |
Worked examples
Example 1 — Degeneracy of the third excited level of a cubic box. List the states and give the degeneracy of the third excited energy level.
Step 1. Order the levels by . The smallest achievable values are (ground, ), then , , then . So the ground state is , the first excited is , the second is , and the third excited level is .
Step 2. Enumerate all ordered triples with . The only unordered solution is since (no other combination of three positive squares gives ). Its orderings are .
Step 3. Count. Three ordered triples means degeneracy , with energy . The three states are physically distinct — they differ in which axis carries the doubly-excited mode — but share one energy. The verifier confirms and the level ordering .
Example 2 — Ground-state energy of an electron in a cubic box. Estimate the ground-state energy for an electron confined to a cube of side .
Step 1. The single-axis unit is . With , , : .
Step 2. Evaluate. The numerator is ; the denominator is . So .
Step 3. The ground state has , so . A single confined electron therefore already carries over an electron-volt of zero-point energy — the physical reason quantum dots have optical gaps in the visible/near-infrared and why nanoscale confinement shifts colors. The takeaways are third excited level with , and a box giving , ground state .
Origins · 1 mindegeneracy and how this was discovered
Degeneracy is the phenomenon in which two or more physically distinct quantum states have exactly the same energy eigenvalue. It is the organizing concept of the three-dimensional box: the cube's interchangeable axes force states related by permuting the quantum numbers to be degenerate, and the number-theoretic structure of produces additional "accidental" coincidences. Degeneracy is far more than bookkeeping — the size of a degenerate multiplet sets statistical weights, its splitting under a perturbation is the whole subject of degenerate perturbation theory, and an "accidental" degeneracy is often the fingerprint of a hidden symmetry, as with the extra -degeneracy of the hydrogen atom that conceals the Runge–Lenz vector.
Going further
References. Griffiths & Schroeter, Introduction to Quantum Mechanics, 3rd ed., §4.1 (the 3D box and separation of variables) · Sakurai & Napolitano, Modern Quantum Mechanics, 2nd ed., §3 · Ashcroft & Mermin, Solid State Physics, Ch. 2 (the free-electron gas and density of states) · Cohen-Tannoudji, Diu & Laloë, Quantum Mechanics, Vol. I, Complement on the infinite well. The low-level degeneracy table , , , follows by brute enumeration of ordered triples. The accidental degeneracy at is confirmed by noting that and are distinct sorted triples with , and the level ordering is . The Weyl density-of-states asymptotic gives the number of states below radius as , accurate to at . The numerical values and for a electron box follow directly from .
Builds on: Infinite Square Well · Stationary States and Separation of Variables · Time-Independent Schrödinger Equation. Leads to: the density of states and free-electron model of solids, the isotropic harmonic oscillator, and degenerate perturbation theory.
How is the 3D box different from just solving the 1D well three times?
Mechanically it is three 1D wells, and that is the point of separation of variables: the wavefunction factorizes and the energies add. What is genuinely new is the combination of the three energies. In 1D the levels form a simple ladder with no degeneracy. In 3D the energy depends on the sum , so many different assignments of the excitation among the axes give the same total — degeneracy. So the individual factors are old, but the pattern of energies, and in particular the degeneracy structure, is a real three-dimensional phenomenon.
What exactly is "accidental" about the degeneracy at N = 27?
"Symmetry" degeneracy is the kind you can explain by an operator that maps one state to another — here, permuting the axes of the cube. All the states are related that way, so their equal energy is expected. But and both give while being different multisets of quantum numbers: no permutation of the cube's axes turns one into the other. Their coincidence is a property of the arithmetic of sums of three squares, not of any geometric symmetry of the box — hence "accidental." In some systems such accidents secretly reflect a hidden symmetry (the hydrogen atom is the famous case); in the cubic box the collision is a genuine number-theoretic coincidence.
Why does the degeneracy jump around so erratically as energy increases?
Because counts integer lattice points on a sphere of radius , which is an irregular, number-theoretic quantity. Some radii pass through many lattice points, others through few; there is no smooth formula. That is why you see with no obvious trend at low energy. Only when you average over many nearby levels — the large- limit — does the count smooth out into the density of states . The erratic microscopic degeneracy and the smooth macroscopic density of states are the same physics viewed at two scales.
Does a rectangular (non-cubic) box have any degeneracy?
Generically no — making all three side lengths different lifts the permutation degeneracy, because now changes when you permute the quantum numbers across unequal axes. You can still get accidental degeneracies if the ratios of the side lengths are special (for example commensurate), but for generic incommensurate sides every level is simple. This is the general lesson that degeneracy is tied to symmetry: remove the symmetry (equal sides) and the degeneracy it protected disappears.
How does the box lead to the free-electron model of a metal?
Take a macroscopic box, count how many single-particle states lie below a given energy (the states with , which grows as the box volume), then fill those states with electrons two-at-a-time (spin up and down) up to the Fermi energy. The resulting density of states is exactly the quantity Sommerfeld used in 1927 to compute the electronic heat capacity, magnetic susceptibility, and Fermi surface of metals. The box supplies the level counting; the Pauli principle supplies the filling. Remarkably, this crude model — free electrons in a box, ignoring the ionic lattice entirely — already gets the qualitative electronic physics of simple metals right.
Where does the factor √(8/L₁L₂L₃) in the wavefunction come from?
Each 1D factor normalizes with a prefactor , because . Multiplying the three factors multiplies their normalization constants: . So the is just , one factor of per dimension. For a cube this is .
Is there any physical meaning to the ground-state energy being 3E₀ rather than zero?
Yes — it is the three-dimensional zero-point energy of confinement. Even in its lowest state the particle cannot sit still: localizing it to a region of size forces, by the uncertainty principle, a minimum momentum spread and hence a minimum kinetic energy along each axis. The three axes each contribute , so the total floor is . Shrinking the box raises this floor as , which is why confining electrons to nanometer dots produces electron-volt-scale energies and visible optical gaps.