# Particle in a box

In quantum mechanics, the particle in a box model (also known as the infinite potential well or the infinite square well) describes the movement of a free particle in a small space surrounded by impenetrable barriers. The model is mainly used as a hypothetical example to illustrate the differences between classical and quantum systems. In classical systems, for example, a particle trapped inside a large box 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. Likewise, 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 is one of the very few problems in quantum mechanics that can be solved analytically, without approximations. Due to its simplicity, the model allows insight into quantum effects without the need for complicated mathematics. It serves as a simple illustration of how energy quantizations (energy levels), which are found in more complicated quantum systems such as atoms and molecules, come about. 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.

## One-dimensional solution

The simplest form of the particle in a box model considers a one-dimensional system. Here, the particle may only move backwards and forwards along a straight line with impenetrable barriers at either end. The walls of a one-dimensional box may be seen as regions of space with an infinitely large potential energy. Conversely, the interior of the box has a constant, zero potential energy. This means that no forces act upon the particle inside the box and it can move freely in that region. However, infinitely large forces repel the particle if it touches the walls of the box, preventing it from escaping. The potential energy in this model is given as $V(x)={\begin{cases}0,&x_{c}-{\tfrac {L}{2}}<x<x_{c}+{\tfrac {L}{2}},\\\infty ,&{\text{otherwise,}}\end{cases}},$ where L is the length of the box, x$_c$ is the location of the center of the box and x is the position of the particle within the box. Simple cases include the centered box (x$_c$ = 0) and the shifted box (x$_c$ = L/2) (pictured).

### Position wave function

In quantum mechanics, the wave function gives the most fundamental description of the behavior of a particle; the measurable properties of the particle (such as its position, momentum and energy) may all be derived from the wave function. The wave function $\psi (x,t)$ can be found by solving the Schrödinger equation for the system $i\hbar {\frac {\partial }{\partial t}}\psi (x,t)=-{\frac {\hbar ^{2}}{2m}}{\frac {\partial ^{2}}{\partial x^{2}}}\psi (x,t)+V(x)\psi (x,t),$ where $\hbar$ is the reduced Planck constant, $m$ is the mass of the particle, $i$ is the imaginary unit and $t$ is time.
Inside the box, no forces act upon the particle, which means that the part of the wave function inside the box oscillates through space and time with the same form as a free particle:
where $A$ and $B$ are arbitrary complex numbers. The frequency of the oscillations through space and time is given by the wave number $k$ and the angular frequency $\omega$ respectively. These are both related to the total energy of the particle by the expression
$E=\hbar \omega ={\frac {\hbar ^{2}k^{2}}{2m}},$ which is known as the dispersion relation for a free particle. However, since the particle is not entirely free but under the influence of a potential, the energy of the particle is $E=T+V,$ where T is the kinetic and V the potential energy. Therefore, the energy of the particle given above is not the same thing as $E=p^{2}/2m$ (i.e. the momentum of the particle is not given by $p=\hbar k$). Thus the wave number k above actually describes the energy states of the particle and is not related to momentum like the "wave number" usually is. The rationale for calling k the wave number is that it enumerates the number of crests that the wave function has inside the box, and in this sense it is a wave number. This discrepancy can be seen more clearly below, when we find out that the energy spectrum of the particle is discrete (only discrete values of energy are allowed) but the momentum spectrum is continuous (momentum can vary continuously), i.e., $E\neq p^{2}/2m$.
The amplitude of the wave function at a given position is related to the probability of finding a particle there by $P(x,t)=|\psi (x,t)|^{2}$. The wave function must therefore vanish everywhere beyond the edges of the box. Also, the amplitude of the wave function may not "jump" abruptly from one point to the next. These two conditions are only satisfied by wave functions with the form $\psi _{n}(x,t)={\begin{cases}A\sin \left(k_{n}\left(x-x_{c}+{\tfrac {L}{2}}\right)\right)e^{-i\omega _{n}t}\quad &x_{c}-{\tfrac {L}{2}}<x<x_{c}+{\tfrac {L}{2}}\\0&{\text{otherwise}}\end{cases}},$ where $k_{n}={\frac {n\pi }{L}},$ and $E_{n}=\hbar \omega _{n}={\frac {k_{n}^{2}\hbar ^{2}}{2m}}={\frac {n^{2}\pi ^{2}\hbar ^{2}}{2mL^{2}}},$ for positive integers $n\in \mathbb {Z} _{>0}$. The simplest solutions, $k_{n}=0$ or $A=0$ both yield the trivial wave function $\psi (x)=0$, which describes a particle that does not exist anywhere in the system. Here one sees that only a discrete set of energy values and wave numbers k are allowed for the particle. Usually in quantum mechanics it is also demanded that the derivative of the wave function in addition to the wave function itself be continuous; here this demand would lead to the only solution being the constant zero function, which is not what we desire, so we give up this demand (as this system with infinite potential can be regarded as a nonphysical abstract limiting case, we can treat it as such and "bend the rules"). Note that giving up this demand means that the wave function is not a differentiable function at the boundary of the box, and thus it can be said that the wave function does not solve the Schrödinger equation at the boundary points $x=0$ and $x=L$ (but does solve it everywhere else).
Finally, the unknown constant $A$ may be found by normalizing the wave function. That is, it follows from $\int _{0}^{L}\left\vert \psi (x)\right\vert ^{2}dx=1,$ that any complex number $A$ whose absolute value is $\left|A\right|={\sqrt {\frac {2}{L}}},$ yields the same normalized state.
It is expected that the eigenvalues, i.e., the energy $E_{n}$ of the box should be the same regardless of its position in space, but $\psi _{n}(x,t)$ changes. Notice that $x_{c}-{\tfrac {L}{2}}$ represents a phase shift in the wave function. This phase shift has no effect when solving the Schrödinger equation, and therefore does not affect the eigenvalue.
If we set the origin of coordinates to the center of the box, we can rewrite the spatial part of the wave function succinctly as: $\psi _{n}(x)={\begin{cases}{\sqrt {\frac {2}{L}}}\sin(k_{n}x)\quad{\text{for }}n{\text{ even}}\\{\sqrt {\frac {2}{L}}}\cos(k_{n}x)\quad{\text{for }}n{\text{ odd}}.\end{cases}}$

### Momentum wave function

The momentum wave function is proportional to the Fourier transform of the position wave function. With $k=p/\hbar$ (note that the parameter k describing the momentum wave function below is not exactly the special k$_n$ above, linked to the energy eigenvalues), the momentum wave function is given by $\phi _{n}(p,t)={\frac {1}{\sqrt {2\pi \hbar }}}\int _{-\infty }^{\infty }\psi _{n}(x,t)e^{-ikx}\,dx={\sqrt {\frac {L}{\pi \hbar }}}\left({\frac {n\pi }{n\pi +kL}}\right)\,\operatorname {sinc} \left({\tfrac {1}{2}}(n\pi -kL)\right)e^{-ikx_{c}}e^{i(n-1){\tfrac {\pi }{2}}}e^{-i\omega _{n}t},$ where sinc is the cardinal sine sinc function, sinc(x) = sin(x)/x. For the centered box (x$_c$ = 0), the solution is real and particularly simple, since the phase factor on the right reduces to unity. (With care, it can be written as an even function of p.)
It can be seen that the momentum spectrum in this wave packet is continuous, and one may conclude that for the energy state described by the wave number k$_n$, the momentum can, when measured, also attain other values beyond $p=\pm \hbar k_{n}$.
Hence, it also appears that, since the energy is E$_n$=ℏ$^2$k$_n$$^2$/2m {\textstyle E_{n}={\frac {\hbar ^{2}k_{n}^{2}}{2m}}} for the nth eigenstate, the relation E=p$^2$/2m {\textstyle E={\frac {p^{2}}{2m}}} does not strictly hold for the measured momentum p; the energy eigenstate $\psi _{n}$ is not a momentum eigenstate, and, in fact, not even a superposition of two momentum eigenstates, as one might be tempted to imagine from equation (1) above: peculiarly, it has no well-defined momentum before measurement!

### Position and momentum probability distributions

In classic 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 wave function as $P(x)=|\psi (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 $P_{n}(x,t)={\begin{cases}{\frac {2}{L}}\sin ^{2}\left(k_{n}\left(x-x_{c}+{\tfrac {L}{2}}\right)\right),&x_{c}-{\frac {L}{2}}<x<x_{c}+{\frac {L}{2}},\\0,&{\text{otherwise,}}\end{cases}}$
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. If relativistic wave equations are considered, however, the probability density not go to zero at the nodes (apart from the trivial case $n=0$).
In quantum mechanics, the average, or expectation value of the position of a particle is given by $\langle x\rangle =\int _{-\infty }^{\infty }xP_{n}(x)\,\mathrm {d} x.$
For the steady state particle in a box, it can be shown that the average position is always $\langle x\rangle =x_{c}$, regardless of the state of the particle. For a superposition of states, the expectation value of the position will change based on the cross term, which is proportional to $\cos(\omega t)$.
The variance in the position is a measure of the uncertainty in position of the particle: $\mathrm {Var} (x)=\int _{-\infty }^{\infty }(x-\langle x\rangle )^{2}P_{n}(x)\,dx={\frac {L^{2}}{12}}\left(1-{\frac {6}{n^{2}\pi ^{2}}}\right)$
The probability density for finding a particle with a given momentum is derived from the wave function as $P(x)=|\phi (x)|^{2}$. As with position, the probability density for finding the particle at a given momentum depends upon its state, and is given by $P_{n}(p)={\frac {L}{\pi \hbar }}\left({\frac {n\pi }{n\pi +kL}}\right)^{2}\,{\textrm {sinc}}^{2}\left({\tfrac {1}{2}}(n\pi -kL)\right)$ where, again, $k=p/\hbar$. The expectation value for the momentum is then calculated to be zero, and the variance in the momentum is calculated to be: $\mathrm {Var} (p)=\left({\frac {\hbar n\pi }{L}}\right)^{2}$
The uncertainties in position and momentum ($\Delta x$ and $\Delta p$) are defined as being equal to the square root of their respective variances, so that: $\Delta x\Delta p={\frac {\hbar }{2}}{\sqrt {{\frac {n^{2}\pi ^{2}}{3}}-2}}$
This product increases with increasing n, having a minimum for n = 1. The value of this product for n = 1 is about equal to 0.568 $\hbar$, which obeys the Heisenberg uncertainty principle, which states that the product will be greater than or equal to $\hbar /2$.
Another measure of uncertainty in position is the information entropy of the probability distribution H$_x$: $H_{x}=\int _{-\infty }^{\infty }P_{n}(x)\log(P_{n}(x)x_{0})\,dx=\log \left({\frac {2L}{e\,x_{0}}}\right)$ where x$_0$ is an arbitrary reference length.
Another measure of uncertainty in momentum is the information entropy of the probability distribution H$_p$: $H_{p}(n)=\int _{-\infty }^{\infty }P_{n}(p)\log(P_{n}(p)p_{0})\,dp$ $\lim _{n\to \infty }H_{p}(n)=\log \left({\frac {4\pi \hbar \,e^{2(1-\gamma )}}{L\,p_{0}}}\right)$ where γ is Euler's constant. The quantum mechanical entropic uncertainty principle states that for $x_{0}\,p_{0}=\hbar$ $H_{x}+H_{p}(n)\geq \log(e\,\pi )\approx 2.14473...$ (nats)
For $x_{0}\,p_{0}=\hbar$, the sum of the position and momentum entropies yields: $H_{x}+H_{p}(\infty )=\log \left(8\pi \,e^{1-2\gamma }\right)\approx 3.06974...$ where the unit is nat, and which satisfies the quantum entropic uncertainty principle.

### Energy levels

The energies that correspond with each of the permitted wave numbers may be written as $E_{n}={\frac {n^{2}\hbar ^{2}\pi ^{2}}{2mL^{2}}}={\frac {n^{2}h^{2}}{8mL^{2}}}.$ 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 zero-point energy) is found in state 1, which is given by $E_{1}={\frac {\hbar ^{2}\pi ^{2}}{2mL^{2}}}={\frac {h^{2}}{8mL^{2}}}.$ The particle, therefore, always has a positive energy. This contrasts with classical systems, where the particle can have zero energy by resting motionlessly. 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 $\Delta x\Delta p\geq {\frac {\hbar }{2}}$ It can be shown that the uncertainty in the position of the particle is proportional to the width of the box. Thus, the uncertainty in momentum is roughly inversely proportional to the width of the box. 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.

## Higher-dimensional boxes
### (Hyper-)rectangular walls

If a particle is trapped in a two-dimensional box, it may freely move in the $x$ and $y$-directions, between barriers separated by lengths $L_{x}$ and $L_{y}$ respectively. For a centered box, the position wave function may be written including the length of the box as $\psi _{n}(x,t,L)$. Using a similar approach to that of the one-dimensional box, it can be shown that the wave functions and energies for a centered box are given respectively by $\psi _{n_{x},n_{y}}=\psi _{n_{x}}(x,t,L_{x})\psi _{n_{y}}(y,t,L_{y}),$ $E_{n_{x},n_{y}}={\frac {\hbar ^{2}k_{n_{x},n_{y}}^{2}}{2m}},$ where the two-dimensional wavevector is given by $\mathbf {k} _{n_{x},n_{y}}=k_{n_{x}}\mathbf {\hat {x}} +k_{n_{y}}\mathbf {\hat {y}} ={\frac {n_{x}\pi }{L_{x}}}\mathbf {\hat {x}} +{\frac {n_{y}\pi }{L_{y}}}\mathbf {\hat {y}} .$
For a three dimensional box, the solutions are $\psi _{n_{x},n_{y},n_{z}}=\psi _{n_{x}}(x,t,L_{x})\psi _{n_{y}}(y,t,L_{y})\psi _{n_{z}}(z,t,L_{z}),$ $E_{n_{x},n_{y},n_{z}}={\frac {\hbar ^{2}k_{n_{x},n_{y},n_{z}}^{2}}{2m}},$ where the three-dimensional wavevector is given by: $\mathbf {k} _{n_{x},n_{y},n_{z}}=k_{n_{x}}\mathbf {\hat {x}} +k_{n_{y}}\mathbf {\hat {y}} +k_{n_{z}}\mathbf {\hat {z}} ={\frac {n_{x}\pi }{L_{x}}}\mathbf {\hat {x}} +{\frac {n_{y}\pi }{L_{y}}}\mathbf {\hat {y}} +{\frac {n_{z}\pi }{L_{z}}}\mathbf {\hat {z}} .$
In general for an n-dimensional box, the solutions are $\psi =\prod _{i}\psi _{n_{i}}(x_{i},t,L_{i})$
The n-dimensional momentum wave functions may likewise be represented by $\phi _{n}(x,t,L_{x})$ and the momentum wave function for an n-dimensional centered box is then: $\phi =\prod _{i}\phi _{n_{i}}(k_{i},t,L_{i})$
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 wave functions corresponding to the same total energy. For example, the wave function with $n_{x}=2,n_{y}=1$ has the same energy as the wave function with $n_{x}=1,n_{y}=2$. This situation is called degeneracy and for the case where exactly two degenerate wave functions 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.

### More complicated wall shapes

The wave function for a quantum-mechanical particle in a box whose walls have arbitrary shape is given by the Helmholtz equation subject to the boundary condition that the wave function vanishes at the walls. These systems are studied in the field of quantum chaos for wall shapes whose corresponding dynamical billiard tables are non-integrable.

## Applications

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 quantum-confined Stark effect modulator. It is also used to model a lattice in the Kronig–Penney model and for a finite metal with the free electron approximation.

### Conjugated polyenes

Conjugated polyene systems can be modeled using particle in a box. The conjugated system of electrons can be modeled as a one dimensional box with length equal to the total bond distance from one terminus of the polyene to the other. In this case each pair of electrons in each π bond corresponds to their energy level. The energy difference between two energy levels, n$_f$ and n$_i$ is: $\Delta E={\frac {(n_{f}^{2}-n_{i}^{2})h^{2}}{8mL^{2}}}$
The difference between the ground state energy, n, and the first excited state, n+1, corresponds to the energy required to excite the system. This energy has a specific wavelength, and therefore color of light, related by: $\lambda ={\frac {hc}{\Delta E}}$
A common example of this phenomenon is in β-carotene. β-carotene (C$_{40}$H$_{56}$) is a conjugated polyene with an orange color and a molecular length of approximately 3.8 nm (though its chain length is only approximately 2.4 nm). Due to β-carotene's high level of conjugation, electrons are dispersed throughout the length of the molecule, allowing one to model it as a one-dimensional particle in a box. β-carotene has 11 carbon-carbon double bonds in conjugation; each of those double bonds contains two π-electrons, therefore β-carotene has 22 π-electrons. With two electrons per energy level, β-carotene can be treated as a particle in a box at energy level n=11. Therefore, the minimum energy needed to excite an electron to the next energy level can be calculated, n=12, as follows (recalling that the mass of an electron is 9.109 × 10$^{−31}$ kg): $\Delta E={\frac {(n_{f}^{2}-n_{i}^{2})h^{2}}{8mL^{2}}}={\frac {(12^{2}-11^{2})h^{2}}{8mL^{2}}}=2.3658\times 10^{-19}{\text{ J}}$
Using the previous relation of wavelength to energy, recalling both the Planck constant h and the speed of light c: $\lambda ={\frac {hc}{\Delta E}}=0.00000084{\text{ m}}=840{\text{ nm}}$
This indicates that β-carotene primarily absorbs light in the infrared spectrum, therefore it would appear white to a human eye. However the observed wavelength is 450 nm, indicating that the particle in a box is not a perfect model for this system.

### Quantum well laser

The particle in a box model can be applied to quantum well lasers, which are laser diodes consisting of one semiconductor “well” material sandwiched between two other semiconductor layers of different material . Because the layers of this sandwich are very thin (the middle layer is typically about 100 Å thick), quantum confinement effects can be observed. The idea that quantum effects could be harnessed to create better laser diodes originated in the 1970s. The quantum well laser was patented in 1976 by R. Dingle and C. H. Henry.
Specifically, the quantum wells behavior can be represented by the particle in a finite well model. Two boundary conditions must be selected. The first is that the wave function must be continuous. Often, the second boundary condition is chosen to be the derivative of the wave function must be continuous across the boundary, but in the case of the quantum well the masses are different on either side of the boundary. Instead, the second boundary condition is chosen to conserve particle flux as $(1/m)d\phi /dz$, which is consistent with experiment. The solution to the finite well particle in a box must be solved numerically, resulting in wave functions that are sine functions inside the quantum well and exponentially decaying functions in the barriers. This quantization of the energy levels of the electrons allows a quantum well laser to emit light more efficiently than conventional semiconductor lasers.
Due to their small size, quantum dots do not showcase the bulk properties of the specified semi-conductor but rather show quantised energy states. This effect is known as the quantum confinement and has led to numerous applications of quantum dots such as the quantum well laser.
Researchers at Princeton University have recently built a quantum well laser that is no bigger than a grain of rice. The laser is powered by a single electron that passes through two quantum dots; a double quantum dot. The electron moves from a state of higher energy, to a state of lower energy whilst emitting photons in the microwave region. These photons bounce off mirrors to create a beam of light; the laser.
The quantum well laser is heavily based on the interaction between light and electrons. This relationship is a key component in quantum mechanical theories that include the De Broglie Wavelength and Particle in a box. The double quantum dot allows scientists to gain full control over the movement of an electron, which consequently results in the production of a laser beam.

#### Quantum dots

Quantum dots are extremely small semiconductors (on the scale of nanometers). They display quantum confinement in that the electrons cannot escape the “dot”, thus allowing particle-in-a-box approximations to be used. Their behavior can be described by three-dimensional particle-in-a-box energy quantization equations.
The energy gap of a quantum dot is the energy gap between its valence and conduction bands. This energy gap $\Delta E(r)$ is equal to the gap of the bulk material $E_{\text{gap}}$ plus the energy equation derived particle-in-a-box, which gives the energy for electrons and holes. This can be seen in the following equation, where $m_{e}^{*}$ and $m_{h}^{*}$ are the effective masses of the electron and hole, $r$ is radius of the dot, and $h$ is the Planck constant: $\Delta E(r)=E_{\text{gap}}+\left({\frac {h^{2}}{8r^{2}}}\right)\left({\frac {1}{m_{e}^{*}}}+{\frac {1}{m_{h}^{*}}}\right)$
Hence, the energy gap of the quantum dot is inversely proportional to the square of the "length of the box", i.e. the radius of the quantum dot.
Manipulation of the band gap allows for the absorption and emission of specific wavelengths of light, as energy is inversely proportional to wavelength. The smaller the quantum dot, the larger the band gap and thus the shorter the wavelength absorbed.
Different semiconducting materials are used to synthesize quantum dots of different sizes and therefore emit different wavelengths of light. Materials that normally emit light in the visible region are often used and their sizes are fine-tuned so that certain colors are emitted. Typical substances used to synthesize quantum dots are cadmium (Cd) and selenium (Se). For example, when the electrons of two nanometer CdSe quantum dots relax after excitation, blue light is emitted. Similarly, red light is emitted in four nanometer CdSe quantum dots.
Quantum dots have a variety of functions including but not limited to fluorescent dyes, transistors, LEDs, solar cells, and medical imaging via optical probes.
One function of quantum dots is their use in lymph node mapping, which is feasible due to their unique ability to emit light in the near infrared (NIR) region. Lymph node mapping allows surgeons to track if and where cancerous cells exist.
Quantum dots are useful for these functions due to their emission of brighter light, excitation by a wide variety of wavelengths, and higher resistance to light than other substances.