Let be the forward reaction extent. Then
At fixed ,
Minimization with respect to gives the chemical-potential balance for a reaction