2.4. Particle in an box with infinite-potential walls#

2.4.1. Authors:#

The Jupyter notebook is provided for the introductory Quantum Physics course at the University of York.

**These Jupyter notebooks are based on the excellent work by the following authors:

Cite: J. Chem. Educ. 2019, 96, 8, 1663–1670, Publication Date:July 11, 2019. https://doi.org/10.1021/acs.jchemed.9b00195

2.4.2. Particle in a 1D box#

Below is a schematic representation of the potential known as the infinite square well. We will only consider motion in one dimension but next year you will see how this problem can be extended to two and three dimensions. In this case a particle is restricted to moving only in the x direction. The potential is zero in the region \(0\le x\le L\) but infinite in the regions \(x<0\) and \(x>L\). This restricts the particle to moving only in the region \(0\le x\le L\). In other words it is not possible for the particle to have a position greater than \(L\) or less than \(0\).

The one dimension time independent Schrödinger (1D TISE) is:

\[ \frac{-\hbar^2}{2m}\frac{\partial^2\psi(x)}{\partial{x}^2}+V(x) =E\psi(x) \tag{1} \]

In the region \(0\le x\le L\), the potential \(V(x)\) is equal to zero, therefore the Schrödinger equation for this system is given by:

\[ \frac{-\hbar^2}{2m}\frac{\partial^2\psi(x)}{\partial{x}^2} =E\psi(x) \tag{2} \]

2.4.3. Boundary conditions#

Since the potential is infinity outside the box, the wave function must obey the following Boundary Conditions:

\[ \psi(0)=\psi(L)=0 \tag{3} \]

where L is the length of the box.

2.4.4. Choosing the appropriate wave function#

Our particle trapped in the box will propagate both towards the potential at \(L\) and the back towards the potential at \(0\).The wave function must therefor have both a positive and a negative momentum to fully describe the behaviour.

\[ \psi(x)=A_1e^{ikx}+B_1e^{-ikx} \]

The amplitudes \(A_1\) and \(B_1\) can be complex and it is most convenient to rewrite this using Euler as a sum of sine and cosine. This gives us the most general form of the wave function suitable for the infinite square well.

\[\psi(x)=A\sin(kx)+B\cos(kx)\]

We will choose this form for particle confined between two potential barriers because, and only because, it makes the maths easier. There is no other reason and you can use the exponential form to solve the problem, but the algebra is often more complex.

2.4.5. Applying the boundary conditions#

Now we will apply the boundary conditions given by (3), doing this first for \(x=0\) we find:

\[ A\sin(k0)+B\cos(k0)=0 \]

and because \(\cos(k0)=1\),

\[ B=0 \]

This tells us that the cosine term does not contribute in this case (note it will be useful in other situations and whether it is non-zero or zero depends on the choice of boundary conditions).

Now we repeat for the boundary at \(x=L\) and we find

\[ A\sin(kL)=0 \]

we can make this zero by suitable choices of \(kL\),

\[ \therefore kL=n\pi \]

2.4.6. Normalising the wave function#

We can obtain the expression for \(A\) by normalising the wave function.

\[ A^2\int_0^L \sin^2(kx)dx=1 \]

After normalising the wavefunction and solving at the boundary conditions, the eigenfunctions obtained are given by:

\[\psi_n(x) = \sqrt{\frac{2}{L}} \sin\left(\frac{n\pi}{L}x\right)\]

where \(n=1, 2, ..., \infty \). Note we call this an eigenfunction, this is the characteristic function that describes this particular system and is just a naming convention derived from the underlying mathematical theory. It is important that you understand what this equation tells you and to be able to recall the name. However, you will hear the term wavefunction and eigenfunction being employed interchangeably.

It is important to emphasize that the quantization (n being only positive integers) is a consequence of the boundary conditions.

Here are a few questions to think about before we move on:

  • Q1: Can you infer, just looking at the graphical representations of \(\psi_n(x)\) or \(|\psi_n(x)|^2\), what is the quantum state (labeled by its quantum number) n?

  • Q2: What is a node? How do the nodes relate to the Kinetic Energy of the system?

  • Q3: Is it possible to find the particle outside the box?

  • Q4: Does it matter that \(\psi_n(x)\) has negative values?

  • Q5: What variables and parameters does \(\psi_n(x)\) depend on?

Some of these questions can be answered by plotting the Wavefunction, \(\psi_n(x)\) and the Probability Density, \(|\psi_n(x)|^2\) for different values of \(n\).

As with all of these notes there is an live version of this notebook on Google colab that you can interact with and change the variables. The questions above can be answered by following the link below, running the notebook and then playing with the variable and interpreting the outputted functions.

Open In Colab

_images/02_particle_in_an_infinite_potential_box_16_0.png _images/02_particle_in_an_infinite_potential_box_16_1.png

Figure: The wave function for the \(n=1\) state in the infinite square well.

We can explore the changes in the Wavefunction and Probability Density for a given state n in boxes of different length \(L\):

Open In Colab

_images/02_particle_in_an_infinite_potential_box_20_0.png

Figure: The Energy eigen function and the probability density function for the \(n=1\) state in two infinite square wells. One of length 10 Angstroms and the other of length 18 Angstroms.

2.4.7. Energy eigen functions and energy eigen values#

By solving at the boundary conditions we found an expression for the wave function with quantized wave number \(k\):

\[\psi_n(x)=\sqrt{\frac{2}{L}}\sin\left(\frac{n\pi x}{L}\right)\]

These are the energy eigenfunctions of the system, there is one for each value of n.

The values of \(E\) that allow the above to be a solution to the Schrodinger equation are called eigenvalues. In this case the energy eigenvalues. To find the energy eigenvalues \(E_n\) we must solve the TISE, when the potential is zero this is given by:

\[\frac{-\hbar^2}{2m}\frac{d^2}{dx^2}\psi(x)=E\psi(x)\]

First we determine the second derivative of the wavefunction:

\[\frac{d^2\psi}{dx^2}=-k^2\sqrt{\frac{2}{L}}\sin(kx)\]

Substituting this into the TISE gives:

\[\frac{\hbar^2}{2m}k^2\sqrt{\frac{2}{L}}\sin(kx)=E\sqrt{\frac{2}{L}}\sin(kx)\]

Making \(E\) the subject and substituting in the expression for the quantised values of \(k\), the energy eigenvalues are:

\[E_n=\left(\frac{n\pi}{L}\right)^2\frac{\hbar^2}{2m}\]

We can also look at the allowed values of energy, given by: $\(E_n = \frac{n^2 h^2}{8mL^2}\)$
where m is the mass of the particle.

Note: Did you notice that \(\psi_n(x)\) doesn’t depend on the mass of the particle? How does this get introduced into the energy eigen values? This occurs when the Schrodinger equation is applied to the energy eigen functions. This is an operator, the Hamiltonian, and returns in this case the kinetic energy of the particle. This does depend on mass of the particle.

In contrast to the solution in the free particle system, for a particle confined within the box, not every energy value is allowed. We see that quantization is a direct consequence of the boundary condition. In other words: confinement leads to quantization.

Let’s now analyze how the Energy Levels \(E_n\) for an electron change as a function of the size of the box.

Open In Colab

_images/02_particle_in_an_infinite_potential_box_25_0.png

Figure: A comparison of allowed energy eigen values for an electron in an infinite square well of length 10 Angstroms and one of length 12 Angstroms. Note that making the well longer reduces the energy of each state, the energy difference between states also reduces.

and how the Energy Levels, \(E_n\) change as a function of the mass of the particle.

_images/02_particle_in_an_infinite_potential_box_28_0.png

*Figure: * A comparison of the energy eigen values for a particle with the mass of an electron in a well of length 10 Angstroms and a particle of mass three times the mass of an electron in the same length well. Again, note the reduction in both energy and the energy difference between states.

2.4.8. Combined wavefunction, probability density and energy plots.#

We can combine the information from the wavefunctions, probability density, and energies into a single plot that compares the wavefunctions and the probability densities for different states, each one represented at its energy value. These plots are made using the electron mass.

_images/02_particle_in_an_infinite_potential_box_31_0.png _images/02_particle_in_an_infinite_potential_box_31_1.png