Wavefunctions of a Particle Trapped Within a Box

Key idea: H3 Quantum Mechanics: deriving ψn(x) in the infinite square well, applying boundary conditions, and interpreting |ψn|².

  • Advanced Physics
On this page

Learning objectives

  • Use state functions, boundary conditions, stationary states, and measurement to analyse introductory quantum systems.

In an infinite square well, the wavefunction must vanish at the walls. This forces standing-wave solutions and leads to discrete ψₙ(x).

1. Schrödinger equation inside the box

Inside the box (0 < x < L), V(x) = 0, so the time-independent Schrödinger equation becomes:

-(ħ²/2m)d²ψ/dx² = Eψ

Define k² = 2mE/ħ², giving:

d²ψ/dx² = -k²ψ

The general solution is:

ψ(x) = A sin(kx) + B cos(kx)

2. Apply the boundary conditions

For an infinite wall, the wavefunction must vanish at the boundary:

  • ψ(0) = 0, so B = 0.
  • ψ(L) = 0, so sin(kL) = 0 and therefore kL = nπ.

So

k = nπ/L (n = 1,2,3,…)

and the stationary-state wavefunctions inside the well are:

ψₙ(x) = A sin((nπ x)/L) (0 < x < L)

Outside the well:

ψₙ(x) = 0 (x ≤ 0 or x ≥ L)

3. Normalisation constant

The constant A is fixed by ∫₀^L |ψₙ(x)|² dx = 1:

A = square root of (2/L)

So the standard result is:

ψₙ(x) = square root of (2/L) sin((nπ x)/L) (0 < x < L)

4. Probability density and nodes

The probability density is:

|ψₙ(x)|² = 2/L sin² ((nπ x)/L)

Nodes occur where ψₙ = 0:

  • always at x = 0 and x = L
  • plus n-1 interior nodes at x = mL/n for m = 1,2,…,n-1

Probability density |ψn|² in a 1D box (shape only)

Example shapes of |ψn(x)|² for n = 1 and n = 2 in a 1D infinite square well (0 ≤ x/L ≤ 1).

Scroll across the graph to read all labels.

Example shapes of |ψn(x)|² for n = 1 and n = 2 in a 1D infinite square well (0 ≤ x/L ≤ 1).Example shapes of |ψn(x)|² for n = 1 and n = 2 in a 1D infinite square well (0 ≤ x/L ≤ 1).
|ψn|² is always non-negative. Higher n gives more oscillations and more interior nodes.
Open full-size graph
View figure data
Values for Probability density |ψn|² in a 1D box (shape only)
Position (x/L)n = 1n = 2
000
0.050.0240.095
0.10.0950.345
0.150.2060.655
0.20.3450.905
0.250.51
0.30.6550.905
0.350.7940.655
0.40.9050.345
0.450.9760.095
0.510
0.550.9760.095
0.60.9050.345
0.650.7940.655
0.70.6550.905
0.750.51
0.80.3450.905
0.850.2060.655
0.90.0950.345
0.950.0240.095
100

5. Common traps

  1. Writing ψₙ(x) = A sin(nπ/L)x (the x must be inside the sine).
  2. Using h instead of ħ in the Schrödinger equation.
  3. Forgetting ψ = 0 at the walls for an infinite well.
  4. Confusing ψ with |ψ|² (probability density).

6. Worked Examples

Modelled example 1

Probability in the central half of the box

Core

Problem

For the ground state, calculate the probability of finding the particle between x = L/4 and x = 3L/4.
Study the worked solution
  1. Use probability density

    Method

    Integrate |ψ₁|² over the requested interval.

    Reason

    Probability comes from the squared magnitude, not from ψ itself.

    Working

    P = ∫_(L/4)^(3L/4)2/L sin² ((π x)/L)dx
  2. Evaluate the integral

    Method

    P = 1/2 + 1/π = 0.818.

    Reason

    Apply the antiderivative at both symmetric limits.

    Working

    P = [x/L-1/2π sin((2π x)/L)]_(L/4)^(3L/4) = 0.818

7. Quick check

Mind stretcher 1: Probability-density maxima and nodesExtension

A. For n = 1, where is |ψ₁|² maximum?

Answer
At x = L/2.

B. For n = 2, what is |ψ₂|² at x = L/2?

Answer

Zero, because ψ₂ has an interior node at x = L/2.

Continue with the next resource in this course.

Course and syllabus information
Course
Advanced Physics
Edition
Advanced Physics