Partition function

For a classical system in the canonical ensemble at temperature T, the partition function is

Z(β)=1hfΓeβH(q,p)dqdp,

where:

It acts as the normalizing constant for the Boltzmann distribution and contains all thermodynamic information.

From Z(β) one can obtain:

E==βlnZ,S==k(lnZ+βE)=k(lnZββlnZ),

And Helmholtz free energy, defined as

F:=UTS.

So:

F=U(U+kTlnZ)=kTlnZ.