particle in a box
Think of a guitar string clamped at both ends. Pluck it and it can vibrate only in certain patterns: one smooth arch, two arches, three, and so on — never a fraction of an arch, because the ends must stay fixed. The particle in a box is the quantum mechanical cousin of that string. Trap a particle between two walls it cannot pass, and its wavefunction must fit between the walls just like the string, so only certain standing-wave shapes — and only certain energies — are allowed.
More precisely, the particle in a box is the simplest model in quantum mechanics: a single particle confined to a region with walls of infinite height, free to move inside but unable to escape. Solving the Schrödinger equation for it gives a ladder of allowed energies that grow as the square of a whole number, and wavefunctions that look exactly like the harmonics of a string. It is the textbook starting point because it can be solved fully by hand, yet it already shows quantization, zero-point energy, and nodes.
The honest qualifier is that no real system is a perfect box with infinitely high walls — it is a deliberately idealized toy. But it is a surprisingly useful toy: it gives a first, rough estimate of the energy levels of electrons spread along a conjugated molecule, such as the chain of alternating bonds in a dye, and it builds the intuition needed before tackling atoms and molecules.
Treat the loosely held electrons in a long conjugated dye molecule as particles trapped in a one-dimensional box the length of the chain. The model predicts that longer chains have smaller energy gaps, so they absorb redder light — which is exactly why dyes with longer conjugation tend to be more deeply coloured.
A toy box that still predicts why long-chain dyes look deeper coloured.
Notice that the lowest allowed energy is not zero: the particle can never be perfectly still inside the box. That leftover motion is zero-point energy, and it follows directly from the uncertainty principle — confining the particle forces some minimum jiggle.