Particle in a Box Simulator: Quantum Energy Levels & Wave Functions

simulator beginner ~8 min
Loading simulation...
E_1 = 0.376 eV — ground state energy of the particle

For an electron (m = 1 m_e) in a 1 nm box, the ground state energy is 0.376 eV with a de Broglie wavelength of 2 nm. The wave function is a single half-sine wave with no nodes, and the particle has the highest probability of being found at the center of the box.

Formula

Wave function: psi_n(x) = sqrt(2/L) sin(n pi x / L)
Energy levels: E_n = n^2 pi^2 hbar^2 / (2 m L^2)
Zero-point energy: E_1 = pi^2 hbar^2 / (2 m L^2)
Normalization: integral |psi_n|^2 dx = 1

The Particle in a Box

The infinite square well — a particle trapped between two perfectly rigid walls — is the 'hydrogen atom' of quantum mechanics pedagogy. Despite its simplicity, it captures the essential features of quantum confinement: quantized energy levels, standing wave patterns, and zero-point energy. Every physics student meets this problem in their first quantum mechanics course.

Energy Quantization

Unlike a classical particle that can have any energy, the quantum particle can only occupy discrete energy levels E_n = n^2 pi^2 hbar^2 / (2mL^2). The energies scale as n^2 — the second level has 4 times the ground state energy, the third has 9 times, and so on. The energy level diagram on the right shows these quantized levels. This quantization arises from the boundary conditions: the wave function must be zero at both walls, which restricts it to standing sine waves with integer half-wavelengths fitting inside the box.

Wave Functions and Probability

The wave function psi_n(x) = sqrt(2/L) sin(n pi x / L) tells us the probability amplitude for finding the particle at position x. The probability density |psi|^2 (shown as the shaded region) gives the actual probability. For the ground state (n=1), the particle is most likely found at the center. For higher states, the probability develops nodes — points where the particle will never be found.

Zero-Point Energy

The lowest possible energy E_1 is not zero — the particle always retains a minimum kinetic energy called the zero-point energy. This is a direct consequence of Heisenberg's uncertainty principle: confining the particle's position increases the uncertainty in its momentum, and hence its kinetic energy. This effect is physically real and has measurable consequences, from the stability of atoms to the Casimir effect.

Superposition and Time Evolution

Toggle 'Superposition' to see what happens when the particle occupies a mixture of the n=1 and n=2 states simultaneously. The probability density now oscillates in time — the particle 'sloshes' back and forth in the box at a frequency proportional to the energy difference between the two levels. This demonstrates quantum dynamics and the principle of superposition.

FAQ

What is the particle in a box model?

The particle in a box (infinite square well) is the simplest exactly solvable quantum system. A particle is confined between two impenetrable walls at x=0 and x=L. The allowed wave functions are standing sine waves psi_n(x) = sqrt(2/L) sin(n pi x/L), with quantized energies E_n = n^2 pi^2 hbar^2/(2mL^2). It demonstrates energy quantization, zero-point energy, and the probabilistic nature of quantum mechanics.

Why is there a minimum energy (zero-point energy)?

The Heisenberg uncertainty principle prevents the particle from having zero kinetic energy. Confining the particle to a box of width L gives a minimum position uncertainty of ~L, which requires a minimum momentum uncertainty of ~hbar/L, corresponding to a minimum kinetic energy E_1 = pi^2 hbar^2/(2mL^2). This is the zero-point energy — the particle is never at rest.

What are nodes in the wave function?

Nodes are points inside the box where the wave function (and therefore the probability density) is exactly zero. The nth energy level has n-1 interior nodes. Nodes are where the standing wave crosses zero, similar to the nodes on a vibrating guitar string.

What is a quantum superposition?

A superposition is a valid quantum state formed by adding two or more energy eigenstates. The state psi = (psi_1 + psi_2)/sqrt(2) is not an energy eigenstate — its probability density oscillates in time at frequency (E_2 - E_1)/hbar. Measurement of energy would yield E_1 or E_2 each with 50% probability.

Sources

Embed

<iframe src="https://homo-deus.com/lab/quantum-mechanics/particle-in-a-box/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub