Condition for mechanical equilibrium
Condition for chemical equilibrium
The Gibbs-Duhem equation for single component (for each of the phases) yields