📦 Particle in a Box

Eigenstate ψ_n(x) and |ψ_n(x)|²
Energy levels E_n
E_n =  ·  E_m =  ·  Beat period T =

About Particle in a Box

The particle in a box is the simplest solvable model in quantum mechanics: a particle confined to a 1D region of length L with infinitely high walls at the boundaries. Because the wavefunction must vanish at the walls, only a discrete set of standing-wave shapes fit inside — the eigenfunctions ψn(x) = √(2/L)·sin(nπx/L) — each tied to a quantized energy En = n²π²ħ²/(2mL²). This single result — that confinement forces energy to come in discrete steps rather than a smooth continuum — is the seed from which most of quantum mechanics grows.

This simulation lets you inspect a single eigenstate, showing both the wavefunction ψn(x) and its probability density |ψn(x)|², or switch to a superposition of two eigenstates n and m and watch the probability density genuinely evolve in time, sloshing back and forth across the box at the quantum beat frequency ω = Em − En. The same confinement physics governs real quantum dots — semiconductor nanocrystals only a few nanometres wide — where shrinking the box raises the energy gap and shifts the emitted colour toward blue, the principle used in QLED displays and biomedical imaging labels.

Frequently Asked Questions

What is the particle in a box model?

It is an idealised quantum system: a particle confined to a 1D region of length L by infinitely high potential walls at x = 0 and x = L, with zero potential inside. Solving the Schrödinger equation under these boundary conditions gives a discrete ladder of allowed energies rather than a continuum, making it the clearest illustration of quantum energy quantisation.

Why are the energy levels discrete instead of continuous?

The wavefunction must be zero at both walls, since the particle cannot exist where the potential is infinite. Only sine waves that fit a whole number of half-wavelengths between the walls satisfy this condition, and each allowed wavelength corresponds to one specific energy En = n²π²ħ²/(2mL²). Boundary conditions, not the equation itself, are what force the energies to be discrete.

What does the superposition mode actually show?

It mixes two eigenstates, n and m, into a single time-dependent state Ψ(x,t) and plots its live probability density |Ψ(x,t)|². Because the two components accumulate phase at different rates (set by their energies), the combined density is not static — it visibly oscillates, or "beats", back and forth inside the box at angular frequency ω = Em − En, a direct demonstration of real quantum time evolution.

Where does this simple model apply in the real world?

It is the working principle behind quantum dots — nanocrystal semiconductors a few nanometres across used in QLED televisions, solar cells and biomedical fluorescent imaging — where confining an electron to a nanoscale volume sets its energy gap, and therefore its emitted colour, purely through box-like confinement. It is also the standard first approximation for electrons in conjugated molecules and in engineered semiconductor quantum wells.