Substituting equation (\ref{eqn:chemical-potential}) into equation (\ref{eqn:reaction-affinity}), we have