Window Functions and the Uncertainty Principle
The Fourier transform is an even trade: every gain in localization in one domain is paid for by delocalization in the other. A click of zero duration contains every frequency at once; a pure tone held forever occupies a single spectral line. The uncertainty principle is the exact bookkeeping of that trade. Measure the width of by the standard deviation of and the width of by of , and their product can never drop below a universal constant, . Nothing in this statement is quantum mechanical — it is a theorem about square-integrable functions, provable with three tools every mathematical physicist owns: the differentiation rule of the Fourier transform, Plancherel's theorem, and the Cauchy-Schwarz inequality applied to the non-commuting pair "multiply by " and "differentiate". Follow the equality case of Cauchy-Schwarz to the end and it singles out one function — the Gaussian — as the unique shape that saturates the bound. Dressed with through , the same inequality becomes Heisenberg's position-momentum relation. Dressed with a sliding taper, it becomes the resolution limit of the spectrogram and the reason window functions exist — rectangular, Hann, Hamming, Gaussian each sit somewhere on this one curve. We prove the continuous inequality, find its minimizer, and connect it to the discrete windows engineers apply.
- A function and its Fourier transform cannot both be sharply localized: the product of their rms spreads obeys in the symmetric convention.
- The bound is a theorem of analysis — no physics required; it follows from the differentiation rule, Plancherel, and Cauchy-Schwarz.
- Equality holds if and only if is a Gaussian (up to shift, modulation, scale): the unique minimum-uncertainty window.
- Multiply by and it becomes Heisenberg's , saturated by the Gaussian wave packet.
- The same trade-off is the resolution limit of the short-time Fourier transform () and fixes the main-lobe-versus-leakage compromise of every DFT window.
- Key idea: multiplication by and differentiation are Fourier-conjugate operators that fail to commute, ; Cauchy-Schwarz applied to that commutator forces the product of domain spreads above , with the Gaussian as the unique saturating function.
Multiplication by and differentiation are Fourier-conjugate operators that fail to commute, ; Cauchy-Schwarz applied to that commutator forces the product of the two domain spreads to exceed , with the Gaussian the unique function that saturates it.
Where this lives today
The trade-off is the working constraint of every technology that reads a spectrum. In ultrafast optics it is the design equation of femtosecond and attosecond science: shorter pulses demand broader bandwidth, and the frontier of attosecond XUV bursts from high-harmonic generation — a 2023 Nobel Prize — is a direct assault on the time side of . In gravitational-wave astronomy the LIGO and Virgo detectors are capped by shot noise and radiation-pressure back-action; they now inject squeezed vacuum — light pushed off the minimum-uncertainty symmetry so phase noise trades down against amplitude noise — to see past the standard quantum limit. Time-frequency analysis as a whole, from spectrograms of speech and birdsong to the wavelets behind JPEG-2000, is the engineering response to the fact that no single window resolves both when and what. In quantum information the inequality underwrites security: data encoded in conjugate bases cannot be measured in both without disturbance, so eavesdropping is detectable. An open thread runs alongside — entropic uncertainty relations bound a sum of Shannon entropies rather than a product of variances, sharper and free of the pathologies of second moments.
The physical picture
Strike a piano key for an instant and the sound is a click — sharp in time but spectrally a wash of every frequency at once. Hold the key forever and you approach a single pure pitch — sharp in frequency but smeared across all time. Real signals live between these poles, and the uncertainty principle states precisely how much spectral spread you must accept to buy time localization. The Fourier transform converts "how fast does wiggle" into "where is supported": differentiation amplifies high frequencies, so a sharply peaked is forced to carry a broad spectrum, as the first figure shows.
The Gaussian earns its central role because it is the fixed shape of the transform, mapping to another Gaussian: it divides its "wiggling budget" as evenly as any function can and sits exactly at the bottom of the trade-off curve. Add a chirp — a quadratic phase — and rises above , as the second figure shows: the theorem as a landscape with a single minimum at zero chirp.
In quantum mechanics this same figure says a particle cannot have both a definite position and a definite momentum: squeeze the wavefunction into a small box and its momentum spreads wildly; give it a sharp momentum and it spreads over all space. Nothing is needed beyond Fourier conjugacy and the constant that converts into — Heisenberg's principle is not an extra postulate but a corollary of the wave description, true of any Fourier-conjugate pair.
The core equations
We fix the symmetric Fourier convention throughout; the numerical bound depends on this choice, so it must be stated before any number is quoted. The kernel is with a prefactor split evenly between forward and inverse transforms.
where: — the function in the spatial or time domain, assumed to lie in ; — its transform in the conjugate (wavenumber or frequency) domain; — the conjugate variable. The symmetric split makes Plancherel read with no stray . The "width" of a function is the root-mean-square spread of its probability-like density about the centroid — nothing more than the variance of a normalized distribution.
where: — mean position, the centroid of ; — standard deviation (rms spread) of . The spread is about the mean, which need not be zero; a shift of moves but leaves unchanged. The spectral width is the identical construction on . By Plancherel the two densities carry equal total weight, so both variances are well defined for any .
where: — rms spread of the spectrum; — mean wavenumber. A modulation shifts but leaves fixed — the mirror of shift invariance. The central result binds these two spreads by a hard floor: no function, however shaped, can push the product below one half.
where: — the universal lower bound in the symmetric convention. The value is convention-dependent (it becomes for the ordinary-frequency kernel ); the existence of a positive floor is not. The engine of the proof is the differentiation rule: in the conjugate domain a derivative is the same as multiplication by , which converts a spectral second moment into a statement about .
where: — the derivative of ; under it becomes multiplication by . Read the other way, : multiplication and differentiation swap roles, which is exactly why they are conjugate operators. Promoted to operators, and fail to commute — the abstract source of the bound. Multiplying by turns them into the physical position and momentum operators.
where: — position operator; — momentum operator, Fourier-conjugate to ; — reduced Planck constant. The commutator is a pure number times the identity, which makes the bound state-independent. Feeding into (4) rescales the spectral spread into Heisenberg's relation — the single line where physics enters, through and nowhere else.
where: — the momentum spread. With the bound is negligible in daily life but decisive at atomic scales. The Gaussian saturates every step. A Gaussian of scale maps to a Gaussian of reciprocal scale — squeeze one, the other spreads by the same factor.
where: — spatial scale; spectral scale . These give and , so for every — the equality is scale-invariant. Finally, the discrete face: a window function tapers a finite data record before transforming, trading main-lobe width against side-lobe leakage. The Hann window is the canonical cosine taper.
where: — number of samples; — sample index. Tapering the ends to zero removes the discontinuity a rectangular cut leaves, dropping the peak side lobe from dB to about dB at the cost of a main lobe twice as wide — the discrete face of the same trade-off.
The goal is to establish inequality (4) directly from the definitions, using only the differentiation rule, Plancherel, Cauchy-Schwarz, and one integration by parts. The strategy: convert the spectral spread into a norm of , bound its product with the spatial spread by an inner product, keep the real part, and recognize that real part as the derivative of — which integrates by parts to the normalization constant. Assume with no loss of generality that the means vanish, (a shift and a modulation, neither changing a spread), and is normalized, .
Step 1. By the differentiation rule (5), , and Plancherel equates total power, giving . Why: this pivotal move evacuates the spectral domain, expressing a -space moment as an norm of alongside the spatial moment.
Step 2. The product is now . Cauchy-Schwarz with , gives . Why: this is the only inequality in the proof — everything else is identity, so here is where "greater than or equal" is born.
Step 3. Keep only the real part: , and since this equals . Why: writing it through the real density makes the next integral elementary; the discarded imaginary part is the chirp term that lifts non-Gaussians above the floor.
Step 4. Integrate by parts: . The boundary term vanishes for any with finite moments, and normalization sends the integral to . Why: this is where the number enters — it is just the total probability, extracted by the parts integration.
Step 5. Assemble: , and positive square roots give . Why: both spreads are non-negative, so the square root is unambiguous — the theorem is proved.
The same bound follows from the operator side as a special case of the Robertson relation , valid for any self-adjoint pair: with , and , Cauchy-Schwarz plus keeping the imaginary part gives , and returns . Because the commutator is a multiple of the identity, the bound is state-independent — the form that generalizes to angular momentum and energy-time. The next derivation asks which states meet it with equality.
Go deeper · Derivation B · 1 minWhy the Gaussian and only the Gaussian saturates the bound
The goal is to identify every function that achieves equality in inequality (4) and confirm the value is exactly . Equality propagates backward: Cauchy-Schwarz is tight only when its two arguments are proportional, turning the inequality into a first-order differential equation whose only normalizable solutions are Gaussians. We then compute the two spreads, multiply to verify saturation, and note how a complex constant reintroduces the chirp that lifts the product above the floor.
Step 1. Cauchy-Schwarz is an equality if and only if for a scalar . With and this reads , i.e. . Why: the equality condition of the single inequality in the proof is the only constraint the minimizer must satisfy, so solving it finds every extremal function at once.
Step 2. Write ; a normalizable solution requires . The ODE integrates to , a Gaussian. If is real the Gaussian is pure; a complex multiplies in a quadratic phase , a chirp. Why: this is the punchline — the minimizer is forced to be Gaussian in shape, and the only freedom is a chirp that, as the second figure shows, pushes the product up.
Step 3. Take real, so and . The Gaussian second moment gives . Why: a standard integral fixes the spatial spread at with no free constants.
Step 4. By pair (8), , and the identical calculation gives , i.e. . Why: the transform is a Gaussian of reciprocal variance, so the spectral spread is locked to the spatial one — squeeze and grows in compensation.
Step 5. Multiply: , independent of ; a chirped Gaussian instead gives . Why: every Gaussian of every width saturates the bound, and only this family does (up to shift and modulation).
Limiting cases
The inequality interpolates between two singular endpoints and is saturated by the Gaussian sitting between them.
| Case | Result | Meaning |
|---|---|---|
| Perfect spatial localization | A delta has a flat spectrum ; the spectral spread diverges so the product stays . The delta lives outside , at the singular edge. | |
| Perfect spectral localization | A pure tone has ; the spatial spread diverges. The exact dual of the previous case. | |
| Minimum uncertainty (Gaussian) | Exact equality for every width, with and . | |
| Chirped Gaussian | A nonzero chirp correlates phase with position and lifts the product above the floor. | |
| Classical limit () | The floor collapses; position and momentum can be jointly sharp, recovering classical phase space. |
Worked examples
1 · An electron confined to an atom (fully worked)
An electron is localized to within , roughly an atom's size. Estimate the minimum spread in its momentum and speed and the kinetic-energy scale implied, using , .
Step 1. Heisenberg's relation (7) at saturation gives the momentum spread directly: — the least uncertainty compatible with pinning the electron to one atom.
Step 2. Divide by the mass for a speed spread: , uncertain at half a million metres per second purely because it is confined.
Step 3. The kinetic-energy scale is . That an atom-sized box forces an energy of order an electron-volt — the scale of atomic binding — is why atoms have the size they do: squeezing tighter costs more kinetic energy than the Coulomb attraction can repay. Confining an electron to forces and , setting the size of atoms.
2 · The bandwidth of an ultrashort laser pulse (fully worked)
A mode-locked Ti:sapphire laser emits a transform-limited Gaussian pulse of duration (intensity FWHM) centred at . What minimum spectral bandwidth, in frequency and in wavelength, must it occupy?
Step 1. For a Gaussian pulse, the bound in intensity-FWHM widths is the time-bandwidth product . A transform-limited pulse saturates it: .
Step 2. Convert to a wavelength spread with — the pulse must draw on light from roughly to at once.
Step 3. Read backward: shorter pulses require more bandwidth, which is why femtosecond oscillators use broadband gain media (Ti:sapphire spans to ) and a single-frequency laser can never be pulsed short. The principle is the design equation of ultrafast optics. A pulse at needs at least () of bandwidth.
3 · Resolution versus leakage in a DFT window
Compare the rectangular window with the Hann window on the two competing figures of merit — main-lobe width and peak side-lobe level — for a length- DFT. The rectangular window is the sharpest cut in time, so it has the narrowest main lobe (null-to-null width bins, the best raw resolution) but abrupt edges give a Dirichlet transform whose peak side lobe is only down — one tone leaks conspicuously into its neighbours. The Hann window (9) tapers smoothly to zero, widening the main lobe to bins (half the resolution) but dropping the peak side lobe to about . You cannot have both, because the window and its spectrum obey the same trade-off as and : separating two equal close tones favours the rectangular window, while detecting a weak tone beside a strong one favours Hann or Blackman.
Physics of the portrait
The uncertainty principle is where nineteenth-century analysis and twentieth-century quantum mechanics turn out to be the same theorem — proved as a fact about Fourier integrals, the physics a corollary of renaming as .
Origins · 1 minuncertainty principle and how this was discovered
The principle carries Heisenberg's name, but its rigorous form was assembled by others within two years of his 1927 paper. Werner Heisenberg's "microscope" argument of 1927 gave the relation through a thought-experiment about disturbing a particle by observing it — persuasive, but heuristic and tied to measurement. Earl Kennard, the same year, replaced the hand-waving with a calculation: for a free Gaussian wave packet he derived from the wavefunction alone, establishing that the spread is a property of the state, not of the act of looking. In 1928 Hermann Weyl, crediting Wolfgang Pauli, gave the argument its permanent home in Gruppentheorie und Quantenmechanik, recognizing the bound as a Cauchy-Schwarz inequality on functions — the proof reproduced here. Howard Robertson generalized it in 1929 to any observables, the floor being . The signal-processing reading arrived with Dennis Gabor in 1946, who tiled the time-frequency plane into minimum-area "logons" and introduced the Gaussian-windowed transform. What began as a parable about photons hitting electrons is, in its mature form, a line of functional analysis older than quantum mechanics itself.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, §6 (Fourier methods) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 20 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., Ch. 13 · Folland, Fourier Analysis and Its Applications, §7.5 · Cohen-Tannoudji, Diu & Laloë, Quantum Mechanics, Vol. 1, Complement C-III · Hassani, Mathematical Physics, Ch. on Fourier analysis · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 5. All formulas use the symmetric convention . Key checkpoints: with Plancherel reduces to ; the Cauchy-Schwarz plus integration-by-parts chain yields ; the Gaussian moments , give product , and the chirped Gaussian gives . Numerical anchors: the electron (, , ); the pulse ( at via ); DFT side lobes ( rectangular, Hann).
Prerequisites. The Fourier Transform · Properties of the Fourier Transform · Parseval's and Plancherel's Theorems · The Dirac Delta Function. Leads to. Tempered Distributions and Fourier Transforms · The Convolution Theorem · Solving Differential Equations by Transform Methods.
Ask the tutor: Ask me to run the Cauchy-Schwarz proof line by line, work a Heisenberg estimate for any system you name, or show why your favourite DFT window sits where it does on the time-frequency curve.
Is the uncertainty principle a fact about quantum mechanics or about mathematics?
It is a theorem of mathematics that quantum mechanics inherits. The inequality holds for any square-integrable function and its Fourier transform, with no mention of particles, measurement, or . Quantum mechanics enters only when you identify the wavefunction's Fourier partner as the momentum amplitude and rescale , at which point it becomes Heisenberg's . This is why the same relation shows up untouched in classical signal processing, optics, and acoustics: it is a statement about waves, and quantum particles simply happen to be waves.
Why is the Gaussian the unique minimizer and nothing else?
Because equality forces a differential equation with only one normalizable solution. The single inequality used is Cauchy-Schwarz, tight only when its arguments and are proportional: . That first-order equation integrates to , a Gaussian, and no other function satisfies it. A real gives a pure Gaussian sitting exactly at ; a complex adds a quadratic-phase chirp that pushes the product above the floor. Shifts and modulations of a Gaussian also saturate the bound — they move the means without changing the spreads — but they are the same Gaussian relocated.
Does a delta function violate the bound, since its position spread is zero?
No — it lives at the singular edge of the trade-off, not below it. As approaches a delta, , but its spectrum flattens toward a constant of infinite extent, so and the product does not shrink; it diverges. The delta is not an function, so the theorem's hypotheses fail and the clean statement is replaced by this limiting behaviour. Properly, the delta and the pure exponential belong to the theory of tempered distributions, where they are the two endpoints the inequality interpolates between.
How is a window function related to the uncertainty principle?
A window is the finite taper you multiply onto a data record before transforming it, and the window itself obeys the trade-off. Its transform has a main lobe whose width sets frequency resolution and side lobes whose height sets spectral leakage, and you cannot make both small at once — a narrow main lobe needs an abruptly-cut window (rectangular), while low side lobes need a smoothly-tapered one (Hann, Blackman). This is applied to the window itself. Choosing a window is choosing where to sit on the uncertainty curve for the measurement you care about, and the Gaussian window is the minimum-uncertainty choice.
Does squeezed light beat the uncertainty principle?
No — it redistributes uncertainty rather than removing it. The product of the two quadrature spreads still respects the bound, but a squeezed state pushes one factor below the symmetric minimum-uncertainty value while letting the other grow to compensate. This is legitimate because the principle constrains only the product; the symmetric split of a coherent state is a convenient special case, not a requirement. Gravitational-wave detectors exploit exactly this: they squeeze the phase quadrature that carries the signal, accepting louder amplitude noise they do not care about, and so read below the standard quantum limit without violating any theorem.
Why does confinement raise a particle's energy — is that the same principle?
Yes, and it explains atomic stability. Trapping a particle in a region of size forces , and since kinetic energy scales as , tighter confinement costs energy growing as . For an electron in an atom this "quantum pressure" balances the Coulomb attraction that would otherwise pull it into the nucleus: the atom settles at the size where the cost of further squeezing offsets the electrostatic gain — about and , as the worked example estimates. The same mechanism sets the degeneracy pressure that holds up white dwarfs and neutron stars.