Pressure from the partition function
Definition (canonical pressure).
In the canonical ensemble
, the pressure is defined thermodynamically by
where is the statistical free energy . Using with the canonical partition function , this becomes the standard partition-function formula
This identity is one of the central instances of obtaining observables from log Z .
Grand canonical form.
In the grand canonical ensemble
, with grand partition function
,
For homogeneous systems in the thermodynamic limit , is extensive in , and one commonly writes the equivalent scaling relation
Physical interpretation.
Pressure measures the reversible work required to change volume: . The partition function (or ) encodes how the weighted count of microstates changes when the accessible configuration space expands or contracts. Differentiating with respect to extracts precisely that response, producing the macroscopic force per area. This statistical definition is consistent with thermodynamic pressure
.
Example (ideal gas).
For a classical ideal gas, is proportional to , so , and the formula above yields
Lattice systems note.
On a lattice in a finite region finite box
, “volume” is . One often defines the (dimensionless) pressure/free-energy density as , which is the lattice analogue of the continuum scaling behind the formulas above.