The Particle in a Box
Solve the simplest quantum system, find its energy levels E = n²h²/8mL², and use it to explain zero-point energy and the colors of quantum dots.
Welcome back!
Step 1 of 11Learn
The simplest trap
To see quantization in action, take the simplest possible trap: a particle of mass m that can move freely along a line between x = 0 and x = L, with infinitely high walls at both ends. Inside, V = 0. Outside, V is infinite, so the wave function must be exactly zero there, and since ψ must be continuous, it must also be zero at the walls.
Inside the box the Schrödinger equation is just −(ħ^2/2m)ψ'' = Eψ, whose solutions are sines and cosines. The condition ψ(0) = 0 rules out cosines. The condition ψ(L) = 0 then demands that a whole number of half-wavelengths fit in the box, exactly like a guitar string fixed at both ends:
L = n·λ/2, n = 1, 2, 3, …
So λ = 2L/n. De Broglie's relation gives the momentum p = h/λ = nh/(2L), and the energy is E = p2/(2m):
E_n = n2·h2 / (8·m·L2)
The normalized wave functions are ψ_n(x) = √(2/L) · sin(nπx/L).
The energies grow as n2: if the ground state has energy E₁, the next levels sit at 4E₁, 9E₁, 16E₁. The gaps widen as you go up. And n = 0 is not allowed, because it gives ψ = 0 everywhere, meaning no particle at all.
Step 2 of 11Explore
Particle-in-a-box states
The graph shows the probability density |ψ_n|^2 for a box from x = 0 to x = 1 (in units of the box length). Step n up and count the places where the particle is never found. The readout gives the energy of an electron in a box of the length you choose.
- Energy E_n
- 0.376 eV
- Nodes inside the box
- 0
Step 3 of 11Practice · Work it out
An electron is confined in a box 1.0 nm long, where E₁ ≈ 0.376 eV. What is the energy of the n = 3 level, in eV?
Step 4 of 11Learn
Zero-point energy and the shape of the states
Look again at the lowest level, E₁ = h2/(8mL2). It is not zero. A particle in a box can never be completely at rest. This zero-point energy is the uncertainty principle in a concrete form: the particle is confined to Δx ≈ L, so its momentum cannot be exactly zero, and some kinetic energy must remain.
The formula also shows how strongly confinement matters. Energy goes as 1/L2: halve the box and every level rises by a factor of 4. And it goes as 1/m: an electron, about 1/1836 the mass of a proton, has levels 1836 times higher in the same box. That is why electron energy levels in atoms are a few eV while vibrations of atoms in molecules are a tenth of an eV or less.
The probability densities hold surprises too. In the ground state, the particle is most likely found in the middle and never at the walls. In the n = 2 state, the particle is never found exactly at the center, a node, even though it is often found on both sides of it. Classically a ball bouncing between walls is equally likely to be anywhere. Quantum states approach that uniform picture only at large n, when the wiggles become so fine that any real detector averages over them. This is an example of the correspondence principle: quantum predictions blend into classical ones for large quantum numbers.
Step 5 of 11Practice · Work it out
An electron in a 1.0 nm box drops from n = 2 to n = 1 and emits a photon. Using E₁ = 0.376 eV and λ = 1240/E (nm, with E in eV), what is the photon's wavelength in nanometers?
Step 6 of 11Note
Step 7 of 11Chart
Quantum dot size sets its color
Smaller dots squeeze the electrons harder, widen the gap and emit bluer light, just as E ∝ 1/L2 predicts.
| Dot diameter | Emission wavelength |
|---|---|
| 2 nm | 500 nm |
| 3 nm | 550 nm |
| 4 nm | 590 nm |
| 5 nm | 610 nm |
| 6 nm | 630 nm |
Step 8 of 11Learn
Other wells, other spacings
The infinite box is idealized, but the method works for any potential. Different shapes give different level patterns, and each pattern is a fingerprint you can spot in real spectra.
- Finite well. With walls of finite height, ψ leaks a little way into the walls. The effective box is slightly wider, so every level sits a bit lower than in the infinite box. There are only a limited number of bound states; above the top of the well, the particle is free.
- Harmonic oscillator. A potential shaped like a parabola, V = ½·k·x2, models atoms in a vibrating molecule. Its levels are E_n = (n + ½)·ħω, with n starting at 0 and ω = √(k/m). They are equally spaced, ħω apart, and the ground state still has zero-point energy ½ħω. Molecules absorb infrared light at exactly that spacing, which is how infrared spectroscopy identifies chemical bonds.
- Coulomb potential. The attraction between an electron and a nucleus, V ∝ −1/r, gives levels that crowd together as energy rises, as you will see in the hydrogen lesson.
Spacings that grow (box), stay equal (oscillator) or shrink (atom) come directly from how steep the walls are. Wider at the top means the particle has more room at high energy, so levels squeeze together.
Step 9 of 11Compare
Three quantum wells compared
| Aspect | Infinite box | Harmonic oscillator | Hydrogen atom |
|---|---|---|---|
| Energy formula | E_n = n2h2/(8mL2) | E_n = (n + ½)ħω | E_n = −13.6 eV/n2 |
| Lowest n | 1 | 0 | 1 |
| Level spacing as n rises | Grows (1, 4, 9, 16…) | Constant | Shrinks toward zero |
| Real-world example | Quantum dots, dye molecules | Molecular vibrations | Atomic spectra |
Step 10 of 11Practice · True or false
If the length of a box is doubled, the ground-state energy of a particle inside it is cut in half.
Step 11 of 11Practice · Choose one
In the n = 2 state of a particle in a box from 0 to L, where is the particle never found?
Lesson complete!