physics2u
Tier
⌕ Search ⌘K
Derivation

Bound States of the Infinite Square Well

Statement

For a particle of mass m confined to the one-dimensional region 0 < x < L by a potential that is zero inside and infinite outside, the time-independent Schrödinger equation together with the Dirichlet boundary conditions ψ(0) = ψ(L) = 0 admits normalisable solutions only for a discrete set of energies En = n2π22/(2mL2), n = 1, 2, 3, …, with orthonormal eigenfunctions ψn(x) = √(2/L) sin(nπx/L).

Why it matters

The infinite square well is the simplest quantum system with a genuinely bound spectrum, and it is the prototype for every confinement problem: quantum dots, nuclei modelled as boxes, electrons in a conjugated molecule, and the density of states in a metal all inherit its n2 ladder and its half-wavelength counting. It shows, with almost no algebra, that quantisation is a consequence of boundary conditions imposed on a wave equation — not an extra postulate bolted onto classical mechanics.

It is also the reference against which harder wells are read. The finite well, the harmonic oscillator, and periodic lattices are all understood partly by contrast with this exactly solvable limit, so its eigenfunctions and energies must be at your fingertips.

Assumptions
The potential is exactly zero inside and strictly infinite outside.If the walls are finite, the wavefunction leaks (tunnels) into the classically forbidden region, energies drop below the n2π22/(2mL2) values, and only finitely many bound states survive.
Motion is one-dimensional and non-relativistic.In three dimensions the spectrum becomes a sum over independent quantum numbers and degeneracies appear; at relativistic speeds the kinetic term ℏ2k2/2m must be replaced by the Dirac/Klein–Gordon dispersion.
The wavefunction is continuous everywhere, including at the walls.Continuity is what forces ψ to vanish at the boundary. Its derivative, by contrast, is allowed to jump here because the potential step is infinite — dropping the continuity-of-ψ requirement would destroy the quantisation condition entirely.
The Hamiltonian is self-adjoint on the domain of functions vanishing at both walls.The boundary conditions are not decoration: they define the domain on which Ĥ = −(ℏ2/2m) d2/dx2 is Hermitian, guaranteeing a real spectrum and a complete orthonormal eigenbasis. A different boundary condition (e.g. periodic) is a different, equally valid, self-adjoint problem with a different spectrum.
Derivation
1
−(ℏ2/2m) d2ψ/dx2 + V(x) ψ = E ψ
Time-independent Schrödinger equation for a stationary state of energy E (assumed prior result). A
2
d2ψ/dx2 = −(2mE/ℏ2) ψ ≡ −k2 ψ,   k ≡ √(2mE)/ℏ
Inside the well V = 0, so the equation reduces to a constant-coefficient ODE. The definition k2 = 2mE/ℏ2 anticipates E > 0, justified in step 8. A
3
ψ(x) = A sin(kx) + B cos(kx)
General solution of a second-order linear ODE with real negative eigenvalue: two independent oscillatory modes with constants A, B fixed by boundary conditions. A
4
ψ(x) = 0  for  x ≤ 0  and  xL
An infinite potential makes any nonzero amplitude carry infinite energy, so the state cannot occupy the walls or the exterior. Continuity of ψ then forces the interior solution to match zero at each wall. A
5
ψ(0) = A sin 0 + B cos 0 = B = 0
Impose the left boundary condition; cos(0) = 1 kills the cosine branch. A
6
ψ(L) = A sin(kL) = 0  ⟹   sin(kL) = 0
Impose the right boundary condition. Taking A = 0 gives the trivial (unnormalisable, zero-probability) solution, so a nonzero state requires the sine to vanish. A
7
kL = nπ,   n = 1, 2, 3, …  ⟹   kn = nπ/L
The zeros of sine are integer multiples of π. n = 0 gives ψ ≡ 0 (excluded); negative n only flip the sign of ψ and add nothing new, so the labels are the positive integers. A
8
En = ℏ2kn2/(2m) = n2π22/(2mL2)
Invert the definition k2 = 2mE/ℏ2 from step 2 and substitute the allowed kn. Every En > 0, retroactively justifying the real k assumed in step 2 (no bound states exist at or below the well floor). B
9
0L |ψn|2 dx = |A|20L sin2(nπx/L) dx = |A|2 · L/2 = 1
Born rule: total probability must be one. Use sin2θ = (1 − cos 2θ)/2; the cosine integrates to zero over an integer number of half-periods, leaving L/2. B
10
A = √(2/L)  ⟹   ψn(x) = √(2/L) sin(nπx/L)
Solve for the modulus of A; the overall phase is physically irrelevant, so choose A real and positive. A
11
0L ψm(x) ψn(x) dx = (2/L) ∫0L sin(mπx/L) sin(nπx/L) dx = δmn
Product-to-sum: sina sinb = ½[cos(ab) − cos(a+b)]. For mn both cosines integrate to zero over [0,L]; for m = n the first term gives L/2. Orthonormality is also guaranteed a priori because these are eigenfunctions of a Hermitian operator with distinct eigenvalues. C
Result
En = n2π22 / (2mL2),    ψn(x) = √(2/L) sin(nπx/L),    n = 1, 2, 3, …

Reading. The allowed energies form a ladder spaced as the squares of the integers, with a nonzero ground state E1 = π22/(2mL2) — the zero-point energy demanded by confinement and the uncertainty principle. The n-th eigenfunction is a standing sine wave fitting exactly n half-wavelengths between the walls, with n − 1 interior nodes; adjacent states are orthogonal.

Units check.2 carries (J·s)2 = J2s2; dividing by mL2 (kg·m2) gives J2s2/(kg·m2). Since J = kg·m2·s−2, one factor of J cancels kg·m2·s−2, leaving J — an energy, as required. The amplitude √(2/L) has units m−1/2, so |ψ|2 is a probability per unit length (m−1) and ∫|ψ|2dx is dimensionless.

Limiting cases
  • Wide box / heavy particle (L → ∞ or m → ∞): level spacing En+1En ∝ 1/(mL2) → 0, the spectrum becomes effectively continuous, and the classical free particle is recovered (correspondence principle).
  • High quantum number (n ≫ 1): the probability density (2/L) sin2(nπx/L) oscillates so rapidly that its local average, 1/L, matches the uniform classical distribution of a particle bouncing between walls.
  • Fractional spacing: (En+1En)/En = (2n+1)/n2 → 0 as n grows: the ladder looks smooth from far up even though absolute gaps widen.
  • Ground state: setting n = 1 gives the irreducible confinement energy; it cannot be lowered without widening the box, a direct manifestation of Δx Δp ≳ ℏ/2 with Δx ~ L.
Breaks when
  • Walls are finite. Any real potential is finite, so ψ penetrates the barriers, the sine no longer vanishes exactly at the edges, and the transcendental matching condition replaces kL = nπ. Energies are pushed below the ideal values and the number of bound states becomes finite.
  • Relativistic or strongly-bound regime. When En approaches mc2 (very small L or very light particle), the non-relativistic kinetic relation E = ℏ2k2/2m fails and one must use the relativistic dispersion; the n2 law is lost.
  • Interactions or many particles. The single-particle eigenbasis stops being the whole story once particles interact or fermion antisymmetry couples the coordinates; the box levels then act only as an unperturbed starting point.
  • Time-dependent or moving walls. If L = L(t), the states are no longer stationary; energy is not conserved and one must solve the time-dependent equation (quantum analogue of an adiabatic or sudden expansion).
Failure modes
  • Including n = 0. Students list a "ground state" at E = 0; but n = 0 makes ψ ≡ 0 everywhere, which is not a physical state. The lowest state is n = 1.
  • Forgetting to normalise. Writing ψn = sin(nπx/L) without the √(2/L) prefactor gives wrong probabilities and wrong expectation values.
  • Using the wrong well width in k. For a well running from −L/2 to +L/2 the eigenfunctions split into even cosines and odd sines; blindly reusing sin(nπx/L) mislabels parity and misplaces nodes.
  • Demanding continuous ψ′ at the walls. The derivative is discontinuous here because the potential is infinite; imposing derivative continuity yields no solutions.
  • Squaring the energy formula wrong. Treating the spacing as linear in n (like the harmonic oscillator) instead of quadratic; the box goes as n2, not n.
  • Mismatched units for ℏ. Mixing ℏ = 1.055×10−34 J·s with electron-volt energies without converting, giving answers off by 1.6×10−19.
Discussion

The physics of the box is entirely in its boundary conditions. The differential equation inside is that of a free particle, whose spectrum is continuous; it is the demand that ψ vanish at two points a distance L apart that selects a countable set of standing waves. This is the same mechanism that quantises a vibrating string's overtones — the quantum numbers here are literally the harmonic numbers of a string of length L, with de Broglie wavelength λn = 2L/n. Quantum mechanics adds only the identification of wave frequency with energy through E = ℏ2k2/2m.

The eigenfunctions form a complete orthonormal set, which is why the box is so useful: any well-behaved state vanishing at the walls can be expanded as ψ(x) = Σn cn ψn(x) with cn = ∫0L ψn ψ dx. This is nothing but a Fourier sine series, and |cn|2 is the probability of measuring energy En. Time evolution is then trivial: each coefficient picks up a phase eiEnt/ℏ, so the box is the cleanest laboratory for watching wavepackets disperse and revive.

Parity and nodes carry physical content. The ground state has no interior node and is symmetric about the centre; each successive state adds one node and alternates symmetry about x = L/2. More nodes mean larger curvature, hence larger ⟨p2⟩ and higher energy — the variational intuition that "wigglier means costlier" is exact here. The nonzero ground-state energy is the confinement energy: pinning a particle to a region of size L forces a momentum spread of order ℏ/L and hence a kinetic energy of order ℏ2/(2mL2), which is precisely E1 up to the factor π2.

More deeply, the choice ψ(0) = ψ(L) = 0 is one self-adjoint extension of the free-particle kinetic operator on the interval; other extensions (periodic, antiperiodic, Robin) give physically different, equally consistent spectra. This is the finite-dimensional shadow of a general fact: the Hamiltonian is not defined until its domain is, and the boundary data are that domain. The reality of the spectrum and the completeness of the eigenbasis used in the expansion above are guaranteed by the self-adjointness proven for Hermitian operators, tying this concrete problem to the general spectral theorem.

Common misconceptions. The walls do not "reflect" a classical particle that still has definite position; the eigenstate is a genuine standing wave with no net current and a fixed energy. And the box is not "empty except at the walls" — the potential is zero inside precisely so that all the interesting structure lives in the interior wavefunction, not in the (idealised, unphysical) walls themselves.

Worked examples
1
Electron in a 0.50 nm box — ground-state energy.
A crude model of an electron confined to a single atom-sized region. Take m = me = 9.109×10−31 kg, L = 0.50 nm = 5.0×10−10 m, n = 1. A
2
E1 = π22/(2meL2)
Set n = 1 in the result. Symbols first, numbers next. A
3
E1 = (9.8696)(1.0546×10−34)2 / [2(9.109×10−31)(5.0×10−10)2]
Substitute ℏ = 1.0546×10−34 J·s and π2 = 9.8696. Numerator = 9.8696 × 1.1122×10−68 = 1.0977×10−67 J2s2. Denominator = 2 × 9.109×10−31 × 2.5×10−19 = 4.555×10−49 kg·m2. B
E1 = 2.41×10−19 J ≈ 1.5 eV

Reading. An electron squeezed into half a nanometre has a zero-point energy of about 1.5 electron-volts — comparable to atomic and molecular binding energies, which is why the box is a serviceable back-of-envelope model for valence electrons.

Units check. J2s2/(kg·m2) = J, then divided by 1.602×10−19 J/eV gives eV.

1
Photon emitted in the n = 3 → n = 2 transition of the same electron.
Find the wavelength of light released when the electron drops between levels. Use E1 = 2.41×10−19 J from Example 1. A
2
ΔE = E3E2 = (32 − 22) E1 = 5 E1
Energies scale as n2, so the gap is (9 − 4)E1. Symbols before numbers. A
3
ΔE = 5 × 2.41×10−19 J = 1.205×10−18 J
Insert the ground-state value. A
4
λ = hcE = (6.626×10−34)(2.998×108) / 1.205×10−18
Planck relation E = hc/λ for the emitted photon. Numerator = 1.986×10−25 J·m. B
λ = 1.65×10−7 m ≈ 165 nm

Reading. The transition lands in the ultraviolet — again the right order of magnitude for electronic transitions, confirming the box captures the essential energy scale even though real atoms need the Coulomb potential for accuracy.

Units check. (J·s)(m·s−1)/J = m, a wavelength.

Problems
  1. Show that the expectation value of position in any eigenstate is ⟨x⟩ = L/2, and explain why this is obvious from symmetry.
    Solutionx⟩ = (2/L) ∫0L x sin2(nπx/L) dx. Using sin2θ = (1−cos2θ)/2, the integral splits into (2/L)[∫x/2 dx − ∫(x/2)cos(2nπx/L) dx]. The first term gives (2/L)(L2/4) = L/2. The second, integrated by parts, vanishes because cos(2nπ) = 1 and sin(2nπ) = 0 at both limits. Hence ⟨x⟩ = L/2. It is obvious because |ψn|2 is symmetric about the centre x = L/2 for every n.
  2. Compute ⟨x2⟩ for the n-th state and hence the position uncertainty Δx. Evaluate Δx for the ground state.
    SolutionStandard result: ⟨x2⟩ = L2[1/3 − 1/(2n2π2)]. Then (Δx)2 = ⟨x2⟩ − ⟨x2 = L2[1/3 − 1/(2n2π2) − 1/4] = L2[1/12 − 1/(2n2π2)]. For n = 1: 1/12 − 1/(2π2) = 0.08333 − 0.05066 = 0.03267, so Δx = L√0.03267 = 0.181L. Reassuringly less than L: the particle is fairly well localised near the centre.
  3. Show ⟨p⟩ = 0 and ⟨p2⟩ = (nπ ℏ/L)2 in any eigenstate, and verify the Heisenberg product Δx Δp for n = 1.
    Solutionp⟩ = −iℏ(2/L)∫0L sin(nπx/L)·(nπ/L)cos(nπx/L) dx = 0, since the integrand is (proportional to) d/dx[sin2] and sin vanishes at both ends. For ⟨p2⟩: since Ĥ = 2/2m inside the well, ⟨p2⟩ = 2mEn = 2m·n2π22/(2mL2) = (nπℏ/L)2. So Δp = nπℏ/L. For n = 1: Δx Δp = (0.181L)(πℏ/L) = 0.568 ℏ > ℏ/2 = 0.5 ℏ. The uncertainty bound is satisfied, and the ground state comes close to saturating it.
  4. A proton (m = 1.673×10−27 kg) is confined to a nucleus modelled as a box of width L = 1.0×10−14 m (10 fm). Find E1 in MeV.
    SolutionE1 = π22/(2mL2) = 9.8696 × (1.0546×10−34)2 / [2 × 1.673×10−27 × (1.0×10−14)2]. Numerator = 9.8696 × 1.1122×10−68 = 1.0977×10−67. Denominator = 2 × 1.673×10−27 × 1.0×10−28 = 3.346×10−55. E1 = 3.28×10−13 J = 3.28×10−13/1.602×10−13 MeV = 2.0 MeV. The MeV scale is exactly why nuclear binding energies dwarf atomic ones — confinement to femtometres, not nanometres.
  5. An electron sits in the n = 2 state of a box of width L. Find the probability of locating it in the left quarter, 0 ≤ xL/4.
    SolutionP = (2/L) ∫0L/4 sin2(2πx/L) dx. With sin2θ = (1−cos4πx/L)/2: P = (2/L)[x/2 − (L/8π)sin(4πx/L)]0L/4 = (2/L)[L/8 − (L/8π)sin(π)]. Since sin(π) = 0, P = (2/L)(L/8) = 1/4 = 0.25. Exactly a quarter — for n = 2 the density has a full period in [0,L/2], so each quarter carries a symmetric equal share here. (Contrast n = 1, where the same integral gives ≈ 0.091, less than a quarter because the ground-state density is depleted near the wall.)