SEMI|2026-08-25

Particle in a Box, Atomic Shells, and the Birth of Energy Bands

Particle in a Box, Atomic Shells, and the Birth of Energy Bands

This lesson connects three ideas that look separate but build on each other: confining an electron in a box, counting how many electrons fit into each atomic shell, and what happens once you don't confine electrons in one box but line up a whole periodic row of them — a crystal. The last piece is where band structure comes from.

The particle in a box

Start with an electron confined to a 1D region of width LL, with infinite walls at x=0x=0 and x=Lx=L. Inside the box the potential is zero, so the time-independent Schrödinger equation is

22md2ψdx2=Eψ.-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi.

The general solution is a mix of sine and cosine,

ψ(x)=Asin(kx)+Bcos(kx),k=2mE.\psi(x) = A\sin(kx) + B\cos(kx), \qquad k = \frac{\sqrt{2mE}}{\hbar}.

The walls force ψ=0\psi=0 at x=0x=0 and x=Lx=L, since the electron can never be found outside the box. Plugging in x=0x=0 kills the cosine term (B=0B=0). Plugging in x=Lx=L requires

sin(kL)=0    kn=nπL,n=1,2,3,\sin(kL) = 0 \implies k_n = \frac{n\pi}{L}, \quad n = 1,2,3,\dots

So only discrete wavevectors — and therefore discrete energies — are allowed:

En=2kn22m=n2π222mL2,ψn(x)=2Lsin ⁣(nπxL).E_n = \frac{\hbar^2 k_n^2}{2m} = \frac{n^2\pi^2\hbar^2}{2mL^2}, \qquad \psi_n(x) = \sqrt{\frac{2}{L}}\sin\!\left(\frac{n\pi x}{L}\right).

The shapes follow directly from this formula. ψ1\psi_1 is a single smooth arch — half of a sine wave, no interior nodes. ψ2\psi_2 has one node in the middle, so it looks like an S-shaped wiggle: a hump up, then a hump down. ψ3\psi_3 has two interior nodes, giving three lobes that alternate sign.

Squaring gives the probability density ψn(x)2|\psi_n(x)|^2, and squaring erases the sign information — every lobe becomes a positive-valued bump. That's why ψ12|\psi_1|^2 is one bump, ψ22|\psi_2|^2 is two bumps, and ψ32|\psi_3|^2 is three bumps of similar height, all sitting between the same two walls. The number of bumps in ψn2|\psi_n|^2 always equals nn; the number of nodes in ψn\psi_n always equals n1n-1. This is the general rule for any bound state: higher energy means more nodes, more oscillation, more localized probability lobes.

figure 8662230c85b16d616af359ca3eeb8e954f7b7f48a55b4353ea45f7995757764e

Quantum numbers and how many states each shell holds

For an electron bound in three dimensions (like in an atom), the orbital angular momentum quantum number \ell labels the shape of the state, and for each \ell there are 2+12\ell+1 orientations (magnetic quantum number mm_\ell), each of which holds 2 electrons once you include spin. So the number of states in a subshell is 2(2+1)2(2\ell+1):

  • ss: =02\ell = 0 \to 2 states
  • pp: =16\ell = 1 \to 6 states
  • dd: =210\ell = 2 \to 10 states
  • ff: =314\ell = 3 \to 14 states

This counting matters later: it's the same logic — count the distinct standing-wave states, then fill them two electrons at a time — that you use to fill up energy levels in a solid. The particle in a box gave you the idea of discrete quantized levels; this gives you the bookkeeping for how many electrons occupy each one before you're forced into the next level up.

Free electron gas: why kk-space needs three dimensions

Now put many free electrons in a 3D box of volume V=LxLyLzV = L_x L_y L_z instead of a 1D line. The same boundary-condition logic applies in each direction independently, so the wavefunction separates and each direction gets its own quantum number:

kx=nxπLx,ky=nyπLy,kz=nzπLz,nx,ny,nz=1,2,3,k_x = \frac{n_x\pi}{L_x}, \quad k_y = \frac{n_y\pi}{L_y}, \quad k_z = \frac{n_z\pi}{L_z}, \qquad n_x,n_y,n_z = 1,2,3,\dots

E=22m(kx2+ky2+kz2).E = \frac{\hbar^2}{2m}\left(k_x^2+k_y^2+k_z^2\right).

It's tempting to think kk is just "the wavelength," since k=2π/λk = 2\pi/\lambda in 1D — so why would you need three of them? The resolution is that kk is really a vector, k=(kx,ky,kz)\vec{k} = (k_x,k_y,k_z). Its magnitude sets the wavelength, but its direction sets which way the wave is traveling. A plane wave in 3D can propagate along any direction, not just left or right, so you need all three components to fully specify the state. Each allowed triplet (kx,ky,kz)(k_x,k_y,k_z) is a single point sitting in an abstract 3D space — kk-space — and as you add more electrons to the box, you fill up more and more of these points, starting from the origin outward, because lower k|\vec{k}| means lower energy.

At absolute zero, filling points from the center outward and stopping once you've placed all the electrons produces a filled sphere in kk-space, bounded by the Fermi wavevector kFk_F. Everything inside the sphere is occupied, everything outside is empty.

From a free electron to an electron in a crystal

Free electrons only feel a flat, zero potential. A real electron in a crystal feels the periodic pull of the ion cores, repeating every lattice spacing. The Kronig-Penney model captures this with the simplest periodic potential possible: alternating flat wells and flat barriers, period (a+d)(a+d) — a well of width aa where V=0V=0, followed by a barrier of width dd where V=V0V=V_0.

Because the potential is periodic, Bloch's theorem says the solution can't just be any wavefunction — it has to satisfy

ψ(x+a+d)=eik(a+d)ψ(x),\psi(x + a+d) = e^{ik(a+d)}\psi(x),

where kk is the Bloch wavevector, the crystal analog of the free-electron kk. Inside a well, the electron behaves like a free particle with

α=2mE,ψ(x)=Aeiαx+Beiαx.\alpha = \frac{\sqrt{2mE}}{\hbar}, \qquad \psi(x) = Ae^{i\alpha x} + Be^{-i\alpha x}.

Inside a barrier, if E<V0E<V_0, the wavefunction decays/grows exponentially with

β=2m(V0E),ψ(x)=Ceβx+Deβx.\beta = \frac{\sqrt{2m(V_0-E)}}{\hbar}, \qquad \psi(x) = Ce^{\beta x} + De^{-\beta x}.

Matching ψ\psi and ψ\psi' at each interface, and using the Bloch condition to relate the well region to the barrier region one period over, gives four linear equations in A,B,C,DA,B,C,D. A nontrivial solution exists only if a certain determinant vanishes. Taking the standard limit of thin, tall barriers (barrier width d0d\to 0, height V0V_0\to\infty, with the product P=mV0ad2P = \dfrac{mV_0 a d}{\hbar^2} held fixed as a measure of barrier strength) collapses that determinant condition down to the compact form:

cos[k(a+d)]=Psin(αa)αa+cos(αa).\cos[k(a+d)] = P\,\frac{\sin(\alpha a)}{\alpha a} + \cos(\alpha a).

Why gaps in energy appear

This equation is the whole story. The left-hand side, cos[k(a+d)]\cos[k(a+d)], can only ever take values between 1-1 and 11, because it's a cosine of a real number. The right-hand side depends only on the energy EE (through α=2mE/\alpha = \sqrt{2mE}/\hbar) and the barrier strength PP — it has nothing to do with kk.

So pick an energy EE, compute the right-hand side. If it lands between 1-1 and 11, you can find a real kk that solves the equation — this energy is allowed, and the electron can exist as a propagating Bloch wave with that kk. If the right-hand side falls outside [1,1][-1,1], there is no real kk that works. The only way to formally satisfy the equation is for kk to become complex, which means the wave doesn't propagate — it decays. That energy is forbidden. This is exactly what "some EE will not equal αk\alpha k" is pointing at: not every energy corresponds to a valid propagating state in the crystal, only the ones where the right-hand side stays bounded.

Sweeping EE continuously, the right-hand side oscillates in and out of the [1,1][-1,1] window, carving energy into an alternating sequence of allowed bands and forbidden gaps.

figure 1bb32294c114669e211be1a81b5d4221d93c0e8edc61c87bc1f230bdf735bd73

At low energy, near αa0\alpha a \to 0, the right-hand side stays close to cos[k(a+d)]\cos[k(a+d)]'s free-particle behavior, so the lowest band looks almost like the ordinary free-electron parabola E=2k2/2mE = \hbar^2k^2/2m. As EE grows, the periodic potential increasingly distorts this, and gaps open up at the points where the right-hand side crosses outside [1,1][-1,1]. Each allowed band, once you sort them by energy, plays the same role that n=1,2,3,n=1,2,3,\dots played for the particle in a box: a band index labeling successive groups of allowed energies, separated now not by simple quantization but by genuine forbidden gaps carved out by the crystal's periodicity.