|q⟩ Bad Qubits

beginner · Physics · Particle in a Box

The Energy Eigenfunctions

From boundary conditions to eigenfunctions

In the previous lesson you found that inside an infinite square well of width LL (walls at x=0x = 0 and x=Lx = L), the time-independent Schrödinger equation reduces to

22md2ψdx2=Eψ,0<x<L,-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\,\psi, \quad 0 \lt x \lt L,

with the boundary conditions ψ(0)=0\psi(0) = 0 and ψ(L)=0\psi(L) = 0 imposed by the infinitely high walls. Writing k2=2mE/2k^2 = 2mE/\hbar^2, the general solution inside the well is

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

The condition ψ(0)=0\psi(0) = 0 immediately forces B=0B = 0, leaving only the sine term. Applying ψ(L)=0\psi(L) = 0 then gives

Asin(kL)=0.A\sin(kL) = 0.

Because A=0A = 0 would make the wave function trivially zero everywhere (no particle), we must have sin(kL)=0\sin(kL) = 0, which means kL=nπkL = n\pi for a positive integer nn. That is exactly how the quantum numbers appear: not by assumption, but as a logical consequence of the boundary conditions.

The family of eigenfunctions

Substituting kn=nπ/Lk_n = n\pi/L gives one eigenfunction for every positive integer nn:

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

The constant AA is fixed by normalization (the next lesson covers that); for now it is enough to know the shape of each ψn\psi_n.

A few features worth noting:

Each ψn\psi_n is an energy eigenfunction: a state where measuring the energy always returns the corresponding eigenvalue En=n2π22/(2mL2)E_n = n^2\pi^2\hbar^2/(2mL^2) with certainty.

A concrete example

Take the ground state n=1n = 1 with L=1mL = 1\,\text{m} (convenient units). The eigenfunction is ψ1(x)=Asin(πx)\psi_1(x) = A\sin(\pi x). At the midpoint x=L/2=0.5mx = L/2 = 0.5\,\text{m}

ψ1 ⁣(L2)=Asin ⁣(π12)=Asin ⁣(π2)=A1=A.\psi_1\!\left(\tfrac{L}{2}\right) = A\sin\!\left(\pi \cdot \tfrac{1}{2}\right) = A\sin\!\left(\tfrac{\pi}{2}\right) = A \cdot 1 = A.

The ground-state wave function reaches its maximum at the center of the well, consistent with having no interior nodes. For n=2n = 2 the midpoint is a node: sin(2π12)=sin(π)=0\sin(2\pi \cdot \tfrac{1}{2}) = \sin(\pi) = 0.

Try it

This is a numerical exercise — your code should return a number. Evaluate the unnormalized ground-state eigenfunction ψ1(x)=sin(πx/L)\psi_1(x) = \sin(\pi x/L) at x=L/2x = L/2 with L=1L = 1.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.