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'$$
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?!?!?!