iris
n = 1 n = 2 n = 3 n = 4 n = 5 n = 6
Wavefunctions ψn(x)
Probability Density |ψ|²
Weight n=11.00
Weight n=20.00
Weight n=30.00
Weight n=40.00
Weight n=50.00
Weight n=60.00

Energy Levels

E1 = π²ℏ²/(2mL²) 1.00 E1
E2 = 4 E1 4.00 E1
E3 = 9 E1 9.00 E1
E4 = 16 E1 16.00 E1
E5 = 25 E1 25.00 E1
E6 = 36 E1 36.00 E1

Superposition State

Normalization 1.0000
Mean energy ⟨E⟩ 1.00 E1
Time 0.00

How it works

The particle in a box (or infinite square well) is one of the simplest quantum mechanical systems. A particle of mass m is confined to a region of length L by infinitely high potential walls. The particle cannot exist outside the box, so the wavefunction must be zero at the boundaries.

This boundary condition forces the wavefunction into standing-wave patterns: ψn(x) = √(2/L) sin(nπx/L). Only specific wavelengths fit, which means only discrete energy levels are allowed: En = n²π²ℏ² / (2mL²). Energy is proportional to n², so the spacing between levels grows with n.

Each eigenstate has n−1 nodes (zeros inside the box). The probability density |ψn(x)|² tells us where the particle is likely to be found, following Born’s rule. For a single eigenstate, the probability density is static — it doesn’t change with time.

However, when you create a superposition of different energy levels, the probability density oscillates. Each component accumulates phase at a rate proportional to its energy: ψ(x,t) = Σ cn ψn(x) e−iEnt/ℏ. The interference between components at different frequencies produces a probability density that sloshes back and forth — the quantum analog of a classical particle bouncing between walls.