Particle-Number Fluctuations
Draw an imaginary box inside a jar of gas and count the molecules in it. Come back a moment later and count again — the number has changed. Nothing was added or removed from the jar; the molecules simply wandered across the invisible boundary. In the grand canonical ensemble this is not a nuisance but the whole point: a system exchanging particles with a reservoir at fixed temperature and chemical potential has a particle number that genuinely fluctuates, and the size of those fluctuations is a window into the physics of the fluid. The remarkable thing is what controls the fluctuations. You might expect the variance to be some intractable microscopic quantity, but it turns out to equal a familiar laboratory response function — the isothermal compressibility , the very softness you feel when you squeeze the fluid. A stiff, nearly incompressible liquid holds its density fixed, so barely fluctuates; a soft, compressible gas lets density wander, so fluctuations are large. This is the density-fluctuation twin of the energy fluctuation–response relation : a spontaneous jitter equals a measured susceptibility. Two consequences dominate everything that follows. First, for a macroscopic system the relative fluctuation is only , so is effectively sharp and the grand canonical ensemble reproduces the fixed- canonical thermodynamics — the formal license to use whichever ensemble is convenient. Second, at a critical point diverges, fluctuations swell to macroscopic and optical scales, and the fluid turns milky: critical opalescence. Every numeric and sign claim below is python-verified.
- In the grand canonical ensemble fluctuates; its variance is the second derivative of with respect to : .
- That susceptibility is the isothermal compressibility: — the density-fluctuation analogue of .
- Relative fluctuations vanish as , so the grand canonical and canonical ensembles agree in the thermodynamic limit — the justification for ensemble equivalence.
- The classical ideal gas is Poissonian: , the special case.
- Quantum statistics shift this: bosons bunch () and fermions anti-bunch ().
- Near a critical point : fluctuations become macroscopic, ensemble equivalence fails, and the fluid opalesces.
- Key idea: one second derivative of delivers both the variance of and the number susceptibility; converting variables turns it into the compressibility, so .
A single second derivative of with respect to gives simultaneously the variance of the particle number and the susceptibility . Converting to laboratory variables turns that susceptibility into the isothermal compressibility, so — density fluctuations are governed by how easily the fluid can be squeezed.
The physical picture
Hold a fixed, imaginary sub-box inside a large fluid and watch the count of particles inside it. Because particles drift freely across the invisible walls, is never exactly its average — it jitters. How much it jitters is set by how easily the local density can change, and that is exactly what the compressibility measures. A nearly incompressible liquid resists density changes, so the count stays tight; a dilute, soft gas lets the density roam, so the count swings widely. The same "softness" that governs the response to a pressure squeeze governs the spontaneous fluctuations — that is the fluctuation–response principle in its number-fluctuation guise.
The engine that turns this picture into equations is the fugacity acting as a counting variable. In the grand partition function , each extra power of tags one more particle, so is a moment-generating function for exactly as in elementary probability theory. Differentiate with respect to once and you get the mean; twice and you get the variance. No new physics — just the same generating-function calculus that gave energy fluctuations from , now applied to the particle-number direction. The punchline is what happens when you approach a critical point. Away from transitions the Fano factor sits at its Poisson value of (for a classical gas), and relative fluctuations are microscopic. But the compressibility diverges at the liquid–gas critical point, so the Fano factor shoots up: density fluctuations grow to the scale of visible light, scatter it strongly, and a transparent fluid abruptly turns milky. The figure below shows this knee — the observable fingerprint of a diverging susceptibility.
The core equations
An open system's state is weighted by the Gibbs factor , and summing over all states and all particle numbers gives the grand partition function. The fugacity organizes the sum by particle number, so is literally a power series in whose -th coefficient is the fixed- canonical partition function:
where: — grand partition function; — fugacity; — canonical partition function at fixed ; ; — chemical potential. Reading it as a generating function is the key move: each factor carries the "particle count" , so derivatives with respect to pull down powers of . The probability of finding exactly particles is the corresponding term normalized by , and the mean number is the first logarithmic derivative:
where: — probability of particles; — mean particle number. The operator and the operator are the same thing, since means . Applying that operator a second time produces the variance — the connected (cumulant) form in which the mean-squared subtracts off cleanly. This is the central identity of the article:
where: — variance of . Because is the cumulant-generating function of the particle-number distribution (in the variable ), its first derivative is the mean and its second is the variance — the generic fluctuation–response structure. Recognizing the second derivative as a thermodynamic response gives the fluctuation–response relation for particle number: the variance equals the temperature times the number susceptibility .
where: — number susceptibility, the response of to a change in chemical potential. Because a variance is non-negative, this guarantees : adding chemical potential can only pull particles in — a stability statement. The susceptibility is not directly measurable, but a short chain of thermodynamic identities converts it into the isothermal compressibility, which is measurable:
where: — isothermal compressibility; — pressure. This is the density-fluctuation analogue of : a spontaneous fluctuation set equal to a laboratory response function. Two immediate readings follow. For a macroscopic system the variance is extensive () while the mean is too, so the relative fluctuation shrinks as ; and for independent single-particle modes the total variance is a sum of per-mode variances that reveal quantum statistics:
where: — occupation of single-particle mode ; upper sign — bosons (bunching, variance enhanced); lower sign — fermions (anti-bunching, variance suppressed). The classical Poisson result is recovered when .
This is the article's owned structural result: the microscopic variance read off the grand partition function and the thermodynamic form read off the compressibility are the same number. The goal is to convert the number susceptibility into using homogeneity and Gibbs–Duhem, so the two derivations of the variance meet. The strategy: exploit that for a homogeneous fluid depends only on density and temperature, then chain-rule through the pressure.
Step 1. Trade for density. For a homogeneous fluid the chemical potential depends only on and the density , not separately on , so . Why: extensivity means the intensive state is fixed by intensive variables — — so scaling out the volume isolates the density response.
Step 2. Use Gibbs–Duhem at fixed . The Gibbs–Duhem relation (with entropy per particle, volume per particle) gives, at constant , , hence . Why: at fixed temperature the only way to change the chemical potential of a one-component fluid is to change its pressure, and the exchange rate is exactly the volume per particle.
Step 3. Chain-rule the density onto the pressure. Write , using the result of Step 2. Why: the density responds to only through the pressure it induces, so the two rates multiply.
Step 4. Identify the compressibility. Since at fixed , a pressure change moves and hence : with . Therefore . Why: squeezing the fluid ( large) is exactly what lets the local density — and thus the count in the box — respond, which is why softness and fluctuations are the same thing.
Step 5. Assemble. Combining, ; multiplying by from Eq. (4) gives . Dimensionally , which is dimensionless — correct for a variance. Why: the microscopic generating-function variance and the macroscopic compressibility are two faces of the same curvature of the grand potential. *Verified: the chain is checked symbolically, and both the microscopic and the compressibility form reduce to for the ideal gas, in verify_aq-sm-particle-number-fluctuations.py.*
The goal is to show that for ideal quantum gases the number variance splits into a sum of independent per-mode variances, each of the form , and that the sign of the correction to Poisson statistics is fixed by the statistics: bosons enhance fluctuations (bunching), fermions suppress them (anti-bunching). The strategy is to treat each single-particle level as its own tiny grand canonical system and apply the fluctuation–response relation mode by mode.
Step 1. One mode is an open subsystem. For an ideal gas each single-particle level of energy exchanges particles with the reservoir independently, with grand sum — a geometric series (bosons, ) or a two-term sum (fermions, ). Why: in a non-interacting gas the occupation of one level says nothing about another, so the grand partition function factorizes and each mode can be analyzed alone.
Step 2. Mean occupation. Summing gives (Bose) or (Fermi), and , the Bose–Einstein () and Fermi–Dirac () distributions. Why: the same that counted total particles now counts the occupation of a single level.
Step 3. Variance from the response. Applying and differentiating the distribution gives for bosons and for fermions. Why: the fluctuation–response relation applies to each mode, and the derivative of the occupation function carries the sign that distinguishes the two statistics.
Step 4. Sum over modes and read the physics. Independence lets variances add: . The extra positive term for bosons (bunching) makes ; the extra negative term for fermions (anti-bunching, capped by Pauli exclusion at ) makes . In the dilute limit the correction vanishes and both recover Poisson. Why: exchange symmetry makes identical bosons want to share a mode (positive correlation) and forbids fermions from doing so (negative correlation), and that is exactly what the term encodes. *Verified: is confirmed symbolically for both statistics, and the numeric instances ( boson variance ; fermion variance ) in the verify script.*
Limiting cases
The general relation specializes cleanly across regimes:
| Case | Result | Meaning |
|---|---|---|
| Classical ideal gas | makes the variance equal the mean — Poisson statistics; relative fluctuation . | |
| Ideal Bose gas | Bunching: per mode; grows without bound approaching condensation as . | |
| Ideal Fermi gas | Anti-bunching: ; filled levels () cannot fluctuate, so Pauli exclusion strongly suppresses fluctuations below . | |
| Critical point | Macroscopic, long-ranged density fluctuations; ensemble equivalence breaks; critical opalescence. |
This is right in the bulk and dangerously wrong near a critical point. In the thermodynamic limit the relative fluctuation is for a mole, so is sharp and the ensemble choice is immaterial — but that smallness is entirely due to being finite. At the liquid–gas critical point diverges, the variance grows super-extensively, density fluctuations reach optical wavelengths, and ensemble equivalence genuinely fails. Two further traps: the fluctuation formula holds at fixed — do not silently swap in , which is a different derivative — and the tidy result is a special property of the classical ideal gas, not a universal identity; quantum statistics and interactions both change the Fano factor away from .
Worked examples
1 · Number fluctuations of a mole of ideal gas (a real number, and why it is invisible)
Take a fixed sub-volume of a classical ideal gas holding on average one mole, . Compute the RMS particle-number fluctuation and its relative size, and say what it means for measurement.
Step 1. Use the ideal-gas result. For the classical ideal gas the distribution is Poisson, so and the RMS fluctuation is .
Step 2. Plug in the mole. particles. That is a huge absolute number — hundreds of billions of molecules flicker in and out.
Step 3. Now take the relative size. .
Step 4. Interpret. Even though molecules fluctuate, that is only about one part in of the total — undetectable by any ordinary density measurement, which is precisely why we can pretend is fixed and use the canonical ensemble. The absolute fluctuation is enormous; the relative fluctuation is what vanishes as , and it is the relative fluctuation that governs whether the ensemble choice matters.
2 · From an invisible fluctuation to a measurable one, to a diverging one
(a) Shrink the sub-volume until it holds particles. What is the relative fluctuation now? (b) A fluid is driven near its critical point where the compressibility is times the ideal-gas value at the same density. What is the Fano factor ?
Step 1. Small subvolume. With and Poisson statistics, and the relative fluctuation is — one part in a thousand, now genuinely measurable with single-particle-resolved imaging.
Step 2. Set up the critical case. The Fano factor is . For the ideal gas (Poisson). The compressibility form shows scales linearly with at fixed density.
Step 3. Apply the enhancement. If is times the ideal-gas value, then .
Step 4. Interpret. The count in the box now swings a hundred times more widely than Poisson would allow (), because a nearly incompressible response has been replaced by an almost infinitely soft one. As at the exact critical point, diverges, the fluctuations reach the wavelength of visible light, and the fluid opalesces — the naked-eye signature of a diverging thermodynamic susceptibility.
Jean Perrin was the French physicist who turned fluctuation theory from a prediction into proof that atoms are real. Working from 1908 to 1913 with painstakingly size-graded colloidal suspensions, he measured exactly the quantities that the Einstein–Smoluchowski fluctuation theory had predicted: the mean-square Brownian displacement of a suspended grain, and — most directly relevant here — the equilibrium density fluctuations of grains distributed in the gravitational field. From the exponential sedimentation profile and the scatter of grain counts about it, Perrin extracted Avogadro's number from more than a dozen independent methods, all agreeing near . Because the grand-canonical result (Poisson) fixes the expected count fluctuations, his measured scatter was a measurement of and hence of the molecular scale: the statistical spread of a fluctuating number, made visible under a microscope, decided the century-long debate over atomism in favour of the atom. Perrin received the 1926 Nobel Prize in Physics "for his work on the discontinuous structure of matter." His experiments are why the fluctuation formulas of this article are not merely bookkeeping but a bridge between the microscopic and the measurable — the same bridge Smoluchowski and Einstein built theoretically and Perrin walked across.
Where this lives today
The fluctuation–compressibility relation is the working tool behind modern scattering experiments. In light and neutron scattering the measured intensity in the forward direction is set by , so a scattering experiment is a direct read-out of the isothermal compressibility; near a critical point the divergence of shows up as a dramatic surge in small-angle scattering, and the resulting critical opalescence remains a textbook demonstration performed with a sealed tube of a near-critical fluid. The same sum rule, , ties number fluctuations to the pair correlation function and is a cornerstone of the theory of simple liquids and of density-functional approaches to inhomogeneous fluids. In quantum-gas and quantum-optics laboratories the per-mode variance formula is measured directly. Single-atom-resolved imaging of trapped Fermi gases sees sub-Poissonian number fluctuations — the density profile is smoother than a classical gas allows, a direct visualization of Pauli suppression and the law. Bosonic gases near condensation show super-Poissonian fluctuations and bunching, the matter-wave analogue of the Hanbury Brown–Twiss photon-bunching effect that founded quantum optics. Engineered "number-squeezed" states, in which fluctuations are pushed below the Poisson limit on purpose, underpin atom interferometry and precision sensing. In every case the experiment is quoting a Fano factor and comparing it to the grand-canonical prediction derived here.
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd ed., §4.5 (energy and density fluctuations in the grand canonical ensemble) · Kardar, Statistical Physics of Particles, Ch. 4 & 7 · Reif, Fundamentals of Statistical and Thermal Physics, §9 (grand canonical ensemble) · Sethna, Statistical Mechanics, Ch. 6 · Landau & Lifshitz, Statistical Physics Part 1, §35, §111–114 (fluctuations and the compressibility) · Smoluchowski, Ann. Phys. (1908); Einstein, Ann. Phys. (1910).
Provenance. All relations are standard grand-canonical results. A verifier should reproduce: (Pathria §4.5, Reif §9); the Maxwell/Gibbs–Duhem chain converting the susceptibility to (Landau–Lifshitz §111–114); the ideal-gas Poisson result with ; and the per-mode variances for Bose/Fermi (Pathria Ch. 6, L&L §113). Numerical instances (one-mole , relative ; subvolume relative ; near-critical Fano ) are recomputed in verify_aq-sm-particle-number-fluctuations.py. and (CODATA) are standard.
Builds on: Grand Canonical Ensemble · Grand Partition Function · Gibbs Factor and Chemical Potential · Heat Capacity and Fluctuation-Response Relation. Leads to: Energy Fluctuations in the Canonical Ensemble · Thermodynamic Quantities from the Partition Function · Critical Opalescence.
Why should the variance of N have anything to do with the compressibility?
Because both are second derivatives of the same free energy. The number susceptibility measures how strongly the particle count responds when you nudge the chemical potential, and a short chain of thermodynamic identities (Gibbs–Duhem at fixed temperature, then the definition of ) shows this response is the isothermal compressibility scaled by . Physically the connection is intuitive: the compressibility measures how easily you can change the fluid's density by squeezing it, and spontaneous density fluctuations are just the fluid changing its own local density without being squeezed. A fluid that is easy to compress is also one whose density wanders freely on its own — softness and fluctuation are the same property viewed from two sides. This is the number-fluctuation instance of the general fluctuation–response (fluctuation–dissipation) theorem, exactly parallel to for energy.
If the box is open, isn't the particle number just whatever the reservoir dictates — why does it fluctuate at all?
The reservoir fixes the chemical potential, not the particle number. Just as a heat bath fixes the temperature and lets the energy fluctuate around a mean set by that temperature, a particle reservoir fixes and lets fluctuate around a mean set by . Particles are free to cross the boundary in both directions, and at any instant slightly more may have wandered in than out, or vice versa. What the grand canonical ensemble computes is the full probability distribution , whose mean is and whose spread is . For a classical ideal gas that distribution is exactly Poisson, and its width is — small relative to the mean for macroscopic systems, but never zero. The fluctuation is real; it is only negligible in relative terms because is tiny when .
The absolute fluctuation for a mole is 10¹¹ particles — that sounds enormous. Should I worry about it?
Not for bulk thermodynamics, but the number is genuinely large in absolute terms — that is not a mistake. For the RMS fluctuation is particles, so at any instant roughly a trillion molecules more or fewer are in your box than the average. What makes this harmless is that it is only about one part in of the total, far below the sensitivity of any macroscopic density measurement. The lesson is to always ask about the relative fluctuation, , not the absolute one. The absolute fluctuation grows with system size (as ), but the relative fluctuation shrinks (as ), and it is the relative fluctuation that decides whether can be treated as effectively fixed and whether the ensemble choice matters.
What exactly is bunching and anti-bunching, and where do the ±⟨n⟩² terms come from?
For an ideal quantum gas each single-particle mode is an independent open subsystem, and its occupation variance works out to : the sign for bosons, the sign for fermions. The classical part is the , which alone would give Poisson statistics. The extra is a purely quantum-statistical correlation. For bosons it is positive — identical bosons "prefer" to occupy the same mode, so finding one particle in a mode makes it more likely to find another, and fluctuations are enhanced (bunching). For fermions it is negative — Pauli exclusion forbids two fermions in the same mode, so occupations are anti-correlated and fluctuations are suppressed (anti-bunching); when a mode is fully occupied () its variance vanishes entirely, since a filled level cannot fluctuate. Bunching is the matter-wave version of the Hanbury Brown–Twiss photon-bunching effect; anti-bunching is directly imaged as sub-Poissonian density noise in degenerate Fermi gases.
Why do fluctuations blow up at a critical point but not elsewhere?
Because the compressibility diverges there, and . Away from any phase transition is finite, so the variance is extensive () and the relative fluctuation is the usual tiny . But at the liquid–gas critical point the distinction between liquid and gas disappears, and the free-energy curvature that normally penalizes density changes flattens out — it costs almost nothing to change the local density, which is exactly what "" means. With the restoring cost gone, density fluctuations grow without bound, become correlated over long distances (the correlation length diverges too), and reach the scale of visible light. The fluid then scatters light strongly in all directions and turns from transparent to milky — critical opalescence. This same divergence is why ensemble equivalence breaks down at criticality: the grand canonical is no longer sharp, so it no longer matches the fixed- canonical description.
How is any of this actually measured?
Through scattering and through direct particle counting. In light or neutron scattering, the intensity scattered in the near-forward direction is proportional to , so measuring how much a fluid scatters is measuring its number fluctuations — and hence, via the fluctuation–compressibility relation, its compressibility. Near a critical point the surge in small-angle scattering (and the visible opalescence) is the divergence of made observable. In cold-atom laboratories the fluctuations are counted directly: quantum-gas microscopes image individual atoms in a lattice or trap, so one can literally histogram the number of atoms in a chosen subvolume over many experimental runs and read off the Fano factor . Fermi gases show Fano factors below (Pauli suppression), thermal Bose gases above (bunching), and engineered number-squeezed states are pushed deliberately below the Poisson limit for use in precision atom interferometry.
Does the relation ⟨ΔN²⟩ = k_BT(∂N/∂μ) hold at fixed T and V, or fixed T and p?
Fixed and — this matters, and getting it wrong is a common error. The grand canonical ensemble holds , , and as its control variables, and the fluctuation formula is the second derivative of with respect to at fixed . So the susceptibility that appears is , not , which is a genuinely different derivative (and in fact ill-defined for a single-component fluid, where and fix completely by Gibbs–Duhem). When you convert the fixed- susceptibility into the compressibility, you must carry the constraints correctly through the Maxwell and Gibbs–Duhem relations; the bridge derivation above does exactly that and lands on . Keeping the held-fixed variables straight is the single most common slip in this calculation.