Thermodynamics – Free Expansion of Ideal Gas Dilemma

gasideal-gasthermodynamics

I have a question about free expansion of ideal gas.

Firstly, we will take the entire (isolated) container to be our thermodynamic system. We know that the gas in the left-part of the container has a temperature $T'$. We know that the first-law of thermodynamics must hold $\Delta U = Q + W$, but because the system is isolated there is no heat-transfer meaning $Q = 0$ and beacause the work can't be done by gas on vacuum in the right-side of the container $W = 0 \Rightarrow \Delta U = 0$. If $U$ doesn't change the temperature must stay the same. $$T = T'$$

enter image description here

And now the part I do not understand.

If we take for our thermodynamic system just the part of the gas that will end up in the right-side of the container. Then we can say that the gas on the left will push the marked gas to the right side. Marked gas will receive the work by the gas from the left, and gas from the left will transfer work to the right part of the gas. Because $\Delta U = 0$ the temperature on the left and the right side of container will not be the same. $$T' \ne T_1 \ne T_2$$ How is that possible, we just concluded form the example above the the temperature shouldn't change?!?!?!

enter image description here

Best Answer

At equilibrium, the temperatures must be the same, as you show in your first paragraph. This doesn't preclude temporary fluctuations while the system is out of equilibrium.

I agree with your reasoning that the gas within the blue region tends to heat up temporarily as work is done on it to push it into the empty side. (This aspect is discussed by Baker in "An easy to perform but often counterintuitive demonstration of gas expansion.") Correspondingly, the gas outside the blue region tends to cool down temporarily as it does that work. Over time, however, heat transfer causes the temperature throughout the container to equilibrate at the original temperature. Make sense?