
Quantum core · institution-dependent · Interactive lesson
The infinite square well
The first bound-state problem you can solve exactly, and the first place quantisation arrives as a consequence rather than a postulate. Two walls, one second-order equation, and the whole ladder of allowed energies falls out — along with the orthonormal basis you will expand every later state on.
UPIV-07.02 · Lesson 2 of 9 in this unit. Position is not a completion score.Quantum core · institution-dependent. Departments differ in how much quantum mechanics they include in Physics IV or teach in a dedicated course. Follow your university’s required mathematical depth and assessment; these numbered units are not automatically optional.
Build the model
Two walls turn a differential equation into a ladder of allowed energies.
The key idea
The infinite square well is the model of a particle that moves freely inside a segment of length L and is forbidden outside it, so its stationary states are the standing sine waves that vanish at both walls.
Example. An electron in a 0.50 nm well has Eₙ = n² × 0.376 eV⋅nm² / (0.50 nm)² = n² × 1.50 eV, so the ground state sits 1.50 eV above the floor and the first gap is 4.51 eV.
The complete physical model and assumptions
Put a particle where the potential is zero on 0 < x < L and infinite everywhere else, and the time-independent Schrödinger equation collapses inside to ψ″ = −k²ψ with k = √(2mE)/ħ. That equation alone quantises nothing: every positive E solves it. What quantises is the pair of walls. An infinite barrier forces ψ = 0 outside, and continuity then demands ψ(0) = ψ(L) = 0, turning a differential equation into a two-point boundary-value problem. Only sines survive, and only those fitting a whole number of half-wavelengths into the box: kₙ = nπ/L, so Eₙ = n²π²ħ²/(2mL²), with n = 1 the floor because n = 0 leaves ψ ≡ 0, which is no particle at all. Normalisation fixes the amplitude at √(2/L) for every n, Hermiticity makes states of different energy orthogonal, and completeness of the Fourier sine series makes these states a basis rather than a list. The cost is that infinite walls are a fiction: nothing leaks out, the well holds infinitely many bound states, the spectrum runs to infinity, and ψ′ jumps at each edge — a discontinuity only an infinite potential is permitted to produce.
1Why ψ must vanish at each wall — and why ψ′ need not
Do not start from "the particle cannot be there". Start from a finite well of depth V₀ and take the limit. Outside, ψ ∝ e(−κ|x|) with κ = √(2m(V₀ − E))/ħ, so as V₀ → ∞ the decay length 1/κ shrinks to nothing and the outside amplitude collapses. Continuity of ψ then hands you ψ(0) = ψ(L) = 0 — the boundary conditions are inherited, not assumed. What does not survive the limit is continuity of ψ′. Integrating the Schrödinger equation across a wall gives Δψ′ = (2m/ħ²)∫Vψ dx, which vanishes for finite V but not for infinite V, so the slope is allowed to jump at each edge. For ψ₁ that jump runs from 0 outside to √(2/L)(π/L) just inside. It is the first sign that this model is a limit, not a potential anyone could build.
2Solving inside, and why n starts at 1
Inside, V = 0 and ψ″ = −k²ψ with k = √(2mE)/ħ, whose general solution is ψ = A sin kx + B cos kx. Impose ψ(0) = 0: cos 0 = 1, so B = 0. Impose ψ(L) = 0 with A ≠ 0: sin kL = 0, so kL = nπ, and E = ħ²k²/2m follows immediately. Now handle the integer carefully. n = 0 gives ψ ≡ 0 everywhere — a function you cannot normalise, describing a particle that is nowhere — so it is not a state and E = 0 is not in the spectrum. Negative n returns sin(−nπx/L) = −sin(nπx/L), the same function up to an overall sign, and a global phase is physically invisible, so n = −3 and n = 3 are one state, not two. The spectrum is therefore n = 1, 2, 3, … with no repeats and no rung at zero energy.
3Normalising: where √(2/L) comes from
Born's rule only means something once ∫|ψ|² dx = 1. With ψ = A sin(nπx/L), use sin²θ = (1 − cos 2θ)/2: ∫₀L A² sin²(nπx/L) dx = A²[x/2 − (L/4nπ) sin(2nπx/L)]₀L = A²L/2, since the sine vanishes at both limits. So A = √(2/L) for every n — the constant does not grow with n, even though higher states wiggle faster, because sin² averages to exactly ½ whatever the frequency. Two checks. The units are right: in one dimension |ψ|² is a probability per unit length, so ψ carries m(−1/2), and √(2/L) does. And the shape is right: |ψₙ|² peaks at 2/L, exactly twice the classical density 1/L of a particle bouncing at constant speed, because the quantum particle piles probability into n humps and empties it at the nodes between them.
4Orthonormality is a theorem, not a coincidence
Compute ∫₀L ψₘψₙ dx with sin a sin b = ½[cos(a − b) − cos(a + b)]. Both cosines integrate to zero across the well when m ≠ n, and the first becomes cos 0 = 1 when m = n, returning δₘₙ. The orthogonality is not luck: Ĥ is Hermitian, so eigenfunctions belonging to different eigenvalues are automatically orthogonal, and the integral merely confirms a theorem you already had. What you gain is a basis. These sines are exactly the Fourier sine series on [0, L], which is complete, so any state of the well — a Gaussian squeezed in at t = 0, a triangle, a single half-lobe — can be written as ψ = Σ cₙψₙ with cₙ = ∫ψₙ*ψ dx, and Σ|cₙ|² = 1 makes |cₙ|² the probability of measuring Eₙ. Orthonormality is precisely what lets one overlap integral extract one coefficient.
5Reading the spectrum: n², 1/L², and zero-point energy
Eₙ = n²h²/(8mL²) carries two scalings. Up the ladder E ∝ n², so gaps widen as Eₙ₊₁ − Eₙ = (2n + 1)E₁ — unlike the harmonic oscillator's even rungs or hydrogen's converging ones, and a fingerprint you can test against a measured spectrum. Across boxes E ∝ 1/L², the price of confinement: halve a quantum dot from 5.0 nm to 2.5 nm and every level quadruples. Numbers make it concrete. For an electron Eₙ = n² × 0.376 eV⋅nm² / L², so a 0.50 nm well gives E₁ = 1.50 eV and a first gap of 4.51 eV — already a 275 nm ultraviolet photon, and every higher gap lies deeper in the ultraviolet. Put a proton in the same box and E₁ falls by the mass ratio to 0.82 meV. And E₁ can never be zero, because a ψ with no curvature is a straight line, and no straight line except ψ ≡ 0 vanishes at both walls: curvature is forced, and curvature is kinetic energy.
6What the model buys, and what it costs
The buy is real: an exact spectrum, an exact basis, and a first model of any tightly confined electron — a quantum dot, a nanowire segment, a π-electron on a conjugated chain. The costs are worth naming out loud. ψₙ is not a momentum eigenstate: p̂ψₙ ∝ cos(nπx/L), not sin, because a standing wave is an equal superposition of +ħkₙ and −ħkₙ. So ⟨p⟩ = 0 while ⟨p²⟩ = ħ²kₙ² = 2mEₙ, and for n = 1 the uncertainty product is Δx Δp = 0.568ħ, comfortably above the ħ/2 floor. The walls are the bigger fiction. A real well has finite depth, so the wavefunction penetrates and the effective width exceeds L — which is why the infinite well always overestimates the levels — and it holds only finitely many bound states rather than an unbounded ladder.
Key equations
Read the units, assumptions and limits before substituting.
Inside the well: the free-particle equation
ψ″ = −k²ψ, k = √(2mE)/ħ
Oscillatory, not exponential — and every E > 0 solves it, so the equation alone quantises nothing.
V = 0 for 0 < x < L; E in J, m in kg, ħ = 1.055×10⁻³⁴ J s, k in m⁻¹The walls quantise k
ψ(0) = ψ(L) = 0 ⇒ kₙ = nπ/L, n = 1, 2, 3, …
Quantisation is a boundary-value result, not a postulate bolted on: only whole half-wavelengths fit.
n = 0 leaves ψ ≡ 0, which cannot be normalised; −n repeats the state with a sign flipEnergy spectrum
Eₙ = n²π²ħ²/(2mL²) = n²h²/(8mL²)
Both scalings in one line: E ∝ n² climbing the ladder, E ∝ 1/L² as the box is squeezed.
for an electron, Eₙ = n² × 0.376 eV⋅nm² / L², with L in nmNormalised eigenfunctions
ψₙ(x) = √(2/L) sin(nπx/L), 0 ≤ x ≤ L
|ψₙ|² peaks at 2/L, twice the classical density 1/L, and carries n − 1 interior nodes.
ψ carries m(−1/2) in one dimension; the amplitude is the same for every nOrthonormality
∫₀L ψₘ*(x) ψₙ(x) dx = δₘₙ
With completeness, makes the set a basis: cₙ = ∫ψₙ*ψ dx lifts one coefficient out of the whole sum.
δₘₙ is 1 for m = n (normalisation) and 0 otherwise (Ĥ is Hermitian and no level is degenerate)Level spacing and zero-point energy
Eₙ₊₁ − Eₙ = (2n + 1)E₁, E₁ = h²/(8mL²) > 0
Gaps widen going up yet shrink relative to Eₙ — the correspondence limit, and why E₁ is never zero.
relative spacing (2n + 1)/n² → 0, so large-n ladders look continuousInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Step n up one rung at a time and count the humps in |ψₙ|² — n of them, with n − 1 nodes between. Then narrow the well: both curves grow taller, as √(2/L) demands, while Eₙ climbs as 1/L². The dashed line sits at half the peak at every setting.
Live results
- ENERGY Eₙ
- 4.18 eV
- GAP TO n+1
- 5.22 eV
- WAVENUMBER kₙ
- 10.47 nm⁻¹
- INTERIOR NODES
- 1
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Quantum number n: 2; Well width L: 0.60 nm
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The stubborn error is n = 0. Students reason that a particle can sit still, so E = 0 must be allowed, and they notice that ψ = 0 does satisfy both boundary conditions. It does — and that is the point: it satisfies them trivially. A wavefunction that is zero everywhere cannot be normalised and assigns zero probability to every region, so it describes no particle and is not a state. The ground state is n = 1 with E₁ = h²/8mL² > 0, and this zero-point energy is forced rather than chosen: no straight line other than ψ ≡ 0 can vanish at both walls, so confinement to width L guarantees curvature, and curvature is kinetic energy. The mirror slip is rejecting n = −1 because it "would give negative energy". E depends on n², so n = −1 has exactly the energy of n = 1; it is excluded because −ψ₁ is the same physical state, not because its energy is impossible.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
An electron is confined to a one-dimensional infinite well of width L = 0.50 nm. Find E₁ and E₃ in eV, then find the wavelength of the photon emitted when it drops from n = 3 to n = 1. Use h²/8mₑ = 0.376 eV⋅nm² and hc = 1240 eV⋅nm.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Eₙ = n²h²/(8mₑL²). With the shortcut constant, Eₙ = n² × 0.376 eV⋅nm² / (0.50 nm)² = n² × 0.376/0.25 eV = n² × 1.50 eV.
- Ground state: E₁ = 1.50 eV. Third level: E₃ = 9 × 1.50 = 13.5 eV — an n² ladder, not an even one.
- Photon energy: ΔE = E₃ − E₁ = (9 − 1)E₁ = 8 × 1.504 = 12.0 eV.
- Wavelength: λ = hc/ΔE = 1240 eV⋅nm ÷ 12.03 eV = 103 nm, in the far ultraviolet.
Answer. E₁ = 1.50 eV, E₃ = 13.5 eV, and the 3 → 1 photon has λ = 103 nm.
MediumExample 2
A particle is in the n = 2 state of an infinite well of width L. (a) Show that the normalisation constant is √(2/L). (b) Find the probability of finding it in the left quarter of the well, 0 ≤ x ≤ L/4. (c) Repeat (b) for n = 1 and account for the difference.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- (a) Require ∫₀L A² sin²(2πx/L) dx = 1. With sin²θ = (1 − cos 2θ)/2 the integral is A²[x/2 − (L/8π) sin(4πx/L)]₀L = A²L/2, since the sine vanishes at both limits. So A²L/2 = 1 and A = √(2/L).
- (b) P = ∫₀(L/4) (2/L) sin²(2πx/L) dx = (1/L)∫₀(L/4) [1 − cos(4πx/L)] dx = (1/L)[x − (L/4π) sin(4πx/L)]₀(L/4).
- At x = L/4 the sine is sin π = 0, so P = (1/L)(L/4) = 1/4 exactly — |ψ₂|² has a node at L/2, and its first hump is symmetric about the peak at L/4, so the left quarter holds exactly half of that hump's ½ and matches the classical 25%.
- (c) The same integral for n = 1 is (1/L)[x − (L/2π) sin(2πx/L)]₀(L/4) = 1/4 − (1/2π) sin(π/2) = 0.2500 − 0.1592 = 0.0908.
- The n = 1 density is a single hump centred on L/2, so the outer quarter sits on its rising flank and collects only 9.1%. Higher n spreads the density more evenly — the correspondence limit in miniature.
Answer. A = √(2/L); the probability is 1/4 exactly for n = 2, but 1/4 − 1/(2π) = 0.091 for n = 1.
HardExample 3
A short nanowire segment is modelled as a one-dimensional infinite well holding one electron of mass mₑ. Its n = 1 → n = 2 absorption sits at 620 nm. (a) Find L. (b) How many levels lie below 20 eV? (c) Give the fractional spacing (Eₙ₊₁ − Eₙ)/Eₙ at the top of that set and at n = 100, and say what it means. Take h²/8mₑ = 0.376 eV⋅nm² and hc = 1240 eV⋅nm.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Photon energy: ΔE = hc/λ = 1240 eV⋅nm ÷ 620 nm = 2.00 eV.
- (a) The transition energy is E₂ − E₁ = (4 − 1)E₁ = 3E₁, so E₁ = 2.00/3 = 0.667 eV. Then L² = 0.376 eV⋅nm² ÷ 0.667 eV = 0.564 nm², giving L = 0.751 nm.
- (b) Eₙ = n² × 0.667 eV ≤ 20 eV needs n² ≤ 30.0, so n ≤ 5.48: five levels, n = 1 to 5, with E₅ = 16.7 eV inside and E₆ = 24.0 eV just over the cut.
- (c) The fractional spacing is (Eₙ₊₁ − Eₙ)/Eₙ = (2n + 1)/n². At n = 5 that is 11/25 = 0.44; at n = 100 it is 201/10⁴ = 0.020.
- Absolute gaps widen without limit, but relative gaps fall as 2/n, so at large n no spectrometer resolves the rungs and the ladder looks continuous. That is the correspondence limit, and why a 1.0 g bead at 1.0 mm s⁻¹ in a 10 cm box (n ≈ 3 × 10²⁶) never shows quantisation.
Answer. L = 0.751 nm; five levels lie below 20 eV (n = 1–5); the fractional spacing falls from 0.44 at n = 5 to 0.020 at n = 100.
Quick check
Select an answer and explain it before checking.
Review & continue
The infinite square well is the model of a particle that moves freely inside a segment of length L and is forbidden outside it, so its stationary states are the standing sine waves that vanish at both walls.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.