Quantum mechanics governs the behaviour of matter at the smallest scales — atoms, electrons, and molecules. Unlike classical mechanics, where a particle can sit at rest with zero energy, quantum mechanics reveals a world of discrete energy levels, wave-like behaviour, and irreducible uncertainty. In this chapter we build the foundational tools to understand quantum mechanics and apply them to the simplest possible confined system: a particle trapped in a one-dimensional box.
This system is not merely a toy problem. It provides direct insight into the electronic structure of conjugated molecules, the physics of quantum dots, and the statistical mechanics of ideal gases. More importantly, it introduces you to the central ideas — wavefunctions, energy quantisation, normalisation, and expectation values — that appear in every quantum mechanical problem you will ever encounter.
This chapter follows a careful, step-by-step approach:
We introduce quantum mechanical operators and eigenvalue equations.
We state the meaning of the wavefunction and the Schrödinger equation.
We solve the free particle and the particle in an infinite 1D box.
We explore the properties of the solutions: nodes, zero-point energy, probability densities, and expectation values.
We extend the problem to 2D and 3D boxes, and meet the concept of degeneracy.
We connect the model to real physical systems: conjugated molecules and quantum dots.
We implement numerical simulations in Python to visualise wavefunctions and probability densities.
Quantum mechanics rests on a set of postulates — foundational rules that cannot be derived, but whose validity is confirmed by the extraordinary accuracy of their predictions.
Postulate 1. The complete information about a quantum system is contained in its wavefunctionψ(x,t). The wavefunction is a complex-valued function of position and time.
The wavefunction itself cannot be observed directly. What is physically meaningful is the probability density:
The TISE is an eigenvalue equation for H^. Its solutions ψn(x) are the stationary states (energy eigenstates), each associated with a definite energy eigenvalue En.
We now turn to the central model of this chapter: a particle confined to a one-dimensional box of length a with infinitely hard walls. This is often called the infinite square well or particle-in-a-box (PIB).
Figure 1:A schematic representation highlighting the differences between classical and quantum descriptions of a particle in an infinite potential well.
[Visualization by Subhadip Biswas. Generated using Manim.]
Physical interpretation: The infinite walls prevent the particle from ever being outside the box. Inside the box, the particle moves freely.
Consequences for ψ:
Outside the box, ψ(x)=0 (a particle cannot exist where V=∞, or else ∫ψ∗Vψdx=∞, which is unphysical).
The wavefunction must be continuous everywhere, so:
Figure 2:Schematic of an infinite potential well displaying the stationary wavefunction ψn(x) and the associated probability density ∣ψn(x)∣2.
[Visualization by Subhadip Biswas. Generated using Manim.]
The energies scale as n2: the second level has four times the energy of the first, the third has nine times, and so on. The energy levels are not equally spaced.
The nth eigenfunction ψn(x) has exactly n−1interior nodes (zeros) located at equally spaced positions x=ja/n for j=1,…,n−1.
n
Nodes
Energy
1
0
E1
2
1
4E1
3
2
9E1
4
3
16E1
Higher energy states oscillate more rapidly and have more nodes. This pattern is universal in quantum mechanics: higher energy always corresponds to more nodes.
A striking result: the lowest allowed energy is E1=h2/(8ma2)>0. A confined quantum particle cannot be at rest. This irreducible minimum energy is called the zero-point energy.
Classically, a particle in a box could have zero kinetic energy — it simply sits still. Quantum mechanically, this is forbidden by the uncertainty principle: if the particle were at rest, Δp=0, which would require Δx→∞, contradicting the confinement to a box of length a.
Since En∝1/a2, as the box gets larger the energy levels drop rapidly and cluster more closely together. In the limit a→∞ (free particle), the discrete spectrum becomes continuous — we recover the classical result that any energy is allowed.
This behaviour is completely general: confinement produces quantisation; releasing confinement destroys it.
Each eigenfunction is normalised (integral = 1 for m=n).
Different eigenfunctions are orthogonal (integral = 0 for m=n).
This is mathematically analogous to the dot product of perpendicular unit vectors in Euclidean space. The eigenfunctions form a complete basis: any physically admissible wavefunction can be expanded as:
The average position is always the centre of the box, regardless of n. This makes physical sense: the potential is symmetric about x=a/2, so the probability distribution must be symmetric about the centre.
For the ground state (n=1): ΔxΔp=2ℏ3π2−2≈0.5682ℏ>2ℏ ✓
For large n: ΔxΔp∼23nℏπ→∞
Numerical Simulation: Visualising the Particle in a Box¶
A great way to develop intuition for the PIB is to plot the wavefunctions and probability densities in Python. We can also compute expectation values numerically and verify our analytical results.
The 1D result generalises elegantly to three dimensions. Consider a particle confined to a rectangular box with side lengths a, b, c along the x, y, z axes respectively:
Different combinations of quantum numbers that give the same sum nx2+ny2+nz2 have the same energy but different wavefunctions. This is called degeneracy.
State(s)
nx2+ny2+nz2
Energy
Degeneracy
(1,1,1)
3
8ma23h2
1 (ground state)
(2,1,1),(1,2,1),(1,1,2)
6
8ma26h2
3 (1st excited)
(2,2,1),(2,1,2),(1,2,2)
9
8ma29h2
3 (2nd excited)
(3,1,1),(1,3,1),(1,1,3)
11
8ma211h2
3
(2,2,2)
12
8ma212h2
1
Degeneracy arises from the cubic symmetry of the box. If we broke the symmetry (e.g., made the box rectangular with a=b=c), the degeneracy would be lifted and formerly equal energy levels would split.
The π electrons in conjugated organic molecules are delocalised along the backbone of the molecule and experience a roughly flat potential between the ends of the conjugated chain. This makes the 1D PIB an excellent first approximation.
Example: β-carotene — the molecule responsible for the orange colour of carrots. It has a conjugated π-network approximately L≈2.4nm long, containing 11 π bonds and therefore 22 π electrons.
Because each orbital holds 2 electrons (spin up and spin down), the 22 electrons fill the lowest 11 levels. The HOMO (Highest Occupied Molecular Orbital) is n1=11; the LUMO (Lowest Unoccupied Molecular Orbital) is n2=12.
The lowest energy electronic transition (absorption energy) is:
This corresponds to a wavelength λ=hc/ΔE≈650nm — blue/green light is absorbed, so β-carotene appears orange. The experimental absorption maximum is ≈450nm; the discrepancy arises from the simplicity of our model, but the order-of-magnitude agreement is striking.
A quantum dot is a nanoscale semiconductor crystal (typically a few nanometres across) in which electrons are confined in all three spatial dimensions. An electron in a spherical quantum dot of diameter d can be approximated as a 3D PIB with a cubic box of side d.
The ground state has quantum numbers (nx,ny,nz)=(1,1,1); the first excited states are the three equivalent (2,1,1),(1,2,1),(1,1,2) states. The transition energy is:
Key result: smaller quantum dots absorb higher energy (bluer) light. This is experimentally confirmed: CdSe quantum dots of diameter 2nm emit blue light, while 6nm dots emit red light. The size-tuneable colour is exploited in quantum dot LED displays, solar cells, and biological imaging.
Source
import numpy as np
import matplotlib.pyplot as plt
## Quantum dot colour as a function of size
h = 6.626e-34 # J·s
me = 9.109e-31 # kg
c = 3.0e8 # m/s
d_nm = np.linspace(1.5, 8.0, 300) # dot diameter in nm
d = d_nm * 1e-9 # convert to metres
# Transition energy for 3D cubic PIB
delta_E = 3 * h**2 / (8 * me * d**2) # in Joules
# Corresponding wavelength
lam_m = h * c / delta_E # metres
lam_nm = lam_m * 1e9 # nanometres
# Visible range colour map (very approximate)
def wavelength_to_rgb(wl):
"""Map wavelength (nm) to approximate RGB colour."""
if wl < 380 or wl > 750:
return (0.5, 0.5, 0.5)
elif wl < 440:
r, g, b = (440-wl)/(440-380), 0, 1
elif wl < 490:
r, g, b = 0, (wl-440)/(490-440), 1
elif wl < 510:
r, g, b = 0, 1, (510-wl)/(510-490)
elif wl < 580:
r, g, b = (wl-510)/(580-510), 1, 0
elif wl < 645:
r, g, b = 1, (645-wl)/(645-580), 0
else:
r, g, b = 1, 0, 0
return (r, g, b)
fig, ax = plt.subplots(figsize=(10, 4))
for i in range(len(d_nm)-1):
wl = (lam_nm[i] + lam_nm[i+1]) / 2
col = wavelength_to_rgb(wl)
ax.fill_between(d_nm[i:i+2], 0, 1,
color=col, alpha=0.8)
ax2 = ax.twinx()
ax2.plot(d_nm, lam_nm, 'k-', linewidth=2.5)
ax2.set_ylabel('Absorption wavelength (nm)', fontsize=11)
ax2.set_ylim(0, 1200)
ax.set_xlabel('Quantum dot diameter (nm)', fontsize=11)
ax.set_ylabel('Emitted colour', fontsize=11)
ax.set_yticks([])
ax.set_title('Quantum dot: size controls absorption wavelength (3D PIB model)',
fontsize=12)
ax.set_xlim(1.5, 8.0)
plt.tight_layout()
plt.show()
The plot illustrates that smaller dots absorb and emit shorter (bluer) wavelengths, while larger dots shift towards red. This is a direct consequence of ΔE∝1/d2.
Figure 3:This animation illustrates the fundamental idea of time evolution in quantum mechanics using a particle confined in a one-dimensional infinite potential well of width a.
We begin by visualizing the first two stationary eigenstates, ψ1(x,t) and ψ2(x,t). Individually, these states exhibit only a time-dependent phase (represented here through oscillatory modulation), and their probability densities remain static in time.
Next, we construct a superposition of these states:
ψ(x,t)=ψ1(x)e−iE1t+ψ2(x)e−iE2t.
Unlike individual eigenstates, the superposition leads to non-trivial time evolution. The interference between the two states generates a dynamically evolving wave pattern inside the well.
Finally, we examine the observable quantity, the probability density:
∣ψ(x,t)∣2. Here, the time dependence becomes physically meaningful — the probability distribution oscillates within the well, demonstrating how quantum dynamics emerge from superposition.
[Visualization by Subhadip Biswas. Generated using Manim.]
In this chapter we have built the quantum mechanical framework from the ground up and applied it to the particle in a one-dimensional box. The key results are collected here.
Eigenfunctions and energies of the 1D infinite square well (0≤x≤a):