2. Gibbs and Helmholtz Equations