Fugacity and the Activity Expansion
The chemical potential is the natural thermodynamic handle for a system that exchanges particles with a reservoir, but it is a clumsy variable to compute with: it ranges over all of and it enters the statistics inside an exponential. One substitution fixes everything. Define the fugacity (or activity) , and the grand partition function collapses into an ordinary power series, , where is the ordinary -particle canonical partition function. The awkward chemical potential has become a tidy bookkeeping variable that tags how many particles are present, and every thermodynamic quantity becomes a series in . The physical meaning of is the reservoir's eagerness to push particles into the system: large (high ) floods the box, small leaves it nearly empty. For a classical ideal gas the relation is exact and beautifully simple — , the phase-space occupancy — so is precisely the dilute, non-degenerate, classical regime, and the activity expansion is the small- Taylor series of the equation of state. Two observables, the dimensionless pressure and the density , are both series in ; eliminating between them produces the virial expansion, whose coefficients are integrals over the interaction potential. This article defines the fugacity, builds the activity and cluster expansions, proves that is always a legitimate coordinate for the density (its owned result: the map is monotonic because is the number variance), and follows from the classical Maxwell–Boltzmann limit up to the Bose condensation edge and the degenerate Fermi sea. Every numeric claim here is python-verified.
- The fugacity turns the grand partition function into a power series , replacing the awkward exponential dependence on with a clean expansion variable.
- Pressure and density are both series in : and ; eliminating gives the virial expansion .
- The second virial coefficient is a Mayer integral over the pair potential, , linking microscopic forces to the measured equation of state.
- For the classical ideal gas exactly (no bound ); for quantum gases (Bose) or (Fermi), and marks the onset of Bose degeneracy.
- Even the ideal quantum gas carries a statistical exchange virial — attractive for bosons (), repulsive for fermions () — with no interaction at all.
- Key idea: replace by the activity ; then every thermodynamic function is a power series in whose coefficients are interaction integrals, and is a rigorous density coordinate because equals the particle-number variance.
Replace the chemical potential by the fugacity ; then is a power series and every thermodynamic function becomes an expansion in . Pressure and density are both series in , and eliminating gives the virial expansion whose coefficients are interaction integrals. The fugacity is always a valid density coordinate because .
Where this lives today
The fugacity is the working variable at both ends of modern many-body physics. In ultracold-atom laboratories, the ideal-quantum-gas relations and are quantitatively tested: experiments measure the equation of state of trapped bosonic and fermionic gases as a function of , map the Bose saturation at as the condensation threshold, and trace the crossover to Fermi degeneracy — the polylogarithm curves of the punchline figure are directly reconstructed from absorption images. The interaction virial coefficients , remain the standard bridge from measured –– data to intermolecular potentials, tabulated for gases from argon to methane and used to calibrate the Lennard-Jones and more elaborate potentials that feed molecular simulations. Beyond the ideal gas, the activity expansion launches the whole theory of interacting fluids: the Mayer cluster expansion and its resummations (hypernetted-chain, Percus–Yevick) underpin the statistical mechanics of liquids and colloids. In chemistry the activity generalizes concentration in non-ideal mixtures, and equilibrium constants are products of activities — the microscopic foundation of electrolyte solutions, Debye–Hückel theory, and reactor design. Even adsorption reduces to exact activity expressions: the Langmuir coverage is a one-site grand partition function, and adsorbate interactions turn the higher cluster terms into cooperative isotherms.
The physical picture
Picture the grand partition function as a generating function in which is a tag counting particles: the -particle sector is weighted by . Differentiating with respect to pulls down a factor , so — the fugacity is the dial that reads off the mean occupancy. Turn up and particles pour in; turn it down and the box empties. The dilute, classical regime is , where only the vacuum and single-particle sectors matter and the leading term of every series dominates.
Because is extensive, the dimensionless pressure and the density are both clean power series in . The entire art of equation-of-state theory is to compute the cluster integrals that are these series' coefficients — each an integral of connected diagrams of Mayer functions — and then invert the density series to express the pressure in powers of . That inversion is the virial expansion, and its first coefficient is a direct experimental window onto the pair potential . The same single variable also sweeps the entire phase diagram of an ideal quantum gas, and this is the punchline. For bosons and fermions the mode sums are geometric/alternating series in , so the density becomes a polylogarithm: for bosons, for fermions, and for the classical line. The three curves start together at small (where all reduce to ) and then split dramatically: the Bose curve saturates at — the excited states can hold no more, and any extra particles condense into the ground state — while the Fermi curve climbs without bound as the sea fills.
The core equations
The fugacity linearizes the dependence of the statistics on the chemical potential. It is defined as a single exponential:
where: — fugacity (activity), dimensionless; — chemical potential; — inverse temperature. Because enters the Gibbs factor as , the fugacity is the object that actually appears in the sums; the chemical potential is recovered by . With pulled out of each particle-number sector, the grand partition function is an ordinary power series whose coefficients are the canonical partition functions:
where: — grand partition function; — -particle canonical partition function; — volume. This is the master identity: an intractable sum over states of all particle numbers has become a tidy power series in , with each term weighted by the corresponding closed-system partition function. Taking the logarithm makes the extensive quantities appear. The pressure and the density are both power series in with the same cluster integrals :
where: — pressure; — number density; — cluster integral (coefficient of in ). The density carries an extra factor in each term because acting on returns . For the ideal gas only survives, giving , the ideal-gas law, and the exact relation . Eliminating between the two series of turns the activity expansion into the virial expansion — pressure as a series in density instead of fugacity:
where: — second virial coefficient; — pair potential; — separation. The virial coefficients are the measurable equation-of-state corrections, and is a direct integral over the pair potential: repulsion () makes and pushes ; attraction pulls down, vanishing at the Boyle temperature. For a quantum ideal gas the density is a polylogarithm of the fugacity, the single equation that interpolates all statistics:
where: — thermal de Broglie wavelength; — Bose/Fermi polylogarithms. All three agree at small (where each is just ); the Bose branch saturates at , fixing the condensation threshold, while the Fermi branch grows without bound into the degenerate sea.
This is the article's owned structural result. The activity expansion is only useful if we can invert the density series to eliminate in favour of — that inversion is exactly what produces the virial expansion. The goal is to prove that the map is strictly monotonic (hence invertible) for any stable system, by showing that its slope equals the particle-number variance divided by , which is manifestly positive. The strategy is to relate to derivatives of and recognize the variance.
Step 1. Write the mean and the variance as fugacity derivatives. From , . Differentiate once more with the same operator: . Why: the operator acting on generates the cumulants of the particle-number distribution — the first application gives the mean, the second gives the variance, exactly as on generates the energy cumulants.
Step 2. Differentiate the density with respect to . Since , we have . Why: is just per unit volume, so its -derivative is the -derivative of scaled by .
Step 3. Compare the two expressions. The variance from Step 1 is , which is exactly times what appears in Step 2. Therefore . Why: the only difference between the variance and is a single factor of , which the algebra makes explicit.
Step 4. Read off the conclusion. A variance is non-negative, and , so , with strict positivity whenever the number fluctuates at all. Hence is a strictly increasing function and can always be inverted to give — the fugacity is a legitimate coordinate for the density, and the activity series can always be re-summed into a density (virial) series. Why: strict monotonicity is precisely the condition for a smooth, single-valued inverse; the number variance being positive (thermodynamic stability, ) is what guarantees it. *Verified: confirmed symbolically (, ) in verify_aq-sm-fugacity-activity-expansion.py.*
Go deeper · Derivation B · 1 minFrom the grand sum to the cluster series, and the second virial coefficient
The goal is to show that is a genuine power series in whose coefficients are intensive cluster integrals, and to compute the first non-trivial one, , obtaining the second virial coefficient as a Mayer integral over the pair potential. The strategy is to expand the logarithm of the grand sum, identify the connected-cluster subtraction, and evaluate the two-particle cluster.
Step 1. Expand the logarithm. With , the series for the logarithm is . Why: with ; the term subtracts the disconnected (reducible) part — this is the origin of "connected clusters."
Step 2. Define the cluster integrals by extensivity. Write and . Extensivity guarantees each bracket is proportional to , so the are intensive. For the ideal gas gives . Why: only connected clusters scale as a single power of ; the subtraction removes the piece of , leaving .
Step 3. Evaluate the two-particle cluster. With and , the difference is . Integrating out the centre of mass gives a factor , so with the Mayer function . Why: subtracting the "1" replaces the bare Boltzmann factor by the Mayer function, which vanishes wherever the particles do not interact, making the integral converge.
Step 4. Convert to the virial coefficient. Inverting to first order and substituting into gives . For hard spheres of diameter ( for , else ), inside and — four times the molecular volume. Why: the elimination of carries the sign flip ; the hard-sphere case is the cleanest check because the Mayer function is a step and the integral is elementary. *Verified: coefficients and , plus hard-sphere , confirmed symbolically in the verify script.*
Limiting cases
The fugacity smoothly tracks the physical regime of the gas:
| Case | Result | Meaning |
|---|---|---|
| Classical dilute gas | Maxwell–Boltzmann; the leading activity term dominates, corrections are small interaction effects. No bound on . | |
| Ideal Bose gas at condensation | , | The fugacity saturates at ; excited states hold no more and the excess condenses into the ground state. |
| Degenerate Fermi gas | , | Large fugacity signals a filled Fermi sea; the Sommerfeld expansion in replaces the activity series. |
| Empty system | , , | Only vacuum and single-particle sectors matter; the expansion is exact to first order. |
| Quantum exchange (weak degeneracy) | Ideal gas already has a virial correction: attractive for bosons, repulsive for fermions, purely statistical. |
Worked examples
1 · The statistical exchange virial of a quantum ideal gas (a real correction from statistics alone)
An ideal Bose or Fermi gas has no interparticle forces, yet quantum statistics already produces a second virial coefficient. Compute for each, and evaluate its size for helium-4 at .
Step 1. Get the two leading terms of the density and pressure polylogarithms. From , and , where the upper sign is Bose, the lower is Fermi (each -th term carries or ).
Step 2. Invert the density series for . To the needed order, .
Step 3. Substitute into . Collecting the term gives with — negative (attractive) for bosons, positive (repulsive) for fermions. The magnitude is .
Step 4. Put in numbers for helium-4 at . With , the thermal wavelength is , so and . Bosons behave as if weakly attracted (they "bunch"), fermions as if weakly repelled (they "anti-bunch"), purely from the exchange symmetry of the wavefunction — a measurable correction to the ideal-gas law with no potential in the Hamiltonian.
2 · Hard-sphere gas and the Boyle temperature (exam level)
Compute the second virial coefficient of a hard-sphere gas of diameter , and explain why a real gas with attraction has a temperature where .
Step 1. For hard spheres, for and for , so the Mayer function is for and beyond.
Step 2. Evaluate the integral: . This is , exactly four times the volume of one sphere — the excluded-volume repulsion raises the pressure.
Step 3. Add attraction. A real potential (a hard core plus a attractive well, like square-well or Lennard-Jones) contributes a positive piece to from the region where (there ), which subtracts from . At low the attraction dominates and ; at high the hard core wins and .
Step 4. The crossover is the Boyle temperature , where and the gas mimics ideal behaviour over an extended pressure range. Measuring and locating is a direct experimental probe of the pair potential — the whole point of the activity-to-virial machinery is that these coefficients are computable integrals over the microscopic forces.
Origins · 1 minfugacity and how this was discovered
The fugacity was introduced by the American chemist Gilbert Newton Lewis in 1901, who was troubled that the chemical potential of a real gas has no finite reference value and diverges logarithmically as pressure goes to zero. He defined the fugacity as an "escaping tendency" — an effective pressure, engineered so that a real gas obeys the same thermodynamic relations as an ideal one when written in terms of instead of . In the dilute limit the fugacity equals the pressure; departures measure non-ideality, quantified by the fugacity coefficient still used throughout chemical engineering. Statistical mechanics then revealed the deeper identity: the fugacity is , the natural expansion variable of Gibbs's grand ensemble, in which is a power series. What Lewis introduced as a practical accounting device turned out to be the exact control parameter for the equation of state — organizing the Mayer cluster expansion and, through the polylogarithms and , the entire crossover from Maxwell–Boltzmann gases to Bose condensation and Fermi degeneracy. The same activity reappears in solution thermodynamics and reaction equilibria, replacing concentrations in the law of mass action.
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd/4th ed., Ch. 4 (grand ensemble) and Ch. 9–10 (cluster & virial expansions) · Kardar, Statistical Physics of Particles, Ch. 5 (interacting particles, cumulant/cluster expansion) · Reif, Fundamentals of Statistical and Thermal Physics, Ch. 9 · Sethna, Statistical Mechanics, Ch. 6 · Landau & Lifshitz, Statistical Physics Part 1, §§35–37, 74–75 · Mayer & Mayer, Statistical Mechanics (original cluster expansion).
Provenance. The activity/cluster expansion follows Pathria & Beale (Ch. 4, 10) and Kardar (Ch. 5). A verifier should reproduce: from the logarithm of the series; the owned monotonicity ; and the hard-sphere value ; the ideal-gas relation ; the polylogarithm density (Bose) / (Fermi) with and ; and the quantum exchange virial (helium-4 at : , ). Numbers recomputed in verify_aq-sm-fugacity-activity-expansion.py. , (CODATA).
Builds on: Grand Canonical Ensemble · Grand Partition Function · Gibbs Factor and Chemical Potential · Canonical Partition Function · Boltzmann Factor. Leads to: Virial Expansion · Mayer Cluster Expansion · Ideal Bose and Fermi Gases · Thermodynamic Quantities from the Partition Function.
What is the difference between the fugacity z and the partition function Z?
They are entirely different objects that happen to share a letter. The fugacity (lowercase) is a single number, the exponentiated chemical potential — the reservoir's "escaping tendency" that dials particle number. The partition function (uppercase) is a sum over states that encodes the thermodynamics of a closed system at fixed particle number. They are connected only through the grand partition function , where is the expansion variable and each is a coefficient. So tells you how strongly the reservoir pushes particles in, and tells you the internal statistics once particles are present. Confusing the two — for instance treating as if it summed over states, or expecting to be dimensionless like — is a classic slip. A good mnemonic: little is the little knob (the activity), big is the big sum.
Why is z the "right" expansion variable rather than the chemical potential μ itself?
Because enters the statistics inside an exponential and ranges over the whole real line, so an expansion in is neither natural nor convergent. The Gibbs factor weights the -particle sector by , so with the grand partition function becomes an ordinary power series — polynomial structure that you can expand, differentiate, and invert. In the dilute limit is small (for the ideal gas ), so the series converges rapidly and truncating it gives systematic corrections. Working directly with would mean expanding itself, reintroducing the exponentials you were trying to organize. The fugacity is the change of variable that linearizes the particle-number dependence, which is exactly what makes the cluster and virial expansions possible.
How can an ideal gas have a non-zero second virial coefficient if there are no forces?
This is the striking lesson of quantum statistics. Even with no interaction potential in the Hamiltonian, indistinguishable particles are correlated by the symmetry of the many-body wavefunction: bosons are more likely to be found close together ("bunching"), fermions less likely ("anti-bunching," from the Pauli principle). When you expand the ideal quantum gas equation of state (Bose) or (Fermi) and eliminate , the second term is a genuine virial correction, — negative (effectively attractive) for bosons and positive (effectively repulsive) for fermions. It has the size of the thermal volume , so it matters when the gas approaches degeneracy (). This "statistical" or "exchange" virial is not a real force; it is the thermodynamic footprint of wavefunction symmetry, and it is the first hint of the dramatic differences (BEC, Fermi pressure) that appear when quantum statistics fully takes over.
Why does the Bose fugacity get stuck at z = 1 while the classical one does not?
For the ideal Bose gas the mean occupation of the ground state is , which is only finite and non-negative for ; as it diverges. The density carried by the excited states is , which is a bounded, increasing function that reaches its maximum exactly at . So if you keep raising the density (or lowering the temperature) past , the excited states physically cannot absorb the extra particles — the fugacity pins at and the surplus condenses into the ground state. That pinning is Bose–Einstein condensation. For a classical gas there is no such ceiling: is exact and unbounded, because Maxwell–Boltzmann statistics places no restriction like "non-negative mode occupation," so sails past 1 without anything happening. The bound is a purely bosonic phenomenon.
What is the Boyle temperature, and how does it relate to B_2?
The Boyle temperature is the temperature at which the second virial coefficient vanishes, . Since , when the first correction to the ideal-gas law disappears and the gas behaves ideally over an extended range of pressures — hence "Boyle," after the ideal-gas law . Physically, is a competition: the hard-core repulsion contributes a positive (excluded-volume) piece, while the attractive part of the potential contributes a negative piece. At low temperature the attraction wins and ; at high temperature the fast-moving molecules barely feel the attraction and the repulsion wins, . At exactly they cancel. Measuring is therefore a clean experimental probe of the balance point of the pair potential, and it is one of the standard data points used to fit intermolecular potential models.
Is the activity expansion the same as the virial expansion?
They are two sides of the same computation in different variables. The activity expansion writes thermodynamic quantities as power series in : and , with the cluster integrals coming straight out of . The virial expansion writes pressure as a series in density, . You get the virial form by inverting to obtain and substituting into — always possible because is monotonic (this article's owned result). The activity form is more fundamental (the are connected clusters); the virial form is what experiments measure, since density and pressure are observable and is not. Both encode the same physics.
Why does taking the logarithm of the grand sum matter for the cluster expansion?
Because , not , is the extensive quantity (), and its expansion coefficients are the intensive cluster integrals. When you expand the logarithm automatically subtracts the "disconnected" pieces: the coefficient is , not , and that removes the reducible part where two particles are independently placed. What survives is the connected two-particle cluster, which scales as a single power of the volume and is therefore intensive per unit volume. This connected-cluster structure is exactly what makes the virial coefficients finite and computable: each is an integral over connected diagrams of Mayer functions, and the Mayer functions vanish when particles are far apart, so the integrals converge. Working with itself would keep the disconnected terms and give coefficients that grow with — useless. The logarithm is the operation that turns the grand sum into a well-behaved cluster series.