Expectation Values and Orthogonality in the Box
An electron trapped in a one-dimensional box never sits still. Yet it has a perfectly well-defined average position. It also has a vanishing average momentum. Its spread in position grows with quantum number. These facts are not assumptions. They fall directly out of integrating the wavefunction against the position and momentum operators. The same three integrals reappear, essentially unchanged in structure, in every exactly solvable model of quantum chemistry. This ranges from the harmonic oscillator to the hydrogen atom. This article computes , , , , and the uncertainty product for the particle in a box. It then proves that the box eigenstates are mutually orthogonal. This property is guaranteed on general grounds. Still, it is worth verifying explicitly at least once by direct integration. Doing this calculation carefully, with real trigonometric integrals rather than hand-waving about symmetry, builds the exact toolkit. That toolkit includes integration by parts, orthogonality of sine functions, and the Hermitian-operator machinery. It will be reused without re-derivation in the 2D and 3D Box. It also reappears in perturbation theory, and in any treatment of vibrational or rotational spectroscopy. The particle in a box matters here not because boxes exist in nature (they do not, not literally). It matters because it is the only one-dimensional problem where every integral can be done by hand. Everything comes out in closed form, with no series expansions or special functions. That makes it the ideal proving ground. Every technique used to extract physical predictions from a wavefunction appears in its cleanest possible form. This includes sandwiching an operator between bra and ket. It includes integrating by parts to move a derivative. It also includes using orthogonality to kill cross terms. If you understand why in the box, you are close. If you also understand why is satisfied but never saturated, you understand the machinery of expectation values for any bound system. This article assumes the normalized box wavefunctions are already established. It delivers the full derivation of , , , and the resulting uncertainty product. It also delivers an explicit orthogonality proof between two different box states. Three fully worked numerical examples follow, spanning a textbook check, an applied electron-in-a-conjugated-chain estimate, and a competition-style calculation combining several values. Finally, it discusses limiting cases connecting back to the classical uniform distribution.
- The normalized box eigenstate is on , zero outside.
- for every — the mean position is always the midpoint, by left-right symmetry of .
- for every — the particle carries equal amounts of leftward and rightward momentum.
- , so the position spread increases toward the classical value as .
- Distinct box states are orthogonal: for , a direct consequence of both states being eigenfunctions of the same Hermitian Hamiltonian.
- Key idea: every observable is a sandwich integral , and the box's sine/cosine integrals make every one of these sandwiches computable by hand, exactly.
Where this lives today
The free-electron (particle-in-a-box) model, built entirely on the expectation values derived here, is still used as a fast qualitative tool for estimating HOMO–LUMO gaps and hence absorption wavelengths of linear conjugated dyes and polyenes, useful in designing chromophores for photovoltaics and biological imaging probes. The orthogonality proof technique — reduce an overlap integral to a product-to-sum trigonometric identity, then show the boundary terms vanish by periodicity — is the direct ancestor of Fourier-analysis arguments used in vibrational spectroscopy, in NMR lineshape theory, and in electronic structure methods where basis-function orthogonality (or its deliberate absence, as in non-orthogonal Gaussian basis sets requiring overlap-matrix corrections) governs the cost and accuracy of a calculation. The trick of computing via rather than by brute-force double differentiation reappears constantly in molecular quantum mechanics, wherever the potential is simple over the domain of interest — for instance in estimating zero-point kinetic energy contributions in the harmonic oscillator, and in any perturbative treatment where the unperturbed Hamiltonian's kinetic and potential pieces are cleanly separable. Scanning-tunneling-microscopy quantum corrals, quantum dots, and nanowire heterostructures are all modern physical realizations of confined-particle boxes where these exact expectation-value formulas are used as leading-order estimates before more detailed numerical modeling.
Ask the tutor: How would these same expectation-value integrals change if the box had an asymmetric potential step in the middle instead of flat walls?
The physical picture — thorough prose
The particle-in-a-box eigenstates are standing waves, , confined to with outside. Once normalization is settled — — the natural next question is: what does this wavefunction predict? A wavefunction alone is not directly observable; every measurable quantity is extracted by sandwiching an operator between and and integrating over all space. This is the defining computational act of quantum chemistry, and the box is the arena where it can be done with pure trigonometry, no special functions, no infinite series. Three features make the box uniquely transparent. First, is a smooth oscillatory density whose peaks and nodes are easy to visualize, so has an obvious answer (the midpoint) before any calculation — a good sanity check for the algebra. Second, the momentum operator acting on a sine gives a cosine, and integrals of over a full number of half-periods vanish identically, so falls out cleanly and can be understood physically: the standing wave is an equal superposition of a right-moving and a left-moving traveling wave, and their momenta cancel. Third, requires integrating , which needs one integration by parts (or a table integral) but no more — and the result cleanly interpolates between the quantum ground state and the classical uniform-distribution limit as , foreshadowing the correspondence principle used throughout spectroscopy. Orthogonality is the other pillar of this article. Two box eigenstates and with satisfy
This is not a coincidence of the box; it is guaranteed for any two eigenfunctions of a Hermitian operator (here, the box Hamiltonian ) belonging to different eigenvalues. Verifying it explicitly by direct trigonometric integration in the box — rather than only invoking the general theorem — builds confidence that the general theorem is not a magic trick, and shows exactly which product-to-sum identity does the work. This orthogonality is the reason overlap integrals between different vibrational or electronic states vanish in the absence of perturbation, underlying selection rules in spectroscopy and the vanishing of off-diagonal matrix elements in unperturbed basis sets.
The core ideas — governing equations
The three central expectation-value integrals for the normalized state , valid for , are:
where: is any positive integer quantum number, is the box length, and the result is independent of .
Reading: the probability density is symmetric about the box's midpoint for every , so the mean position is always exactly regardless of how excited the state is.
where: the first term is the classical (uniform-distribution) mean square position, and the second is a quantum correction that shrinks as grows.
Reading: as , , exactly the mean square position of a classical particle bouncing uniformly across — the correspondence principle in action.
where: is the momentum operator; the vanishing holds for every .
Reading: the standing wave is an equal mixture of leftward and rightward momentum eigenstates, so their contributions cancel exactly — the particle has no net drift.
where: is the box energy; this identity follows because inside the box, so .
Reading: since , all of is "variance" — the kinetic energy is entirely uncertainty in momentum, never a net drift.
where: is the Kronecker delta; this is the orthonormality statement combining normalization () with orthogonality ().
Reading: eigenfunctions belonging to different energy eigenvalues of a Hermitian Hamiltonian never overlap — a structural fact used every time a wavefunction is expanded in a basis set.
Goal. Compute and exactly for the normalized box state , obtaining closed-form results valid for all .
Step 1 — Set up the sandwich integral for . The expectation value of position is
Use the half-angle identity with :
Step 2 — Evaluate the two pieces. The first integral is elementary:
The second integral is done by integration by parts with , , so and :
The boundary term vanishes because for integer . The remaining integral is
since for integer . So the entire cosine term contributes zero.
Step 3 — Assemble .
This holds for every positive integer — the mean position is always the midpoint of the box, matching the visual symmetry of every plot.
Step 4 — Set up .
The first piece is
Step 5 — Integrate by parts twice. Let . With , , , :
The boundary term vanishes since . For the remaining integral, integrate by parts again with , , :
The boundary term is (since ), and the remaining integral . So
Substituting back:
Step 6 — Assemble .
As the correction term vanishes and , the classical mean-square position for uniform occupation of — the expected correspondence-principle limit.
Go deeper · Derivation B · 1 min⟨p⟩, ⟨p²⟩, and the uncertainty product
Goal. Show for all , derive via the energy relation, and combine with and to get the Heisenberg product .
Step 1 — Differentiate the wavefunction. With ,
So
Step 2 — Form the expectation value integral.
Use :
Evaluating the bracket: for integer . So the whole integral is zero.
Step 3 — Conclude .
Physically: and of the same argument are out of phase, so their product integrates to zero over any whole number of half-periods — the standing wave carries zero net momentum, consistent with it being an equal mix of and traveling waves.
Step 4 — Get from the energy, not from a fresh integral. Inside the box, the potential is zero, so the Hamiltonian is purely kinetic:
Since is an exact eigenfunction of with eigenvalue , exactly (no averaging needed — it's an eigenstate). Substituting,
using . This shortcut avoids a second integration by parts and demonstrates a general trick: whenever the potential is zero (or constant) over the relevant region, is just times the (exactly known) energy eigenvalue.
Step 5 — Assemble the uncertainties. Since ,
Since ,
Step 6 — Form the product .
For : , comfortably above the Heisenberg bound , confirming the ground state is not a minimum-uncertainty wavepacket (only the Gaussian ground state of the harmonic oscillator saturates that bound). As , the product grows without bound, , since the standing wave becomes an ever-finer comb of momentum content while approaches its classical ceiling.
Orthogonality — the sandwich integral between two different states
Go deeper · Derivation C · 1 minOrthogonality of box eigenstates
Goal. Prove directly, by trigonometric integration, that whenever , without merely citing the general Hermitian-operator theorem.
Step 1 — Write the overlap integral.
Both wavefunctions are real, so .
Step 2 — Apply the product-to-sum identity.
with and :
Step 3 — Integrate each cosine term. For any nonzero integer ,
because for every integer . Since , both and are nonzero integers (as , always, and by assumption). So both integrals vanish individually.
Step 4 — Conclude.
Combined with the normalization result (established in the normalization treatment), this gives the full orthonormality statement .
Step 5 — Connect to the general theorem. This explicit vanishing is a special case of a completely general fact: if and with , and is Hermitian, then
by the Hermiticity of (which guarantees ). Since for in the box (energies scale as , all distinct), the overlap integral must vanish. The direct calculation above is the concrete instance of this abstract argument — it shows which trigonometric cancellation implements the general theorem in this particular basis.
Worked examples
Example 1 — Foundational: ground and first excited state, . Take m, and evaluate , , for and , plus confirm orthogonality between them. For both states, nm — no calculation needed beyond the derived formula. For , use
With : For :
Then
For :
Then
So grows from to (0.181 nm → 0.266 nm), approaching the classical limit nm as increases — consistent with the correspondence principle. Orthogonality check: . Using the Step 3 result with and , both nonzero integers, both cosine integrals vanish, giving exactly — as it must, since .
Example 2 — Applied: momentum uncertainty as a bond-order estimate in a conjugated chain. The free-electron (particle-in-a-box) model treats a conjugated polyene's π-electrons as particles confined along the chain length. Consider a chain of effective length nm (a specific asymmetric value, representative of a short polyene with several conjugated double bonds), and ask: for an electron in the state, what is , and what velocity scale does it represent? From the derivation,
With , , m:
Dividing by the electron mass kg gives a characteristic speed scale (not a literal velocity, since and this is a spread, not a drift):
This is about 0.5% of the speed of light — safely non-relativistic, confirming that a non-relativistic Schrödinger treatment is self-consistent for this system, and giving a rough sense of how "fast" the π-electron's momentum content is spread even though its average drift is exactly zero. This is the kind of order-of-magnitude cross-check that justifies applying the simple box model to real π-systems before doing any more sophisticated Hückel-level calculation.
Example 3 — Competition-level: verifying orthogonality and computing a joint expectation across mixed states. Consider the (unnormalized, for pedagogical purposes) superposition
built from two orthonormal box eigenstates, in a box of length . Find the normalization constant needed to make a proper wavefunction, and compute in terms of and any cross terms.
Normalization. Because and are orthonormal (proved above: gives nonzero integers and , so ; and each is separately normalized, ),
So the normalized state is , i.e., coefficients and , satisfying as required.
Expectation value of in the mixed state. In general, for with real orthonormal ,
The first two (diagonal) terms use the already-derived for both and :
The cross term is generally nonzero — unlike the overlap integral , the operator does not commute with the symmetry that forced , so this off-diagonal position matrix element survives. Explicitly,
which by the product-to-sum identity becomes , each piece handled by the same integration-by-parts machine used for above (with odd giving nonzero boundary contributions since for odd , unlike the even case in Step 2 of the first derivation). Carrying this out gives a nonzero numerical coefficient of ; the point of the example is structural — that off-diagonal position matrix elements between orthogonal states need not vanish, and this is precisely the mechanism behind allowed optical transitions (nonzero transition dipole moments) between different box/orbital states, foreshadowing selection rules in spectroscopy.
Limiting cases, scope & common traps
| Regime / check | What happens | Why |
|---|---|---|
| , so | Correspondence principle: quantum average matches the classical uniform-distribution result | |
| (ground state) | Box ground state is not Gaussian, so it does not saturate the Heisenberg bound | |
| in overlap integral | , not 0 | Normalization, not orthogonality — the two are complementary halves of |
| for any bound stationary state | Always exactly zero | True for any real-valued (or any stationary, time-independent probability density) eigenfunction, not special to the box |
| Off-diagonal -type matrix elements () | Generally nonzero | does not annihilate the parity mismatch the way the identity operator does in |
| Box with asymmetric potential added | in general | Symmetry argument for relies on the box's mirror symmetry about its midpoint; break the symmetry and this fails |
The chemist behind it
Origins · 1 minPaul Adrien Maurice Dirac and how this was discovered
Dirac gave quantum mechanics the bra–ket notation and the transformation theory that made expressions like into a universal grammar for observables, spanning every exactly solvable model from the box to the hydrogen atom. His 1930 book The Principles of Quantum Mechanics unified Heisenberg's matrix mechanics and Schrödinger's wave mechanics into the single sandwich-integral formalism used throughout this article — the very act of writing as "the expectation value of " is Dirac's legacy, together with the recognition that Hermiticity of an operator is precisely the mathematical condition guaranteeing real eigenvalues and orthogonal eigenfunctions.
Though the specific problem of a particle in a box predates Dirac by several years (it appears in early treatments by Schrödinger and in pedagogical form soon after), the machinery used throughout this article — writing observables as Hermitian operators, expressing predictions as sandwich integrals, and deriving orthogonality from Hermiticity rather than from case-by-case trigonometric coincidence — is Dirac's systematic contribution. Every time a chemist writes or invokes "orthogonal basis functions," they are using notation and logic Dirac built to make quantum mechanics computable and interpretable across every subsequent exactly solvable model, including the ones the box directly foreshadows.
Origins · 1 minhow this was discovered
Why is always regardless of ?
The probability density is symmetric under the reflection for every quantum number , because has this mirror symmetry about the box midpoint. Any probability distribution that is mirror-symmetric about a point has its mean exactly at that point, so follows from symmetry alone — the explicit integral in the derivation confirms this but is not strictly necessary once the symmetry argument is recognized. This is a useful shortcut: whenever a potential (and hence the resulting eigenstates) has a mirror symmetry, the position expectation value can often be read off without any integration.
Does mean the box eigenstates carry no momentum at all?
No — only says the average momentum vanishes, not that momentum is absent. The kinetic energy is strictly positive and grows as , meaning the momentum-squared expectation value (and hence the momentum uncertainty ) grows without bound as increases. Physically, each stationary state is an equal-weight superposition of a rightward and leftward traveling wave with momenta and ; these cancel in the average but each contributes fully to , since squaring removes the sign.
Why does exceed even in the ground state, if the uncertainty principle allows equality?
The Heisenberg bound is saturated only by Gaussian wavepackets, which arise naturally as the ground state of the quantum harmonic oscillator. The particle-in-a-box ground state is a sine function, not a Gaussian, so it is not a minimum-uncertainty state, and the inequality is satisfied but not tight. The numerical value for reflects how "close" a sine profile comes to Gaussian-like localization — closer than higher excited states, whose uncertainty product grows linearly with for large .
Is the orthogonality of box states a special property of sine functions, or something more general?
It is a special case of a fully general theorem: any two eigenfunctions of a Hermitian operator that belong to different eigenvalues are automatically orthogonal, with no dependence on the specific functional form. In the box, the Hamiltonian happens to produce sine eigenfunctions, and the general theorem manifests concretely as the vanishing of for . The same underlying theorem guarantees orthogonality of Hermite functions in the harmonic oscillator, Legendre polynomials in angular momentum problems, and radial hydrogen wavefunctions with different principal quantum numbers — the box is simply the case where the proof can be written out in three lines of trigonometry.
Why does the cross term not vanish, if and are orthogonal?
Orthogonality () is a statement about the overlap of two functions weighted by the identity operator, which respects the full symmetry that forces the product-to-sum cosine integrals to vanish. Inserting between them changes the integrand's symmetry: is itself an odd function about the midpoint (relative to ), so it can convert an otherwise symmetric vanishing integral into a nonzero one. This is exactly the mathematical origin of nonzero transition dipole moments in spectroscopy — the dipole operator plays the same symmetry-breaking role as does here, allowing transitions between orthogonal quantum states.
How does this calculation prepare for the harmonic oscillator or hydrogen atom?
Every technique here recurs unchanged in structure: writing , using symmetry to predict before integrating, exploiting to shortcut calculations, and invoking Hermiticity to prove orthogonality without brute-force integration when possible. The harmonic oscillator swaps sines for Hermite polynomials times Gaussians, and hydrogen swaps them for associated Laguerre polynomials times spherical harmonics, but the sandwich-integral logic, the role of parity/symmetry, and the orthogonality theorem are identical. Mastering the box calculation by hand is what makes those later, algebraically heavier derivations conceptually routine.
What would change if the box potential were not symmetric, e.g., a ramp instead of flat bottom?
Breaking the mirror symmetry of the potential removes the shortcut ; the mean position would then depend on and would need to be computed by direct integration against the (now more complicated) eigenfunctions, which are generally Airy functions for a linear ramp rather than sines. The general expectation-value framework — sandwich integrals, Hermiticity guaranteeing orthogonality for distinct eigenvalues, related to kinetic energy — remains fully intact; only the specific symmetry-based shortcuts and the closed-form trigonometric integrals are lost. This is precisely why the flat-bottom box is chosen as the pedagogical template: symmetry maximizes the number of results obtainable by inspection.