|q⟩ Bad Qubits

beginner · Physics · Particle in a Box

Quantized Energy Levels

A particle cannot have any energy it likes when it is confined. That is the central surprise of the infinite square well, and understanding why is the goal of this lesson.

The infinite square well

The infinite square well (or particle in a box) is the simplest quantum confinement model. The potential energy is

V(x)={0,0xL,,otherwise.V(x) = \begin{cases} 0, & 0 \le x \le L, \\ \infty, & \text{otherwise.} \end{cases}

Because the walls are impenetrable, the wavefunction must vanish at both ends: ψ(0)=0\psi(0) = 0 and ψ(L)=0\psi(L) = 0. Inside the well the particle is free, so the time-independent Schrödinger equation reduces to

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

whose general solution is ψ(x)=Asin(kx)+Bcos(kx)\psi(x) = A\sin(kx) + B\cos(kx) with k=2mE/k = \sqrt{2mE}/\hbar.

Boundary conditions force quantization

The left boundary ψ(0)=0\psi(0) = 0 forces B=0B = 0, leaving ψ(x)=Asin(kx)\psi(x) = A\sin(kx). The right boundary ψ(L)=0\psi(L) = 0 then requires

sin(kL)=0    kL=nπ,n=1,2,3,\sin(kL) = 0 \implies kL = n\pi, \quad n = 1, 2, 3, \ldots

Negative integers give the same states (just a sign flip), and n=0n = 0 would make ψ\psi vanish everywhere — no particle. So only the positive integers survive, and the allowed wave numbers are

kn=nπL.k_n = \frac{n\pi}{L}.

Substituting back into k=2mE/k = \sqrt{2mE}/\hbar and solving for EE gives the quantized energy levels:

En=2kn22m=n2π222mL2,n=1,2,3,E_n = \frac{\hbar^2 k_n^2}{2m} = \frac{n^2\pi^2\hbar^2}{2mL^2}, \qquad n = 1, 2, 3, \ldots

This is the key result. The integer nn is the quantum number of the state; it is forced on us by the requirement that the wavefunction be continuous and vanish at impenetrable walls — not by any external assumption.

Structure of the spectrum

Three features of En=n2E1E_n = n^2 E_1 are worth memorizing:

  1. There is a ground state energy. The lowest allowed energy is E1>0E_1 \gt 0. A classical particle can sit still at the bottom of the well; a quantum particle cannot. The residual motion is a direct consequence of the uncertainty principle: if position is confined to a region of size LL, momentum must fluctuate, and kinetic energy cannot be zero.

  2. The levels grow as n2n^2, not linearly. The spacing between adjacent levels increases with nn: En+1En=(2n+1)E1E_{n+1} - E_n = (2n+1)E_1. High-nn states are more spread out in energy than low-nn states.

  3. All lengths scale identically. Shrinking LL by a factor of 2 increases every EnE_n by a factor of 4. This is why electrons confined to atomic-scale distances (tenths of nanometers) have energies in the electron-volt range, while a macroscopic box has negligibly spaced levels that mimic a continuum.

A numerical check

For an electron (m=9.109×1031m = 9.109 \times 10^{-31} kg) in a well of width L=1L = 1 nm, the ground-state energy is

E1=π2(1.055×1034)22×(9.109×1031)×(109)2=6.024×1020J=0.376eV.E_1 = \frac{\pi^2 (1.055 \times 10^{-34})^2}{2 \times (9.109 \times 10^{-31}) \times (10^{-9})^2} = 6.024 \times 10^{-20}\,\text{J} = 0.376\,\text{eV}.

The factor π29.87\pi^2 \approx 9.87 and the exact numerical result follow directly from the formula derived above. The second level is E2=4E11.50E_2 = 4E_1 \approx 1.50 eV, the third is E3=9E13.39E_3 = 9E_1 \approx 3.39 eV, and so on.

Try it

This is a numerical exercise — return a number. An electron is trapped in an infinite square well of width L=1nmL = 1\,\text{nm}. Compute E2E_2 — the energy of the n=2n = 2 state — in electron-volts.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.