Particle Trapped in a Box of Length L

Key idea: Set up the infinite square well and use its boundary conditions to obtain standing states, energy levels, and possible momentum magnitudes.

  • Advanced Physics
On this page

Learning objectives

  • Use state functions, boundary conditions, stationary states, and measurement to analyse introductory quantum systems.

This is the classic infinite square well model: a particle (e.g., an electron) is trapped in a 1D region of length L. It is the cleanest example of how boundary conditions lead to discrete standing wavelengths, energies, and possible momentum magnitudes.

1. Model and assumptions

We idealise the walls as infinitely high:

  • Inside the box (0 < x < L): V(x) = 0 (a constant).
  • Outside the box: V(x) → ∞ (so the particle cannot exist there).

The potential sketch below is the setup used throughout particle-in-a-box derivations: zero potential inside, effectively infinite walls outside.

Particle-in-a-box potential diagramPotential-energy versus position sketch for a one-dimensional infinite square well between 0 and L.xVinside well: V = 0V → ∞V → ∞0L
Scroll diagram horizontally to read all labels.
Infinite square well: V = 0 for 0 < x < L and V → ∞ outside, enforcing ψ(0) = ψ(L) = 0.

2. Infinite-wall boundary conditions

Because V → ∞ outside the box, the probability of finding the particle outside must be zero:

  • ψ(x) = 0 for x ≤ 0 and x ≥ L.
  • The wavefunction must also vanish at the walls: ψ(0) = ψ(L) = 0.

This “node at each wall” condition is the key reason energy becomes discrete.

3. Standing-wave quantisation

Inside the well, the particle behaves like a standing wave with nodes at both ends. Therefore, the box length must fit an integer number of half-wavelengths:

L = nλₙ/2 (n = 1,2,3,…)

where λₙ is the de Broglie wavelength for the nth state.

Using λ = h/|p| identifies the magnitude associated with each pair of travelling-wave components:

|pₙ| = nh/2L

The standing energy eigenstate is not a state of one definite momentum. A momentum measurement gives + pₙ or -pₙ with equal probability, while either result gives the same pₙ² and therefore the same energy:

Eₙ = pₙ²/2m = n²h²/8mL² = n²π²ħ²/2mL²

Derivations and full forms:

Standing-wave modes in a 1D box (shape of ψn)

Example shapes of the wavefunction ψn(x) for n = 1 and n = 2 in a 1D infinite square well (0 ≤ x/L ≤ 1), showing nodes at the walls and additional nodes for higher n.

Scroll across the graph to read all labels.

Example shapes of the wavefunction ψn(x) for n = 1 and n = 2 in a 1D infinite square well (0 ≤ x/L ≤ 1), showing nodes at the walls and additional nodes for higher n.Example shapes of the wavefunction ψn(x) for n = 1 and n = 2 in a 1D infinite square well (0 ≤ x/L ≤ 1), showing nodes at the walls and additional nodes for higher n.
Higher n means more nodes: n = 2 has an extra node at x/L = 0.5.
Open full-size graph
View figure data
Values for Standing-wave modes in a 1D box (shape of ψn)
Position (x/L)n = 1n = 2
000
0.050.1560.309
0.10.3090.588
0.150.4540.809
0.20.5880.951
0.250.7071
0.30.8090.951
0.350.8910.809
0.40.9510.588
0.450.9880.309
0.510
0.550.988-0.309
0.60.951-0.588
0.650.891-0.809
0.70.809-0.951
0.750.707-1
0.80.588-0.951
0.850.454-0.809
0.90.309-0.588
0.950.156-0.309
100

4. Interpretation

  • Quantisation comes from boundary conditions. The walls force nodes, which force discrete λₙ, hence discrete pₙ and Eₙ.
  • The energy is definite in a stationary state, but the momentum direction is not: the two outcomes are + pₙ and -pₙ.
  • n = 0 is not allowed (it would imply λ → ∞ and ψ = 0 everywhere).
  • Higher n gives higher energy and more nodes (more oscillations).

5. Common traps

  1. Writing n = 0 as the ground state (ground state is n = 1).
  2. Mixing up “half-wavelengths in the box” (L = nλ/2) with “full wavelengths” (L = nλ).
  3. Confusing ψ with |ψ|² (probability density).
  4. Forgetting to state boundary conditions explicitly when asked “why quantised?”.
  5. Treating pₙ as one signed momentum rather than the magnitude of the two possible outcomes.

6. Quick check

A. Without calculating anything, what is E₂/E₁ for a particle in a 1D box?

Answer

From Eₙ ∝ n², E₂/E₁ = (2 ²)/(1 ²) = 4.

B. Why is n = 0 not allowed?

Answer

Because the boundary conditions ψ(0) = ψ(L) = 0 force a standing wave. The n = 0 “mode” would mean no wave at all (the only solution is ψ = 0 everywhere), which cannot represent a particle.

Continue with the next resource in this course.

Course and syllabus information
Course
Advanced Physics
Edition
Advanced Physics