Legendre transform from internal energy to Gibbs free energy
Let the internal energy be written in the energy representation (see internal energy ). The conjugate variables are temperature and pressure .
Definition (Gibbs free energy as a double Legendre transform).
The Gibbs free energy is obtained by trading for via a two-variable Legendre transform
:
At the minimizer , the stationarity conditions enforce
Equivalently, one can perform the transform sequentially: first form the enthalpy by transforming in , then transform in to get ; or start from the Helmholtz free energy and transform in to get at the volume where .
Differential and physical meaning.
The Gibbs free energy obeys
so at fixed the equilibrium macrostate minimizes . This is why (the Gibbs free energy ) governs phase coexistence and chemical equilibrium under laboratory conditions where and are controlled.
Statistical-mechanical representation.
In the isothermal–isobaric ensemble
, is obtained from the NpT partition function
by the same rule as other equilibrium potentials:
Derivatives of recover response variables; for example, the chemical potential satisfies , connecting this construction to chemical potential from entropy and the thermodynamic chemical potential .