Skip to main content

Quantum core · institution-dependent · Interactive lesson

The sine eigenbasis: orthonormality and completeness

Two integrals do the whole job. One says the sine states are mutually perpendicular unit vectors; the other says nothing has been left off the list. Together they let you stop doing calculus on wavefunctions and start doing linear algebra on coefficients — and they tell you exactly what a truncated sum still gets wrong.

UPV-05.04 · Lesson 4 of 9 in this unit. Position is not a completion score.
Starting model: The sine eigenbasis: orthonormality and completenessThe flat state ψ = 1/√L (dashed) rebuilt from the sine eigenbasis, whose coefficients are cₙ = 2√2/(nπ) for odd n and zero for even n. The solid curve is the partial sum keeping n ≤ 5; the dot marks its value at the probe x₀ = 0.10L. Every partial sum is pinned to zero at both walls, where the target is not — completeness holds in the norm, never at a point.ψ = 1/√L on the sine basis, n ≤ 5captured norm 0.9331dashed: target · solid: partial sumprobe x₀ = 0.10L1/√L0x = 0x = L
Start with a picture. Change the model in the lab below.

Quantum core · institution-dependent. Your university determines the required depth of these quantum topics, including the use of operators, differential equations and computation. Institution-dependent does not automatically mean optional.

1

Build the model

Orthogonality is forced. Completeness has to be proved separately.

The key idea

The sine eigenbasis is the orthonormal set of kets |n⟩ with ⟨x|n⟩ = √(2/L) sin(nπx/L), n = 1, 2, 3, …, whose overlaps obey ⟨m|n⟩ = δₘₙ and whose projectors sum to the identity on L²([0, L]), so every state in the box is one series Σcₙ|n⟩ with cₙ = ⟨n|ψ⟩.

Example. For ψ = √(30/L⁵)⋅x(L − x), symmetry kills every even n and cₙ = 4√60/(n³π³): c₁ = 0.99928 and c₃ = 0.03701, so two terms already hold 99.99% of the norm while Σ|cₙ|² = 1 exactly.

The complete physical model and assumptions

Orthonormality and completeness are two different claims, and the box lets you check both. Orthogonality is not a coincidence of sines: Ĥ is self-adjoint on the Dirichlet domain, so (Eₙ − Eₘ)⟨m|n⟩ = 0 forces distinct levels apart, and the integral (2/L)∫₀ᴸ sin(mπx/L) sin(nπx/L) dx = δₘₙ is the audit rather than the reason — the √(2/L) is simply what normalisation leaves over. Completeness is the harder half and it does not follow: delete |2⟩ and the surviving set is still perfectly orthonormal. What supplies it is Sturm–Liouville theory — the Dirichlet Laplacian on a bounded interval has compact resolvent, so its eigenvectors span the whole of L²([0, L]) — and the statement is Σₙ|n⟩⟨n| = 1, whose position-basis form is the closure relation (2/L)Σₙ sin(nπx/L) sin(nπx′/L) = δ(x − x′). Together they collapse a state into a column of numbers: cₙ = ⟨n|ψ⟩, one integral each, with Parseval guaranteeing Σ|cₙ|² = ⟨ψ|ψ⟩ = 1, so the |cₙ|² are already the Born probabilities P(Eₙ). The cost hides in the word converges. It means in the L² norm, an integral of squared error — not at any given point. Every partial sum vanishes at x = 0 and x = L whether ψ does or not, and near a jump the sum overshoots by 8.95% of it forever, the ear narrowing as 1/N without ever getting shorter.

1Orthogonality is forced before it is computed

Take Ĥ = −(ħ²/2m) d²/dx² on the Dirichlet domain — functions in H²([0, L]) with ψ(0) = ψ(L) = 0. Integrating by parts twice, ⟨m|Ĥψₙ⟩ − ⟨Ĥψₘ|ψₙ⟩ equals the Wronskian boundary term −(ħ²/2m)[ψₘ*ψₙ′ − ψₘ*′ψₙ]₀ᴸ, and the boundary condition kills it at both ends. The left side is (Eₙ − Eₘ)⟨m|n⟩ because every Eₙ is real, and the 1D box has no degeneracy, so E₁, E₂, E₃, … are distinct and every off-diagonal overlap must vanish before you integrate anything. Now integrate anyway, because that is what catches a wrong convention. Product-to-sum gives sin A sin B = ½[cos(A − B) − cos(A + B)], so for m ≠ n the integrand is a difference of cosines at (m − n)π/L and (m + n)π/L, each completing a whole number of half-periods on [0, L]; both integrate to zero. For m = n the first cosine is cos 0 = 1 and contributes L/2, so (2/L)(L/2) = 1.

2Normalisation is the only freedom the walls left

The eigenvalue problem fixes the shape and not the size: any multiple of sin(nπx/L) still solves it and still vanishes at both walls. Born's rule fixes the size. Since ∫₀ᴸ sin²(nπx/L) dx = L/2 for every n — sin² averages to ½ over a whole number of half-periods, and n only changes how many — the constant is √(2/L), the same for every level. Units follow: |ψ|² is a probability per unit length, so ψ carries m(−1/2). At L = 1.00 nm that is √(2/L) = 4.47 × 10⁴ m(−1/2), and every |ψₙ|² peaks at 2/L = 2.00 nm⁻¹ whatever n is; raising n moves the antinodes around without raising the peak. One freedom survives normalisation: e(iθ)|n⟩ is equally normalised, so the physical state is a ray, not a single ket. Choosing the real sine that is positive just inside x = 0 is a convention, and it is the convention that keeps every cₙ real when ψ is real — say it out loud before comparing signs with anyone else's code.

3Completeness is a second theorem, not a corollary

Orthonormality never implies completeness. Throw away |2⟩: the surviving set still satisfies ⟨m|n⟩ = δₘₙ exactly, while ψ₂ itself now expands to the zero vector and Parseval fails on it. The missing input is spectral. On a bounded interval, −d²/dx² with Dirichlet conditions is a regular Sturm–Liouville operator with compact resolvent, so its eigenvectors form an orthonormal basis of the whole of L²([0, L]). In Dirac notation that is Σₙ|n⟩⟨n| = 1; in the position basis it is the closure relation (2/L)Σₙ sin(nπx/L) sin(nπx′/L) = δ(x − x′), a distribution, so read it only under an integral. Numerically the two halves come apart. Build S with Sₙⱼ = √(2Δx/L) sin(nπxⱼ/L) for n ≤ N on a grid of J points: S @ S.T ≈ IN tests orthonormality of the states you kept, while S.T @ S ≈ IJ tests completeness and only approaches the identity as N approaches J. Truncation breaks completeness first, and never breaks orthonormality at all.

4Projection, and parity that halves the integrals

Because Σₙ|n⟩⟨n| = 1, writing |ψ⟩ = Σcₙ|n⟩ and hitting it with ⟨m| returns cₘ = ⟨m|ψ⟩ at once: orthonormality has already decoupled the equations, so there is no linear system to solve. In the position basis that projection is the Fourier sine coefficient, cₙ = √(2/L)∫₀ᴸ sin(nπx/L) ψ(x) dx. Use symmetry before calculus. The basis has definite parity about the midpoint, ψₙ(L − x) = (−1)ⁿ⁺¹ψₙ(x), so a state symmetric about L/2 has zero overlap with every even n and an antisymmetric one with every odd n. For the normalised parabola ψ = √(30/L⁵) x(L − x) that deletes half the integrals unseen, and the survivors give cₙ = 4√60/(n³π³): c₁ = 0.99928, c₃ = 0.03701, c₅ = 0.00799. The state is 99.86% ground state, which is why a parabola is such a good freehand sketch of ψ₁ — and why c₂ = 0 exactly, not merely small.

5Parseval turns the norm into probabilities

Insert the identity into the norm: ⟨ψ|ψ⟩ = ⟨ψ|(Σₙ|n⟩⟨n|)|ψ⟩ = Σₙ⟨ψ|n⟩⟨n|ψ⟩ = Σₙ|cₙ|². Normalisation stops being an integral and becomes a convergent series, and the same move on two states gives ⟨φ|ψ⟩ = Σₙbₙ*cₙ — the change of basis is unitary, so it preserves every bracket, not merely lengths. The physics arrives when the Born rule is read in the energy basis: P(Eₙ) = |cₙ|², so Parseval is literally the statement that the probabilities of the possible energy outcomes sum to one, and ⟨H⟩ = Σₙ|cₙ|²Eₙ. It is also your numerical error bar. Truncating at N discards exactly 1 − Σ(n ≤ N)|cₙ|² of the norm — and therefore of the probability — which for the parabola is 1.4 × 10⁻³ at N = 1 and 7.5 × 10⁻⁵ at N = 3. Print that residual in any box code you write; it is the one convergence diagnostic that costs nothing.

6Decay rate is a boundary question, and Gibbs is the bill

How fast cₙ falls is set by how well ψ imitates the basis at the walls, because every ψₙ vanishes there and so does every ψₙ″. A state matching the first condition but not the second — the parabola, whose second derivative is −2A everywhere — gives cₙ ∝ n⁻³ and |cₙ|² ∝ n⁻⁶. A state failing even the first — the flat ψ = 1/√L, a perfectly good vector of L²([0, L]) though nowhere near the domain of Ĥ — gives only cₙ = 2√2/(nπ) for odd n, so |cₙ|² ∝ n⁻² and eight terms retain just (8/π²)(1 + 1/9 + … + 1/225) = 0.9747 of the norm, against the parabola's 0.99992 with two. The mismatch surfaces as Gibbs. The odd 2L-periodic extension of the flat state is a square wave jumping by 2/√L at each wall, and the partial sum overshoots by 0.0895 of that jump: the eight-term sum reaches 1.1803/√L at x = L/16. Keep sixteen terms and the peak moves to x = L/32 and drops only to 1.1793/√L.

2

Key equations

Read the units, assumptions and limits before substituting.

The normalised eigenvectors

⟨x|n⟩ = ψₙ(x) = √(2/L) sin(nπx/L), n = 1, 2, 3, …

The Dirichlet condition already chose the sine. Normalisation is the one constant left, and it fixes it up to a phase.

ψₙ carries m(−1/2); √(2/L) = 4.47 × 10⁴ m(−1/2) at L = 1.00 nm. Zero outside [0, L].

Orthonormality

⟨m|n⟩ = (2/L) ∫₀ᴸ sin(mπx/L) sin(nπx/L) dx = δₘₙ

Turns projection into one integral per level: no simultaneous equations, no matrix to invert, one coefficient at a time.

Dimensionless. Product-to-sum leaves cosines spanning whole numbers of half-periods, which integrate to zero unless m = n.

Resolution of the identity

Σₙ |n⟩⟨n| = 1 ⇔ (2/L) Σₙ sin(nπx/L) sin(nπx′/L) = δ(x − x′)

This is completeness, and it licenses inserting Σ|n⟩⟨n| anywhere inside a bracket. Orthonormality alone never gives it.

Sum over n = 1 to ∞. Both sides of the closure relation carry m⁻¹, and the delta lives on the open interval (0, L).

Expansion coefficient

cₙ = ⟨n|ψ⟩ = √(2/L) ∫₀ᴸ sin(nπx/L) ψ(x) dx

One number per level: the state stops being a function of x and becomes a column vector you can hand to NumPy.

ψ in m(−1/2) makes cₙ dimensionless. It is the Fourier sine coefficient of ψ on [0, L] times √(L/2).

Parseval and the Born rule

⟨φ|ψ⟩ = Σₙ bₙ* cₙ, ⟨ψ|ψ⟩ = Σₙ |cₙ|² = 1, P(Eₙ) = |cₙ|²

Normalisation becomes a convergent series, and 1 − Σ(n ≤ N)|cₙ|² is the exact fraction of the state a truncation discarded.

bₙ = ⟨n|φ⟩, every term dimensionless, Eₙ = n²π²ħ²/(2mL²). The basis change is unitary, so brackets survive it.

Convergence in the norm only

‖ψ − SN‖ → 0, yet the Gibbs overshoot → 0.0895 × jump

Names the price of completeness: mean-square agreement never promises agreement at a point, and Gibbs is the standing proof.

SN is the partial sum to n = N. The overshoot peaks about L/N from a jump in the odd 2L-periodic extension of ψ, and because SN is continuous across it, sup|ψ − SN| never falls below half the jump.
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

3
1 to 5; steps of 1.
0.10
0.02 to 0.98; steps of 0.01.

Try this. Park the probe at 0.10L and drag M from 1 to 5: the reading climbs through 0.99 at M = 3, then overshoots to 1.18 — an 18% ear that more terms only sharpen. Move the probe to 0.50L and the same sweep closes on 1 like 1/(πM).

Live results

HIGHEST n KEPT
5
CAPTURED NORM Σ|cₙ|²
0.9331
PROBE VALUE × √L
0.991
POINTWISE ERROR
0.009

Results follow this lesson’s model and assumptions. Displayed values are rounded.

Interactive Physics V modelThe flat state ψ = 1/√L (dashed) rebuilt from the sine eigenbasis, whose coefficients are cₙ = 2√2/(nπ) for odd n and zero for even n. The solid curve is the partial sum keeping n ≤ 5; the dot marks its value at the probe x₀ = 0.10L. Every partial sum is pinned to zero at both walls, where the target is not — completeness holds in the norm, never at a point.ψ = 1/√L on the sine basis, n ≤ 5captured norm 0.9331dashed: target · solid: partial sumprobe x₀ = 0.10L1/√L0x = 0x = L
The flat state ψ = 1/√L (dashed) rebuilt from the sine eigenbasis, whose coefficients are cₙ = 2√2/(nπ) for odd n and zero for even n. The solid curve is the partial sum keeping n ≤ 5; the dot marks its value at the probe x₀ = 0.10L. Every partial sum is pinned to zero at both walls, where the target is not — completeness holds in the norm, never at a point.

Predict → change one variable → check

Plan a change before running it. Every other input stays at the saved baseline.

Saved baseline. Odd harmonics kept M: 3; Probe position x₀/L: 0.10

Baseline 3; 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 sine basis is complete” gets read as “the series equals ψ at every point”. It does not. Completeness is a statement in the norm: ‖ψ − SN‖² = ∫₀ᴸ|ψ − SN|² dx → 0, an integral of squared error — and an integral can be driven to zero while the error at particular points stays large, provided the bad region shrinks fast enough. That is exactly what happens. Every partial sum obeys SN(0) = SN(L) = 0 whether ψ does or not, and near a jump the overshoot keeps 8.95% of the jump height forever while its width falls as L/N, so its share of the norm dies as 1/N and convergence is untouched. So never read a truncated expansion as a pointwise approximation near a wall or a discontinuity, and stop asking the limit to agree with ψ at isolated points: in L² two functions differing on a set of measure zero are the same vector, and those endpoints were never part of what the vector claimed.

5

Practice & worked examples

3 authored examples. Make an attempt, then reveal the reasoning one step at a time.

EasyExample 1

For ⟨x|n⟩ = √(2/L) sin(nπx/L) on [0, L], show by direct integration that ⟨1|3⟩ = 0 and ⟨3|3⟩ = 1. Then, for L = 1.00 nm, give the numerical value of the normalisation constant and the peak probability density of |3⟩.

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.

MediumExample 2

A particle in a box of width L is prepared in ψ(x) = A x(L − x). Normalise it, find cₙ = ⟨n|ψ⟩ for every n, state P(E₁) and P(E₂), and say how much of the norm survives truncation at n = 3.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 6 steps revealed.

HardExample 3

The same box is prepared in the flat state ψ(x) = 1/√L on (0, L). Find cₙ, verify Parseval, compute the norm retained by n ≤ 15, evaluate the partial sum at x = L/16, and find ⟨H⟩.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 6 steps revealed.

6

Quick check

Select an answer and explain it before checking.

The flat state ψ(x) = 1/√L on (0, L) has sine coefficients cₙ = 2√2/(nπ) for odd n and 0 for even n, and Parseval closes exactly: Σ|cₙ|² = (8/π²)(π²/8) = 1. Which statement about this expansion is correct?
7

Review & continue

The sine eigenbasis is the orthonormal set of kets |n⟩ with ⟨x|n⟩ = √(2/L) sin(nπx/L), n = 1, 2, 3, …, whose overlaps obey ⟨m|n⟩ = δₘₙ and whose projectors sum to the identity on L²([0, L]), so every state in the box is one series Σcₙ|n⟩ with cₙ = ⟨n|ψ⟩.

  • 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.