Here is a detailed explanation of Maxwell’s Demon, the threat it posed to the laws of physics, and how the synthesis of thermodynamics and information theory finally put the 19th-century paradox to rest.
Part 1: The Paradox of Maxwell’s Demon
In 1867, the Scottish physicist James Clerk Maxwell proposed a thought experiment that threatened to break the most sacred rule in physics: The Second Law of Thermodynamics.
The Second Law states that the total entropy (disorder or randomness) of an isolated system must always increase over time. It is the reason heat naturally flows from hot to cold, and why you cannot un-mix cream from your coffee. It dictates the arrow of time.
The Thought Experiment: Maxwell imagined a container filled with a gas at a uniform temperature (thermal equilibrium). He conceptually divided the container into two halves (Left and Right) separated by a wall with a microscopic, frictionless trapdoor.
Guarding this door is a tiny, intelligent entity—later dubbed "Maxwell’s Demon." 1. The Demon observes the molecules bouncing around. Even in a gas of uniform temperature, some molecules move faster (hotter) and some move slower (colder) than the average. 2. When a fast-moving molecule approaches the door from the Left, the Demon opens the door, letting it pass to the Right. 3. When a slow-moving molecule approaches from the Right, the Demon lets it pass to the Left.
Over time, the Right side becomes filled with fast molecules (it gets hot), and the Left side becomes filled with slow molecules (it gets cold).
The Problem: By simply opening and closing a frictionless door—requiring practically zero physical work—the Demon has created a temperature gradient out of a system at equilibrium. Humans could then use this temperature difference to run a heat engine and generate free, infinite energy. The Demon has decreased the total entropy of the system, blatantly violating the Second Law of Thermodynamics.
For over a century, physicists struggled to explain exactly why the Demon could not exist.
Part 2: Early Attempts at a Solution
In 1929, physicist Leo Szilard simplified the problem into what is known as the "Szilard Engine." He argued that the Demon must use energy to measure the speed of the molecules. Szilard suggested that the act of acquiring information (shining a light or interacting with the particle) inherently generated enough entropy to offset the entropy lost by sorting the gas.
For decades, the consensus was that measurement was the source of the entropy. However, as quantum mechanics and computer science evolved, physicists realized that measurement could, theoretically, be done reversibly—meaning it wouldn't necessarily increase entropy. The paradox remained unresolved.
Part 3: Enter Information Theory and Landauer's Principle
The true breakthrough came not from classical thermodynamics, but from computer science and quantum information theory, specifically through the work of IBM researcher Rolf Landauer in 1961.
Landauer was investigating the thermodynamic limits of computing. He made a profound realization: computing is a physical process. Therefore, information is physical.
Landauer discovered that you can perform many computations (like reading data or copying it) reversibly, without expending energy. However, there is one computational act that is fundamentally irreversible: erasing information.
Landauer’s Principle states that the erasure of one bit of information (e.g., resetting a 1 or a 0 back to a blank state) must release a minimum, unavoidable amount of heat into the environment. This is given by the formula: $E = kT \ln 2$ (where $k$ is the Boltzmann constant, and $T$ is the temperature).
Erasing information destroys it, and that lost computational order must be converted into physical disorder (heat/entropy).
Part 4: The Final Resolution by Charles Bennett
In 1982, Charles Bennett, a pioneer of quantum information theory, applied Landauer’s Principle directly to Maxwell’s Demon.
Bennett pointed out that the Demon is essentially a tiny computer. To sort the molecules, the Demon must undergo a specific cycle: 1. Measure the molecule's speed. 2. Store that information in its memory ("fast" or "slow"). 3. Act (open or close the door). 4. Erase its memory to prepare for the next molecule.
Bennett showed that the Demon can measure and act without increasing entropy. The fatal flaw lies in the Demon's brain. The Demon must record the data of every molecule it sorts. Because it is a finite physical entity, its memory is not infinite. Eventually, to continue operating, the Demon must erase its memory to make room for new observations.
According to Landauer's Principle, the act of wiping its memory is thermodynamically irreversible. When the Demon deletes the information about the molecules, it dumps heat into the surrounding environment.
Bennett calculated that the entropy generated by the Demon erasing its memory is always equal to or greater than the entropy the Demon eliminated by sorting the gas.
Conclusion: "Information is Physical"
The resolution of Maxwell's Demon proved to be a foundational moment for Quantum Information Theory. It bridged the gap between abstract data and physical reality, proving the maxim: "Information is physical."
In the quantum realm, the universe does not distinguish between "thermodynamic entropy" (the physical disorder of atoms) and "Shannon/von Neumann entropy" (the measure of uncertainty in information). They are two sides of the same coin.
Maxwell's Demon cannot violate the Second Law of Thermodynamics because the Demon is trapped by the laws of information. It can temporarily clean up the physical disorder in the gas, but only by storing that disorder as data in its mind. When it finally empties its mind, the disorder is released back into the universe as heat. The house always wins, and the Second Law remains unbroken.