where S 0 is the entropy, and F and F 0 are Helmholtz free energies. The average is taken over the equilibrium ensemble of the reference system with Hamiltonian H 0 . In the special case that the reference Hamiltonian is that of a non-interacting system and can thus be written as