Particle on a chain / particle in a box

Trap a particle strictly between two infinite walls and something classical intuition never predicts happens: its energy can no longer be anything at all — only a discrete ladder of allowed values survives. This is the particle in a box (equivalently, a particle confined on a chain), the simplest exactly-solvable system in quantum mechanics, and the first place the time-independent Schrödinger equation is turned into a concrete, numerical prediction. Solving it is a rite of passage: you set up the equation inside the well, apply two boundary conditions forcing the wavefunction to vanish at the walls, and watch quantization fall out as a direct mathematical consequence — not an assumption bolted on by hand. The same standing-wave mathematics you meet here — fixed endpoints, integer numbers of half-wavelengths — reappears throughout quantum mechanics, from finite wells to atoms, making this the essential first model to master.

The core insight

Confining a particle between infinite walls forces its wavefunction to vanish at both boundaries, and only sine waves with an integer number of half-wavelengths fit — quantizing the energy as En=n2π2ℏ2/2mL2E_n = n^2\pi^2\hbar^2/2mL^2.

The core idea

Setting up the well. Consider a particle of mass mm confined to 0≤x≤L0 \le x \le L by infinitely high walls, so the potential is zero inside and infinite outside:

V(x)={0,0<x<L∞,x≤0 or x≥L.V(x) = \begin{cases} 0, & 0 < x < L \\ \infty, & x\le 0 \text{ or } x\ge L. \end{cases}

Because V=∞V=\infty outside the well, the particle can never be found there, so ϕ(x)=0\phi(x)=0 for x≤0x\le 0 and x≥Lx\ge L. Continuity of ϕ\phi then forces the boundary conditions ϕ(0)=0\phi(0)=0 and ϕ(L)=0\phi(L)=0 — these two conditions do all the work of quantization.

Solving inside the well. With V=0V=0, the time-independent Schrödinger equation reduces to a simple oscillator-type equation:

−ℏ22md2ϕdx2=Eϕ⟹d2ϕdx2=−k2ϕ,k=2mEℏ.-\frac{\hbar^2}{2m}\frac{d^2\phi}{dx^2} = E\phi \quad\Longrightarrow\quad \frac{d^2\phi}{dx^2} = -k^2\phi, \qquad k=\frac{\sqrt{2mE}}{\hbar}.

where: ℏ\hbar is the reduced Planck constant, EE is the particle's energy, and kk is the wavenumber the equation defines. The general solution is ϕ(x)=Csin⁡(kx)+Dcos⁡(kx)\phi(x) = C\sin(kx) + D\cos(kx). Applying ϕ(0)=0\phi(0)=0 forces D=0D=0; applying ϕ(L)=0\phi(L)=0 then requires sin⁡(kL)=0\sin(kL)=0, which holds only for kL=nπkL = n\pi with n=1,2,3,…n=1,2,3,\dots (n=0n=0 is excluded because it gives ϕ≡0\phi\equiv0 everywhere — no particle at all).

Quantized energies. Since E=ℏ2k2/2mE=\hbar^2k^2/2m, quantizing kk directly quantizes the energy:

En=n2π2ℏ22mL2,n=1,2,3,…E_n = \frac{n^2\pi^2\hbar^2}{2mL^2}, \qquad n=1,2,3,\dots

where: nn is the quantum number, mm the particle's mass, and LL the box width. Energy can only take these discrete values — a purely quantum result with no classical counterpart, since a classical ball bouncing between two walls can have any energy at all. The lowest allowed energy, E1=π2ℏ2/2mL2E_1 = \pi^2\hbar^2/2mL^2, is strictly greater than zero. This zero-point energy is a direct consequence of confinement plus the uncertainty principle: a particle strictly localized to a region of size LL cannot have exactly zero momentum, so it cannot have exactly zero energy either.

The normalized wavefunctions. Normalizing ϕn(x)=Csin⁡(nπx/L)\phi_n(x)=C\sin(n\pi x/L) by requiring ∫0L∣ϕn∣2 dx=1\int_0^L|\phi_n|^2\,dx=1 gives C=2/LC=\sqrt{2/L} (proved step by step below), so

ϕn(x)=2Lsin⁡ ⁣(nπxL),n=1,2,3,…\phi_n(x) = \sqrt{\frac{2}{L}}\sin\!\left(\frac{n\pi x}{L}\right), \qquad n=1,2,3,\dots

Each ϕn\phi_n has n−1n-1 nodes strictly inside the well and nn lobes — exactly the standing-wave pattern of a string fixed at both ends, now reinterpreted as a probability-amplitude wave rather than a physical displacement.

Figure
Sketch of the first three particle in a box wavefunctions phi 1 phi 2 and phi 3 drawn as sine curves pinned to zero at both walls with increasing numbers of lobes and nodes
Particle in a box — the first three standing-wave states x = 0 x = L n = 1 n = 2 n = 3 n = 3 shown at its own baseline Every phi n vanishes at both walls; higher n means more nodes and higher energy
Derivation ANormalizing the particle in a box wavefunction

The goal is to show that the constant CC in ϕn(x)=Csin⁡(nπx/L)\phi_n(x) = C\sin(n\pi x/L) on the interval from 00 to LL must equal 2/L\sqrt{2/L} for every integer nn, so that the total probability of finding the particle somewhere in the box equals exactly one, as physical probability demands.

Step 1. Write down the normalization condition. Total probability must equal one, so ∫0L∣ϕn(x)∣2 dx=1\int_0^L |\phi_n(x)|^2\,dx = 1, which for ϕn(x)=Csin⁡(nπx/L)\phi_n(x)=C\sin(n\pi x/L) becomes ∫0LC2sin⁡2 ⁣(nπxL)dx=1\int_0^L C^2\sin^2\!\left(\dfrac{n\pi x}{L}\right)dx = 1.

Step 2. Rewrite sin⁡2θ\sin^2\theta using the identity sin⁡2θ=12(1−cos⁡2θ)\sin^2\theta = \tfrac12(1-\cos2\theta), which turns the hard-to-integrate square into an easy sum: ∫0Lsin⁡2 ⁣(nπxL)dx=∫0L12[1−cos⁡ ⁣(2nπxL)]dx=L2−12⋅L2nπ[sin⁡ ⁣(2nπxL)]0L\int_0^L \sin^2\!\left(\dfrac{n\pi x}{L}\right)dx = \int_0^L \tfrac12\left[1-\cos\!\left(\dfrac{2n\pi x}{L}\right)\right]dx = \dfrac{L}{2} - \dfrac{1}{2}\cdot\dfrac{L}{2n\pi}\left[\sin\!\left(\dfrac{2n\pi x}{L}\right)\right]_0^L.

Step 3. Evaluate the bracket. Since sin⁡(2nπ)=0\sin(2n\pi)=0 for every integer nn, the bracketed term vanishes at both x=0x=0 and x=Lx=L, leaving the integral equal to exactly L/2L/2.

Step 4. Solve for CC. Substituting back, C2⋅L2=1C^2 \cdot \dfrac{L}{2} = 1, so C=2LC = \sqrt{\dfrac{2}{L}}, confirming ϕn(x)=2/L sin⁡(nπx/L)\phi_n(x)=\sqrt{2/L}\,\sin(n\pi x/L) holds for every quantum number nn, independent of which state you pick.

Worked example

Step 1 — set up the problem. An electron (m=9.11×10−31 kgm=9.11\times10^{-31}\,\text{kg}) is confined to a 1D box of width L=0.20 nmL=0.20\ \text{nm}, roughly atomic scale. Using En=n2π2ℏ2/2mL2E_n = n^2\pi^2\hbar^2/2mL^2 with ℏ=1.055×10−34 J ⋅ s\hbar=1.055\times10^{-34}\ \text{J}\,\cdot\,\text{s} and L=2.0×10−10 mL=2.0\times10^{-10}\ \text{m}, first collect the numbers: ℏ2=1.113×10−68 J2s2\hbar^2 = 1.113\times10^{-68}\ \text{J}^2\text{s}^2, L2=4.0×10−20 m2L^2 = 4.0\times10^{-20}\ \text{m}^2, and 2mL2=2×(9.11×10−31)×(4.0×10−20)=7.29×10−50 kg ⋅ m22mL^2 = 2\times(9.11\times10^{-31})\times(4.0\times10^{-20}) = 7.29\times10^{-50}\ \text{kg}\,\cdot\,\text{m}^2.

Step 2 — compute E1E_1. E1=π2×1.113×10−687.29×10−50=1.098×10−677.29×10−50≈1.51×10−18 JE_1 = \dfrac{\pi^2 \times 1.113\times10^{-68}}{7.29\times10^{-50}} = \dfrac{1.098\times10^{-67}}{7.29\times10^{-50}} \approx 1.51\times10^{-18}\ \text{J}. Converting to electron-volts, E1=1.51×10−181.6×10−19≈9.4 eVE_1 = \dfrac{1.51\times10^{-18}}{1.6\times10^{-19}} \approx 9.4\ \text{eV}.

Step 3 — find E2E_2 and the transition energy. Since En∝n2E_n \propto n^2, doubling the quantum number quadruples the energy: E2=4E1≈37.7 eVE_2 = 4E_1 \approx 37.7\ \text{eV}. The energy released or absorbed on a transition between them is ΔE=E2−E1=3E1≈28.3 eV\Delta E = E_2 - E_1 = 3E_1 \approx 28.3\ \text{eV}.

Final answer: E1≈9.4 eVE_1 \approx 9.4\ \text{eV}, E2≈37.7 eVE_2 \approx 37.7\ \text{eV}, and a photon of energy ΔE≈28.3 eV\Delta E \approx 28.3\ \text{eV} connects the n=2n=2 and n=1n=1 levels. This tens-of-eV spacing is enormous for a sub-nanometer box, which is exactly why quantization is unmistakable for electrons confined at atomic scales but utterly unobservable for any macroscopic box, where LL is large and EnE_n spacings shrink toward zero.

Competitive stretch

Because En∝1/L2E_n \propto 1/L^2, doubling the box width to L=0.40 nmL=0.40\ \text{nm} (everything else unchanged) divides every EnE_n by four, so E1E_1 drops from about 9.4 eV9.4\ \text{eV} to about 2.35 eV2.35\ \text{eV} — a quick reminder that confinement, not just the particle, controls the energy scale.

Common traps

  • Including n=0n=0 as an allowed state — this gives ϕ≡0\phi\equiv0, meaning no particle is present at all, so n=0n=0 must always be excluded.
  • Forgetting that En∝n2E_n \propto n^2, not nn — doubling the quantum number quadruples the energy, it does not double it.
  • Demanding that dϕ/dxd\phi/dx be continuous at the infinite walls — that condition does not apply there; only ordinary continuity of ϕ\phi (forcing it to zero) is required, because V→∞V\to\infty at the walls.
  • Forgetting the explicit LL-dependence En∝1/L2E_n \propto 1/L^2 — a wider box gives closely spaced, "more classical-looking" levels, while extreme confinement produces widely separated, unmistakably quantum energy gaps.

Ask the tutor: curious how the boundary conditions and energy formula change for a finite-depth well instead of infinite walls — ask the AI tutor to walk through the comparison with you.

Why can't the particle have zero energy, since it is just sitting still in the box?

Because "sitting still" would mean exactly zero momentum, and the uncertainty principle forbids a particle confined to a region of size LL from having exactly zero momentum — some spread in momentum is unavoidable once position is pinned down to within LL. The lowest allowed state, n=1n=1, already carries E1=π2ℏ2/2mL2>0E_1 = \pi^2\hbar^2/2mL^2 > 0, called the zero-point energy. Classically a ball at rest between two walls has zero energy; quantum mechanically that option simply does not exist.

Why does sin(kx) survive as the solution but cos(kx) gets thrown away?

Both are valid solutions of the differential equation on their own, and the general solution is a combination Csin⁡(kx)+Dcos⁡(kx)C\sin(kx)+D\cos(kx). Applying the first boundary condition, ϕ(0)=0\phi(0)=0, immediately forces D=0D=0 because cos⁡(0)=1≠0\cos(0)=1\ne0 while sin⁡(0)=0\sin(0)=0. So it is not that cosine is wrong in general — it is that this particular boundary condition, phi vanishing at the left wall, eliminates it here. A different choice of origin or a different boundary condition would mix the two differently.

Does a real, macroscopic box ever show this quantization, like a marble in a matchbox?

In principle yes, but the spacing between levels shrinks as 1/L21/L^2, and for a macroscopic LL (millimeters or more) with a macroscopic mass, the level spacing becomes many, many orders of magnitude smaller than any energy you could ever measure — the discrete ladder is still there mathematically but is completely indistinguishable from a smooth classical continuum. Quantization only becomes observable when both the mass and the confinement length are extremely small, as with an electron trapped over a sub-nanometer scale.

Before this

Where this leads