Van der Waals from the Virial Expansion
The van der Waals equation was born as an inspired guess: shrink the volume by for the space molecules occupy, and drop the pressure by for their mutual attraction. This article shows the guess is exactly right — to first order in density — and computes what and actually are in terms of the forces between molecules. That is the microscopic derivation the equation (aq-sm-van-der-waals-equation) takes for granted. The engine is the virial expansion (aq-sm-virial-expansion), whose leading correction is the second virial coefficient , a single integral over the Mayer function (aq-sm-mayer-f-function). Feed it a realistic potential — an impenetrable hard core plus a shallow attractive tail — and the integral splits into precisely the two pieces van der Waals intended. The hard core contributes a temperature-independent excluded volume ; the attractive tail, linearized for weak binding, contributes with an integral over the tail. The result is . The final move closes the loop: expand the van der Waals equation itself to order and read off its second virial coefficient. It is — identical to the microscopic one. So matching the leading density correction identifies the phenomenological constants with definite integrals over the pair potential, and the folk recipe ", " is revealed as the exact low-density truncation dressed up as a closed equation. One must be honest about the status. Matching fixes and exactly, but the van der Waals equation then makes definite — and generally wrong — predictions for the higher coefficients . For hard spheres it gives , whereas the exact value is , an overestimate by a factor . The van der Waals equation is therefore the simplest closed-form interpolation consistent with the exact low-density limit, not a systematic expansion — a distinction worth keeping sharp.
- The van der Waals constants and are not free parameters: they emerge from the second virial coefficient of a gas of hard cores plus a weak long-range attraction.
- Splitting at the core radius gives a -independent excluded-volume piece and an attractive piece : exactly .
- The hard core gives — four times the molecular volume — while the attractive tail integrates to .
- Expanding the van der Waals equation to order reproduces this same , so the derivation is exact only to first order in density; the full equation is an approximate resummation of the excluded-volume effect.
- The construction is the cleanest bridge from the microscopic Mayer cluster expansion to a macroscopic equation of state, and it underlies the law of corresponding states.
- Key idea: compute for a hard-core-plus-attraction potential; the repulsion gives a -independent excluded volume and the attraction gives , so — precisely the second virial coefficient of the van der Waals equation.
Where this lives today
The split that produces and — a hard repulsive reference carrying the fluid's structure, plus a weak attractive tail treated as a perturbation — is the founding idea of modern liquid-state theory. Barker–Henderson and Weeks–Chandler–Andersen perturbation theories make this rigorous: the reference hard-sphere fluid is solved accurately (its structure factor is known nearly exactly), and the attraction is added as a controlled correction. These theories power the equations of state used to model everything from liquid metals to colloidal suspensions and protein solutions, where a short-ranged attraction on top of excluded volume governs phase behaviour. The derivation also anchors primary metrology. Second (and third) virial coefficients computed from ab initio pair potentials for helium — the same evaluated for a quantum-accurate potential — underpin acoustic and dielectric-constant gas thermometry, part of how the kelvin is now realized and how the Boltzmann constant was pinned down. In every case the through-line is the one this article establishes: a macroscopic constant of an equation of state is, at bottom, an integral over the forces between two molecules.
The physical picture
Watch two molecules approach. At short range they cannot interpenetrate — a hard wall — so configurations where their centres are closer than the diameter are simply forbidden. That removal of configuration space is the excluded volume: it pushes the pressure up, and it is temperature-independent because a wall is a wall at any temperature. At longer range the molecules feel a gentle attraction, so configurations where they sit near each other are weighted more (the Boltzmann factor exceeds one). That extra weight lowers the energy and reduces the pressure — the term. The single second virial coefficient carries both effects, one positive and constant, one negative and temperature-dependent. The first figure is the potential and its split. A realistic pair potential is a steep repulsive core at and a shallow attractive well beyond. The Mayer function turns this into something bounded and short-ranged: inside the core (the Boltzmann factor vanishes), and in the attractive region at not-too-low temperature. The integral therefore receives a positive contribution from the core (where ) and a negative contribution from the well (where ).
The second figure is the payoff and the punchline. Because attraction carries the , it dominates at low temperature and fades at high temperature, so rises from strongly negative values (attraction-dominated) at low , crosses zero at the Boyle temperature , and saturates toward the hard-core value at high . The two van der Waals constants are literally the intercept and the slope of this curve: is the high- plateau, and sets where the zero-crossing sits.
The van der Waals equation can even be read off without any integral, by two heuristic substitutions in the ideal gas law: replace by the free volume , and reduce the pressure by a mean-field attraction . The virial derivation shows this folk recipe is exact to first order in density and tells you precisely what and mean — the whole point of this article.
The core equations
The starting point is the virial expansion in density, whose second coefficient is a single integral over the pair potential.
where: — number density; — the -th virial coefficient (); — the Mayer function (owned by aq-sm-mayer-f-function); . The identity is delivered by the cluster expansion; the inversion of the fugacity series that produces it is owned by aq-sm-virial-expansion. For a spherically symmetric potential the pair integral collapses to a one-dimensional radial integral.
where: the factor is (half from the pair symmetry, from the angular integration). This single integral is the whole microscopic content of the second virial coefficient; everything below is evaluating it for the van der Waals model potential. The model is the simplest realistic one: an impenetrable core and a weak attractive tail.
where: — hard-core diameter (closest centre-to-centre approach); — the shallow attractive tail. The weakness condition is what lets us linearize the Boltzmann factor in the tail region, and it is the assumption that makes the attractive contribution scale as . Evaluating (2) on this model splits it cleanly into the two van der Waals constants.
where: — molar excluded volume, four times the molecular volume; — molar cohesion, an integral over the attractive tail. (Per molecule, drop the factors.) This is the second virial coefficient predicted by the van der Waals equation, closing the identification.
The goal is to evaluate for the model potential (3) and show it equals , with and definite integrals over the potential. The strategy is to split the radial integral at the core diameter : inside the core the Boltzmann factor vanishes so exactly, giving a temperature-independent volume; outside, the attraction is weak so we linearize the Boltzmann factor, giving a term proportional to . The subtle point to watch is the sign — the attractive tail has , so there, and the minus sign in front of turns it into the negative contribution .
Step 1. Split at the core. Write . Why: the potential has two qualitatively different regions — an infinite wall and a weak well — so the integral naturally separates at , and each region contributes one van der Waals constant.
Step 2. Core region. For , , so and . The contribution is (per molecule). Why: inside a hard wall no configuration is allowed, so takes its most negative value everywhere; the minus sign out front flips it positive — excluded volume raises the pressure. Note there is no temperature here.
Step 3. Tail region. For with , expand (since ). The contribution is with . Why: weak attraction lets the exponential be linearized, which is exactly what produces the dependence; the result is negative because attraction lowers the pressure.
Step 4. Assemble. Adding the two regions, per molecule; multiply by and by for molar constants. Why: the two regions contribute the two van der Waals constants; the temperature-independent from the wall and the attraction from the tail are precisely the ingredients van der Waals postulated. *Verified: the core integral , the tail integral for a representative tail, and the assembled are checked symbolically in verify_van-der-waals-derivation.py, matching Pathria & Beale §10.1 and Reif §10.4.*
Go deeper · Derivation B · 1 minExcluded volume: why b is four times the molecular volume
The goal is the famous geometric factor: the excluded volume per molecule is four times the volume of one molecule, not equal to it. The strategy is to compute the volume from which one sphere's centre is excluded by another, recognize it as eight molecular volumes, and then halve it because the exclusion is shared between the two partners of a pair. The point to watch is the two distinct factors of two — one from diameter-versus-radius in the forbidden ball, one from sharing the exclusion between the pair — which combine to the net factor of four.
Step 1. The forbidden ball. Two hard spheres of diameter (radius ) cannot have their centres closer than . So the centre of sphere 2 is excluded from a ball of radius about sphere 1, of volume . Why: the closest approach of centres is one full diameter, so the forbidden region has radius , not — this is the first factor of two.
Step 2. One molecular volume. A single molecule has radius , so . Why: this is the actual physical volume a molecule occupies, the naive quantity one might guess for .
Step 3. The ratio is eight. . Why: the forbidden ball has twice the radius of a molecule, hence times the volume — a pair excludes eight molecular volumes.
Step 4. Share between the pair. The exclusion belongs jointly to the two members of the pair, so per molecule . Why: assigning half the pair's excluded volume to each partner turns the eight into four — the celebrated van der Waals factor, and it agrees exactly with the core integral of the previous card. *Verified: the pair-excluded-volume-to-molecular-volume ratio and the per-molecule are checked symbolically in verify_van-der-waals-derivation.py, matching Kardar Ch. 5 and Reif §10.3.*
Limiting cases
The behaviour of across temperature regimes maps directly onto real-gas non-ideality.
| Case | Result | Meaning |
|---|---|---|
| High temperature | Attraction negligible; only excluded volume survives, gas harder to compress than ideal. | |
| Boyle temperature | , so | Excluded volume and attraction cancel; the gas mimics ideal to order . |
| Low temperature | Attraction dominates; pressure falls below ideal, foreshadowing condensation. | |
| Dilute limit | Where the matching of is exact — vdW agrees with experiment here by construction. | |
| Higher coefficients (hard spheres) | vs exact | vdW overestimates by ; the resummation is exact only through . |
Worked examples
1 · Excluded volume of argon and its molecular size (confidence builder)
We turn a measured van der Waals constant into a molecular diameter, computing a real number from real data.
Step 1. Argon's critical data ( K, Pa) invert to the molar m³/mol (the inversion is owned by aq-sm-van-der-waals-equation).
Step 2. From , solve for the diameter: .
Step 3. Evaluate: . Compare with the Lennard-Jones diameter of argon, nm — the same size to within the expected accuracy of a hard-core caricature.
Step 4. The check on the factor of four: the molecular volume implied is m³, so m³/mol — and indeed , the excluded-volume factor of four confirmed from data. A tabulated constant has yielded a molecular size and verified the geometry.
2 · Nitrogen: excluded volume, attraction, and the Boyle temperature (exam level)
We assemble both van der Waals constants for nitrogen and locate its Boyle temperature, checking against the measured value.
Step 1. Nitrogen's molar m³/mol. From , , consistent with diffraction and viscosity estimates.
Step 2. Nitrogen's molar Pa·m⁶/mol². The Boyle temperature is where , i.e. per molecule, or in molar form .
Step 3. Evaluate: using the tabulated m³/mol. The commonly quoted experimental Boyle temperature of nitrogen is K; the van der Waals estimate is the right order of magnitude, high because the weak-attraction linearization and the hard-core caricature both push up.
Step 4. Interpretation: below nitrogen is more compressible than ideal (attraction wins, ); above it is stiffer than ideal (excluded volume wins, ). The single ratio sets this crossover, and measuring constrains without needing either constant alone. Two van der Waals constants, one molecular size, and a crossover temperature — all from the second virial coefficient.
Origins · 1 minvan der Waals equation and how this was discovered
The van der Waals equation is the closed two-parameter equation of state , and its microscopic derivation is the demonstration that its constants and are not adjustable fudge factors but definite integrals over the intermolecular potential. The route runs through the second virial coefficient of the Mayer cluster expansion: for a hard-core-plus-attraction potential the integral splits at the core radius into a temperature-independent excluded volume (four times the molecular volume) and an attractive piece with . Expanding the van der Waals equation itself to first order in density reproduces exactly this , identifying the constants. The construction is honest about its limits: it is exact only through the second virial coefficient, and its predictions for and beyond are wrong (for hard spheres it gives versus the exact ). This clean separation of a hard repulsive reference from a weak attractive perturbation is the historical seed of modern liquid-state perturbation theory, from Barker–Henderson to Weeks–Chandler–Andersen.
Going further
Texts. Pathria & Beale, Statistical Mechanics, 3rd ed., §3.7, §§10.1–10.3. Kardar, Statistical Physics of Particles, Ch. 5. Reif, Fundamentals of Statistical and Thermal Physics, §§10.3–10.4. Sethna, Statistical Mechanics, Ch. 11. Hansen & McDonald, Theory of Simple Liquids (perturbation theory, ).
Provenance. Base article: AllQFT track `sm`, "Van der Waals from the Virial Expansion" (STAT.INTER.VDWDR.1251); source Pathria & Beale §10.1, Reif §10.4, Kardar Ch. 5. All symbolic and numeric claims re-verified in verify_van-der-waals-derivation.py: the core integral , the attractive-tail integral, the assembled , the vdW-expansion recovery of the same , , the excluded-volume factor of four (pair volume , shared ), and the hard-sphere versus exact (ratio ). Numerics: argon m³/mol nm with ; nitrogen nm. No base physics error found. (Note: the vdW-estimated runs high versus the measured value, an expected consequence of the weak-attraction linearization — stated in the worked example, not hidden.)
Prerequisites. Second Virial Coefficient · The Mayer f-Function · Virial Expansion of the Equation of State · Configuration Integral and the Interacting Partition Function.
Leads to. Van der Waals Equation of State · Maxwell Construction and Coexistence · Law of Corresponding States · Irreducible Cluster Integrals and the Virial Series.
Why does the hard core give a temperature-independent b but the attraction gives a temperature-dependent a/(k_BT)?
Because the two regions enter the Mayer function completely differently. Inside the hard core, at every temperature, so regardless of — a wall is impassable whether the gas is hot or cold, so its excluded-volume contribution carries no temperature. In the attractive tail, is finite and weak, so , and this explicit is where the temperature dependence enters. Physically, whether a molecule notices the shallow attraction depends on how fast it is moving: cold molecules linger in the well and feel it strongly, hot ones whiz past — hence the .
Is the attractive constant a really positive, given the potential is negative?
Yes, and the bookkeeping is worth being careful about. The attractive tail has , so there. The second virial coefficient carries an overall minus sign, , so the tail contributes a negative amount to . We package that negative contribution as with , which is manifestly positive because it integrates the magnitude . So and it enters with a minus sign — attraction lowers and the pressure, exactly as it should. Getting the two sign flips (the in , the in front of ) straight is the whole subtlety.
If matching B₂ fixes a and b, why does the van der Waals equation get higher virial coefficients wrong?
Because matching constrains only the first density correction, while the closed van der Waals form makes definite predictions for all the higher coefficients through its algebraic structure — and those predictions are not the true ones. Expanding in density, the excluded-volume denominator generates a geometric series for the repulsive part. For hard spheres this gives , but the exact three-body irreducible cluster integral gives (owned by aq-sm-higher-virial-coefficients). So van der Waals overestimates by . The equation is an uncontrolled but physically motivated resummation that happens to be exact through — not a systematic truncation of the virial series.
Could you derive a and b from a Lennard-Jones potential instead of a hard core plus tail?
You can, and it sharpens the picture. For a full Lennard-Jones potential there is no infinitely hard wall, so the "excluded volume" becomes temperature-dependent and is the exact integral , computed numerically (this is owned by aq-sm-second-virial-coefficient). The van der Waals split into a strictly constant and a strictly attraction is the idealization you get by replacing the steep LJ core with a true hard wall of some effective diameter and linearizing the shallow well. The effective diameter comes out close to the LJ — the argon example gives nm versus nm — which is why the caricature works as well as it does. Barker–Henderson theory makes the effective-diameter idea precise.
What does the Boyle temperature physically mean here?
It is the temperature at which the two competing effects in exactly cancel: , i.e. . Above it, excluded volume wins and the gas is stiffer than ideal (); below it, attraction wins and the gas is softer than ideal (). At itself the leading density correction vanishes, so the gas behaves ideally over an extended range of pressures even though the molecules genuinely interact — the repulsion and attraction just happen to balance to first order in density. Measuring therefore fixes the ratio (the balance of attraction to size) independently of either constant, and it is one of the cleanest experimental handles on intermolecular forces.
Why does the mean-field resummation replace V by V − Nb rather than keeping the density series?
The virial derivation gives only the leading correction , valid at low density. To reach liquid densities van der Waals made a bold resummation: he assumed the excluded volume simply reduces the accessible volume to at every density, and the attraction lowers the pressure by a mean-field . This turns the truncated density series into a closed equation with the excluded-volume effect built in to all orders — but only approximately, since the true many-body excluded-volume corrections are not captured by a simple . That is exactly why the equation is right through but overshoots (giving instead of ). The resummation trades systematic accuracy for a closed form that reaches the liquid and predicts a critical point — a bargain that made the equation historically decisive despite its quantitative flaws.