Gibbs free energy
The total Gibbs free energy is therefore: