This applet illustrates Heisenberg's (position-momentum) Uncertainty Principle in quantum mechanics.
The user specifies a momentum spectrum and the applet plots the corresponding spatial probability density (position spectrum), as well as the real and imaginary parts of the wavefunction. The user can choose (continuous) gaussian or square spectra with variable central momentum and width. Alternatively, the user can construct an arbitrary discrete spectrum.
If the momentum spectrum is peaked around a particular value, then so is the spatial probability density. If the width of the momentum spectrum is small, then that of the position spectrum is large, and vice versa. This is Heisenberg's (position-momentum) Uncertainty Principle.
The mathematical expression of the Uncertainty Principle is that the product of the two widths is always greater than a minimum value which is about the size of Planck's constant:
Instructions for use