|q⟩ Bad Qubits

beginner · Physics · The Wavefunction & Born Rule

Probability in an Interval

The Born rule says that a particle with (normalised) wavefunction ψ(x)\psi(x) is found in the interval [a,b][a, b] with probability

P(axb)=abψ(x)2dx.P(a \le x \le b) = \int_a^b |\psi(x)|^2 \, dx.

The integrand ψ(x)2|\psi(x)|^2 is the probability density — it is always real and non-negative, and it integrates to 1 over all space by the normalisation condition.

A worked example: the infinite square well

Consider a particle confined to a one-dimensional box of width LL. Inside the box the walls are infinitely high, so the wavefunction must vanish at both walls. The ground state (lowest energy, n=1n = 1) satisfying this boundary condition and the normalisation condition is

ψ1(x)=2Lsin ⁣(πxL),0xL,\psi_1(x) = \sqrt{\frac{2}{L}}\,\sin\!\left(\frac{\pi x}{L}\right), \qquad 0 \le x \le L,

and ψ1(x)=0\psi_1(x) = 0 everywhere outside the box. You can confirm normalisation directly:

0Lψ12dx=2L0Lsin2 ⁣ ⁣(πxL)dx.\int_0^L |\psi_1|^2\, dx = \frac{2}{L}\int_0^L \sin^2\!\!\left(\frac{\pi x}{L}\right)dx.

Using sin2θ=12(1cos2θ)\sin^2\theta = \frac{1}{2}(1 - \cos 2\theta) the integral becomes 2LL2=1\frac{2}{L}\cdot\frac{L}{2} = 1. Good.

Finding the probability in an interval

Take L=1mL = 1\,\text{m} for simplicity. The probability of finding the particle in the left third of the box, 0x130 \le x \le \tfrac{1}{3}, is

P=01/32sin2(πx)dx.P = \int_0^{1/3} 2\sin^2(\pi x)\, dx.

Apply the identity sin2θ=1cos2θ2\sin^2\theta = \frac{1-\cos 2\theta}{2}:

P=01/3(1cos(2πx))dx=[xsin(2πx)2π]01/3.P = \int_0^{1/3} \bigl(1 - \cos(2\pi x)\bigr)\, dx = \left[x - \frac{\sin(2\pi x)}{2\pi}\right]_0^{1/3}.

Evaluating the boundary terms and using sin(2π/3)=3/2\sin(2\pi/3) = \sqrt{3}/2:

P=13sin(2π/3)2π=133/22π=1334π0.1955.P = \frac{1}{3} - \frac{\sin(2\pi/3)}{2\pi} = \frac{1}{3} - \frac{\sqrt{3}/2}{2\pi} = \frac{1}{3} - \frac{\sqrt{3}}{4\pi} \approx 0.1955.

Why this matters

Every measurable quantity in quantum mechanics ultimately reduces to an integral of this form — or a sum of such integrals for discrete spectra. Mastering the mechanics of evaluating ψ2dx\int |\psi|^2\,dx over a chosen region is therefore a foundational skill for all subsequent quantum calculations.

Try it

This is a numerical exercise — return a number. The ground state of an infinite square well of width L=1mL = 1\,\text{m} has wavefunction ψ(x)=2sin(πx)\psi(x) = \sqrt{2}\sin(\pi x) for 0x10 \le x \le 1. Compute the probability of finding the particle in the left third of the well (0x130 \le x \le \tfrac{1}{3}).

Run your code to see the quantum state.

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