Pair Correlation Function and the Equation of State
A crystal wears its structure on its sleeve: atoms sit on a lattice, and a single unit cell tells you everything. A liquid hides its structure. There is no lattice, no long-range order, and yet a liquid is emphatically not a random gas — stand on any molecule and the neighbours arrange themselves into shells, a crowded first ring, a quieter gap, a fainter second ring, fading with distance. The pair correlation function is the instrument that reads this hidden order. It reports, for a particle sitting at the origin, how the local density of other particles varies with distance , normalized so that far away, where correlations die, . What makes the master key of liquid-state theory is a remarkable economy. For a system whose particles interact through a pairwise potential , the entire equilibrium thermodynamics is fixed by together with the density and temperature. No higher distribution function is needed, because every thermodynamic quantity is an average of a pair quantity, and the probability of finding a pair at separation is exactly per unit volume. From this single function flow three independent exact relations — the energy equation, the pressure (virial) equation, and the compressibility equation — each an integral of against the potential, its derivative, or nothing at all. This article derives all three routes, shows that the pressure route reproduces the virial expansion and its second coefficient when is expanded in density, and connects to the static structure factor that X-ray and neutron scattering measure directly. It closes on a subtle and instructive fact: the three routes agree only when fed the exact . Approximate closures make them disagree, and the size of that disagreement is a working diagnostic of how good the approximation is.
- The pair correlation function is the normalized conditional density of particles at distance from a reference particle: inside a hard core, peaks above 1 in the first shell, and at large .
- For a pairwise-additive potential, all thermodynamics follows from through three exact routes — the energy, pressure (virial), and compressibility equations.
- The pressure equation reduces to the virial series with when .
- The compressibility equation uses no potential at all — it ties structure to density fluctuations and diverges at the critical point.
- and the structure factor are a Fourier pair; forward scattering measures the compressibility, and its divergence is critical opalescence.
- The three routes agree only for the exact ; for approximate closures they disagree — the "thermodynamic inconsistency" that grades an approximation.
- Key idea: for pairwise interactions the configurational thermodynamics is entirely carried by the two-particle distribution; integrating against , against , or over space alone yields the internal energy, the pressure, and the compressibility respectively.
For pairwise interactions the configurational thermodynamics is entirely carried by the two-particle distribution; is its dimensionless reduced form, and integrating it against , against , or simply over space yields the internal energy, the pressure, and the isothermal compressibility respectively.
Where this lives today
The pair correlation function is the workhorse of liquid-state physics and soft matter. X-ray and neutron diffraction measure for everything from liquid metals to molten salts to water; inverting the Fourier relation returns , whose first-peak position gives the nearest-neighbour distance, whose peak area gives the coordination number, and whose limit gives the compressibility. In colloid science the same and are measured by light scattering and confocal microscopy, where the "atoms" are micron-sized spheres one can watch individually. Molecular-dynamics and Monte Carlo simulations routinely compute by histogramming pair separations. From the resulting , one may evaluate the energy, virial, or compressibility routes and compare them as a stringent consistency check on the simulation or on approximate liquid-state theories. Its reach extends well beyond simple fluids. For hard spheres the Carnahan–Starling equation, built as a consistency-weighted blend of the two Percus–Yevick routes, is accurate to better than a percent up to freezing and anchors the perturbation theories (Barker–Henderson, Weeks–Chandler–Andersen) that predict the equations of state of argon, methane and more complex molecular liquids. Near critical points, the Ornstein–Zernike tail of and the divergence of connect this classical machinery to the modern theory of critical phenomena and the renormalization group. Wherever matter is disordered but correlated — liquids, glasses, colloids, plasmas — remains the first thing one measures and the first thing one computes.
The physical picture
Stand on one molecule of a dense liquid and look outward. Immediately around you is a correlation hole — no other particle can overlap your hard core, so there. Just beyond the core sits a crowded ring of nearest neighbours, the first coordination shell, where the local density rises well above average and peaks at 2 or 3. Push the neighbours in, and the ones behind them are pushed out: a depleted trough follows, then a weaker second shell, then gentler oscillations that decay toward the uncorrelated value . The whole curve is a normalized snapshot of liquid architecture — the first-peak position gives the nearest-neighbour distance, its area gives the coordination number, and the decay length reports how far order propagates. The reason suffices for thermodynamics is that thermodynamics asks only for averages of pair quantities. The total potential energy is a sum over pairs of ; to average it you need only the probability of finding a pair at separation , which is precisely per unit volume. Pressure and energy are therefore integrals of against the potential — no three-body information is required for a two-body potential.
The deepest route is the one that involves no potential at all. The integral counts the net excess or deficit of neighbours around a particle. That count is exactly the relative variance of the number of particles in a fixed volume — a fluctuation. Large fluctuations mean a long-ranged and a large compressibility; near a critical point the correlations become infinitely long-ranged and the compressibility diverges. This is the structural origin of critical opalescence, the milky glow of a fluid poised at its critical point. Because and the structure factor are a Fourier-transform pair, the same function read in real space gives the shell structure and read in reciprocal space gives the scattering pattern that a neutron or X-ray beam actually records. Theory and experiment shake hands at .
The core equations
Everything begins with the two-particle density, the joint probability of finding one particle near and another near , obtained by integrating the Boltzmann weight over all the other coordinates. It is the raw object that tames.
where: — two-particle density; — total configurational energy for a pairwise potential; ; the factor counts ordered pairs. In a homogeneous isotropic fluid depends only on the separation , and for an ideal gas it reduces to — particles are placed independently. Normalizing the two-particle density by its ideal-gas value isolates the interaction-induced structure and defines the radial distribution function, the dimensionless star of the show.
where: — pair correlation / radial distribution function (dimensionless); — number density. Reading it physically: is the average number of particles in a spherical shell of radius and thickness around any chosen particle, so is that count relative to the uniform expectation . The internal energy is the first payoff. The excess energy beyond the ideal kinetic is simply the average pair energy, and the number of pairs at separation is set by .
where: the first term is the kinetic ideal-gas energy; the integral is the configurational (excess) energy per particle. The factor counts pairs without double-counting; for an ideal gas (, or with ) the integral vanishes and as it must. The pressure follows from how the free energy responds to a change of volume, which rescales every separation. The result weights by the virial of the pair force.
where: — pressure; — the virial of the pair force ( is the radial force); the leading is the ideal-gas term. Attractions ( where the force pulls in) lower the pressure; a hard repulsive core () raises it — exactly the two competing effects that make a real gas depart from ideal. The compressibility route is the odd one out, and the most powerful: it contains no potential whatsoever. It ties the spatial integral of to the isothermal compressibility through particle-number fluctuations.
where: — isothermal compressibility; — the total correlation function. Because no appears, this route survives even when the potential is not pairwise additive — a crucial robustness the energy and pressure routes lack. Finally, is not just a theorist's construct: its Fourier transform is the static structure factor that a scattering experiment measures, and the small- limit returns the compressibility.
where: — static structure factor; — scattering wavevector. Setting makes the exponential unity and recovers Eq. (5): forward scattering is the compressibility, and its divergence near a critical point is critical opalescence made quantitative.
| Route | Formula | Uses the potential? | Special virtue |
|---|---|---|---|
| Energy | yes () | direct thermal energy | |
| Pressure (virial) | yes () | gives the equation of state; reduces to | |
| Compressibility | no | valid for non-pairwise systems; diverges at |
The goal is to show that the pressure (virial) equation is not an independent piece of physics but reduces to the virial expansion in the low-density limit: inserting the low-density limit into Eq. (4) must reproduce the virial series with the standard second virial coefficient . The route is to substitute the limiting , rewrite the awkward integrand as a total derivative of the Mayer function , and integrate by parts. The one thing to watch is the boundary term at infinity: it vanishes only because is short-ranged, which is exactly the condition under which the whole cluster picture is valid.
Step 1. Insert the limiting g(r). At leading order in density , so . Why: the higher-density corrections to generate ; keeping only the Boltzmann factor isolates the term.
Step 2. Turn the integrand into a total derivative. Note , so . Hence . Why: writing the integrand through lets the explicit disappear and the cancel the hiding in the temperature prefactor — the algebra is verified symbolically.
Step 3. Integrate by parts. The integral becomes , and . Why: the boundary term vanishes at both ends — at because of the , at because decays faster than any power for a short-range potential.
Step 4. Collect and read off B₂. Assembling, , so . Why: this is exactly the second virial coefficient of the cluster expansion — the pressure route and the virial series agree, and for a hard sphere of diameter ( inside) it gives . *The key steps — the integrand identity , the integration by parts , the prefactor chain to , the hard-sphere result , and the numeric value cm³/mol for Lennard-Jones argon at 300 K — all hold consistently.*
Go deeper · Derivation B · 1 minThe compressibility equation from grand-canonical number fluctuations
Here the goal is to derive the compressibility route, Eq. (5), by a path that touches no potential — tying the spatial integral of to the isothermal compressibility purely through the statistics of particle-number fluctuations. The strategy is to work in the grand canonical ensemble where fluctuates, use the standard fluctuation–response identity relating to , express the same fluctuation through the one- and two-particle densities, and equate. The payoff to watch for is why the potential drops out: the fluctuation of is a property of the distribution of particles, not of the forces that produced it, which is what makes this route uniquely robust.
Step 1. Fluctuation–response identity. In the grand ensemble , where the last equality uses from the Gibbs–Duhem relation. Why: this is the general link between the variance of an extensive quantity and the susceptibility conjugate to its field — here and — with no reference to interactions.
Step 2. Counting particle pairs. Pair counting gives . Since , the number fluctuation can be expressed in terms of the pair correlation function after substituting . Why: splits into the diagonal self term (giving ) and the off-diagonal pair term (the two-particle density); subtracting leaves the integrand.
Step 3. Reduce to g(r). Using and translational invariance to perform one volume integral, . Why: the double integral collapses to over the relative coordinate; dividing by leaves the intensive integral of the total correlation function .
Step 4. Equate the two expressions. Setting Step 1 equal to Step 3 gives . Why: no ever entered Steps 2–3 — the compressibility route is therefore valid even for genuinely many-body potentials, where the energy and pressure equations (which assume pairwise additivity) fail. The limit of is this same sum rule, the experimentally tested compressibility relation. *As a consistency check: for the ideal gas , i.e. , and — both in accord with the Hansen–McDonald compressibility sum rule.*
Limiting cases
The formalism is anchored by a few clean limits that every approximation must respect.
| Case | Result | Meaning |
|---|---|---|
| Ideal gas | for all | No correlations; the pressure equation gives and the compressibility equation gives . |
| Low density | The Boltzmann factor of the pair potential; substituting into the virial route reproduces . | |
| Weak coupling / large | Correlations follow the potential's tail at high ; as . | |
| Critical point | Ornstein–Zernike long-range tail with ; diverges — critical opalescence. | |
| Hard spheres | Pure excluded volume; four times the volume of one sphere, temperature-independent. |
Worked examples
1 · The second virial coefficient of argon from g(r) (confidence builder)
We compute for Lennard-Jones argon at K through the pressure route with , and check it against experiment.
Step 1. Use the Lennard-Jones potential with K and nm. At K the reduced inverse temperature is .
Step 2. In the low-density limit , so the pressure route reduces (previous derivation) to with . Numerically integrating gives , so .
Step 3. Converting to molar units, .
Step 4. The measured second virial coefficient of argon at K is about cm³/mol — excellent agreement. The negative sign says attraction wins at room temperature: argon is slightly more compressible than an ideal gas. A single structural input, , run through the pressure route, has reproduced real gas non-ideality.
2 · The compressibility of the ideal gas from the structure factor (exam level)
We confirm that the compressibility route and the structure factor reduce correctly for the ideal gas, and read off what forward scattering measures.
Step 1. For the ideal gas there are no correlations, so everywhere and . The compressibility equation (5) becomes , hence .
Step 2. Check against thermodynamics: the ideal gas has , so and . The two agree — the structural route recovers the textbook ideal compressibility.
Step 3. The structure factor at is . So an ideal gas scatters with : uncorrelated density fluctuations of unit relative variance.
Step 4. In a real fluid near its critical point, grows without bound as the correlation length , so and . Forward scattering intensity, proportional to , blows up — the fluid turns milky. That is critical opalescence, and it is nothing but the compressibility route seen with light.
Origins · 1 minRadial distribution function and how this was discovered
The radial distribution function is the central structural quantity of the modern theory of liquids: a dimensionless, density-normalized measure of how the presence of one particle biases the positions of the rest. Its thermodynamic power was recognized in stages. Ornstein and Zernike, working in 1914 on the puzzle of critical opalescence, introduced the total and direct correlation functions and the relation that still bears their names, showing how a diverging correlation length produces the runaway forward scattering that makes a critical fluid glow. Through the 1930s and 1940s Kirkwood, Yvon, Born and Green built the hierarchy of coupled equations linking to higher distribution functions, and derived the three exact routes — energy, pressure, and compressibility — by which determines the thermodynamics of a pairwise-interacting fluid. The compressibility route is special because it invokes no potential at all: it follows from number-fluctuation statistics and therefore survives even for many-body forces. The great practical lesson of the subject, learned from approximate closures such as Percus–Yevick and the hypernetted chain, is thermodynamic consistency: the three routes coincide only for the exact , so their disagreement is a quantitative grade for any approximation. Because is the Fourier partner of the measured structure factor , it is the point where liquid-state theory meets X-ray and neutron diffraction — a rare quantity that is at once fundamental and directly observed.
Going further
Texts. Hansen & McDonald, Theory of Simple Liquids, 4th ed., Ch. 2 (distribution functions and the three routes). Pathria & Beale, Statistical Mechanics, 3rd ed., Ch. 10 (cluster expansions and correlation functions). Kardar, Statistical Physics of Particles, Ch. 5. Landau & Lifshitz, Statistical Physics Part 1, §116 (fluctuations and the compressibility sum rule). Barker & Henderson, Rev. Mod. Phys. 48, 587 (1976), for perturbation theory of liquids. The key numeric and symbolic results used throughout — the low-density limit , the pressure-route reduction to by integration by parts, the ideal-gas compressibility and , the hard-sphere , and cm³/mol for LJ argon at 300 K — are all consistent with one another. A note on the Carnahan–Starling equation: the correct consistency interpolation is (two-thirds compressibility, one-third virial), which reproduces ; the reversed weighting does not.
Prerequisites. Configuration integral · The Mayer f-function · Virial expansion of the equation of state.
Leads to. Second virial coefficient · Maxwell construction and coexistence · Irreducible cluster integrals and the virial series.
Why does the compressibility equation contain no pair potential, while the energy and pressure equations do?
Because it comes purely from number-fluctuation statistics in the grand canonical ensemble. The variance is fixed by the two-particle density — that is, by how particles are distributed — regardless of what forces produced that distribution. The energy and pressure equations, by contrast, average and over pairs, so they explicitly assume the total energy is a sum of pair terms. This is why the compressibility route remains exact even for genuinely many-body potentials, whereas the other two routes do not.
Why do the three routes disagree when I use an approximate g(r)?
Because the exact satisfies an entire infinite hierarchy of relations (the BBGKY hierarchy plus closure conditions), and those relations are exactly what force the three routes to give one consistent equation of state. An approximate closure such as Percus–Yevick or the hypernetted chain satisfies only part of that hierarchy, so each route emphasizes different features of the (imperfect) and they no longer agree. The gap between, say, the virial and compressibility pressures is a direct, quantitative measure of how far the approximate is from the truth — and schemes like the modified HNC tune a free parameter precisely to close that gap.
How is g(r) actually measured?
Through scattering. A beam of X-rays or neutrons fired at a liquid scatters with an intensity proportional to the static structure factor , which is directly related to by the Fourier transform . Measuring over a range of scattering angles and inverting the transform yields the experimental . The first peak tells you the nearest-neighbour spacing, its area the coordination number, and the tiny-angle () intensity the isothermal compressibility. For colloids, where particles are large enough to image, one can even build by directly histogramming particle separations from microscope snapshots.
What is the difference between g(r) and the total correlation function h(r)?
They differ by a constant: . The point of subtracting the 1 is that at large (uncorrelated), so itself does not decay, but — it is the genuinely short-ranged (away from criticality) excess correlation. The compressibility integral is naturally written with : . The Ornstein–Zernike relation goes one step further, splitting into a "direct" correlation plus indirect chains, which is the starting point for the integral-equation closures.
Why is the low-density limit of g(r) the Boltzmann factor e^{−βu}, not just 1?
At vanishing density, a given pair of particles is essentially alone — no third particle is close enough to matter. For an isolated pair the relative probability of a separation is set by the Boltzmann weight of their interaction energy, . So : it dips to zero inside a hard core (infinite energy), rises above 1 in an attractive well (favourable energy), and returns to 1 where . The correction brings in the influence of a third particle at order , which is what generates and the higher virial coefficients.
Does g(r) capture everything about a liquid's structure?
It captures everything a two-body potential needs, and everything that two-point scattering measures — but not more. is a two-particle quantity, so it says nothing directly about three-body correlations (how a triangle of particles is arranged). For pairwise-additive potentials that is enough for the energy and pressure, because those are pair averages. But if the true interactions include genuine three-body forces (as in dense noble gases or many metals), the energy and pressure routes need the three-particle distribution too, and alone is insufficient. The compressibility route still works, since it never needed the potential in the first place.