Consider the reaction
Where, a, b, c and d are stoichiometric coefficients Change in number of moles of each species is given by,
Substituting above equation in Gibbs function, We can get,