In quantum mechanics, the particle in a box model (also known as the infinite potential well or the infinite square well) describes a particle, which is free to move in a space surrounded by impenetrable barriers. In classical systems, for example a ball trapped inside a heavy box, the particle can move at any speed within the box and it is no more likely to be found at one position than another. However, when the well becomes very narrow (on the scale of a few nanometers), quantum effects become important. The particle may only occupy certain positive energy levels and it can never have zero energy, meaning that the particle can never "sit still". Additionally, it is more likely to be found at certain positions than at others, depending on its energy level. The particle may never be detected at certain positions, known as spatial nodes.
The particle in a box model provides one of the very few results of quantum mechanics which can be stated analytically. This means that the observable properties of the particle (such as its energy and position) are related to the mass of the particle and the width of the well by simple mathematical expressions. Due to its simplicity, the model allows insight into quantum effects without the need for complicated mathematics. It is one of the first quantum mechanics problems taught in undergraduate physics courses, and it is commonly used as an approximation for more complicated quantum systems.
Contents 
In quantum mechanics, the wavefunction gives the most fundamental description of the behaviour of a particle. The wavefunction can be found by solving the Schrödinger equation for the system and the measurable properties of the particle (such as its position, momentum and energy) may then be derived from the wavefunction.^{[1]} The simplest form of the particle in a box model considers a onedimensional system. Here, the particle may only move backwards and forwards along a straight line with impenetrable barriers at either end.^{[2]}
Inside the box, no forces act upon the particle, which means that the part of the wavefunction inside the box oscillates through space and time with the same form as a free particle:^{[2]}^{[3]}
where A and B are arbitrary complex numbers. The frequency of the oscillations through space and time are given by the wavenumber k and the angular frequency ω respectively. These are both related to the total energy of the particle by the expression
which is known as the dispersion relation for a free particle.^{[2]}
The size (or amplitude) of the wavefunction at a given position is related to the probability of finding a particle there by P(x,t) =  ψ(x,t)  ^{2}. The wavefunction must therefore vanish everywhere beyond the edges of the box.^{[3]}^{[2]} Also, the amplitude of the wavefunction may not "jump" abruptly from one point to the next.^{[2]} These two conditions are only satisfied by wavefunctions with the form
where n is a positive, whole number. The wavenumber is restricted to certain, specific values given by^{[4]}
where L is the size of the box.^{[6]} Negative values of n are neglected, since they give wavefunctions identical to the positive n solutions except for a physically unimportant sign change.^{[5]}
Finally, the unknown constant A may be found by normalizing the wavefunction so that the total probability density of finding the particle in the system is 1. It follows that
Thus, A may be any complex number with absolute value √(2/L); these different values of A yield the same physical state, so A = √(2/L) can be selected to simplify.
The energies which correspond with each of the permitted wavenumbers may be written as^{[4]}
The energy levels increase with n^{2}, meaning that high energy levels are separated from each other by a greater amount than low energy levels are. The lowest possible energy for the particle (its zeropoint energy) is found in state 1, which is given by^{[7]}
The particle, therefore, always has a positive energy. This contrasts with classical systems, where the particle can have zero energy by resting motionless at the bottom of the box. This can be explained in terms of the uncertainty principle, which states that the product of the uncertainties in the position and momentum of a particle is limited by
It can be shown that the uncertainty in the position of the particle is proportional to the width of the box.^{[8]} Thus, the uncertainty in momentum is roughly inversely proportional to the width of the box.^{[7]} The kinetic energy of a particle is given by E = p^{2} / (2m), and hence the minimum kinetic energy of the particle in a box is inversely proportional to the mass and the square of the well width, in qualitative agreement with the calculation above.^{[7]}
In classical physics, the particle can be detected anywhere in the box with equal probability. In quantum mechanics, however, the probability density for finding a particle at a given position is derived from the wavefunction as P(x) =  ψ(x)  ^{2}. For the particle in a box, the probability density for finding the particle at a given position depends upon its state, and is given by
Thus, for any value of n greater than one, there are regions within the box for which P(x) = 0, indicating that spatial nodes exist at which the particle cannot be found.
In quantum mechanics, the average, or expectation value of the position of a particle is given by
For the particle in a box, it can be shown that the average position is always , regardless of the state of the particle. In other words, the average position at which a particle in a box may be detected is exactly in the center of the quantum well; in agreement with a classical system.
If a particle is trapped in a twodimensional box, it may freely move in the x and ydirections, between barriers separated by lengths L_{x} and L_{y} respectively. Using a similar approach to that of the onedimensional box, it can be shown that the wavefunctions and energies are given respectively by
where the twodimensional wavevector is given by
For a three dimensional box, the solutions are
where the threedimensional wavevector is given by
An interesting feature of the above solutions is that when two or more of the lengths are the same (e.g. L_{x} = L_{y}), there are multiple wavefunctions corresponding to the same total energy. For example the wavefunction with n_{x} = 2,n_{y} = 1 has the same energy as the wavefunction with n_{x} = 1,n_{y} = 2. This situation is called degeneracy and for the case where exactly two degenerate wavefunctions have the same energy that energy level is said to be doubly degenerate. Degeneracy results from symmetry in the system. For the above case two of the lengths are equal so the system is symmetric with respect to a 90° rotation.
Because of its mathematical simplicity, the particle in a box model is used to find approximate solutions for more complex physical systems in which a particle is trapped in a narrow region of low electric potential between two high potential barriers. These quantum well systems are particularly important in optoelectronics, and are used in devices such as the quantum well laser, the quantum well infrared photodetector and the quantumconfined Stark effect modulator.
