# A simple experiment and the Maxwell-Boltzmann distribution

Consider two containers separated by a removable wall, each side of which is a perfect mirror for the gas in the respective container. Also the walls of the containers are ideal mirrors. In each container the gas is the same, it is ideal and in thermodynamic equilibrium, therefore the distributions of the energies of the molecules is the Maxwell-Boltzmann law. The gas in the container A has temperature $T_A$, and the gas in the container B has temperature $T_B$, with $T_A$ > $T_B$.

It is known that when the wall is removed, each gas expands into the other container and in the end, all the gas reaches thermodynamic equilibrium, at some intermediate temperature $T_C$, i.e. $T_A$ > $T_C$ > $T_B$.

In there a way to calculate the final parameters, temperature, pressure, entropy, from the two initial distributions of energies (velocities) + volumes of containers and initial pressures in them?

The final distribution is a function of the initial distributions in this sense: the initial distributions determine thermodynamic quantities - energy, temperature - which determine the thermodynamic quantity $T_C$ after the partition is removed, which finally determines the new statistical distribution. The best way to solve this problem is to find $T_C$ from conservation of energy, and use that to determine the new Boltzmann distribution.
• This is indeed my problem. How to obtain $T_C$ . I went to the first law of thermodynamics, assuming that the total energy of the gas doesn't change because there is no communication with the environment. Am I wrong in this? Next, the change in entropy can be calculated (though it is very hard). But how changes the pressure? Dec 2, 2014 at 20:13