The expression for the infinitesimal reversible change in the Gibbs free energy as a function of its "natural variables" p and T, for an open system, subjected to the operation of external forces (for instance, electrical or magnetic) X i, which cause the external parameters of the system a i to change by an amount d a i, can be derived as follows from the first law for reversible processes: