Second Virial Coefficient

The ideal gas ignores all interactions; every real gas deviates, and at low density those deviations admit a controlled expansion in the number density. The second virial coefficient B2(T)B_2(T) is the first correction term — and it captures the physics of pairs of molecules exactly, since three-body and higher correlations enter only at order n3n^3 and beyond. Because it isolates the two-body problem, B2(T)B_2(T) is the cleanest bridge in all of statistical mechanics between an interatomic potential and a bench-top thermodynamic measurement: you can compute it from a formula for u(r)u(r), and you can measure it from the pressure of a gas. The result is remarkably transparent. From the cluster expansion, B2(T)=−b2=−12∫f(r) d3rB_2(T)=-b_2=-\tfrac12\int f(r)\,\mathrm{d}^3r — half the negative integral of the Mayer function f(r)=e−βu(r)−1f(r)=e^{-\beta u(r)}-1 over all separations. Each region of the potential leaves its mark: a hard core contributes a positive excluded-volume piece, an attractive well a negative piece that grows as the gas cools. Their competition is the whole story of B2B_2. For hard spheres it equals four times the molecular volume; with an attractive tail it acquires a −a/kBT-a/k_BT term and reproduces the van der Waals constants; and the temperature where the two contributions cancel defines the Boyle temperature, where a strongly interacting gas is ideal to first order in density. Beyond its conceptual role, B2(T)B_2(T) is a workhorse of experimental and computational physics. It is tabulated for real gases, fit to determine pair-potential parameters (Lennard-Jones ε,σ\varepsilon,\sigma; square-well depth and range), and computed ab initio for helium to underpin primary gas thermometry. It is the foundation on which the entire virial series — third and higher coefficients, owned by their own articles — is built, and the single most important number characterizing a dilute real gas.

Key takeaways
  • The second virial coefficient B2(T)B_2(T) is the leading correction to the ideal-gas law: PnkBT=1+B2(T)n+⋯\dfrac{P}{nk_BT}=1+B_2(T)n+\cdots, with B2B_2 carrying units of volume.
  • It is a single integral over the Mayer function: B2(T)=−b2=−12∫f(r) d3r=−2π∫0∞(e−βu−1)r2 drB_2(T)=-b_2=-\tfrac12\int f(r)\,\mathrm{d}^3r=-2\pi\int_0^\infty(e^{-\beta u}-1)r^2\,\mathrm{d}r.
  • Its sign balances the repulsive core (B2>0B_2>0) against the attractive tail (B2<0B_2<0); the crossover is the Boyle temperature TBT_B where B2(TB)=0B_2(T_B)=0.
  • Hard spheres give the temperature-independent B2=2π3σ3=4vmolB_2=\tfrac{2\pi}{3}\sigma^3=4v_{\text{mol}}; a hard core plus weak attraction gives B2=b−a/kBTB_2=b-a/k_BT, the van der Waals constants.
  • Fit to measured B2(T)B_2(T), a two-parameter potential reproduces real-gas non-ideality: Lennard-Jones argon gives B2(300 K)≈−15B_2(300\,\mathrm{K})\approx-15 cm³/mol, matching experiment.
  • Key idea: the entire two-body interaction effect on the pressure is a single integral of the Mayer function, B2(T)=−12∫(e−βu−1) d3rB_2(T)=-\tfrac12\int(e^{-\beta u}-1)\,\mathrm{d}^3r — the half-integrated overlap of two molecules' interaction range.
The core insight

The entire two-body interaction effect on the pressure is captured exactly by a single integral of the Mayer function: B2(T)=−b2=−12∫(e−βu(r)−1) d3rB_2(T)=-b_2=-\tfrac12\int(e^{-\beta u(r)}-1)\,\mathrm{d}^3r, the half-integrated overlap of two molecules' interaction range.

Where this lives today

The second virial coefficient is the primary experimental probe of intermolecular forces in gases and a cornerstone of modern metrology. Because B2(T)B_2(T) depends only on the pair potential, precise measurements over a temperature range tightly constrain u(r)u(r): fitting B2(T)B_2(T) for the noble gases yields Lennard-Jones parameters consistent with independent transport and spectroscopic data, and ab initio computed B2B_2 for helium — accurate to parts per million — is now good enough to serve as a primary standard. Acoustic gas thermometry and dielectric-constant gas thermometry, which contributed to the 2019 redefinition of the kelvin via the Boltzmann constant, both rely on the virial equation of state with B2B_2 (and B3B_3) as inputs. Its conceptual reach extends into liquid-state theory and beyond. The same B2=−12∫f d3rB_2=-\tfrac12\int f\,\mathrm{d}^3r is the leading term of the density expansion that, resummed, gives the integral equations (Percus-Yevick, hypernetted chain) of the theory of liquids; the quantum generalization (the Beth-Uhlenbeck formula) expresses the second virial coefficient in terms of two-body scattering phase shifts, tying gas thermodynamics to quantum scattering; and in ultracold atomic gases the second virial coefficient controls the leading interaction correction to the equation of state near unitarity. Wherever a dilute system's thermodynamics must be corrected for pairwise interactions, B2B_2 is the coefficient that does it.

The physical picture

Think of the Mayer function f(r)=e−βu(r)−1f(r)=e^{-\beta u(r)}-1 as a visibility marker: it is essentially zero where two molecules are far apart and do not feel each other, plunges to −1-1 inside a hard core where overlap is forbidden (the Boltzmann factor vanishes), and rises positive in an attractive well where the Boltzmann factor exceeds one. The second virial coefficient integrates this marker over all separations — it measures the net effective volume that one molecule excludes from, or draws toward, another. Repulsion excludes volume and pushes B2B_2 positive; attraction pulls molecules together and pushes it negative. The first figure overlays a realistic pair potential u(r)u(r) and its Mayer function f(r)f(r). Where uu diverges at small rr, ff saturates at −1-1 (bounded); where uu dips into the attractive well, ff rises positive; where u→0u\to0 at large rr, so does ff. The area under f r2f\,r^2, with a factor −2π-2\pi, is B2B_2: the positive core lobe and the negative well lobe compete, and their difference is the coefficient.

Figure
The pair potential u(r) and its Mayer function f(r) = e^{−βu} − 1: u diverges at the core and dips into the attractive well; f saturates at −1 in the core (bounded) and rises positive in the well. B₂ = −2π ∫ f r² dr weighs the positive core lobe against the negative well lobe.
r u(r), f(r) 0 u(r) attractive well f(r) f = −1 f > 0 (well) . B₂ = −2π ∫ f(r) r² dr

The sign of B2B_2 tells you at a glance whether the gas pushes harder or softer than ideal at a given temperature. As temperature rises, the attractive well becomes thermally irrelevant — βε→0\beta\varepsilon\to0, so ff in the well flattens toward zero — and only the hard core survives, driving B2B_2 toward a positive plateau set by molecular size. As temperature falls, the well term eβε−1e^{\beta\varepsilon}-1 blows up and B2B_2 plunges negative, the fingerprint of an approaching condensation. The second figure is the punchline: B2(T)B_2(T) across temperature. It rises from strongly negative at low TT (attraction wins), crosses zero at the Boyle temperature TBT_B, and saturates at the positive hard-core plateau 2π3σ3\tfrac{2\pi}{3}\sigma^3 at high TT. That zero crossing — the thesis outlier sitting right on the curve — is a sensitive probe of the potential's shape.

Figure
The second virial coefficient B₂(T): strongly negative at low T (attraction dominates), crossing zero at the Boyle temperature T_B, saturating at the positive hard-core plateau (2π/3)σ³ at high T. The zero crossing is the Boyle point.
T B₂(T) 0 plateau → (2π/3)σ³ T_B B₂ = 0 (Boyle) attraction wins (B₂ < 0) core wins (B₂ > 0)

Why only two bodies? In the density expansion Z=1+B2n+⋯Z=1+B_2n+\cdots, the coefficient of nn counts pairs per volume that can simultaneously interact. Triplets are rarer by another factor of nn, so at dilute densities the pair term dominates the correction — which is exactly why B2B_2 is the exact two-body contribution and the natural first step, with three-body physics deferred to B3B_3 (owned by aq-sm-higher-virial-coefficients).

The core equations

The virial expansion (owned by aq-sm-virial-expansion) organizes the compressibility factor in powers of density; B2B_2 is its leading coefficient.

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

where: PP — pressure; n=N/Vn=N/V — number density; B2(T)B_2(T) — second virial coefficient (units of volume); B3(T)B_3(T) — third virial coefficient. The equivalent form P/kBT=n+B2n2+⋯P/k_BT=n+B_2n^2+\cdots multiplies through by nn. The master formula expresses B2B_2 as a single integral of the Mayer function — the two-cluster integral of the cluster expansion.

B2(T)=−b2=−12∫f(r) d3r,b2=12∫f(r) d3r(2)B_2(T)=-b_2=-\frac12\int f(r)\,\mathrm{d}^3r,\qquad b_2=\frac12\int f(r)\,\mathrm{d}^3r \qquad (2)

where: b2=12∫f d3rb_2=\tfrac12\int f\,\mathrm{d}^3r — the two-particle cluster integral (owned by aq-sm-cluster-integrals); f(r)=e−βu(r)−1f(r)=e^{-\beta u(r)}-1 — the Mayer function (owned by aq-sm-mayer-f-function); the sign convention B2=−b2B_2=-b_2 makes repulsion give B2>0B_2>0. The base article labelled the two-cluster integral b1b_1; the correct label is b2b_2 (with b1=1b_1=1 the single-vertex ideal term) — see provenance. For an isotropic potential the angular integral is trivial, leaving a one-dimensional radial integral — the working form for real calculations.

B2(T)=−2π∫0∞(e−βu(r)−1) r2 dr(3)B_2(T)=-2\pi\int_0^\infty\big(e^{-\beta u(r)}-1\big)\,r^2\,\mathrm{d}r \qquad (3)

where: rr — pair separation; d3r=4πr2 dr\mathrm{d}^3r=4\pi r^2\,\mathrm{d}r with the 4π4\pi halved by the 12\tfrac12. This is the integral you evaluate — analytically for model potentials, numerically for realistic ones. Splitting a hard core from a weak attractive tail gives the van der Waals form, the microscopic origin of aa and bb.

B2(T)=b−akBT,b=2π3σ3,a=2π∫σ∞∣u(r)∣ r2 dr(4)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 (4)

where: bb — excluded volume (four times the molecular volume); aa — integrated attraction; σ\sigma — core diameter. The zero of B2B_2 then gives the Boyle temperature (van der Waals model kBTB=a/bk_BT_B=a/b). The full van der Waals derivation is owned by aq-sm-van-der-waals-derivation. For the square-well potential the integral is elementary and displays every feature — core, well, sign change, Boyle point.

B2(T)=2πσ33[1−(λ3−1)(eβε−1)](5)B_2(T)=\frac{2\pi\sigma^3}{3}\Big[1-(\lambda^3-1)\big(e^{\beta\varepsilon}-1\big)\Big] \qquad (5)

where: ε\varepsilon — well depth; λσ\lambda\sigma — well outer radius; λ>1\lambda>1 — reduced range. High TT gives the hard-core plateau; low TT makes the bracket negative.

Derivation AThe master formula B₂ = −½∫f d³r from the configuration integral

The goal is to derive B2(T)=−12∫f d3rB_2(T)=-\tfrac12\int f\,\mathrm{d}^3r directly from the canonical partition function, isolating the leading interaction correction to the ideal gas. This is the cleanest way to see why the second virial coefficient is exactly a two-body integral and where the factor −12-\tfrac12 comes from — the half is the pair symmetry factor, the minus is the sign convention that makes repulsion positive. The strategy is to expand the configuration integral to first order in the Mayer function, compute the resulting free energy, and differentiate to get the pressure; the point to watch is that all (N2)\binom{N}{2} pairs contribute identically, and translational invariance collapses each pair integral to a single relative integral times the volume.

Step 1. Write the configuration integral in Mayer form. QN=∫∏id3ri∏i<j(1+fij)Q_N=\int\prod_i\mathrm{d}^3r_i\prod_{i<j}(1+f_{ij}), using e−βuij=1+fije^{-\beta u_{ij}}=1+f_{ij}. Why: this is the exact rewriting (owned by aq-sm-mayer-f-function) that turns the coupled Boltzmann factor into a product of short-ranged bonds, making a density expansion possible.

Step 2. Expand to first order in ff. ∏i<j(1+fij)=1+∑i<jfij+⋯\prod_{i<j}(1+f_{ij})=1+\sum_{i<j}f_{ij}+\cdots, so QN≈VN+(N2)VN−2 ⁣∫f12 d3r1d3r2=VN[1+N(N−1)2V∫f d3r]Q_N\approx V^N+\binom{N}{2}V^{N-2}\!\int f_{12}\,\mathrm{d}^3r_1\mathrm{d}^3r_2=V^N\Big[1+\dfrac{N(N-1)}{2V}\int f\,\mathrm{d}^3r\Big]. Why: the "1" gives the ideal VNV^N; each of the (N2)\binom{N}{2} equivalent pairs contributes the same integral, and fixing the centre of mass turns the six-dimensional pair integral into V∫f d3rV\int f\,\mathrm{d}^3r. Products of two distinct ff's are three-body and enter B3B_3.

Step 3. Free energy. F=−kBTln⁡ZN=Fid−kBT N(N−1)2V∫f d3rF=-k_BT\ln Z_N=F_{\text{id}}-k_BT\,\dfrac{N(N-1)}{2V}\int f\,\mathrm{d}^3r, using ln⁡(1+x)≈x\ln(1+x)\approx x. Why: the interaction correction is small in the dilute regime, so the logarithm linearizes; FidF_{\text{id}} is the ideal-gas free energy with the thermal wavelength.

Step 4. Pressure and read-off. P=−(∂F/∂V)T,N=NkBTV−kBT N22V2∫f d3rP=-\big(\partial F/\partial V\big)_{T,N}=\dfrac{Nk_BT}{V}-k_BT\,\dfrac{N^2}{2V^2}\int f\,\mathrm{d}^3r, so PkBT=n−n22∫f d3r=n+B2n2\dfrac{P}{k_BT}=n-\dfrac{n^2}{2}\int f\,\mathrm{d}^3r=n+B_2n^2 with B2=−12∫f d3rB_2=-\tfrac12\int f\,\mathrm{d}^3r. Why: taking N(N−1)≈N2N(N-1)\approx N^2 in the thermodynamic limit and differentiating the 1/V1/V dependence gives the n2n^2 term; comparing with equation (1) identifies the boxed result. *Verified: B2=−12∫f d3rB_2=-\tfrac12\int f\,\mathrm{d}^3r and its equivalence to −b2-b_2 (via the fugacity inversion) are checked symbolically, and the hard-sphere and square-well cases below numerically, in verify_second-virial-coefficient.py.*

Go deeper · Derivation B · 1 minSquare-well B₂(T): a fully evaluated example with a Boyle temperature
Derivation BSquare-well B₂(T): a fully evaluated example with a Boyle temperature

The goal is to evaluate B2(T)B_2(T) in closed form for the square-well potential, exhibiting the hard core, the attractive well, the sign change, and the Boyle temperature all in one formula. The square well is the simplest potential with both a repulsive core and a finite-range attraction, so it makes every qualitative feature of B2B_2 quantitative and checkable. The strategy is to write the Mayer function piecewise, integrate over each region, and combine; the subtlety is that the well contributes with a positive eβε−1e^{\beta\varepsilon}-1 that grows without bound as T→0T\to0, which is what drives B2B_2 negative and eventually breaks the gas description.

Step 1. Mayer function by region. With u=+∞u=+\infty for r<σr<\sigma, u=−εu=-\varepsilon for σ<r<λσ\sigma<r<\lambda\sigma, u=0u=0 beyond: f=−1f=-1 (core), f=eβε−1f=e^{\beta\varepsilon}-1 (well), f=0f=0 (outside). Why: the infinite core kills the Boltzmann factor (f=−1f=-1); the well raises it above one (eβε>1e^{\beta\varepsilon}>1); outside there is no interaction.

Step 2. Core contribution. −2π∫0σ(−1)r2 dr=+2π3σ3-2\pi\int_0^\sigma(-1)r^2\,\mathrm{d}r=+\dfrac{2\pi}{3}\sigma^3. Why: this is the hard-sphere excluded volume, always positive and temperature-independent — the repulsive backbone of B2B_2.

Step 3. Well contribution. −2π∫σλσ(eβε−1)r2 dr=−2π3σ3(λ3−1)(eβε−1)-2\pi\int_\sigma^{\lambda\sigma}(e^{\beta\varepsilon}-1)r^2\,\mathrm{d}r=-\dfrac{2\pi}{3}\sigma^3(\lambda^3-1)(e^{\beta\varepsilon}-1). Why: the shell volume is 4π3σ3(λ3−1)\tfrac{4\pi}{3}\sigma^3(\lambda^3-1); the positive eβε−1e^{\beta\varepsilon}-1 makes this negative — attraction lowers B2B_2, and the effect grows exponentially as TT falls.

Step 4. Combine and find TBT_B. B2(T)=2πσ33[1−(λ3−1)(eβε−1)]B_2(T)=\dfrac{2\pi\sigma^3}{3}\big[1-(\lambda^3-1)(e^{\beta\varepsilon}-1)\big]; setting B2=0B_2=0 gives eε/kBTB−1=1λ3−1e^{\varepsilon/k_BT_B}-1=\dfrac{1}{\lambda^3-1}, i.e. TB=εkBln⁡ ⁣(λ3/(λ3−1))T_B=\dfrac{\varepsilon}{k_B\ln\!\big(\lambda^3/(\lambda^3-1)\big)}. Why: at high TT the bracket →1\to1 and B2→2π3σ3B_2\to\tfrac{2\pi}{3}\sigma^3 (core only); at TBT_B the well cancels the core; below TBT_B the bracket goes negative and attraction wins. *Verified: the square-well closed form, its high-TT limit 2π3σ3\tfrac{2\pi}{3}\sigma^3, and the equivalence of the two Boyle-temperature forms are checked symbolically and numerically in verify_second-virial-coefficient.py.*

Limiting cases

How B2(T)B_2(T) behaves across the physically important regimes.

CaseResultMeaning
Hard spheres (diameter σ\sigma)B2=2π3σ3=4vmolB_2=\tfrac{2\pi}{3}\sigma^3=4v_{\text{mol}}Temperature-independent, positive; four times the molecular volume vmol=π6σ3v_{\text{mol}}=\tfrac{\pi}{6}\sigma^3.
High temperature (β→0\beta\to0)B2→2π3σ3>0B_2\to\tfrac{2\pi}{3}\sigma^3>0Attractive well thermally negligible; only the core survives.
Low temperature (β→∞\beta\to\infty)B2→−∞B_2\to-\inftyAttraction dominates; the negative well term diverges, signalling condensation.
Boyle temperatureB2(TB)=0B_2(T_B)=0Core and well cancel; ideal to first order in nn. Argon TB≈407T_B\approx407 K, N₂ ≈327\approx327 K, H₂ ≈110\approx110 K.
Weak attraction splitB2=b−a/kBTB_2=b-a/k_BTThe van der Waals form; bb from the core, aa from the tail.

Worked examples

1 · Hard-sphere B₂ equals four times the molecular volume (confidence builder)

We evaluate B2B_2 for hard spheres directly and recover the classic excluded-volume factor of four.

Step 1. For hard spheres f=−1f=-1 for r<σr<\sigma and 00 beyond, so B2=−2π∫0σ(−1)r2 dr=+2π⋅σ33=2π3σ3B_2=-2\pi\int_0^\sigma(-1)r^2\,\mathrm{d}r=+2\pi\cdot\dfrac{\sigma^3}{3}=\dfrac{2\pi}{3}\sigma^3.

Step 2. The molecular volume is vmol=43π(σ/2)3=π6σ3v_{\text{mol}}=\tfrac43\pi(\sigma/2)^3=\dfrac{\pi}{6}\sigma^3.

Step 3. The ratio is B2/vmol=2πσ3/3πσ3/6=4B_2/v_{\text{mol}}=\dfrac{2\pi\sigma^3/3}{\pi\sigma^3/6}=\mathbf{4}. The hard-sphere second virial coefficient is exactly four times the molecular volume.

Step 4. The factor of four is geometric: two spheres of diameter σ\sigma cannot approach closer than σ\sigma centre-to-centre, so the excluded region for a pair is a sphere of radius σ\sigma — volume 43πσ3=8vmol\tfrac43\pi\sigma^3=8v_{\text{mol}} — shared between the two particles, giving 4vmol4v_{\text{mol}} each. This is the van der Waals constant bb, derived from geometry alone.

2 · Lennard-Jones argon: B₂(T) and the Boyle temperature (exam level)

We compute B2B_2 for argon from its Lennard-Jones potential at three temperatures and locate the Boyle point, using the actual numerical integral.

Step 1. With ε/kB=120\varepsilon/k_B=120 K and σ=0.34\sigma=0.34 nm, numerically integrate B2=−2π∫(e−βu−1)r2 drB_2=-2\pi\int(e^{-\beta u}-1)r^2\,\mathrm{d}r for the 12-6 potential u=4ε[(σ/r)12−(σ/r)6]u=4\varepsilon[(\sigma/r)^{12}-(\sigma/r)^6]. At T=300T=300 K the integral (verify script) gives B2=−15.1 cm3/molB_2=\mathbf{-15.1\ cm^3/mol}.

Step 2. The measured second virial coefficient of argon at 300300 K is about −16-16 cm³/mol — excellent agreement. The negative sign says attraction wins at room temperature: argon is slightly more compressible than an ideal gas.

Step 3. Repeating at 100100 K gives B2=−171B_2=-171 cm³/mol (strongly attractive, condensation approaching), and at 10001000 K gives B2=+21B_2=+21 cm³/mol (the repulsive core now dominates the shallow well).

Step 4. Since B2B_2 passes from negative through zero to positive as TT rises, root-finding gives the Boyle temperature TB=407T_B=407 K for argon, i.e. the reduced value TB∗=kBTB/ε=3.40T_B^*=k_BT_B/\varepsilon=3.40. Because TB∗≈3.42T_B^*\approx3.42 is a universal number of the 12-6 potential shape, every Lennard-Jones fluid has the same reduced Boyle temperature. A single integral of a two-parameter potential has reproduced the full temperature dependence of the leading equation-of-state correction and its Boyle point.

Origins · 1 minSecond virial coefficient and how this was discovered
SV
Second virial coefficient
the leading density correction to the ideal gas (Kamerlingh Onnes, 1901; Mayer, 1937) · B₂ = −½∫f d³r, the two-body bridge

The second virial coefficient is the first term in the density expansion of the compressibility factor and the exact contribution of two-body interactions to a gas's equation of state. It entered physics phenomenologically in Kamerlingh Onnes's 1901 virial expansion, where the coefficients were empirical fitting constants named after the Clausius virial. Its microscopic meaning came with the Mayer cluster expansion (1937): B2(T)=−b2=−12∫(e−βu−1) d3rB_2(T)=-b_2=-\tfrac12\int(e^{-\beta u}-1)\,\mathrm{d}^3r, a single integral over the pair potential through the Mayer function. That formula makes B2B_2 the cleanest link between microscopic forces and macroscopic thermodynamics — it can be computed from a model potential and measured from PP–VV–TT data, and the two must agree. Its sign distinguishes net repulsion (B2>0B_2>0) from net attraction (B2<0B_2<0); its zero defines the Boyle temperature; its hard-core value 2π3σ3=4vmol\tfrac{2\pi}{3}\sigma^3=4v_{\text{mol}} is the van der Waals excluded volume. Today, B2B_2 computed ab initio for helium underpins primary acoustic and dielectric gas thermometry, and fitted B2(T)B_2(T) data remain a standard route to intermolecular-potential parameters for the noble gases and simple molecular fluids.

History
1873
— van der Waals introduces the constants aa and bb that the hard-core-plus-tail B2B_2 later derives.
1901
— Kamerlingh Onnes writes the virial expansion and names the second virial coefficient.
1927
— Ursell's cluster functions give the first microscopic footing for the coefficients.
1937
— Mayer's cluster expansion yields B2=−12∫f d3rB_2=-\tfrac12\int f\,\mathrm{d}^3r as a two-body integral.
1949
— precise noble-gas B2(T)B_2(T) data fix Lennard-Jones parameters (e.g. argon ε/kB≈120\varepsilon/k_B\approx120 K).

Going further

Texts. Pathria & Beale, Statistical Mechanics, 3rd ed., Ch. 10 (cluster expansion, virial coefficients). Kardar, Statistical Physics of Particles, §5.2–5.3. Reif, Fundamentals of Statistical and Thermal Physics, Ch. 10. Hill, Statistical Mechanics; Hansen & McDonald, Theory of Simple Liquids (square-well and realistic B2B_2).

Provenance. Base article: AllQFT track `sm`, "Second Virial Coefficient" (STAT.INTER.B2VIR.1247); sources Pathria & Beale Ch. 10, Kardar Ch. 5, Reif Ch. 10. All claims re-verified in verify_second-virial-coefficient.py: the master formula B2=−12∫fB_2=-\tfrac12\int f, the hard-sphere 2π3σ3=4vmol\tfrac{2\pi}{3}\sigma^3=4v_{\text{mol}}, the square-well closed form and its Boyle condition, the fugacity inversion B2=−b2B_2=-b_2, and the actual numerically integrated Lennard-Jones argon values B2(100 K)=−171B_2(100\,\mathrm{K})=-171, B2(300 K)=−15.1B_2(300\,\mathrm{K})=-15.1, B2(1000 K)=+21B_2(1000\,\mathrm{K})=+21 cm³/mol with Boyle temperature TB=407T_B=407 K. Base error found and fixed: the base labelled the two-cluster integral "b1b_1" and wrote B2=−b1B_2=-b_1; the standard convention (and the exemplar) uses b1=1b_1=1 for the single-vertex ideal term and b2=12∫fb_2=\tfrac12\int f for the two-cluster integral, so B2=−b2B_2=-b_2 — corrected here in the text and cheat sheet.

Prerequisites. Configuration integral · The Mayer f-function · Mayer cluster expansion.

Leads to. Virial expansion of the equation of state · Third and higher virial coefficients · Van der Waals from the virial expansion · Law of corresponding states.

Why exactly one half, and where does it come from?

The half is the two-particle symmetry factor. In the configuration-integral expansion, the sum over interacting pairs is ∑i<j\sum_{i<j}, which for NN particles is (N2)=12N(N−1)\binom{N}{2}=\tfrac12 N(N-1) terms — the 12\tfrac12 prevents counting the pair (i,j)(i,j) and (j,i)(j,i) twice. That same 12\tfrac12 propagates into b2=12∫f d3rb_2=\tfrac12\int f\,\mathrm{d}^3r and hence into B2=−b2=−12∫f d3rB_2=-b_2=-\tfrac12\int f\,\mathrm{d}^3r. If you saw B2=−∫f d3rB_2=-\int f\,\mathrm{d}^3r without the half, someone has either absorbed it into a different definition of the integral or made an error; the standard result carries the explicit factor of one half.

How can B₂ be measured, given it's an integral over a microscopic potential?

You do not measure the integral directly — you measure the equation of state and read B2B_2 off as a slope. From accurate PP–VV–TT data at fixed temperature, plot the compressibility factor Z=P/(nkBT)Z=P/(nk_BT) against density nn; the slope at n→0n\to0 is exactly B2(T)B_2(T). Repeating at several temperatures maps out B2(T)B_2(T), whose shape (high-TT plateau, zero crossing, low-TT divergence) then constrains the pair potential. So the microscopic integral and the macroscopic slope are two faces of the same coefficient, which is precisely what makes B2B_2 the bridge between force law and thermodynamics.

Does a positive B₂ mean there is no attraction between the molecules?

No. B2B_2 is a net quantity — the competition between the positive core contribution and the negative well contribution. A positive B2B_2 only means the repulsive core wins at that temperature, not that attraction is absent. The very same molecules, cooled below their Boyle temperature, will show B2<0B_2<0 as the attraction (which is always there) comes to dominate the thermal average. The temperature dependence of B2B_2 is the honest fingerprint: the attraction reveals itself in how strongly B2B_2 falls as TT decreases, even while B2B_2 is still positive.

Why does the low-temperature divergence of B₂ signal condensation?

As T→0T\to0 the attractive-well term eβε−1e^{\beta\varepsilon}-1 grows without bound, so B2→−∞B_2\to-\infty. Physically, molecules spend ever more time in each other's attractive wells, and the "effective volume" one molecule attracts toward another grows without limit. But the virial expansion Z=1+B2n+⋯Z=1+B_2n+\cdots assumes B2n≪1B_2n\ll1; a diverging B2B_2 means that assumption fails at any finite density, i.e. the gas is no longer dilute in the relevant sense. That is the mathematical shadow of condensation: the two-body description breaks down because the molecules are clumping, and the honest response is to abandon the low-density series near the transition.

What is the relationship between B₂ and the van der Waals constants a and b?

Split B2B_2 into its core and tail contributions: the hard core gives the temperature-independent b=2π3σ3b=\tfrac{2\pi}{3}\sigma^3 (four times the molecular volume), and the weak attractive tail, linearized as e−βu−1≈−βue^{-\beta u}-1\approx-\beta u, gives −a/kBT-a/k_BT with a=2π∫σ∞∣u∣r2 dra=2\pi\int_\sigma^\infty|u|r^2\,\mathrm{d}r. So B2(T)=b−a/kBTB_2(T)=b-a/k_BT, which is exactly the low-density expansion of the van der Waals equation of state. This is the cleanest microscopic justification of the van der Waals constants: bb is a geometric excluded volume and aa is an integrated attraction strength, both computed here from the pair potential rather than fitted. The full re-summation into the van der Waals equation is owned by aq-sm-van-der-waals-derivation.

Is B₂ enough to describe a moderately dense gas, or do I need B₃?

It depends on how dense and how precise. The correction from B2B_2 is B2nB_2n; the correction from B3B_3 is B3n2B_3n^2, smaller by roughly B3n/B2∼n×(molecular volume)B_3n/B_2\sim n\times(\text{molecular volume}). For a gas at ordinary pressures this is tiny, so B2B_2 alone captures non-ideality to a fraction of a percent. As you raise the density toward the critical region, B3B_3 (and higher) become necessary, and near condensation no finite truncation works. For precision equation-of-state work at moderate density, B2B_2 and B3B_3 together (the latter owned by aq-sm-higher-virial-coefficients) are the standard toolkit.

Before this

Where this leads