Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

1 A Particle in a 1D Box

Updated: 18 Apr 2026

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:

  1. We introduce quantum mechanical operators and eigenvalue equations.

  2. We state the meaning of the wavefunction and the Schrödinger equation.

  3. We solve the free particle and the particle in an infinite 1D box.

  4. We explore the properties of the solutions: nodes, zero-point energy, probability densities, and expectation values.

  5. We extend the problem to 2D and 3D boxes, and meet the concept of degeneracy.

  6. We connect the model to real physical systems: conjugated molecules and quantum dots.

  7. We implement numerical simulations in Python to visualise wavefunctions and probability densities.

Operators and Eigenvalue Equations

Before writing down the Schrödinger equation, we need the language it is written in: the language of operators.

Linear Operators

An operator A^\hat{A} is an instruction to do something to the function on its right:

A^f(x)=g(x)\hat{A} f(x) = g(x)

We are exclusively interested in linear operators, which satisfy:

A^[af(x)+bg(x)]=aA^f(x)+bA^g(x)\hat{A}\bigl[af(x) + bg(x)\bigr] = a\hat{A}f(x) + b\hat{A}g(x)

for any constants aa and bb.

Eigenvalue Equations

A particularly important situation arises when an operator acts on a function and returns the same function, multiplied by a constant:

A^fn(x)=anfn(x)\hat{A} f_n(x) = a_n f_n(x)

The Postulates of Quantum Mechanics

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.

The Wavefunction

Postulate 1. The complete information about a quantum system is contained in its wavefunction ψ(x,t)\psi(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:

P(x,t)=ψ(x,t)ψ(x,t)=ψ(x,t)2P(x,t) = \psi^*(x,t)\,\psi(x,t) = |\psi(x,t)|^2

The probability of finding the particle between xx and x+dxx+dx at time tt is:

dP=ψ(x,t)2dxdP = |\psi(x,t)|^2\, dx

Because the particle must be somewhere, the wavefunction must be normalised:

+ψ(x,t)2dx=1\int_{-\infty}^{+\infty} |\psi(x,t)|^2\, dx = 1

Quantum Mechanical Operators

Postulate 2. Every observable physical quantity has a corresponding linear operator. The most important ones in one dimension are:

ObservableOperatorSymbol
Positionmultiply by xxx^=x\hat{x} = x
Momentumix-i\hbar \dfrac{\partial}{\partial x}p^x\hat{p}_x
Kinetic energy22m2x2-\dfrac{\hbar^2}{2m}\dfrac{\partial^2}{\partial x^2}T^\hat{T}
Potential energymultiply by V(x)V(x)V^(x)\hat{V}(x)
Total energy (Hamiltonian)T^+V^\hat{T} + \hat{V}H^\hat{H}

The Hamiltonian operator is therefore:

H^=22m2x2+V(x)\hat{H} = -\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2} + V(x)

The Commutator and the Uncertainty Principle

Two operators A^\hat{A} and B^\hat{B} are said to commute if A^B^=B^A^\hat{A}\hat{B} = \hat{B}\hat{A}, or equivalently if their commutator vanishes:

[A^,B^]A^B^B^A^=0[\hat{A}, \hat{B}] \equiv \hat{A}\hat{B} - \hat{B}\hat{A} = 0

The position and momentum operators do not commute. We can show this by applying the commutator [x^,p^][\hat{x}, \hat{p}] to an arbitrary test function f(x)f(x):

x^p^f(x)=x(idfdx)=ixdfdx\hat{x}\hat{p}\,f(x) = x\left(-i\hbar\frac{df}{dx}\right) = -i\hbar x\frac{df}{dx}
p^x^f(x)=iddx(xf)=i(f+xdfdx)\hat{p}\hat{x}\,f(x) = -i\hbar\frac{d}{dx}(xf) = -i\hbar\left(f + x\frac{df}{dx}\right)

Subtracting:

[x^,p^]f(x)=x^p^fp^x^f=ixdfdx(ifixdfdx)=if(x)[\hat{x},\hat{p}]\,f(x) = \hat{x}\hat{p}\,f - \hat{p}\hat{x}\,f = -i\hbar x\frac{df}{dx} - \left(-i\hbar f - i\hbar x\frac{df}{dx}\right) = i\hbar f(x)

Since f(x)f(x) was arbitrary, we have:

[x^,p^]=i\boxed{[\hat{x},\hat{p}] = i\hbar}

Expectation Values

Postulate 4. The expectation value (average value) of an observable A^\hat{A} when the system is in state ψ\psi is:

A=+ψ(x)A^ψ(x)dx+ψ(x)ψ(x)dx\langle A \rangle = \frac{\int_{-\infty}^{+\infty} \psi^*(x)\,\hat{A}\,\psi(x)\,dx}{\int_{-\infty}^{+\infty} \psi^*(x)\,\psi(x)\,dx}

If ψ\psi is already normalised to 1, the denominator equals 1 and:

A=+ψ(x)A^ψ(x)dx\langle A \rangle = \int_{-\infty}^{+\infty} \psi^*(x)\,\hat{A}\,\psi(x)\,dx

The Schrödinger Equation

Postulate 5. The wavefunction evolves in time according to the time-dependent Schrödinger equation:

iΨ(x,t)t=H^Ψ(x,t)=[22m2x2+V(x)]Ψ(x,t)i\hbar\frac{\partial\Psi(x,t)}{\partial t} = \hat{H}\,\Psi(x,t) = \left[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2} + V(x)\right]\Psi(x,t)

For systems with a time-independent potential V(x)V(x), we can separate variables. Writing Ψ(x,t)=ψ(x)ϕ(t)\Psi(x,t) = \psi(x)\,\phi(t) and substituting:

iψ(x)dϕdt=ϕ(t)H^ψ(x)i\hbar\,\psi(x)\frac{d\phi}{dt} = \phi(t)\,\hat{H}\,\psi(x)

Dividing both sides by ψ(x)ϕ(t)\psi(x)\phi(t), the left side depends only on tt and the right side only on xx; both must equal the same constant EE (the energy):

dϕdt=iEϕ(t)ϕ(t)=eiEt/\frac{d\phi}{dt} = -\frac{iE}{\hbar}\phi(t) \quad \Rightarrow \quad \phi(t) = e^{-iEt/\hbar}
H^ψ(x)=Eψ(x)Time-Independent Schro¨dinger Equation (TISE)\hat{H}\,\psi(x) = E\,\psi(x) \quad \longleftarrow \quad \textbf{Time-Independent Schrödinger Equation (TISE)}

The TISE is an eigenvalue equation for H^\hat{H}. Its solutions ψn(x)\psi_n(x) are the stationary states (energy eigenstates), each associated with a definite energy eigenvalue EnE_n.

Roadmap for Solving Quantum Problems

Every problem in quantum mechanics follows the same systematic procedure. We strongly recommend applying it every time.

Step 1: Write Hamiltonian
Step 2: Write the TISE
Step 3: Find general solutions
Step 4: Apply boundary conditions
Step 5: Normalise
Step 6: Find Enery and Wave Fn

Identify the potential V(x)V(x) for the system and write down the Hamiltonian:

H^=22md2dx2+V(x)\hat{H} = -\frac{\hbar^2}{2m}\frac{d^2}{dx^2} + V(x)

We will now apply this roadmap to two fundamental systems.

The Free Particle

The free particle is the simplest quantum mechanical problem: a particle moving in one dimension with no forces acting on it.

Setup: V(x)=0V(x) = 0 everywhere.

Step 1: The Hamiltonian is:

H^=22md2dx2\hat{H} = -\frac{\hbar^2}{2m}\frac{d^2}{dx^2}

Step 2: The TISE becomes:

22md2ψdx2=Eψd2ψdx2=2mE2ψ-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi \quad \Rightarrow \quad \frac{d^2\psi}{dx^2} = -\frac{2mE}{\hbar^2}\psi

Step 3: Define the wavevector kk by:

k22mE2(E>0)k^2 \equiv \frac{2mE}{\hbar^2} \quad (E > 0)

The general solution is:

ψk(x)=Aeikx+Beikx\psi_k(x) = Ae^{ikx} + Be^{-ikx}

These are travelling plane waves. Using the complex exponential form, each solution is ψk(x)=Aeikx\psi_k(x) = Ae^{ikx}.

Energies: Solving for EE:

Ek=2k22m\boxed{E_k = \frac{\hbar^2 k^2}{2m}}

Since kk can take any real value, the energy of a free particle is continuous — there is no quantisation.

Particle in an Infinite 1D Box

We now turn to the central model of this chapter: a particle confined to a one-dimensional box of length aa with infinitely hard walls. This is often called the infinite square well or particle-in-a-box (PIB).

Setup and Boundary Conditions

The potential is:

V(x)={00xax<0 or x>aV(x) = \begin{cases} 0 & 0 \leq x \leq a \\ \infty & x < 0 \text{ or } x > a \end{cases}
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.]

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 ψ\psi:

ψ(0)=0andψ(a)=0\boxed{\psi(0) = 0 \quad \text{and} \quad \psi(a) = 0}

These are the boundary conditions.

Solving the TISE

Step 1: Inside the box (0xa0 \leq x \leq a), V=0V = 0, so the Hamiltonian is:

H^=22md2dx2\hat{H} = -\frac{\hbar^2}{2m}\frac{d^2}{dx^2}

Step 2: The TISE is:

22md2ψdx2=Eψd2ψdx2=k2ψ,k2mE2-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi \quad \Rightarrow \quad \frac{d^2\psi}{dx^2} = -k^2\psi, \quad k \equiv \sqrt{\frac{2mE}{\hbar^2}}

Step 3: The general solution is:

ψ(x)=Asin(kx)+Bcos(kx)\psi(x) = A\sin(kx) + B\cos(kx)

Step 4: Apply boundary conditions.

Left boundary: ψ(0)=0\psi(0) = 0:

Asin(0)+Bcos(0)=B=0B=0A\sin(0) + B\cos(0) = B = 0 \quad \Rightarrow \quad B = 0

Right boundary: ψ(a)=0\psi(a) = 0:

Asin(ka)=0A\sin(ka) = 0

Since A=0A = 0 gives the trivial (empty) solution, we require:

sin(ka)=0ka=nπ,n=1,2,3,\sin(ka) = 0 \quad \Rightarrow \quad ka = n\pi, \quad n = 1, 2, 3, \ldots

The unnormalised eigenfunctions are therefore:

ψn(x)=Asin ⁣(nπxa),n=1,2,3,\psi_n(x) = A\sin\!\left(\frac{n\pi x}{a}\right), \quad n = 1, 2, 3, \ldots

Normalisation

Step 5: We determine AA from the normalisation condition 0aψn2dx=1\int_0^a |\psi_n|^2\,dx = 1:

A20asin2 ⁣(nπxa)dx=1A^2 \int_0^a \sin^2\!\left(\frac{n\pi x}{a}\right) dx = 1

Using the identity sin2θ=12(1cos2θ)\sin^2\theta = \frac{1}{2}(1 - \cos 2\theta):

A20a12[1cos ⁣(2nπxa)]dx=A2a2=1A^2 \int_0^a \frac{1}{2}\left[1 - \cos\!\left(\frac{2n\pi x}{a}\right)\right] dx = A^2 \cdot \frac{a}{2} = 1

Therefore A=2/aA = \sqrt{2/a}, and the normalised eigenfunctions are:

ψn(x)=2asin ⁣(nπxa),n=1,2,3,\boxed{\psi_n(x) = \sqrt{\frac{2}{a}}\sin\!\left(\frac{n\pi x}{a}\right), \quad n = 1, 2, 3, \ldots}
Schematic of an infinite potential well displaying the stationary wavefunction \psi_n(x) and the associated probability density |\psi_n(x)|^2.
[Visualization by Subhadip Biswas. Generated using Manim.]

Figure 2:Schematic of an infinite potential well displaying the stationary wavefunction ψn(x)\psi_n(x) and the associated probability density ψn(x)2|\psi_n(x)|^2. [Visualization by Subhadip Biswas. Generated using Manim.]

Energy Eigenvalues

Step 6: We find the energy eigenvalues by substituting kn=nπ/ak_n = n\pi/a into E=2k2/2mE = \hbar^2 k^2 / 2m:

En=2kn22m=22m(nπa)2=n2π222ma2=n2h28ma2E_n = \frac{\hbar^2 k_n^2}{2m} = \frac{\hbar^2}{2m}\left(\frac{n\pi}{a}\right)^2 = \frac{n^2\pi^2\hbar^2}{2ma^2} = \frac{n^2 h^2}{8ma^2}

where we used =h/(2π)\hbar = h/(2\pi). Defining E1h2/(8ma2)E_1 \equiv h^2/(8ma^2) as the ground-state energy:

En=n2E1,E1=h28ma2\boxed{E_n = n^2 E_1, \quad E_1 = \frac{h^2}{8ma^2}}

The energies scale as n2n^2: 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.

Properties of the Solutions

Nodes and Shape

The nnth eigenfunction ψn(x)\psi_n(x) has exactly n1n-1 interior nodes (zeros) located at equally spaced positions x=ja/nx = ja/n for j=1,,n1j = 1, \ldots, n-1.

nnNodesEnergy
10E1E_1
214E14E_1
329E19E_1
4316E116E_1

Higher energy states oscillate more rapidly and have more nodes. This pattern is universal in quantum mechanics: higher energy always corresponds to more nodes.

Zero-Point Energy

A striking result: the lowest allowed energy is E1=h2/(8ma2)>0E_1 = h^2/(8ma^2) > 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\Delta p = 0, which would require Δx\Delta x \to \infty, contradicting the confinement to a box of length aa.

Scaling with Box Size

Since En1/a2E_n \propto 1/a^2, as the box gets larger the energy levels drop rapidly and cluster more closely together. In the limit aa \to \infty (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.

Orthonormality

The eigenfunctions form an orthonormal set:

0aψm(x)ψn(x)dx=δmn={1m=n0mn\int_0^a \psi_m^*(x)\,\psi_n(x)\,dx = \delta_{mn} = \begin{cases} 1 & m = n \\ 0 & m \neq n \end{cases}

where δmn\delta_{mn} is the Kronecker delta. This means:

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:

Φ(x)=n=1cnψn(x)\Phi(x) = \sum_{n=1}^{\infty} c_n\,\psi_n(x)

Expectation Values for the Particle in a Box

With the eigenfunctions in hand, we can calculate the expectation values of all measurable quantities.

Average Position x\langle x \rangle

xn=0aψn(x)x^ψn(x)dx=2a0axsin2 ⁣(nπxa)dx\langle x \rangle_n = \int_0^a \psi_n^*(x)\,\hat{x}\,\psi_n(x)\,dx = \frac{2}{a}\int_0^a x\sin^2\!\left(\frac{n\pi x}{a}\right)dx

Using the integral xsin2(ux)dx=x24xsin(2ux)4ucos(2ux)8u2\displaystyle\int x\sin^2(ux)\,dx = \frac{x^2}{4} - \frac{x\sin(2ux)}{4u} - \frac{\cos(2ux)}{8u^2}:

xn=a2\boxed{\langle x \rangle_n = \frac{a}{2}}

The average position is always the centre of the box, regardless of nn. This makes physical sense: the potential is symmetric about x=a/2x = a/2, so the probability distribution must be symmetric about the centre.

Uncertainty in Position Δx\Delta x

x2n=2a0ax2sin2 ⁣(nπxa)dx=a23a22n2π2\langle x^2 \rangle_n = \frac{2}{a}\int_0^a x^2\sin^2\!\left(\frac{n\pi x}{a}\right)dx = \frac{a^2}{3} - \frac{a^2}{2n^2\pi^2}

The variance (spread squared) is:

(Δx)2=x2x2=a212a22n2π2(\Delta x)^2 = \langle x^2\rangle - \langle x\rangle^2 = \frac{a^2}{12} - \frac{a^2}{2n^2\pi^2}
Δx=a11212n2π2\boxed{\Delta x = a\sqrt{\frac{1}{12} - \frac{1}{2n^2\pi^2}}}

As nn increases, Δxa/12\Delta x \to a/\sqrt{12}: the particle’s position uncertainty approaches the classical value (a uniform distribution over the box).

Average Momentum and Uncertainty Δp\Delta p

pn=2a0asin ⁣(nπxa)(iddx)sin ⁣(nπxa)dx=0\langle p \rangle_n = \frac{2}{a}\int_0^a \sin\!\left(\frac{n\pi x}{a}\right)\left(-i\hbar\frac{d}{dx}\right)\sin\!\left(\frac{n\pi x}{a}\right)dx = 0

The average momentum is zero. The particle has equal probability of moving to the right (+kn+\hbar k_n) and to the left (kn-\hbar k_n) — it is a standing wave.

p2n=n22π2a2\langle p^2 \rangle_n = \frac{n^2\hbar^2\pi^2}{a^2}
Δpn=nπa\boxed{\Delta p_n = \frac{n\hbar\pi}{a}}

Heisenberg Uncertainty Check

Combining the results above:

ΔxΔp=2n2π232\Delta x\,\Delta p = \frac{\hbar}{2}\sqrt{\frac{n^2\pi^2}{3} - 2}

For the ground state (n=1n=1): ΔxΔp=2π2320.5682>2\Delta x\,\Delta p = \frac{\hbar}{2}\sqrt{\frac{\pi^2}{3}-2} \approx 0.568\,\frac{\hbar}{2} > \frac{\hbar}{2}

For large nn: ΔxΔpnπ23\Delta x\,\Delta p \sim \frac{n\hbar\pi}{2\sqrt{3}} \to \infty

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.

Particle in a 3D Box

The 1D result generalises elegantly to three dimensions. Consider a particle confined to a rectangular box with side lengths aa, bb, cc along the xx, yy, zz axes respectively:

V(x,y,z)={00xa,  0yb,  0zcotherwiseV(x,y,z) = \begin{cases} 0 & 0 \leq x \leq a,\; 0 \leq y \leq b,\; 0 \leq z \leq c \\ \infty & \text{otherwise} \end{cases}

Separation of Variables

Inside the box, the TISE is:

22m(2x2+2y2+2z2)ψ(x,y,z)=Eψ(x,y,z)-\frac{\hbar^2}{2m}\left(\frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} + \frac{\partial^2}{\partial z^2}\right)\psi(x,y,z) = E\,\psi(x,y,z)

We seek a product solution: ψ(x,y,z)=X(x)Y(y)Z(z)\psi(x,y,z) = X(x)\,Y(y)\,Z(z). Substituting and dividing by XYZXYZ:

22m[1Xd2Xdx2+1Yd2Ydy2+1Zd2Zdz2]=E-\frac{\hbar^2}{2m}\left[\frac{1}{X}\frac{d^2X}{dx^2} + \frac{1}{Y}\frac{d^2Y}{dy^2} + \frac{1}{Z}\frac{d^2Z}{dz^2}\right] = E

Each term depends on a different variable and their sum is a constant, so each term must individually be a constant:

22md2Xdx2=ExX,22md2Ydy2=EyY,22md2Zdz2=EzZ-\frac{\hbar^2}{2m}\frac{d^2X}{dx^2} = E_x X, \quad -\frac{\hbar^2}{2m}\frac{d^2Y}{dy^2} = E_y Y, \quad -\frac{\hbar^2}{2m}\frac{d^2Z}{dz^2} = E_z Z

with Ex+Ey+Ez=EE_x + E_y + E_z = E. Each equation is just a 1D PIB! Its solutions are known immediately.

Eigenfunctions and Energies

The normalised 3D wavefunctions are the products of three 1D wavefunctions:

ψnx,ny,nz(x,y,z)=8abcsin ⁣(nxπxa)sin ⁣(nyπyb)sin ⁣(nzπzc)\boxed{\psi_{n_x,n_y,n_z}(x,y,z) = \sqrt{\frac{8}{abc}}\sin\!\left(\frac{n_x\pi x}{a}\right)\sin\!\left(\frac{n_y\pi y}{b}\right)\sin\!\left(\frac{n_z\pi z}{c}\right)}

with quantum numbers nx,ny,nz=1,2,3,n_x, n_y, n_z = 1, 2, 3, \ldots

The total energy is the sum of the three independent contributions:

Enx,ny,nz=h28m(nx2a2+ny2b2+nz2c2)\boxed{E_{n_x,n_y,n_z} = \frac{h^2}{8m}\left(\frac{n_x^2}{a^2} + \frac{n_y^2}{b^2} + \frac{n_z^2}{c^2}\right)}

Degeneracy

For a cubic box (a=b=ca = b = c), the energy simplifies to:

Enx,ny,nz=h28ma2(nx2+ny2+nz2)E_{n_x,n_y,n_z} = \frac{h^2}{8ma^2}\left(n_x^2 + n_y^2 + n_z^2\right)

Different combinations of quantum numbers that give the same sum nx2+ny2+nz2n_x^2+n_y^2+n_z^2 have the same energy but different wavefunctions. This is called degeneracy.

State(s)nx2+ny2+nz2n_x^2+n_y^2+n_z^2EnergyDegeneracy
(1,1,1)(1,1,1)33h28ma2\frac{3h^2}{8ma^2}1 (ground state)
(2,1,1),(1,2,1),(1,1,2)(2,1,1),(1,2,1),(1,1,2)66h28ma2\frac{6h^2}{8ma^2}3 (1st excited)
(2,2,1),(2,1,2),(1,2,2)(2,2,1),(2,1,2),(1,2,2)99h28ma2\frac{9h^2}{8ma^2}3 (2nd excited)
(3,1,1),(1,3,1),(1,1,3)(3,1,1),(1,3,1),(1,1,3)1111h28ma2\frac{11h^2}{8ma^2}3
(2,2,2)(2,2,2)1212h28ma2\frac{12h^2}{8ma^2}1

Degeneracy arises from the cubic symmetry of the box. If we broke the symmetry (e.g., made the box rectangular with abca \neq b \neq c), the degeneracy would be lifted and formerly equal energy levels would split.

Real-World Applications

The particle-in-a-box model, despite its simplicity, gives quantitatively useful predictions for real physical systems.

Conjugated Molecules: π\pi-electron Networks

The π\pi 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: β\beta-carotene — the molecule responsible for the orange colour of carrots. It has a conjugated π\pi-network approximately L2.4  nmL \approx 2.4\;\mathrm{nm} long, containing 11 π\pi bonds and therefore 22 π\pi 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=11n_1 = 11; the LUMO (Lowest Unoccupied Molecular Orbital) is n2=12n_2 = 12.

The lowest energy electronic transition (absorption energy) is:

ΔE=En2En1=h28meL2(n22n12)=h28meL2(144121)=23h28meL2\Delta E = E_{n_2} - E_{n_1} = \frac{h^2}{8m_e L^2}\left(n_2^2 - n_1^2\right) = \frac{h^2}{8m_e L^2}(144 - 121) = \frac{23h^2}{8m_e L^2}

Plugging in numbers:

ΔE=23×(6.626×1034)28×(9.109×1031)×(2.4×109)21.9  eV\Delta E = \frac{23 \times (6.626\times10^{-34})^2}{8 \times (9.109\times10^{-31}) \times (2.4\times10^{-9})^2} \approx 1.9\;\mathrm{eV}

This corresponds to a wavelength λ=hc/ΔE650  nm\lambda = hc/\Delta E \approx 650\;\mathrm{nm} — blue/green light is absorbed, so β\beta-carotene appears orange. The experimental absorption maximum is 450  nm\approx 450\;\mathrm{nm}; the discrepancy arises from the simplicity of our model, but the order-of-magnitude agreement is striking.

Quantum Dots

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 dd can be approximated as a 3D PIB with a cubic box of side dd.

The ground state has quantum numbers (nx,ny,nz)=(1,1,1)(n_x, n_y, n_z) = (1,1,1); the first excited states are the three equivalent (2,1,1),(1,2,1),(1,1,2)(2,1,1), (1,2,1), (1,1,2) states. The transition energy is:

ΔE=E211E111=h28med2[(1+1+4)(1+1+1)]=3h28med21d2\Delta E = E_{211} - E_{111} = \frac{h^2}{8m_e d^2}\left[(1+1+4)-(1+1+1)\right] = \frac{3h^2}{8m_e d^2} \propto \frac{1}{d^2}

Key result: smaller quantum dots absorb higher energy (bluer) light. This is experimentally confirmed: CdSe quantum dots of diameter 2  nm2\;\mathrm{nm} emit blue light, while 6  nm6\;\mathrm{nm} 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 ΔE1/d2\Delta E \propto 1/d^2.

Extended Numerical Exploration

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,  \psi_1(x,t)  and  \psi_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:
\psi(x,t) = \psi_1(x)e^{-iE_1 t} + \psi_2(x)e^{-iE_2 t}.
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:
|\psi(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.]

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 aa. We begin by visualizing the first two stationary eigenstates, ψ1(x,t) \psi_1(x,t) and ψ2(x,t) \psi_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)eiE1t+ψ2(x)eiE2t.\psi(x,t) = \psi_1(x)e^{-iE_1 t} + \psi_2(x)e^{-iE_2 t}. 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.|\psi(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.]

Summary

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 (0xa0 \leq x \leq a):

ψn(x)=2asin ⁣(nπxa),En=n2h28ma2=n2E1,n=1,2,3,\psi_n(x) = \sqrt{\frac{2}{a}}\sin\!\left(\frac{n\pi x}{a}\right), \qquad E_n = \frac{n^2 h^2}{8ma^2} = n^2 E_1, \qquad n = 1, 2, 3, \ldots

Key physical features:

3D rectangular box:

ψnxnynz=8abcsin ⁣(nxπxa)sin ⁣(nyπyb)sin ⁣(nzπzc)\psi_{n_x n_y n_z} = \sqrt{\frac{8}{abc}}\sin\!\left(\frac{n_x\pi x}{a}\right)\sin\!\left(\frac{n_y\pi y}{b}\right)\sin\!\left(\frac{n_z\pi z}{c}\right)
Enxnynz=h28m ⁣(nx2a2+ny2b2+nz2c2)E_{n_x n_y n_z} = \frac{h^2}{8m}\!\left(\frac{n_x^2}{a^2} + \frac{n_y^2}{b^2} + \frac{n_z^2}{c^2}\right)

For a cubic box (a=b=ca=b=c), states with the same nx2+ny2+nz2n_x^2+n_y^2+n_z^2 are degenerate.

Applications: