Quantum Statistics of Ideal Gases: Occupation Numbers
An ideal gas of identical quantum particles is completely described by one list: how many particles sit in each single-particle energy level. Because identical particles cannot be labelled, a microstate is not "which particle is where" but only the set of occupation numbers — and this single shift in bookkeeping is what makes quantum statistics tractable. This article opens the ideal-quantum-gas chapter by unifying the two occupation laws into one formula and setting up the master equation that every later computation — the Fermi sea, Bose–Einstein condensation, Planck's law, the Debye solid — specializes. We take the microscopic input from the quantum-mechanics track. Which particles obey which law is owned by aq-qm-bosons-fermions: "integer spin means boson, half-integer spin means fermion," with fermions exclusive because "put two in the same state and the antisymmetric combination cancels itself to zero." The hard cap on fermion occupancy is owned by aq-qm-pauli-exclusion-principle, where the antisymmetric state "vanishes when the labels coincide" so the occupancy is "forced to ." This article does not re-derive antisymmetry or exclusion; it takes those rules as the allowed range of the integers and builds the thermodynamic consequence. The payoff is a single unified result. Working in the grand canonical ensemble, the grand partition function factorizes into an independent product over single-particle levels, and each level's mean occupation comes out as — the lower sign () for bosons, the upper () for fermions. The two celebrated distributions differ by a single sign. The full derivations of each live in their own homes (aq-sm-bose-einstein-distribution, aq-sm-fermi-dirac-distribution); here we assemble both from one calculation, then write the master sum that fixes the chemical potential and launches the chapter.
- A microstate of an ideal quantum gas is a set of occupation numbers ; quantum statistics enters only through which integers are allowed — (fermions) or (bosons).
- In the grand canonical ensemble the grand partition function factorizes over single-particle levels, so each level is an independent open subsystem.
- One single-level sum, evaluated with the two allowed ranges, gives both laws at once: , lower sign bosons, upper sign fermions.
- The individual derivations are owned by aq-sm-bose-einstein-distribution and aq-sm-fermi-dirac-distribution; this article unifies them and sets up the chapter.
- The master equation fixes and feeds every SM5 result.
- Key idea: because the grand sum factorizes over levels, one single-level partition function produces both statistics through a single sign flip in the denominator — for bosons (occupation can diverge as ), for fermions (occupation capped at ).
Treat each single-particle level as its own open subsystem exchanging particles with a reservoir at . The grand partition function then factorizes, , and the mean occupation of a level is . Evaluating the single-level sum over its allowed occupancies — two terms for fermions, a geometric series for bosons — yields both quantum distributions in one stroke: . The whole difference between Bose and Fermi statistics is the .
Where this lives today
The occupation-number picture is the working language of every quantum many-body calculation. In condensed matter it underlies the theory of metals, semiconductors, and superconductors — one writes and reads off carrier densities, Fermi surfaces, and heat capacities. In quantum optics the boson occupation of field modes is what a photon-counting detector measures, and its super-Poissonian variance is the signature of thermal light. In cold-atom laboratories both signs are realized on demand: trapped K and Li form ideal Fermi gases whose momentum-space step is imaged directly, while Rb and Na condense into a single macroscopically occupied mode — the same , dialled through its sign. Second quantization, the operator form of this representation, is the starting point of quantum field theory itself.
The physical picture
Picture the single-particle spectrum as a long rack of levels, each a tollbooth wired to a giant reservoir that hands out particles at a price set by the chemical potential . A level at energy accepts a particle with grand-canonical weight each. The only difference between the two kinds of matter is the booth's capacity: a fermion booth holds at most one occupant (full or empty), while a boson booth has no ceiling, so its average filling can grow without bound as the price falls toward the level energy. That single structural difference — capacity one versus capacity infinite — is the entire content of quantum statistics, and it shows up as one sign. The first figure is the hero: the same reservoir, the same energy axis, three occupation curves. Fermi–Dirac never climbs above one (the Pauli ceiling); Maxwell–Boltzmann is the classical exponential; Bose–Einstein diverges as , the seed of condensation. Read left to right they are one formula with the dialled through .
The punchline: the is the only difference. Dial it to and you get a ceiling; to and you get a divergence; drop it and you recover the classical exponential.
The second idea is why the grand canonical ensemble is the right tool. If we insisted on fixing the total particle number (canonical ensemble), the levels would be coupled — every added particle steals from the shared budget — and the sum would not factorize. Trading the constraint for a fixed chemical potential decouples the levels: each may independently hold whatever it likes, and we recover the true mean afterward by summing. The figure below shows that factorization pictorially.
Fixing instead of is what buys the factorization; the true is recovered as a mean at the end.
The core equations
The starting point is the grand partition function summed over every many-body microstate. Because a microstate is just the list with energy and number , the grand-canonical weight splits into a factor per level.
where: — grand partition function; — single-level factor; — fugacity; . Physical reading: the exponential of a sum is a product, and relaxing the total- constraint in favour of makes the level occupancies independent — the one algebraic fact that this entire chapter rests on. The two statistics are two choices for the range of . Fermions stop at ; bosons run to infinity as a geometric series that converges only when .
where: the upper labels FD/BE denote fermions/bosons; the boson series requires for every level. Physical reading: the single stopped term at is the whole arithmetic difference between a two-term sum and an infinite one — everything downstream is a consequence of that. The mean occupation of a level is the logarithmic fugacity-derivative of its factor, the standard grand-canonical relation for a single independent mode.
where: the lower sign () is Bose–Einstein, the upper () is Fermi–Dirac. Physical reading: this is the unified occupation law. The full step-by-step derivation of each case is owned by aq-sm-bose-einstein-distribution () and aq-sm-fermi-dirac-distribution (); the value of this article is that one calculation yields both. Summing the grand potential over all levels gives the pressure, and summing the occupation gives the particle number — the equation that fixes .
where: is the grand potential relation. Physical reading: the sign in front and inside is the same ; bosons () and fermions () share one expression, differing only in that sign. Finally, the sums become integrals over the single-particle spectrum weighted by the density of states — the master equation of the whole chapter.
where: — single-particle density of states, owned by aq-sm-density-of-states-free-particles (including the spin degeneracy ). Physical reading: this implicit equation determines ; feeding the same and the two signs into it produces the Fermi sea, Bose–Einstein condensation, and the photon and phonon gases in turn.
Derivations
The goal is to obtain the unified occupation law for bosons and fermions together, from the single fact that the grand partition function factorizes over single-particle levels. We take as given only the allowed occupancy ranges owned by quantum mechanics — for fermions (aq-qm-pauli-exclusion-principle: occupancy "forced to ") and for bosons (aq-qm-bosons-fermions: bosons in the "same state" carry no penalty). The route is: factorize, evaluate the single-level sum for each range, then differentiate. This card owns the unification; the individual algebra of each case is owned by the BE and FD articles.
Step 1. Write the grand sum in the occupation-number basis. A microstate is with , so . Why: the exponential of a sum factorizes, and once replaces the fixed- constraint the levels are independent, so the unconstrained multi-sum splits into a product of single-level sums.
Step 2. Evaluate the single-level sum for each allowed range. For fermions the sum has two terms, ; for bosons it is a geometric series, , convergent when . Why: the exclusion cap stops the fermion sum after the term — exactly where the boson series would keep going — so the two ranges are the only input that distinguishes the statistics.
Step 3. Take the logarithm of both cases at once. Writing , the fermion factor gives and the boson factor gives , i.e. with the upper sign for fermions. Why: the two logarithms have the same shape up to the sign of and an overall sign, which is what lets one formula carry both.
Step 4. Differentiate to get the mean. Using , both cases give , upper sign fermions. Relabelling the sign as (lower for bosons) gives Eq. (3). Why: the algebra collapses to a single rational function whose is the entire fingerprint of the statistics — enforces the ceiling , permits the divergence at . Verified: the two-term and geometric single-level sums, the derivative reproducing for each sign, and the denominator difference of exactly are checked symbolically in verify_quantum-statistics-occupation-numbers.py.
Go deeper · Derivation B · 1 minThe master particle-number equation and the low-temperature Fermi closure
The goal is to turn the level-by-level occupation into the single equation that fixes the chemical potential and thereby launches every ideal-quantum-gas result. We convert the sum over discrete levels into an energy integral weighted by the density of states , write , and then check that in the fermion limit this closes onto the standard Fermi energy — a concrete confirmation that the master equation is correct before it is used elsewhere. We do not re-derive here; that object is owned by aq-sm-density-of-states-free-particles.
Step 1. Convert sum to integral. For a macroscopic box the levels are dense, so with for free particles in 3D. Then . Why: the density of states packages the mode counting so the same integral serves both statistics — only the in changes.
Step 2. Specialize to fermions at . The Fermi function becomes a step , so with . Why: at zero temperature the exclusion ceiling forces every level below to be exactly full and every level above exactly empty — the master integral truncates cleanly.
Step 3. Do the integral. With , , and setting this equal to and solving gives with and . Why: the from the integral and the from inverting are exactly the numbers that reappear in the Fermi-energy article — the master equation reproduces them, confirming its normalization.
Step 4. Read the physics. The same equation with the boson sign and produces a divergent ground-state term (Bose–Einstein condensation), and with produces the photon gas. Why: one master integral, three signs of physics — the unification is not cosmetic; it is the computational spine of the whole chapter. Verified: the integral, the closure to , and the numeric copper/sodium Fermi energies are checked in verify_quantum-statistics-occupation-numbers.py.
Limiting cases
The single formula has four diagnostic limits.
| Case | Result | Meaning |
|---|---|---|
| Classical, | The is negligible; both statistics reduce to Maxwell–Boltzmann when | |
| Degenerate fermions, | Sharp step: all levels below filled, above empty — the Fermi sea | |
| Bosons near threshold | as | Macroscopic ground-state occupation — the seed of Bose–Einstein condensation |
| Photons, | Number not conserved, so ; gives the Planck distribution |
Worked examples
Example 1 — Count the microstates three ways and see indistinguishability at work.
Step 1. Setup. Put three particles into four single-particle states and count the allowed microstates for distinguishable (classical), boson, and fermion particles. This is the finite version of "which integers are allowed."
Step 2. Distinguishable. Each of the three labelled particles independently picks one of four states: microstates. Labels matter, so all assignments are distinct.
Step 3. Bosons. A boson microstate is a set of occupation numbers summing to three over four states, i.e. the number of ways to place three identical balls in four boxes: . Multiple occupancy is allowed, labels are gone.
Step 4. Fermions. Now no state may hold more than one particle, so we choose which three of the four states are occupied: microstates. The drop from is indistinguishability plus exclusion, made concrete — and it is exactly why the occupation sums (two-term vs geometric) differ.
Example 2 — Fermi energy and temperature of copper from the master equation.
Step 1. Setup. Copper contributes one conduction electron per atom, . The master integral closes to for a free spin-½ gas.
Step 2. Fermi wavevector. , so .
Step 3. Fermi energy. , matching the measured value for copper.
Step 4. Fermi temperature. . Since room temperature is , only the sliver of levels within of ever changes occupation — the observation the rest of the chapter builds on. (Sodium, , gives by the same route.)
Origins · 1 minoccupation number and how this was discovered
Going further
- Texts: Pathria & Beale, Statistical Mechanics (3rd ed.), Ch. 6 (The Theory of Quantum Statistics); Kardar, Statistical Physics of Particles, Ch. 7; Reif, Fundamentals of Statistical and Thermal Physics, Ch. 9; Sethna, Statistical Mechanics, Ch. 7; Landau & Lifshitz, Statistical Physics Part 1, §§53–56.
- Microscopic owner: the allowed occupancy ranges are owned by the quantum-mechanics track — for fermions by aq-qm-pauli-exclusion-principle (occupancy "forced to "), and the boson/fermion census by aq-qm-bosons-fermions ("integer spin means boson, half-integer spin means fermion"). This article assembles the thermodynamic occupation from those rules.
- Builds on: Density of States for Free Particles · Grand Canonical Ensemble · Indistinguishability and Symmetry of Wavefunctions.
- Leads to: Degenerate Fermi Gas at Zero Temperature · Bose-Einstein Condensation in the Ideal Gas · Sommerfeld Expansion · Photon Gas and Planck Radiation Law · Chemical Potential of a Fermi Gas vs Temperature. The individual distributions are owned by aq-sm-bose-einstein-distribution and aq-sm-fermi-dirac-distribution.
- Provenance: AllQFT `sm` export (Pathria & Beale, Ch. 6), aq-sm-quantum-statistics-occupation-numbers, ref STAT.IQGAS.QSOCC.1217. All factorization, sign, limit, variance, and Fermi-closure claims python-verified (24 checks, all PASS). The copper eV, K and sodium eV reproduce the measured metal values.
Why does one formula give both distributions — is that just a notational trick?
It is more than notation. The grand partition function factorizes over single-particle levels for any ideal gas, so each level's occupation is governed by the same single-level sum . The only physical input that changes is the range of : two values for fermions, all non-negative integers for bosons. That single change turns the two-term sum into a geometric series, which is exactly what flips the to a in the denominator. So the unification reflects a real structural fact — one calculation, two allowed ranges — not a coincidence of symbols.
Where does this article stop and the Bose–Einstein / Fermi–Dirac articles begin?
This article owns the unification and the setup: the factorization of , the single formula obtained from both allowed ranges at once, and the master equation that launches the chapter. The detailed algebra, structural identities, and physics of each case — the bunching and constraint for bosons, the particle-hole symmetry and Fermi step for fermions — are owned by aq-sm-bose-einstein-distribution and aq-sm-fermi-dirac-distribution respectively. Think of this as the chapter's map; those two are the destinations.
Why must we use the grand canonical ensemble rather than the canonical one?
Because only in the grand ensemble do the single-particle levels become independent. If you fix the total number (canonical ensemble), then filling one level uses up part of a shared budget, so the occupancies are correlated and the grand sum cannot factorize into a product over levels. Trading the constraint for a fixed chemical potential removes that coupling: each level may hold whatever it likes, the product form holds, and the mean occupation follows from a single factor. You then recover the physical afterward as the ensemble average .
What fixes the chemical potential in practice?
The master equation is an implicit equation for at given density and temperature . You know , , and ; you solve for the that makes the integral come out to . For fermions at low temperature this gives ; for bosons on cooling it drives up toward the ground-state energy until condensation intervenes; for photons, whose number is not conserved, there is no such constraint and identically.
Does the occupation being a "mean" mean the levels are not really quantized?
No — each level's actual occupancy is always an integer (0 or 1 for fermions; any non-negative integer for bosons). The quantity is the ensemble average of that integer, which is generally fractional. For a fermion level, literally equals the probability the level is occupied, since takes only the values 0 and 1. For a boson level the average can exceed one because the level can genuinely hold many particles. The fractional value is a statement about probabilities over many copies of the system, not about a fractional particle.
How is this the same object as the density of states from quantum mechanics?
The density of states that appears in the master integral is exactly the one owned by aq-sm-density-of-states-free-particles, which in turn is the same that the quantum-mechanics track uses to count final states — "both count quantum states per unit energy." This article does not re-derive it; it plugs it into the occupation sum. The occupation formula supplies the "how full each level is," and the density of states supplies the "how many levels there are per unit energy." Multiply and integrate, and you have the thermodynamics.