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⟩=⋯=−∂∂βln⁡Z,S=⋯=k(ln⁡Z+β⟨E⟩)=k(ln⁡Z−β∂∂βln⁡Z),

And Helmholtz free energy, defined as

F:=U−TS.

So:

F=U−(U+kTln⁡Z)=−kTln⁡Z.