
Maxwell's demon is a thought experiment where a being uses information about particle trajectories to reduce entropy without expending energy.Maxwell's demon is a thought experiment proposed by James Clerk Maxwell in 1867 to challenge the second law of thermodynamics. The 'demon' is a tiny, intelligent being that guards a door between two chambers of gas. It observes individual molecules and lets fast ones pass one way and slow ones the other, thereby sorting the gas into a hot side and a cold side without doing any work. This would decrease entropy, seemingly violating the second law.
Maxwell introduced the demon in a letter to Peter Guthrie Tait in 1867 and in his 1871 book 'Theory of Heat'. The name 'demon' was coined by William Thomson (Lord Kelvin) in 1874. The information-theoretic resolution was developed in the 1960s–80s by Szilard, Landauer, and Bennett.
The demon uses information about each molecule's velocity to decide whether to open the door. By doing so, it creates a temperature difference that could be used to run a heat engine. The resolution, worked out by Leo Szilard and later by Rolf Landauer and Charles Bennett, is that the demon must store information about the molecules it has seen. Eventually, its memory fills up, and it must erase old information. Erasing information costs energy (Landauer's principle: erasing one bit dissipates at least kT ln 2 of heat), which exactly compensates for the entropy decrease in the gas.
The principle is used in the design of reversible computing and in understanding the fundamental energy costs of computation, including in modern discussions of the thermodynamics of information processing and nanoscale devices.
In 2010, physicists actually built a working 'Maxwell's demon' using a single trapped ion and a feedback control system, demonstrating that information can be converted into work at the microscopic scale.


