Helmholtz free energy
Combining the definition of Helmholtz free energy