Virial Expansion of the Equation of State

The ideal-gas law is the first term of a systematic expansion, not the whole story. Writing the compressibility factor P/(nkBT)P/(nk_BT) as a power series in the number density n=N/Vn=N/V, the leading term is 11 (the ideal gas), and successive coefficients B2(T),B3(T),…B_2(T), B_3(T),\dots — the virial coefficients — record the effect of pairs, triples, and larger groups of interacting molecules. This virial expansion is the macroscopic distillation of the entire Mayer cluster machinery: it converts the combinatorics of connected diagrams into thermodynamic coefficients you can measure with a pressure gauge and a thermometer. The decisive structural result this article owns is the fugacity-to-density inversion and the topological simplification it produces. The cluster expansion delivers the pressure and density as power series in the fugacity zz, with cluster integrals bℓb_\ell as coefficients. But experiments control density, so one eliminates zz between P(z)P(z) and n(z)n(z). When the dust settles, the virial coefficients are built not from all cluster integrals but only from the irreducible (biconnected, "star") ones βk\beta_k: every reducible diagram — one with a cut vertex — cancels order by order. This is a second topological reduction sitting on top of the linked-cluster theorem, and it is the reason B3B_3 comes from the triangle alone and not the open chain. Physically the expansion is honest about its range. B2(T)B_2(T) already encodes the whole competition between short-range repulsion (excluded volume, raising the pressure) and longer-range attraction (lowering it), with the crossover marking the Boyle temperature. Truncated at B2B_2 and re-summed, it becomes the van der Waals equation, supplying the molecular meaning of aa and bb. Its limitation is equally instructive: as a low-density series it cannot converge across condensation, so it describes the gas branch and diverges at the critical point — precisely the regime the renormalization group later reclaims.

Key takeaways
  • The virial expansion writes the compressibility factor as a density series PnkBT=1+B2(T)n+B3(T)n2+⋯\frac{P}{nk_BT}=1+B_2(T)n+B_3(T)n^2+\cdots, recovering the ideal gas as n→0n\to0.
  • The virial coefficients come from eliminating the fugacity between the cluster series P/kBT=∑ℓbℓzℓP/k_BT=\sum_\ell b_\ell z^\ell and n=∑ℓℓbℓzℓn=\sum_\ell \ell b_\ell z^\ell; the leading result is B2=−b2=−12∫f d3rB_2=-b_2=-\tfrac12\int f\,\mathrm{d}^3r.
  • Only irreducible (star) clusters survive the inversion: Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell, so reducible diagrams cancel — a second reduction beyond the linked-cluster theorem.
  • The sign of B2B_2 measures whether pairs repel (B2>0B_2>0) or attract (B2<0B_2<0); the crossover is the Boyle temperature TBT_B, where the gas is ideal to first order in density.
  • Truncated at B2B_2 and re-summed, the expansion reproduces van der Waals and gives aa and bb a microscopic meaning; it diverges near condensation and the critical point.
  • Key idea: eliminate the fugacity between P(z)P(z) and n(z)n(z) to get a density series whose coefficients keep only the irreducible clusters — B2=−b2B_2=-b_2, and higher BkB_k come from star integrals βk\beta_k via Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell.
The core insight

Eliminate the fugacity between P/kBT=∑ℓbℓzℓP/k_BT=\sum_\ell b_\ell z^\ell and n=∑ℓℓbℓzℓn=\sum_\ell \ell b_\ell z^\ell to get a density power series whose coefficients keep only the irreducible (star) clusters: B2=−b2B_2=-b_2, and higher BkB_k come from irreducible integrals βk\beta_k through Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell.

Where this lives today

The virial expansion is the reference framework for the equation of state of dilute and moderately dense gases. Second and third virial coefficients computed from ab initio pair and three-body potentials for helium now underpin primary metrology: acoustic and dielectric-constant gas thermometry, built on virial coefficients, contributed to fixing the Boltzmann constant and realizing the kelvin in the revised SI. Reference equations of state for industrial gases are anchored on measured or computed virial coefficients, which are, at bottom, cluster integrals. Its conceptual reach is broader still. The virial expansion is the template for every "expand about the non-interacting limit and keep only irreducible pieces" scheme in physics: the diagrammatic expansions of many-body theory, the loop expansion of field theory, and the systematic corrections to mean-field theory all share its logic of organizing corrections by an interaction-counting parameter and discarding reducible contributions. And its failure is a signpost, not a defect: when the density series diverges — near condensation and at the critical point, where the radius of convergence shrinks to zero — that breakdown marks exactly the regime where the renormalization group, later in this track, takes over.

The physical picture

Turn up the density of a gas one notch at a time. At infinitesimal density molecules never meet: the ideal gas, Z≡P/(nkBT)=1Z\equiv P/(nk_BT)=1. The leading correction B2nB_2n answers a single question about the net effect of pair interactions: repulsive forces give B2>0B_2>0 (raising the pressure relative to the ideal gas), while attractive forces give B2<0B_2<0 (lowering it). Integrated over all separations, that answer is B2B_2. Each successive virial coefficient incorporates the net contribution of correlations involving one additional particle; because a triple coincidence is rarer than a pair by a factor ∼n\sim n, the series is naturally ordered by density. It is a controlled expansion precisely because ordinary gases are dilute. The first figure is the payoff of the whole construction: the compressibility factor Z=P/(nkBT)Z=P/(nk_BT) plotted against density. The ideal gas is a flat line at Z=1Z=1. A repulsion-dominated gas rises above it with initial slope +B2+B_2; an attraction-dominated gas dips below with slope −∣B2∣-|B_2|. The slope at the origin is the second virial coefficient — the single number that a PP–VV–TT measurement returns, and the thesis of this article sits right on the plot.

Figure
Compressibility factor Z=P/(nkBT)Z = P/(nk_BT) vs density nn: the ideal gas is flat at Z=1Z = 1; a repulsive gas (B₂ > 0) rises with initial slope +B₂, an attractive gas (B₂ < 0) dips with slope −|B₂|. The slope at the origin IS the second virial coefficient.
n (density) Z = P/(nk_BT) 1 ideal gas (Z = 1) B₂ > 0 (repulsion) B₂ < 0 (attraction) slope +B₂ slope −|B₂| the slope at n = 0 is exactly B₂(T)

The deep point is the cancellation of reducible diagrams. A A connected graph containing an articulation (cut) vertex factorizes into two connected subgraphs when that vertex is removed. Such reducible contributions are generated automatically when the fugacity series is inverted to a density series and therefore cancel. Only irreducible (articulation-point-free, "star") graphs add genuinely new ℓ\ell-body physics to a virial coefficient. The second figure shows the surviving topology at third order: the triangle is irreducible and contributes to B3B_3; the open chain has a cut vertex, is reducible, and cancels.

Figure
Third-order topology: the triangle (irreducible, no cut vertex) survives in B₃; the open chain 1–2–3 has a cut vertex at 2, is reducible, and cancels in the density expansion. Two successive reductions: connected → ln Ξ, irreducible → Bₖ.
irreducible: triangle → contributes to B₃ no cut vertex reducible: chain → cancels cut vertex at 2 2 B_{ℓ+1} = −(ℓ/(ℓ+1)) β_ℓ keeps only star graphs

Because B2(T)B_2(T) changes sign as temperature rises, there is a special Boyle temperature TBT_B where the gas behaves ideally to first order in density even though its molecules interact strongly — the excluded volume and the attraction integrate to cancel at the level of pair correlations. Above TBT_B the core wins; below it, attraction wins and the gas is more compressible than ideal.

The core equations

The virial expansion is most cleanly stated for the compressibility factor: the departure of PVPV from NkBTNk_BT, organized in powers of density.

Z≡PnkBT=1+B2(T) n+B3(T) n2+⋯(1)Z\equiv\frac{P}{nk_BT}=1+B_2(T)\,n+B_3(T)\,n^2+\cdots \qquad (1)

where: ZZ — compressibility factor (=1=1 for an ideal gas); n=N/Vn=N/V — number density; Bℓ(T)B_\ell(T) — the ℓ\ell-th virial coefficient, with units of (volume)ℓ−1(\text{volume})^{\ell-1}. The same content is often written P/kBT=n+B2n2+⋯P/k_BT=n+B_2 n^2+\cdots; dividing by nn gives the compressibility form. The cluster expansion (owned by aq-sm-mayer-cluster-expansion and aq-sm-cluster-integrals) supplies the pressure and density as fugacity series, with the cluster integrals bℓb_\ell as coefficients.

PkBT=∑ℓ≥1bℓ zℓ,n=z ∂∂z ⁣(PkBT)=∑ℓ≥1ℓ bℓ zℓ,b1=1(2)\frac{P}{k_BT}=\sum_{\ell\ge1}b_\ell\,z^\ell,\qquad n=z\,\frac{\partial}{\partial z}\!\Big(\frac{P}{k_BT}\Big)=\sum_{\ell\ge1}\ell\,b_\ell\,z^\ell,\qquad b_1=1 \qquad (2)

where: z=eβμ/λ3z=e^{\beta\mu}/\lambda^3 — fugacity (normalized so z→nz\to n as n→0n\to0); bℓb_\ell — the ℓ\ell-particle cluster integral; λ=h/2πmkBT\lambda=h/\sqrt{2\pi mk_BT} — thermal wavelength; μ\mu — chemical potential. The density series is the fugacity-derivative of the pressure series, which is what makes the two carry different weights ℓ\ell. Eliminating zz between these two series is the operation this article owns. The leading result is that the second virial coefficient is minus the two-cluster integral.

B2(T)=−b2=−12∫f(r) d3r=−2π∫0∞ ⁣(e−βu(r)−1)r2 dr(3)B_2(T)=-b_2=-\frac12\int f(r)\,\mathrm{d}^3r=-2\pi\int_0^\infty\!\big(e^{-\beta u(r)}-1\big)r^2\,\mathrm{d}r \qquad (3)

where: b2=12∫f d3rb_2=\tfrac12\int f\,\mathrm{d}^3r — the two-cluster integral; f(r)=e−βu(r)−1f(r)=e^{-\beta u(r)}-1 — the Mayer function (owned by aq-sm-mayer-f-function); u(r)u(r) — pair potential. The detailed evaluation of B2(T)B_2(T) for realistic potentials is owned by aq-sm-second-virial-coefficient; here it is the leading fruit of the inversion. Carrying the inversion to the next order shows that B3B_3 keeps only the irreducible content — the reducible reducible-chain part cancels.

B3(T)=4b2 2−2b3=−23 β2(T),Bℓ+1(T)=−ℓℓ+1 βℓ(T)(4)B_3(T)=4b_2^{\,2}-2b_3=-\tfrac23\,\beta_2(T),\qquad B_{\ell+1}(T)=-\frac{\ell}{\ell+1}\,\beta_\ell(T) \qquad (4)

where: b3b_3 — the three-cluster integral (chain + triangle); βℓ\beta_\ell — the ℓ\ell-th irreducible ("star") integral. Self-consistency of B3=4b22−2b3B_3=4b_2^2-2b_3 with Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell fixes β2=3b3−6b22\beta_2=3b_3-6b_2^2. The full set of βℓ\beta_\ell is owned by aq-sm-irreducible-cluster-integrals, which this article hands forward by name. Finally, for a hard-core plus weak attractive tail, B2(T)≃b−akBTB_2(T)\simeq b-\frac{a}{k_BT}, where bb is the excluded-volume contribution and aa measures the integrated attraction. This approximation provides the microscopic motivation for the van der Waals equation of state.

B2(T)=b−akBT,b=2π3σ3,a=2π∫σ∞∣u(r)∣ r2 dr(5)B_2(T)=b-\frac{a}{k_BT},\qquad b=\frac{2\pi}{3}\sigma^3,\qquad a=2\pi\int_\sigma^\infty |u(r)|\,r^2\,\mathrm{d}r \qquad (5)

where: bb — excluded-volume constant (four times the molecular volume); aa — integrated attraction; σ\sigma — hard-core diameter. Truncating the expansion at B2B_2 with this split and re-summing gives the van der Waals equation, owned by aq-sm-van-der-waals-equation and derived microscopically in aq-sm-van-der-waals-derivation.

Derivation AInverting the fugacity series: B₂ = −b₂ and the irreducible reduction of B₃

The goal is to eliminate the fugacity between P(z)P(z) and n(z)n(z), obtaining the density expansion, and to show explicitly that B2=−b2B_2=-b_2 while B3=4b22−2b3B_3=4b_2^2-2b_3 keeps only irreducible content. This is the central operation of the virial expansion: it turns the natural grand-canonical variable (fugacity) into the natural laboratory variable (density) and, in doing so, performs the second topological simplification that leaves only star clusters in the coefficients. The route is to revert the series n(z)n(z) to get z(n)z(n), substitute into P(z)P(z), and read off the coefficients of nn and n2n^2; the thing to watch is that the density series carries an extra factor ℓ\ell on each term, which is exactly what makes the inversion nontrivial and produces the sign flip B2=−b2B_2=-b_2.

Step 1. Write the two series with b1=1b_1=1. From the cluster expansion, PkBT=z+b2z2+b3z3+⋯\dfrac{P}{k_BT}=z+b_2z^2+b_3z^3+\cdots and n=z+2b2z2+3b3z3+⋯n=z+2b_2z^2+3b_3z^3+\cdots. Why: the density is n=z ∂z(P/kBT)n=z\,\partial_z(P/k_BT), so each term of the pressure series is multiplied by its power ℓ\ell — the factor 22 on the b2b_2 term and 33 on the b3b_3 term.

Step 2. Revert n(z)n(z) to get z(n)z(n). Solving n=z+2b2z2+3b3z3n=z+2b_2z^2+3b_3z^3 order by order gives z=n−2b2n2+(8b22−3b3)n3+⋯z=n-2b_2n^2+(8b_2^2-3b_3)n^3+\cdots. Why: to leading order z≈nz\approx n; the quadratic correction −2b2n2-2b_2n^2 removes the 2b2z22b_2z^2 term, and the cubic follows by demanding the composite series equal nn identically.

Step 3. Substitute into the pressure series. Insert z(n)z(n) into P/kBT=z+b2z2+b3z3P/k_BT=z+b_2z^2+b_3z^3 and collect powers: PkBT=n−b2n2+(4b22−2b3)n3+⋯\dfrac{P}{k_BT}=n-b_2n^2+(4b_2^2-2b_3)n^3+\cdots. Why: the −2b2n2-2b_2n^2 in zz combines with the +b2z2→+b2n2+b_2z^2\to+b_2n^2 to leave a net −b2n2-b_2n^2; the cubic terms assemble into 4b22−2b34b_2^2-2b_3.

Step 4. Read off the virial coefficients. Dividing by nn, Z=1−b2n+(4b22−2b3)n2+⋯Z=1-b_2n+(4b_2^2-2b_3)n^2+\cdots, so B2=−b2B_2=-b_2 and B3=4b22−2b3B_3=4b_2^2-2b_3. Writing B3=−23β2B_3=-\tfrac23\beta_2 forces β2=3b3−6b22\beta_2=3b_3-6b_2^2 — the irreducible integral. Why: the combination 4b22−2b34b_2^2-2b_3 is precisely −23-\tfrac23 times the irreducible star integral; the reducible chain part of b3b_3 has cancelled against b22b_2^2, so only the biconnected triangle survives in B3B_3. The base article's β2=2b3−4b22\beta_2=2b_3-4b_2^2 is inconsistent with Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell — see the provenance note. *The density inversion B2=−b2B_2=-b_2, B3=4b22−2b3B_3=4b_2^2-2b_3, the self-consistent β2=3b3−6b22\beta_2=3b_3-6b_2^2, and Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell can each be confirmed by symbolic series reversion.*

Go deeper · Derivation B · 1 minFrom the virial expansion to van der Waals
Derivation BFrom the virial expansion to van der Waals

The goal is to show that truncating the virial expansion at B2B_2, using the split B2=b−a/kBTB_2=b-a/k_BT, and re-summing the repulsive part re-produces the van der Waals equation (P+an2)(1/n−b)=kBT(P+an^2)(1/n-b)=k_BT. This is the sense in which van der Waals is the cluster expansion to first order in density, dressed up: the excluded volume bb and the attraction aa are not fitted constants but the two pieces of B2B_2. The strategy is to write the truncated equation of state, recognize the repulsive term as the first two terms of a geometric series, and re-sum it into the excluded-volume form; the subtlety to watch is that the re-summation is exact only to O(n2)O(n^2) but is adopted as a physically-motivated closed form.

Step 1. Truncated virial EOS with the split B2B_2. Keep through n2n^2: PkBT=n+(b−akBT)n2\dfrac{P}{k_BT}=n+\Big(b-\dfrac{a}{k_BT}\Big)n^2. Why: the split separates the temperature-independent excluded volume from the 1/T1/T attraction — the two competing effects in B2B_2.

Step 2. Re-sum the repulsion geometrically. Note n1−bn=n+bn2+b2n3+⋯\dfrac{n}{1-bn}=n+bn^2+b^2n^3+\cdots agrees with n+bn2n+bn^2 to O(n2)O(n^2). Replace n+bn2n+bn^2 by n1−bn\dfrac{n}{1-bn}. Why: the geometric form encodes "the accessible volume is reduced from VV to V−NbV-Nb," which is the physical content of excluded volume and is why van der Waals uses V−NbV-Nb rather than a polynomial.

Step 3. Reinstate the attraction as a mean field. PkBT=n1−bn−akBTn2\dfrac{P}{k_BT}=\dfrac{n}{1-bn}-\dfrac{a}{k_BT}n^2. Why: the attractive part stays a simple −an2-an^2 mean-field correction to the pressure, the same −a/V2-a/V^2 term van der Waals adds.

Step 4. Rearrange to the van der Waals form. Multiply through: (P+an2)(1−bn)=nkBT(P+an^2)(1-bn)=nk_BT, and with 1/n=v1/n=v this is (P+a/v2)(v−b)=kBT(P+a/v^2)(v-b)=k_BT. Why: this is exactly the van der Waals equation of state; the microscopic b=2π3σ3b=\tfrac{2\pi}{3}\sigma^3 and a=2π∫σ∞∣u∣r2dra=2\pi\int_\sigma^\infty|u|r^2\mathrm{d}r are inherited from B2B_2. The full microscopic derivation of a,ba,b is owned by aq-sm-van-der-waals-derivation. *As a consistency check, expanding (P+an2)(1/n−b)=kBT(P+an^2)(1/n-b)=k_BT to O(n)O(n) returns Z=1+(b−a/kBT)n+⋯Z=1+(b-a/k_BT)n+\cdots, confirming B2=b−a/kBTB_2=b-a/k_BT.*

Limiting cases

The behaviour of the series exposes its physical content, and its boundaries.

CaseResultMeaning
Ideal-gas limit (n→0n\to0)Z=1Z=1All virial corrections vanish; PV=NkBTPV=Nk_BT.
Leading correctionZ=1+B2n,B2=−b2Z=1+B_2n,\quad B_2=-b_2The second virial coefficient gives the first departure from ideality; the initial slope is B2B_2.
Hard-sphere gas (diameter σ\sigma)B2=2π3σ3B_2=\dfrac{2\pi}{3}\sigma^3Purely repulsive and temperature independent; equals four times the molecular volume.
Boyle temperatureB2(TB)=0B_2(T_B)=0The leading density correction vanishes, so Z=1+O(n2)Z=1+O(n^2).
Third order (B3B_3)B3=4b22−2b3=−23β2B_3=4b_2^2-2b_3=-\dfrac23\beta_2Only irreducible (biconnected) three-particle clusters contribute; reducible graphs containing articulation vertices cancel during the fugacity-to-density inversion.
Onset of condensationseries divergesFinite radius of convergence bounded by the transition; cannot follow the isotherm into coexistence.

Worked examples

1 · The compressibility of argon at 300 K (confidence builder)

We use the measured second virial coefficient of argon to predict how far its pressure departs from ideal, computing a real number from a real potential.

Step 1. From a Lennard-Jones fit (ε/kB=120\varepsilon/k_B=120 K, σ=0.34\sigma=0.34 nm), numerically integrating B2=−2π∫(e−βu−1)r2drB_2=-2\pi\int(e^{-\beta u}-1)r^2\mathrm{d}r at T=300T=300 K gives B2=−15.1B_2=-15.1 cm³/mol (recomputed in the verify script). Convert to SI per particle: B2=−15.1×10−6/NA=−2.51×10−29 m3B_2=-15.1\times10^{-6}/N_A=-2.51\times10^{-29}\ \mathrm{m^3}.

Step 2. At 11 atm and 300300 K the ideal number density is n=P/kBT=101325/(1.38×10−23×300)=2.45×1025 m−3n=P/k_BT=101325/(1.38\times10^{-23}\times300)=2.45\times10^{25}\ \mathrm{m^{-3}}.

Step 3. The correction to the compressibility factor is Z−1=B2 n=(−2.51×10−29)(2.45×1025)=−6.1×10−4Z-1=B_2\,n=(-2.51\times10^{-29})(2.45\times10^{25})=\mathbf{-6.1\times10^{-4}}. Argon at room conditions is about 0.06%0.06\% more compressible than an ideal gas — small, negative, and attraction-dominated, exactly as B2<0B_2<0 predicts.

Step 4. Raise the density to that of a gas at 5050 atm and the correction grows to ∼3%\sim3\%: the virial correction scales linearly with density, so non-ideality becomes measurable exactly where the second term matters. A single cluster integral has turned a two-parameter potential into a quantitative equation-of-state correction.

2 · The Boyle temperature of Lennard-Jones argon (exam level)

We locate the temperature where B2B_2 changes sign — the Boyle point — directly from the potential.

Step 1. The Boyle temperature solves B2(TB)=0B_2(T_B)=0: the repulsive-core positive contribution to ∫f r2dr\int f\,r^2\mathrm{d}r exactly cancels the attractive-well negative contribution. For the 12-6 Lennard-Jones potential this is a universal reduced temperature.

Step 2. Numerically root-finding on the computed B2(T)B_2(T) (verify script) gives TB=407T_B=407 K for argon, i.e. the reduced value TB∗=kBTB/ε=407/120=3.40T_B^*=k_BT_B/\varepsilon=407/120=\mathbf{3.40}.

Step 3. The reduced Boyle temperature TB∗≈3.42T_B^*\approx3.42 is a property of the Lennard-Jones 12-6 potential. Fluids that are accurately described by this potential have approximately the same reduced Boyle temperature, while real substances deviate according to how closely their interactions follow the Lennard-Jones form. Multiplying by each substance's ε/kB\varepsilon/k_B then gives its physical TBT_B: nitrogen (ε/kB≈95\varepsilon/k_B\approx95 K) lands near TB≈325T_B\approx325 K, matching the tabulated 327327 K.

Step 4. Below TBT_B (e.g. 100100 K) the recomputed B2=−171B_2=-171 cm³/mol — strongly attractive, the gas heading toward condensation; above TBT_B (e.g. 10001000 K) B2=+21B_2=+21 cm³/mol — the core dominates. The sign of a single integral maps out where a real gas is more, or less, compressible than ideal, and the crossover is a universal number of the potential's shape.

Origins · 1 minHeike Kamerlingh Onnes and how this was discovered
HK
Heike Kamerlingh Onnes
1853–1926, Leiden — low-temperature physicist who coined the virial expansion · "door meten tot weten": knowledge through measurement

Heike Kamerlingh Onnes was the founder of modern low-temperature physics and the experimentalist who, in 1901, first wrote the equation of state of a real gas as a power series in density — PV/NkBT=1+B(T)/V+C(T)/V2+⋯PV/Nk_BT=1+B(T)/V+C(T)/V^2+\cdots — and named the coefficients virial coefficients, borrowing Clausius's word virial (Latin vis, force). His Leiden laboratory turned precision cryogenics into an industry: in 1908 he was the first to liquefy helium, reaching ∼4\sim4 K, and in 1911 he discovered superconductivity in mercury, for which strand of work — the properties of matter at low temperature, including helium liquefaction — he received the 1913 Nobel Prize in Physics. His motto, carved over the laboratory door, was door meten tot weten, "through measuring to knowing." The virial expansion he introduced was, at first, a purely empirical fitting form; it was Ursell (1927) and Mayer (1937) who later showed that Onnes's coefficients are integrals over the intermolecular potential — cluster integrals — giving his phenomenological series a rigorous microscopic foundation. The two threads meet in this article: Onnes supplied the form of the equation of state; the cluster expansion supplies the content of its coefficients.

History
1873
— van der Waals's equation phenomenologically anticipates the excluded-volume and attraction constants the virial expansion later derives.
1901
— Kamerlingh Onnes writes the empirical virial expansion and names the virial coefficients.
1908
— Kamerlingh Onnes liquefies helium at Leiden, opening the sub-5-kelvin regime.
1911
— Kamerlingh Onnes discovers superconductivity in mercury.
1913
— Kamerlingh Onnes receives the Nobel Prize for low-temperature physics.
1927
— Ursell introduces cluster functions, the seed of the microscopic virial coefficients.
1937
— Mayer's cluster expansion gives Onnes's coefficients their statistical-mechanical meaning.

Going further

Texts. Pathria & Beale, Statistical Mechanics, 3rd ed., Ch. 10 (cluster and virial expansions, irreducible integrals). Kardar, Statistical Physics of Particles, §5.2–5.4. Reif, Fundamentals of Statistical and Thermal Physics, Ch. 10 (imperfect gases). Landau & Lifshitz, Statistical Physics Part 1, §74–76. Hansen & McDonald, Theory of Simple Liquids. Note on a corrected result: an earlier form of this material wrote the irreducible integral as β2=2b3−4b22\beta_2=2b_3-4b_2^2, which is inconsistent with Bℓ+1=−ℓℓ+1βℓB_{\ell+1}=-\tfrac{\ell}{\ell+1}\beta_\ell together with B3=4b22−2b3B_3=4b_2^2-2b_3; the self-consistent value is β2=3b3−6b22\beta_2=3b_3-6b_2^2, as used throughout this article. The key numerical anchors are the fugacity inversion B2=−b2B_2=-b_2, B3=4b22−2b3B_3=4b_2^2-2b_3, the vdW re-summation, hard-sphere B2B_2, and the LJ argon values B2(300 K)=−15.1B_2(300\,\mathrm{K})=-15.1 cm³/mol and TB=407T_B=407 K. This article gives the cluster-expansion route to the virial series; the classical Clausius virial-theorem route to the leading correction is owned separately by aq-sm-virial-equation-of-state — the two are cross-referenced and de-overlapped.

Prerequisites. Configuration integral · The Mayer f-function · Mayer cluster expansion · Cluster integrals and their combinatorics.

Leads to. Irreducible cluster integrals and the virial series · Second virial coefficient · Third and higher virial coefficients · Van der Waals from the virial expansion · Law of corresponding states.

What is the difference between this virial expansion and aq-sm-virial-equation-of-state?

They reach the same leading result by different routes and are deliberately de-overlapped. aq-sm-virial-equation-of-state (the SM3 article) derives the leading equation-of-state correction from the classical virial theorem of Clausius — a mechanical average of r⋅F\mathbf{r}\cdot\mathbf{F} over the gas. This article derives the full series from the Mayer cluster expansion, eliminating the fugacity to get all the BkB_k and the irreducible-cluster reduction. The virial-theorem route is elegant for the leading term but does not naturally generate the higher coefficients; the cluster route does. Both agree on B2B_2; this article owns the systematic density expansion and the topological structure of its coefficients.

Why is the density series only conditionally convergent, and what sets its radius?

The virial expansion is a power series in density, and like any power series it has a radius of convergence set by the nearest singularity of the function it represents. For a gas that singularity is the condensation point — the density at which the analytic gas branch ends and the two-phase region begins. Rigorously (Penrose, Ruelle) the series converges for short-range potentials up to a finite density; beyond that the truncation is unjustified and the series diverges. This is why you cannot follow a truncated virial polynomial across a first-order transition: the mathematics is telling you the gas description has ended.

If B₂ can be negative, doesn't that make the pressure negative at high density?

No — a negative B2B_2 only means the leading correction lowers the pressure below ideal; it does not mean the pressure itself goes negative. At the densities where the virial expansion is valid, B2n≪1B_2 n\ll1, so Z=1+B2nZ=1+B_2n stays close to 11. If you tried to push nn so high that 1+B2n1+B_2n approached zero, you would already be far outside the radius of convergence — near or past condensation — where the truncated series is meaningless. A negative B2B_2 is the fingerprint of net attraction at that temperature, not a prediction of negative pressure.

Where does the factor ℓ/(ℓ+1) in B_{ℓ+1} = −ℓ/(ℓ+1) β_ℓ come from?

It is a bookkeeping factor from the inversion, and it can be traced to the fact that the density series n=∑ℓbℓzℓn=\sum \ell b_\ell z^\ell weights each cluster by its particle number ℓ\ell, while the pressure series does not. When you revert n(z)n(z) and substitute into P(z)P(z), the combinatorial reshuffling of these weights leaves each irreducible integral βℓ\beta_\ell multiplied by −ℓ/(ℓ+1)-\ell/(\ell+1). For ℓ=1\ell=1 it gives B2=−12β1B_2=-\tfrac12\beta_1 with β1=2b2\beta_1=2b_2, i.e. B2=−b2B_2=-b_2; for ℓ=2\ell=2 it gives B3=−23β2B_3=-\tfrac23\beta_2. The factor is not arbitrary — it is exactly what makes the reducible pieces cancel, which you can check order by order (and the verify script does).

Why bother with virial coefficients when we have the van der Waals equation?

Because van der Waals is only the first-order, mean-field truncation of the virial expansion, and it is quantitatively wrong in ways the full series corrects. Van der Waals keeps B2B_2 (and re-sums the repulsion crudely) but gets B3B_3 and higher badly wrong, which is why its critical compressibility Zc=3/8Z_c=3/8 misses the measured ∼0.29\sim0.29. The virial expansion, by contrast, is systematically improvable: each new coefficient is a well-defined cluster integral of the true potential, so you can compute B3B_3, B4B_4 from first principles and match precision equation-of-state data. Van der Waals is the pedagogical cartoon; the virial series is the controlled theory it approximates.

Is the virial expansion exact, or is it an approximation?

The reorganization is exact — the cluster/graph expansion of the partition function is an identity, and the relations B2=−b2B_2=-b_2, B3=4b22−2b3B_3=4b_2^2-2b_3 hold exactly. It becomes an approximation only when you truncate at a finite number of coefficients, which is justified at low density because Bk+1nkB_{k+1}n^{k} is smaller than Bknk−1B_k n^{k-1} by a factor ∼n×(coefficient ratio)\sim n\times(\text{coefficient ratio}). So for a dilute gas, keeping B2B_2 (and perhaps B3B_3) is an excellent controlled approximation with a rigorous error estimate; near condensation, no finite truncation works because the series itself diverges.

Before this

Where this leads