In a system in which substances A, B, X, and Y are mixed, it is natural that they may not be in equilibrium.
In general (not necessarily in equilibrium), the sum of the Gibbs energyof a substance, in its original or product form, is expressed as
(energy required to synthesize a substance in its standard state: standard Gibbs energy of formation) + (energy required to change a substance from its standard state to an arbitrary state or concentration).
Energy to change a substance from its standard state to an arbitrary state or concentration = RT・ln (activity product).
(Expression derivation will be covered in a later course.)
ΣGoriginal form = ΣGforiginal form + RT・ln (activity product of the original form)
ΣGproduct form = ΣGfproduct form+ RT・ln (activity product of the product form)
The total difference in Gibbs energy (⊿∑Gproduct form-original form) between substances constituting the original form and the product form,
⊿∑Gproduct form-original form = ΣGproduct form- ΣGoriginal form
= (ΣGfproduct form+ RT・ln (activity product of the product form)) - ( ΣGforiginal form + RT・ln (activity product of the original form))
= ΣGfproduct form - ΣGforiginal form + RT・ln (【activity product of the product form】/【activity product of the original form】)
= ⊿∑Gf0 + RT・ln (【activity product of the product form】/【activity product of the original form】)
(⊿∑Gf0 :Difference between the standard Gibbs energy of formation of substances present in the product and in the original form.)
Note 1: The 【activity product of the product form】 and 【activity product of the original form】 described here mean the product of any activity when not necessarily in equilibrium.
Note 2: Since the term "activity" is unfamiliar to most people, please assume that "activity" = "concentration" for now.
When in equilibrium,
⊿∑Gproduct form-original form= 0
In other words,
⊿∑Gf0 = -RT・ln (【Activity product of the product form】/【activity product of the original form】).
When not in equilibrium,
If ⊿∑Gproduct form-originl form < 0, the reaction proceeds from 【original form】 to 【product form】.
If ⊿∑Gproduct form-originl form > 0, the reaction proceeds from 【product form】 to 【original form】.