# The One-Dimensional Particle in a Box¶

## 🥅 Learning Objectives¶

• Determine the energies and eigenfunctions of the particle-in-a-box.
• Learn how to normalize a wavefunction.
• Learn how to compute expectation values for quantum-mechanical operators.
• Learn the postulates of quantum mechanics

## Cyanine Dyes¶

Cyanine dye molecules are often modelled as one-dimension particles in a box. To understand why, start by thinking classically. You learn in organic chemistry that electrons can more “freely” along alternating double bonds. If this is true, then you can imagine that the electrons can more from one Nitrogen to the other, almost without resistance. On the other hand, there are sp3-hybridized functional groups attached to the Nitrogen atom, so once the electron gets to Nitrogen atom, it has to turn around and go back whence it came. A very, very, very simple model would be to imagine that the electron is totally free between the Nitrogen atoms, and totally forbidden from going much beyond the Nitrogen atoms. This suggests modeling these systems a potential energy function like: $V\left(x\right)=\left\{\begin{array}{ll}+\mathrm{\infty }& x\le 0\\ 0& 0 where $a$$a$ is the length of the box. A reasonable approximate formula for $a$$a$ is

## Postulate: The squared magnitude of the wavefunction is proportional to probability¶

What is the interpretation of the wavefunction? The Born postulate indicates that the squared magnitude of the wavefunction is proportional to the probability of observing the system at that location. E.g., if $\psi \left(x\right)$$\psi(x)$ is the wavefunction for an electron as a function of $x$$x$, then $p\left(x\right)=|\psi \left(x\right){|}^{2}$ is the probability of observing an electron at the point $x$$x$. This is called the Born Postulate.

## The Wavefunctions of the Particle in a Box (boundary conditions)¶

The nice thing about this “particle in a box” model is that it is easy to solve the time-independent Schrödinger equation in this case. Because there is no chance that the particle could ever “escape” an infinite box like this (such an electron would have infinite potential energy!), $|\psi \left(x\right){|}^{2}$$|\psi(x)|^2$ must equal zero outside the box. Therefore the wavefunction can only be nonzero inside the box. In addition, the wavefunction should be zero at the edges of the box, because otherwise the wavefunction will not be continuous. So we should have a wavefunction like $\psi \left(x\right)=\left\{\begin{array}{ll}0& x\le 0\\ \text{?????}& 0

## Postulate: The wavefunction of a system is determined by solving the Schrödinger equation

How do we find the wavefunction for the particle-in-a-box or, for that matter, any other system? The wavefunction can be determined by solving the time-independent (when the potential is time-independent) or time-dependent (when the potential is time-dependent) Schrödinger equation.

## The Wavefunctions of the Particle in a Box (solution)¶

To find the wavefunctions for a system, one solves the Schrödinger equation. For a particle of mass $m$$m$ in a one-dimensional box, the (time-independent) Schrödinger equation is: $\left(-\frac{{\hslash }^{2}}{2m}\frac{{d}^{2}}{d{x}^{2}}+V\left(x\right)\right){\psi }_{n}\left(x\right)={E}_{n}{\psi }_{n}\left(x\right)$ where $V\left(x\right)=\left\{\begin{array}{ll}+\mathrm{\infty }& x\le 0\\ 0& 0 We already deduced that $\psi \left(x\right)=0$$\psi(x) = 0$ except when the electron is inside the box ($0$0 < x < a$), so we only need to consider the Schrödinger equation inside the box: $\left(-\frac{{\hslash }^{2}}{2m}\frac{{d}^{2}}{d{x}^{2}}\right){\psi }_{n}\left(x\right)={E}_{n}{\psi }_{n}\left(x\right)$ There are systematic ways to solve this equation, but let's solve it by inspection. That is, we need to know:

Question: What function(s), when differentiated twice, are proportional to themselves?\

This suggests that the eigenfunctions of the 1-dimensional particle-in-a-box must be some linear combination of sine and cosine functions, ${\psi }_{n}\left(x\right)=A\mathrm{sin}\left(cx\right)+B\mathrm{cos}\left(dx\right)$ We know that the wavefunction must be zero at the edges of the box, $\psi \left(0\right)=0$$\psi(0) = 0$ and $\psi \left(a\right)=0$$\psi(a) = 0$. These are called the boundary conditions for the problem. Examining the first boundary condition, $0=\psi \left(0\right)=A\mathrm{sin}\left(0\right)+B\mathrm{cos}\left(0\right)=0+B$ indicates that $B=0$$B=0$. The second boundary condition $0=\psi \left(a\right)=A\mathrm{sin}\left(ca\right)$ requires us to recall that $\mathrm{sin}\left(x\right)=0$$\sin(x) = 0$ whenever $x$$x$ is an integer multiple of $\pi$$\pi$. So $c=n\pi$$c=n\pi$ where $n=1,2,3,\dots$$n=1,2,3,\ldots$. The wavefunction for the particle in a box is thus, ${\psi }_{n}\left(x\right)={A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}n=1,2,3,\dots$

## Normalization of Wavefunctions¶

As seen in the previous section, if a wavefunction solves the Schrödinger equation, any constant multiple of the wavefunction also solves the Schrödinger equation, $\stackrel{^}{H}\psi \left(x\right)=E\psi \left(x\right)\phantom{\rule{1em}{0ex}}⟷\phantom{\rule{1em}{0ex}}\stackrel{^}{H}\left(A\psi \left(x\right)\right)=E\left(A\psi \left(x\right)\right)$ Owing to the Born postulate, the complex square of the wavefunction can be interpreted as probability. Since the probability of a particle being at some point in space is one, we can define the normalization constant, $A$$A$, for the wavefunction through the requirement that: ${\int }_{-\mathrm{\infty }}^{\mathrm{\infty }}{|\psi \left(x\right)|}^{2}dx=1.$ In the case of a particle in a box, this is: $\begin{array}{}\text{(1)}& 1& ={\int }_{-\mathrm{\infty }}^{\mathrm{\infty }}{|{\psi }_{n}\left(x\right)|}^{2}dx\text{(2)}& & ={\int }_{0}^{a}{\psi }_{n}\left(x\right){\psi }_{n}^{\ast }\left(x\right)dx\text{(3)}& & ={\int }_{0}^{a}{A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right){\left({A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\right)}^{\ast }dx\text{(4)}& & ={|{A}_{n}|}^{2}{\int }_{0}^{a}{\mathrm{sin}}^{2}\left(\frac{n\pi x}{a}\right)dx\end{array}$ To evaluate this integral, it is useful to remember some trigonometric identities. (You can learn more about how I remember trigonometric identities here.) The specific identity we need here is ${\mathrm{sin}}^{2}x=\frac{1}{2}\left(1-\mathrm{cos}2x\right)$$\sin^2 x = \tfrac{1}{2}(1-\cos 2x)$:

$\begin{array}{}\text{(5)}& 1& ={|{A}_{n}|}^{2}{\int }_{0}^{a}{\mathrm{sin}}^{2}\left(\frac{n\pi x}{a}\right)\phantom{\rule{thinmathspace}{0ex}}dx\text{(6)}& & ={|{A}_{n}|}^{2}{\int }_{0}^{a}\frac{1}{2}\left(1-\mathrm{cos}\left(\frac{2n\pi x}{a}\right)\right)\phantom{\rule{thinmathspace}{0ex}}dx\text{(7)}& & =\frac{{|{A}_{n}|}^{2}}{2}\left({\int }_{0}^{a}1\phantom{\rule{thinmathspace}{0ex}}dx-{\int }_{0}^{a}\mathrm{cos}\left(\frac{2n\pi x}{a}\right)\phantom{\rule{thinmathspace}{0ex}}dx\right)\text{(8)}& & =\frac{{|{A}_{n}|}^{2}}{2}\left({\left[x\right]}_{0}^{a}-{\left[\frac{-a}{2n\pi }\mathrm{sin}\left(\frac{2n\pi x}{a}\right)\right]}_{0}^{a}\right)\text{(9)}& & =\frac{{|{A}_{n}|}^{2}}{2}\left(a-0\right)\end{array}$

So ${|{A}_{n}|}^{2}=\frac{2}{a}$ Note that this does not completely determine ${A}_{n}$$A_n$. For example, any of the following normalization constants are allowed, ${A}_{n}=\sqrt{\frac{2}{a}}=-\sqrt{\frac{2}{a}}=i\sqrt{\frac{2}{a}}=-i\sqrt{\frac{2}{a}}$ In general, any square root of unity can be used, ${A}_{n}=\left(k±i\sqrt{1-{k}^{2}}\right)\sqrt{\frac{2}{a}}$ where $k$$k$ is any real number. The arbitrariness of the phase of the wavefunction is an important feature. Because the wavefunction can be imaginary (e.g., if you choose ${A}_{n}=i\sqrt{\frac{2}{a}}$$A_n = i \sqrt{\tfrac{2}{a}}$), it is obvious that the wavefunction is not an observable property of a system. The wavefunction is only a mathematical tool for quantum mechanics; it is not a physical object.

Summarizing, the (normalized) wavefunction for a particle with mass $m$$m$ confined to a one-dimensional box with length $a$$a$ can be written as: ${\psi }_{n}\left(x\right)=\sqrt{\frac{2}{a}}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}n=1,2,3,\dots$

Note that in this case, the normalization condition is the same for all $n$$n$; that is an unusual property of the particle-in-a-box wavefunction.

While this normalization convention is used 99% of the time, there are some cases where it is more convenient to make a different choice for the amplitude of the wavefunctions. I say this to remind you that normalization the wavefunction is something we do for convenience; it is not required by physics!

## Normalization Check¶

One advantage of using Jupyter is that we can easily check our (symbolic) mathematics. Let's confirm that the wavefunction is normalized by evaluating, ${\int }_{0}^{a}{|{\psi }_{n}\left(x\right)|}^{2}\phantom{\rule{thinmathspace}{0ex}}dx$

## The Energies of the Particle in a Box¶

How do we compute the energy of a particle in a box? All we need to do is substitute the eigenfunctions of the Hamiltonian, ${\psi }_{n}\left(x\right)$$\psi_n(x)$ back into the Schrödinger equation to determine the eigenenergies, ${E}_{n}$$E_n$. That is, from $\stackrel{^}{H}{\psi }_{n}\left(x\right)={E}_{n}{\psi }_{n}\left(x\right)$ we deduce $\begin{array}{}\text{(10)}& -\frac{{\hslash }^{2}}{2m}\frac{{d}^{2}}{d{x}^{2}}\left({A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\right)& ={E}_{n}\left({A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\right)\text{(11)}& -{A}_{n}\frac{{\hslash }^{2}}{2m}\frac{d}{dx}\left(\frac{n\pi }{a}\mathrm{cos}\left(\frac{n\pi x}{a}\right)\right)& ={E}_{n}\left({A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\right)\text{(12)}& {A}_{n}\frac{{\hslash }^{2}}{2m}{\left(\frac{n\pi }{a}\right)}^{2}\mathrm{sin}\left(\frac{n\pi x}{a}\right)& ={E}_{n}\left({A}_{n}\mathrm{sin}\left(\frac{n\pi x}{a}\right)\right)\text{(13)}& \frac{{\hslash }^{2}{n}^{2}{\pi }^{2}}{2m{a}^{2}}& ={E}_{n}\end{array}$ Using the definition of $\hslash$$\hbar$, we can rearrange this to: $\begin{array}{}\text{(14)}& {E}_{n}& =\frac{{\hslash }^{2}{n}^{2}{\pi }^{2}}{2m{a}^{2}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}n=1,2,3,\dots \text{(15)}& & =\frac{{h}^{2}{n}^{2}}{8m{a}^{2}}\end{array}$ Notice that only certain energies are allowed. This is a fundamental principle of quantum mechanics, and it is related to the "waviness" of particles. Certain "frequencies" are resonant, and other "frequencies" cannot be observed. The only energies that can be observed for a particle-in-a-box are the ones given by the above formula.

## Zero-Point Energy¶

Naïvely, you might expect that the lowest-energy state of a particle in a box has zero energy. (The potential in the box is zero, after all, so shouldn't the lowest-energy state be the state with zero kinetic energy? And if the kinetic energy were zero and the potential energy were zero, then the total energy would be zero.)

But this doesn't happen. It turns out that you can never "stop" a quantum particle; it always has a zero-point motion, typically a resonant oscillation about the lowest-potential-energy location(s). Indeed, the more you try to confine a particle to stop it, the bigger its kinetic energy becomes. This is clear in the particle-in-a-box, which has only kinetic energy. There the (kinetic) energy increases rapidly, as ${a}^{-2}$$a^{-2}$, as the box becomes smaller: ${T}_{n}={E}_{n}=\frac{{h}^{2}{n}^{2}}{8m{a}^{2}}$ The residual energy in the electronic ground state is called the zero-point energy, ${E}_{\text{zero-point energy}}=\frac{{h}^{2}}{8m{a}^{2}}$ The existence of the zero-point energy, and the fact that zero-point kinetic energy is always positive, is a general feature of quantum mechanics.

Zero-Point Energy Principle: Let $V\left(x\right)$$V(x)$ be a nonnegative potential. The ground-state energy is always greater than zero.

More generally, for any potential that is bound from below, ${V}_{\text{min}}=\underset{x}{min}V\left(x\right)$ the ground-state energy of the system satisfies ${E}_{\text{zero-point energy}}>{V}_{\text{min}}$$E_{\text{zero-point energy}} > V_{\text{min}}$.

Nuance: There is a tiny mathematical footnote here; there are some $V\left(x\right)$$V(x)$ for which there are no bound states. In such cases, e.g., $V\left(x\right)=\text{constant}$$V(x) = \text{constant}$, it is possible for $E={V}_{\text{min}}$$E = V_{\text{min}}$.)

## Atomic Units¶

Because Planck's constant and the electron mass are tiny numbers, it is often useful to use atomic units when performing calculations. We'll learn more about atomic units later but, for now, we only need to know that, in atomic units, $\hslash$$\hbar$, the mass of the electron, ${m}_{e}$$m_e$, the charge of the electron, $e$$e$, and the average (mean) distance of an electron from the nucleus in the Hydrogen atom, ${a}_{0}$$a_0$, are all defined to be equal to 1.0 in atomic units. The unit of energy in atomic units is called the Hartree, and the ground-state (zero-point) energy of the Hydrogen atom is $-\frac{1}{2}{E}_{h}$$-\tfrac{1}{2} E_h$.

We can now define functions for the eigenenergies of the 1-dimensional particle in a box:

## Postulate: The wavefunction contains all the physically meaningful information about a system.¶

While the wavefunction is not itself observable, all observable properties of a system can be determined from the wavefunction. However, just because the wavefunction encapsulates all the observable properties of a system does not mean that it contains all information about a system. In quantum mechanics, some things are not observable. Consider that for the ground ($n=1$$n=1$) state of the particle in a box, the root-mean-square average momentum, ${\overline{p}}_{rms}=\sqrt{2m\cdot T}=\sqrt{\left(2m\right)\frac{{h}^{2}{n}^{2}}{8m{a}^{2}}}=\frac{hn}{2a}$ increases as you squeeze the box. That is, the more you try to constrain the particle in space, the faster it moves. You can't "stop" the particle no matter how hard you squeeze it, so it's impossible to exactly know where the particle is located. You can only determine its average position.

## Postulate: Observable Quantities Correspond to Linear, Hermitian Operators.¶

The correspondence principle says that for every classical observable there is a linear, Hermitian, operator that allows computation of the quantum-mechanical observable. An operator, $\stackrel{^}{C}$$\hat{C}$ is linear if for any complex numbers $a$$a$ and $b$$b$, and any wavefunctions ${\psi }_{1}\left(x\right)$$\psi_1(x)$ and ${\psi }_{2}\left(x\right)$$\psi_2(x)$, $\stackrel{^}{C}\left(a{\psi }_{1}\left(x,t\right)+b{\psi }_{2}\left(x,t\right)\right)=a\stackrel{^}{C}{\psi }_{1}\left(x,t\right)+b\stackrel{^}{C}{\psi }_{2}\left(x,t\right)$ Similarly, an operator is Hermitian if it satisfies the relation, $\int {\psi }_{1}^{\ast }\left(x,t\right)\stackrel{^}{C}{\psi }_{2}\left(x,t\right)\phantom{\rule{thinmathspace}{0ex}}dx=\int {\left(\stackrel{^}{C}{\psi }_{1}\left(x,t\right)\right)}^{\ast }{\psi }_{2}\left(x,t\right)\phantom{\rule{thinmathspace}{0ex}}dx$ or, equivalently,