WOLFRAM|DEMONSTRATIONS PROJECT

Entropy Changes in Mixing Ideal Gases

​
remove barrier
compress right
mix gases
initial partial pressure A (bar)
0.5
initial partial pressure B (bar)
0.5
initial volume ratio A/B
1
In this Demonstration two ideal gases, A and B, are mixed isothermally. After the barrier is removed, the entropy change of each gas is the same as that of a gas expanding into a vacuum. When the partial pressure decreases, entropy increases, and vice versa. If the partial pressure of a gas does not change, its entropy does not change, even when another gas is added to it. The total entropy change is the sum of the individual entropy changes. Gas A is colored red and gas B is colored blue, and when the gases mix, different shades of purple result, depending on the relative ratio of moles of each species. As the number of moles increases, the color becomes more intense.
When the initial pressures of A and B are equal, Gibbs's famous formula for the entropy of mixing applies:
Δ
S
mix
=-
n
A
Rln
x
A
-
n
B
Rln
x
B
, where
x
A
and
x
B
are the mole fractions of A and B in the final mixture.