More

# Entropy of Mixing

##### Table of contents

A gas will always flow into a newly available  volume and does so because its molecules are rapidly bouncing off one another and hitting the walls of their container, readily moving into a new allowable space. It follows from the second law of thermodynamics that a process will occur in the direction towards a more probable state. In terms of entropy, this can be expressed as a system going from a state of lesser probability (less microstates) towards a state of higher probability (more microstates). This corresponds to increasing the W in the equation $$S=k_BlnW$$.

### The Mixing of Ideal Gases

For our example, we shall again consider a simple system of two ideal gases, A and B, with a number of moles $$n_A$$ and $$n_B$$, at a certain constant temperature and pressure in volumes of $$V_A$$ and $$V_B$$, as shown in Figure 1. These two gases are separated by a partition so they are each sequestered in their respective volumes. If we now remove the partition (like opening a window in the example above), we expect the two gases to randomly diffuse and form a homogenous mixture as we see in Figure 2.

Figure 1. (Left) Two Gases $$A$$ and $$B$$ in their respective volumes and  (right) A homogenous mixture of gases $$A$$ and $$B$$.

To calculate the entropy change, let us treat this mixing as two separate gas expansions, one for gas A and another for B. From the statistical definition of entropy, we know that

$\Delta S=nRln \dfrac{V_2}{V_1} \;.$

Now, for each gas, the volume $$V_1$$ is the initial volume of the gas, and $$V_2$$ is the final volume, which is both the gases combined, $$V_A+V_B$$. So for the two separate gas expansions,

$\Delta S_A=n_A R ln \dfrac{V_A+V_B}{V_A}$
$\Delta S_B=n_B R ln \dfrac{V_A+V_B}{V_B}$

So to find the total entropy change for both these processes, because they are happening at the same time, we simply add the two changes in entropy together.

$\Delta_{mix}S = \Delta S_{A}+\Delta S_{B}=n_{A}Rln\dfrac{V_{A}+V_{B}}{V_{A}}+n_{B}Rln\dfrac{V_{A}+V_{B}}{V_{B}}$

Recalling the ideal gas law, PV=nRT, we see that the volume is directly proportional to the number of moles (Avogadro's Law), and since we know the number of moles we can substitute this for the volume:

$\Delta_{mix}S=n_{A}Rln\dfrac{n_{A}+n_{B}}{n_{A}}+n_{B}Rln\dfrac{n_{A}+n_{B}}{n_{B}}$

Now we recognize that the inverse of the term $$\frac{n_{A}+n_{B}}{n_{A}}$$ is the mole fraction $$x_{A}=\frac{n_{A}}{n_{A}+n_{B}}$$, and taking the inverse of these two terms in the above equation, we have:

$\Delta_{mix}S=-n_{A}Rln\dfrac{n_A}{n_A+n_B}-n_BRln \dfrac{n_A}{n_A+n_B}x_{B} = -n_A Rlnx_A -n_B Rlnx_B$

since $$lnx^{-1}=-lnx$$ from the rules for logarithms. If we now factor out R from each term:

$\Delta_{mix}S=-R(n_{A}lnx_{A}+n_{B}lnx_{B})$

represents the equation for the entropy change of mixing. This equation is also commonly written with the total number of moles:

$\Delta_{mix}S=-nR(x_A lnx_A+x_Blnx_B)$.

where the total number of moles is $$n=n_A+n_B$$

Notice that when the two gases will be mixed, their mole fraction will be less than one, making the term inside the parentheses negative, and thus the entropy of mixing will always be positive. This observation makes sense, because as you add a component to another for a 2-component solution, the mole fraction of the other component will decrease, and the log of a number less than 1 is negative. Multiplied by the negative in the front of the equation gives a positive quantity. This equation also applies to ideal solutions as well as ideal gases.

### References

1. Chang, Raymond. Physical Chemistry for the Biosciences. Sausalito, California: University Science Books, 2005.

### Contributors

• Konstantin Malley (UCD)

The ChemWiki has 9226 Modules.

Viewing 1 of 1 comments: view all
http://www.che.ksu.edu/files/che/imported/7.pdf
Posted 18:05, 12 May 2013
Viewing 1 of 1 comments: view all
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 8, "mathjax_display_tex": 16, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9190560579299927, "perplexity_flag": "head"}