|q⟩ Bad Qubits

beginner · Physics · Particle in a Box

Boundary Conditions in the Well

The infinite square well

The infinite square well — often called a particle in a box — is the simplest system in which a particle is confined by quantum mechanics. It consists of a potential energy that is zero inside an interval of length LL and infinite everywhere outside:

V(x)={0,0xL,,otherwise.V(x) = \begin{cases} 0, & 0 \le x \le L, \\ \infty, & \text{otherwise.} \end{cases}

A particle with finite energy cannot penetrate a region where V=V = \infty, so the wave function must vanish in those regions. Outside the well,

ψ(x)=0for x<0 and x>L.\psi(x) = 0 \quad \text{for } x < 0 \text{ and } x > L.

Why the wave function must be continuous

One of the fundamental requirements of quantum mechanics is that the wave function ψ(x)\psi(x) be continuous everywhere. The reason is the Schrödinger equation itself: an abrupt jump in ψ\psi would make the first derivative dψ/dxd\psi/dx contain a delta-function spike, and the second derivative d2ψ/dx2d^2\psi/dx^2 blow up even more violently. But the equation ties d2ψ/dx2d^2\psi/dx^2 to (VE)ψ(V-E)\psi, which stays finite wherever VV is finite — so no such jump in ψ\psi is allowed. (At an infinitely steep wall, where VV \to \infty, only the slope dψ/dxd\psi/dx is permitted to jump; ψ\psi itself must still join on continuously.)

Combining continuity with the fact that ψ=0\psi = 0 outside the well, continuity at the boundaries forces

ψ(0)=0andψ(L)=0.\psi(0) = 0 \quad \text{and} \quad \psi(L) = 0.

These two equations are the boundary conditions for the infinite square well.

General solution inside the well

Inside the well (0xL0 \le x \le L) the potential is zero, so the time-independent Schrödinger equation reduces to

22md2ψdx2=Eψ.-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi.

Rearranging gives d2ψ/dx2=k2ψd^2\psi/dx^2 = -k^2\psi with k2=2mE/2k^2 = 2mE/\hbar^2, whose general solution is

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

Now apply the boundary conditions one at a time.

At x=0x = 0:

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

So B=0B = 0 and only the sine term survives:

ψ(x)=Asin(kx).\psi(x) = A\sin(kx).

At x=Lx = L:

ψ(L)=Asin(kL)=0.\psi(L) = A\sin(kL) = 0.

Because A0A \neq 0 (a zero wave function everywhere would not be normalizable), the sine itself must vanish:

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

This is satisfied when kL=nπkL = n\pi for any positive integer n=1,2,3,n = 1, 2, 3, \ldots, giving

kn=nπL.k_n = \frac{n\pi}{L}.

Negative integers produce the same set of functions (just with a sign flip absorbed into AA), and n=0n = 0 gives ψ=0\psi = 0 identically, which is not normalizable.

What the boundary conditions have achieved

Starting from a completely general oscillatory solution, two algebraic constraints — ψ(0)=0\psi(0) = 0 and ψ(L)=0\psi(L) = 0 — have forced:

  1. The cosine term to vanish entirely (B=0B = 0).
  2. The wave number kk to take only the discrete set of values kn=nπ/Lk_n = n\pi/L.

The stationary-state wave functions are therefore

ψ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 amplitude AA is fixed by normalization in the next steps of the derivation. These functions are orthogonal and form a complete basis for square-integrable functions on [0,L][0, L] — any allowed state of the particle can be written as a superposition of them.

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