Physics, Thermodynamics, Equilibrium, Entropy, Statistical Mechanics.
we now additionally allow volume exchange and follow the same steps the condition of maximizing the entropy of the combined system, turns into a condition of minimizing the Gibbs free energy of our System A. As we can see thermodynamic potentials aren’t just a fun exercise in Legendre