Skip to main content

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.
Starting model: The infinite square wellAn infinite well of width L = 0.60 nm. Top: the normalised eigenfunction ψ_n, pinned to zero at both walls, with n − 1 interior nodes (here 1); its height follows √(2/L), so a narrower box gives a taller curve. Bottom: |ψ_n|², peaking at 2/L = 3.33 nm⁻¹, exactly twice the dashed classical density 1/L. Level energy E_n = 4.18 eV.ψₙ(x) = √(2/L)⋅sin(nπx/L)n = 2 · L = 0.60 nm|ψₙ(x)|² (dashed = classical 1/L)peak 2/L = 3.33 nm⁻¹x = 0x = L
Start with a picture. Change the model in the lab below.

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.

1

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.

2

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 flip

Energy 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 nm

Normalised 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 n

Orthonormality

∫₀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 continuous
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

2
1 to 5; steps of 1.
0.60 nm
0.4 to 1 nm; steps of 0.05.

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.

Interactive Physics IV modelAn infinite well of width L = 0.60 nm. Top: the normalised eigenfunction ψ_n, pinned to zero at both walls, with n − 1 interior nodes (here 1); its height follows √(2/L), so a narrower box gives a taller curve. Bottom: |ψ_n|², peaking at 2/L = 3.33 nm⁻¹, exactly twice the dashed classical density 1/L. Level energy E_n = 4.18 eV.ψₙ(x) = √(2/L)⋅sin(nπx/L)n = 2 · L = 0.60 nm|ψₙ(x)|² (dashed = classical 1/L)peak 2/L = 3.33 nm⁻¹x = 0x = L
An infinite well of width L = 0.60 nm. Top: the normalised eigenfunction ψₙ, pinned to zero at both walls, with n − 1 interior nodes (here 1); its height follows √(2/L), so a narrower box gives a taller curve. Bottom: |ψₙ|², peaking at 2/L = 3.33 nm⁻¹, exactly twice the dashed classical density 1/L. Level energy Eₙ = 4.18 eV.

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

Baseline 2; choose 1 to 5, in steps of 1.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

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.

5

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.

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.

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.

6

Quick check

Select an answer and explain it before checking.

The infinite-well eigenfunctions are ψₙ(x) = √(2/L) sin(nπx/L) on 0 ≤ x ≤ L, with Eₙ = n²π²ħ²/(2mL²). Which single statement about this set is correct?
7

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.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.