# Thermodynamics of Mixing

When solids, liquids or gases are combined, the thermodynamic quantities of the system experience a change as a result of the mixing. This module will discuss the effect that mixing has on a solution’s Gibbs energy, enthalpy, and entropy, with a specific focus on the mixing of two gases.

### Introduction

A solution is created when two or more components mix homogeneously to form a single phase. Studying solutions is important because most chemical and biological life processes occur in systems with multiple components. Understanding the thermodynamic behavior of mixtures is integral to the study of any system involving either ideal or non-ideal solutions because it provides valuable information on the molecular properties of the system.

Most real gases behave like ideal gases at standard temperature and pressure. This allows us to combine our knowledge of ideal systems and solutions with standard state thermodynamics in order to derive a set of equations that quantitatively describe the effect that mixing has on a given gas-phase solution’s thermodynamic quantities.

### Gibbs Free Energy of Mixing

Unlike the extensive properties of a one-component system, which rely only on the amount of the system present, the extensive properties of a solution depend on its temperature, pressure and composition. This means that a mixture must be described in terms of the partial molar quantities of its components. The total Gibbs free energy of a two-component solution is given by the expression

\[ G=n_1\overline{G}_1+n_2\overline{G} _2 \label{1}\]

where

- \(G\) is the total Gibbs energy of the system,
- \(n_i\) is the number of moles of component
*i*,and - \(\overline{G}_i\) is the partial molar Gibbs energy of component
*i*.

The molar Gibbs energy of an ideal gas can be found using the equation

\[\overline{G}=\overline{G}^\circ+RT\ln \frac{P}{1 bar} \label{2}\]

where \( \overline{G}^\circ\) is the standard molar Gibbs energy of the gas at 1 bar, and P is the pressure of the system. In a mixture of ideal gases, we find that the system’s partial molar Gibbs energy is equivalent to its chemical potential, or that

\[ \overline{G}_i=\mu_i \label{3} \]

This means that for a solution of ideal gases, Equation \(\ref{2}\) can become

\[\overline{G}_i=\mu_i=\mu^\circ_i+RT \ln \frac{P_i}{1 bar} \label{4}\]

where

- µ
_{i}is the chemical potential of the*i*th component, - µ
_{i}° is the standard chemical potential of component*i*at 1 bar, and - P
_{i}is the partial pressure of component*i*.

Now pretend we have two gases at the same temperature and pressure, gas 1 and gas 2. The Gibbs energy of the system before the gases are mixed is given by Equation \(\ref{1}\), which can be combined with Equation \(\ref{4}\) to give the expression

\[G_{initial}=n_1(\mu^\circ_1+RT \ln P)+n_2(\mu^\circ_2+RT \ln P) \label{5}\]

If gas 1 and gas 2 are then mixed together, they will each exert a partial pressure on the total system, \(P_1\) and \(P_2\), so that \(P_1+ P_2= P\). This means that the final Gibbs energy of the final solution can be found using the equation

\[G_{final}=n_1(\mu^\circ_1+RT \ln P_1)+n_2(\mu^\circ_2+RT \ln P_2) \label{6}\]

The Gibbs energy of mixing, \(Δ_{mix}G\), can then be found by subtracting \(G_{initial}\) from \(G_{final}\).

\[ \begin{align} Δ_{mix}G &= G_{final} - G_{initial}\\[5pt] &=n_1RT \ln \frac{P_1}{P}+n_2RT \ln \frac{P_2}{P} \\[5pt] &=n_1 RT \ln \chi_1+n_2 RT \ln \chi_2 \label{7} \end{align} \]

where

\[P_i = \chi_iP\]

and \(\chi_i\) is the mole fraction of gas \(i\). This equation can be simplified further by knowing that the mole fraction of a component is equal to the number of moles of that component over the total moles of the system, or

\[\chi_i = \dfrac{n_i}{n}.\]

Equation \ref{7} then becomes

\[\Delta_{mix} G=nRT(\chi_1 \ln \chi_1 + \chi_2 \ln \chi_2) \label{8}\]

This expression gives us the effect that mixing has on the Gibbs free energy of a solution. Since \(\chi_1\) and \(\chi_2\) are mole fractions that range from 0 to 1, we can conclude that \(Δ_{mix}G \) will be a negative number. This is consistent with the idea that gases mix spontaneously at constant pressure and temperature.

### Entropy of mixing

Figure \(\PageIndex{1}\) shows that when two gases mix, it can really be seen as two gases expanding into twice their original volume. This greatly increases the number of available microstates, and so we would therefore expect the entropy of the system to increase as well.

**Figure \(\PageIndex{1}\):** The mixing of two gases can be seen as two expansions. (a) Expansion of gas 1 alone when teh barrier is removed. The molecules have twice as many microstates in the open box. (b) Expansion of gas 2 along. (c) the simultaneous expansion of gases 1 and 2 is equivalent to mixing

Thermodynamic studies of an ideal gas’s dependence of Gibbs free energy of temperature have shown that

\[ \left( \dfrac {d G} {d T} \right )_P=-S \label{9}\]

This means that differentiating Equation \(\ref{8}\) at constant pressure with respect to temperature will give an expression for the effect that mixing has on the entropy of a solution. We see that

\[ \begin{align} \left( \dfrac {d G_{mix}} {d T} \right)_P &=nR(x_1 \ln x_1+x_2 \ln x_2) \\[5pt] &=-\Delta_{mix} S \end{align}\]

\[\Delta_{mix} S=-nR(x_1 \ln x_1+x_2 \ln x_2) \label{10}\]

Since the mole fractions again lead to negative values for ln x_{1} and ln x_{2}, the negative sign in front of the equation makes Δ_{mix}S positive, as expected. This agrees with the idea that mixing is a spontaneous process.

### Enthalpy of mixing

We know that in an ideal system \(\Delta G= \Delta H-T \Delta S\), but this equation can also be applied to the thermodynamics of mixing and solved for the enthalpy of mixing so that it reads

\[\Delta_{mix} H=\Delta_{mix} G+T\Delta_{mix} S \label{11}\]

Plugging in our expressions for \(Δ_{mix}G\) (Equation \(\ref{8}\)) and \(Δ_{mix}S\) (Equation \(\ref{10}\)) , we get

\[\Delta_{mix} H=nRT(x_1 \ln x_1+x_2 \ln x_2)+T \left[-nR(x_1 \ln x_1+x_2 \ln x_2) \right] = 0\]

This result makes sense when considering the system. The molecules of ideal gas are spread out enough that they do not interact with one another when mixed, which implies that no heat is absorbed or produced and results in a \(Δ_{mix}H\) of zero. Figure \(\PageIndex{2}\) illustrates how \(TΔ_{mix}S\) and \(Δ_{mix}G\) change as a function of the mole fraction so that \(Δ_{mix}H\) of a solution will always be equal to zero (this is for the mixing of two ideal gasses).

**Figure \(\PageIndex{2}\)**: A graph of \(T\Delta_{mix}S\), \(T\Delta_{mix}H\), and \(T\Delta_{mix}G\) as a function of \(x_1\) for the mixing of two ideal gases.

### References

- Chang, R. Physical Chemistry for the Biosciences, 1st Herdon, VA: University Science Books, 132-133. Print.
- Meyer, E.F. (1987). Theromodynamics of “Mixing” of Ideal Gases. J. Chem. Educ. 64, 676-677.

### Outside Links

- Satter, S. (2000). Thermodynamics of Mixing Real Gases. J. Chem. Educ. 77, 1361-1365.
- Brandani, V., Evangelista, F. (1987). Correlation and prediction of enthalpies of mixing for systems containing alcohols with UNIQUAC associated-solution theory. Ind. Eng. Chem. Res. 26 (12), 2423–2430.

### Problems

- Use Figure 2 to find the x
_{1}that has the largest impact on the thermodynamic quantities of the final solution. Explain why this is true. - Calculate the effect that mixing 2 moles of nitrogen and 3 moles of oxygen has on the entropy of the final solution.
- Another way to find the entropy of a system is using the equation ΔS =
*n*Rln(V_{2}/V_{1}). Use this equation and the fact that volume is directly proportional to the number of moles of gas at constant temperature and pressure to derive the final expression for \(T\Delta_{mix}S\) . (Hint: Use the derivation of \(T\Delta_{mix}G\) as a guide).

#### Answers

- x
_{1}= 0.5 - Increases the entropy of the system by 27.98 J/molK

### Contributors

- Elizabeth Billquist (Hope College)