= Solution
Assume a single-phase <ideal gas> mixture in a closed parcel, with common <temperature> $T$, total <pressure> $P$, and molar species amounts $N_i$. Define $N=\sum_iN_i$ and <volume mixing ratios> $x_i=N_i/N$, so $\sum_i x_i=1$. Ideal mixing makes partial <pressure> $P_i=x_iP$.
For a pure ideal species, $d\mu_i=-\bar S_i\,dT+\bar V_i\,dP_i$, with molar volume $\bar V_i=\mathcal RT/P_i$. At fixed <temperature>, integration from standard <pressure> $P^\circ$ gives
$$
\mu_i(T,P_i)=\mu_i^\circ(T)+\mathcal RT\log(P_i/P^\circ).
$$
The same logarithmic composition term follows from the ideal mixing <entropy> $\Delta S_{\rm mix}=-\mathcal R\sum_iN_i\log x_i$. Extensivity gives $G=\sum_iN_i\mu_i$. Hence the <Gibbs free energy of an ideal-gas mixture> is
$$
\boxed{G(T,P,\{N_i\})=N\sum_i x_i\mu_i^\circ(T)
+N\mathcal RT\left[\log(P/P^\circ)+\sum_i x_i\log x_i\right].}
$$
Equivalently, write each standard chemical term as $\mu_i^\circ=h_i^\circ-Ts_i^\circ$, using molar <enthalpy> and <entropy>. For zero abundance the limit $x\log x\to0$ defines the extensive expression continuously.
The fractions alone do not specify the extensive <Gibbs free energy>: the total amount $N$ or an equivalent elemental inventory must also be fixed. Moreover, in a chemically closed reacting system $N$ need not remain constant; for example, hydrogenation of <carbon monoxide> changes the total molecular count while conserving atoms. Minimization is therefore over species amounts subject to elemental constraints, rather than over fractions with an artificially fixed molecular count. Nonideal gases require activities or fugacities; condensates contribute separate phase terms.
Back to article page