James Clerk Maxwell imagined one container divided into two parts, ''A'' and ''B''. Both parts are filled with the same gas at equal temperatures and placed next to each other, separated by a wall. Observing the molecules on both sides, an imaginary demon guards a microscopic trapdoor in the wall. When a faster-than-average molecule from ''A'' flies towards the trapdoor, the demon opens it, and the molecule will fly from ''A'' to ''B''. The average speed of the molecules in ''B'' will have increased while in ''A'' they will have slowed down on average. Since average molecular speed corresponds to temperature, the temperature decreases in ''A'' and increases in ''B'', contrary to the second law of thermodynamics - wikipedia ![]()
Photograph of physicist James Clerk Maxwell - wikimedia ![]()
One response to this question was suggested in 1929 by Leó Szilárd and later by Léon Brillouin. Szilárd pointed out that a real-life Maxwell's demon would need to have some means of measuring molecular speed, and that the act of acquiring information would require an expenditure of energy.
Maxwell's demon repeatedly alters the permeability of the wall between ''A'' and ''B''. It is therefore performing thermodynamic operations on a microscopic scale, not just observing ordinary spontaneous or natural macroscopic thermodynamic processes.