Problem: Derive the virial expansion for a classical gas of hard spheres, showing how the excluded volume correction emerges and computing higher-order virial coefficients.
Why the virial expansion? What are we actually computing?
Before diving into the hard sphere model, itβs worth being precise about what the virial expansion actually does and why we need it.
The ideal gas law works remarkably well, but it makes two simplifying assumptions that break down for real gases:
- Particles are point-like (zero volume)
- Particles donβt interact (no forces between them)
Real atoms and molecules violate both: they have finite size and exert forces on each other. The virial expansion systematically corrects for these effects by expanding in powers of the density:
where is the number density. The virial coefficients encode how interactions and finite size change the pressure. At low density (), we recover the ideal gas. As density increases, higher-order terms become important.
The hard sphere model captures the simplest finite-size effect: particles are impenetrable balls of diameter . The potential is:
This isnβt just a toy model β itβs the starting point for understanding real gases, liquids, and even the glass transition. The question is: how does this simple exclusion affect the equation of state?
The partition function and why itβs hard to compute
For particles with Hamiltonian:
the classical partition function separates into momentum and position integrals:
where is the thermal wavelength. The momentum integral is easy (it gives the ideal gas result), but the position integral is the challenge:
For interacting particles, the Boltzmann factor doesnβt factorize, so we canβt separate this integral into independent pieces. This is why we need the Mayer expansion.
The Mayer f-function: turning a hard problem into a series
The key trick is to define:
For hard spheres, this is remarkably simple:
Why this helps: The partition function becomes:
where . Now we can expand the product:
Each term represents a distinct cluster of interacting particles. The first term () gives the ideal gas. The linear terms () represent two-particle interactions. The quadratic terms represent three- and four-particle clusters, and so on.
Physical interpretation: The Mayer -function measures how much the pair correlation deviates from no interaction. means no interaction (particles independent). means complete exclusion (particles canβt overlap).
Keeping only the first correction: why this is enough at low density
At low density, most particles are far apart and donβt interact. We only need to keep terms where a small number of particles are close together. Keeping only the linear term in :
The first term gives (the ideal gas contribution). The second term requires evaluating:
All pairs contribute equally, so we just need to compute one integral and multiply by the number of pairs.
Variable transformation: Change to center-of-mass and relative coordinates:
The Jacobian is , and the integral separates:
The center-of-mass integral just gives the volume . The relative coordinate integral is what contains the physics.
The second virial coefficient: what it actually means
Carrying through the algebra, the equation of state becomes:
For hard spheres:
This integral is the volume excluded by one sphere (of radius ) β but with a negative sign because in the excluded region.
Plugging this in:
where the second virial coefficient is:
Geometric meaning: is four times the volume of one sphere. The factor of 4 comes from: each particle excludes a sphere of radius around itself (volume ), and we have to divide by 2 to avoid double-counting pairs.
Excluded volume: the physical picture
Rewriting the result as:
where is the excluded volume, we see something beautiful:
The hard sphere gas behaves like an ideal gas with reduced volume.
Each particle excludes a sphere of radius around itself (volume ). For particles, the total excluded volume is , but we must multiply by 2 because each pair shares the exclusion. This gives .
Physical consequence: The pressure is higher than the ideal gas at the same density and temperature:
This makes intuitive sense: collisions between finite-sized particles transfer momentum more effectively than non-interacting point particles. The particles βbounce offβ each other, increasing the pressure on the container walls.
Higher-order corrections: when do we need them?
The virial expansion doesnβt stop at . The next term involves three-particle clusters and gives . For hard spheres:
Each higher coefficient involves more complicated cluster integrals. A clever approach uses the reduced variable (the fraction of volume excluded):
where the coefficients are pure numbers determined by geometry. Computing them:
The generating function for this sequence is:
Expanding this confirms the coefficients above. This resummed expression is valid for β physically, the excluded volume canβt exceed the total volume.
When does this matter? The expansion parameter is . For gases at STP, , so is a small correction. For liquids, , and many terms are needed.
Summary
| Quantity | Result | Physical meaning |
|---|---|---|
| Mayer -function | for , otherwise | Measures deviation from non-interacting |
| Second virial coefficient | Four times the volume of one sphere | |
| Excluded volume | Volume unavailable to other particles | |
| Pressure correction | Ideal gas with reduced volume |
Key insight: The virial expansion provides a systematic way to go from point particles to real gases with finite size. Even the first correction captures the essential physics of excluded volume β particles have less room to move than they would in an ideal gas, so they hit the walls more often and increase the pressure.
This framework generalizes to arbitrary intermolecular potentials: just replace the hard-sphere with the appropriate function and recompute the cluster integrals. The hard sphere result is the foundation for understanding real gases, liquids, and the dense matter physics that connects them.