Statistical mechanical free energy

Free energy defined from the partition function; it generates thermodynamic observables and encodes equilibrium via a variational principle.
Statistical mechanical free energy

Definition (canonical free energy).
For a system with HH in the , the at inverse temperature is Z(β,V,N)Z(\beta,V,N). The Helmholtz free energy in statistical mechanics is

F(T,V,N)=kBTlnZ(β,V,N),β=1kBT. F(T,V,N) = -k_B T \,\ln Z(\beta,V,N), \qquad \beta=\frac{1}{k_B T}.

It matches the thermodynamic in the thermodynamic limit (up to conventions for additive constants).

Equivalently, one often uses the dimensionless free energy (Massieu potential)

Φ(β,V,N)=lnZ(β,V,N), \Phi(\beta,V,N)=\ln Z(\beta,V,N),

which is especially convenient because its derivatives produce .

Key formulas (generating properties).
Let \langle \cdot \rangle denote the in the canonical ensemble. Then

H=βlnZ,S=kB(lnZ+βH), \langle H\rangle = -\frac{\partial}{\partial \beta}\ln Z, \qquad S = k_B\big(\ln Z + \beta \langle H\rangle\big),

and the pressure can be extracted via .

Variational (Gibbs) principle.
Let ρ\rho range over all normalized probability densities on phase space (or over all probability measures on microstates). The functional

F[ρ]=HρTSG[ρ] \mathcal{F}[\rho]=\langle H\rangle_\rho - T\,S_G[\rho]

uses the SG[ρ]S_G[\rho]. The canonical equilibrium state minimizes F[ρ]\mathcal{F}[\rho], and its minimum value equals F(T,V,N)F(T,V,N). This viewpoint is tightly connected to and convex duality ideas such as the .

Other ensembles.
Analogous definitions hold in other ensembles: for the with Ξ(β,μ,V)\Xi(\beta,\mu,V), the grand potential is

Ω(T,μ,V)=kBTlnΞ, \Omega(T,\mu,V) = -k_B T \,\ln \Xi,

matching the thermodynamic . These relationships are organized conceptually by Legendre-transform constructions such as .