What Is Maxwell’s Demon?

Table of Contents (click to expand)

Maxwell’s demon is a thought experiment proposed by James Clerk Maxwell in his 1871 book Theory of Heat. A microscopic gatekeeper sits at a door between two chambers of gas at the same temperature and sorts molecules by speed, sending the fast ones to one side and the slow ones to the other. That seems to create a temperature difference – and therefore usable work – out of nothing, apparently violating the second law of thermodynamics. The modern resolution, due to Landauer and Bennett, is that the demon must record and erase information about every molecule, and that erasure carries its own unavoidable thermodynamic cost.

Basically, Maxwell’s notional entity is a sort of deus ex machina that contradicts or has cleverly devised a way around what is the most fundamental and indisputable law of the universe: the 2nd law of thermodynamics. Naturally, the notion of extracting work or energy from seemingly nothing baffled his colleagues — surely this could mean the end of tirelessly feeding coal to a ravenous steam engine? A free lunch!

Not so fundamental now is it?
Not so fundamental now is it?

Well, not really. To understand how it works, we must first understand what the law entails and why discovering a loophole beckons a riot.

Isolated Systems And The Second Law Of Thermodynamics

Thermodynamics is the branch of physics that deals with the behavior of heat and energy. Thermodynamics describes an isolated system as a region of space or a region confining an apparatus that has absolutely no contact with the external world or processes. While open or non-isolated systems are regions that confine objects that can communicate with external processes.

System boundary
(Photo Credit : Wavesmikey / Wikipedia Commons)

The law governs the direction of the flow of heat between two objects or regions that are incongruent in terms of their temperature. It states that two bodies of different temperatures, when acquainted with each other and isolated from their surroundings, will evolve to a thermodynamic equilibrium in which both bodies have approximately the same temperature. For that to happen, it can be logically deduced that heat must flow from the object of higher temperature to the object of lower temperature.

However, heat can flow in the opposite direction, provided it is assisted by another system (non-isolated system).

Think of this exchange like the exchange of water between two buckets. Here, the notion of temperature can be depicted by the amount of water a bucket contains. An object of higher temperature is then illustrated by a bucket with more water while an object of lower temperature by a bucket with less water.

If the buckets are now conjoined together with a narrow pipe, as shown in the figure below, you’ll observe that the water will flow from the bucket containing more water into the adjacent water until the water levels with the opening. Now no water will continue to flow, this marks the onset of equilibrium. Note that this setting represents an isolated system.

What Is Maxwell’s Demon?

Now, water can also flow in the other direction: from the impoverished bucket to the full one, but it can only be achieved by doing work on the former: either by tilting it to a degree such that the water flows through the narrow tunnel or filling it with excess water from a third bucket, in both cases involving external help. This setting represents a non-isolated system.

This is evident in refrigerators or air conditioners where a cool breeze is obtained at the expense of warmth of another system – the condenser.

The law can also be defined in terms of entropy, a measure of statistical disorder or randomness of a system. In terms of randomness, in an isolated system, entropy will only increase. On the other hand, in a non-isolated system, witnessing a reversible process, entropy is a constant.

However, again, the constancy comes at the expense of the surrounding — the exiled heat adds entropy to the entropy as a whole of the Universe. The increase in entropy accounts for the irreversibility of natural processes.

Entropy

Thus, extracting energy from a system in equilibrium is impossible, but how does the devil do it?

Maxwell’s Demon – The Loophole

The experiment first appeared in an exchange of letters between Maxwell and Peter Tait around 1867. It was later unveiled to the public in Maxwell’s book on thermodynamics, Theory of Heat, first published in 1871.

Although Maxwell never used the word “demon,” in his account of this experiment, an agent would open doors between chambers like a “finite being.”

However, it was William Thomson, famously known as Lord Kelvin, who first used the word “demon” to describe Maxwell’s agent, in the journal Nature in 1874. As a justification, he claimed that he intended the mediating, rather than the malevolent, connotation of the word.

The experiment concerns an isolated system. The apparatus consists of a simple cuboid containing an arbitrary gas. The cuboid is divided into two equally sized regions with a uniform equal temperature. On the boundary of their division resides the devil, who meticulously filters the randomly squandered particles in a way that all the particles boasting higher kinetic energies end up aggregated in one region, while the remaining particles saunter around with low kinetic energies in the other region.

The demon can thus be thought of as a metaphor for a device or a machine that carefully analyzes the speed or kinetic energy of every particle inside the container. Based on its analysis, it can accurately determine which particles it must selectively usher in and which ones to play Breakout with.

What Is Maxwell’s Demon?

This runs contrary to the convention that the particles of a gas at a constant temperature travel around at the same speed. However, this same speed is their average speed, which means that there are particles that travel faster than that and particles that travel slower, negating each other to an average.

By this simple process, subsequently all the particles with high energies are cornered in one chamber. The demon has raised the temperature of one chamber in comparison of the other. This excess temperature or pressure can be used to power a turbine or push a piston, yes, out of perceptibly nothing. To put this another way, the demon has decreased entropy without any expenditure of work!

Maxwell thought of this sensational idea after he was forbidden from entering a club, for he was a nerd.
Maxwell thought of this sensational idea after he was forbidden from entering a club, for he was a nerd.

It is imperative to realize that the demon in his insidious ways has contradicted the law of entropy, but it still hasn’t violated the law of conservation of energy. It has merely redistributed the random kinetic energy to generate a pressure difference, such that energy can be harvested from an initially equilibrated system! The demon’s subterfuge has tricked nature itself.

maxwell demon chamber stable particle

Can An Apparatus Like This Really Exist?

I know it’s stultifying, but it simply cannot be done. Nature isn’t one to easily fool around with. Once you account for the cost of information – something Maxwell himself had no way of knowing about in 1871 – the demon’s loophole closes neatly.

The Hungarian-American physicist Leo Szilard saw the first hint of this in 1929. His simplified one-particle version of the demon showed that just measuring which side of the box a single molecule was on would have to dissipate at least kBT ln 2 of energy. Rolf Landauer of IBM sharpened the idea in 1961: erasing one bit of information from any physical memory necessarily dissipates that same minimum amount of heat into the surroundings. This is now known as Landauer’s principle.

In 1982, Charles Bennett tied the knot. He pointed out that to keep running indefinitely, the demon’s memory has to be wiped before each new round of measurements. That erasure pumps at least as much entropy into the surroundings as the demon manages to remove inside the box, so the second law is safe after all. Experimental confirmation arrived in 2012, when Bérut and colleagues measured the heat actually dissipated when a single bit was erased in a colloidal "double-well" memory and matched Landauer’s bound; physicists have since built nanoscale Maxwell-demon devices using single electrons and trapped ions, all consistent with the same accounting.

Sometimes I feel my fridge’s dad is too hard on him.
Sometimes I feel my fridge’s dad is too hard on him.

Similarly, if the demon is a highly advanced machine that selectively seeks out certain particles, the question arises of where does it get its energy to do work from? And even if it does, the extension regarding the heat efficiency of a machine still denies the possibility of decreased entropy.

The demon or the machine would have to acquire information regarding the particles, for example, let’s say detecting photons. In the process of interacting with them, a complex machinery such as this will inevitably expend energy and soak up some heat itself, thereby increasing the net entropy back to the initial value.

The essence of the argument is that, by calculation, any demon must “generate” more entropy segregating the molecules than it could ever eradicate by the principles on which it is based. That is, it would take more thermodynamic work to detect the speed of the molecules and selectively allow them to pass through the opening between the chambers than the amount of energy gained by the temperature difference caused by the process.

Earlier attempts at resolving the paradox came from the Polish physicist Marian Smoluchowski, who in 1912 showed that random thermal jitter (Brownian motion) would jam any purely mechanical sorter – an idea that Richard Feynman later popularised through his "Brownian ratchet and pawl". The information-theoretic argument from Szilard, Landauer and Bennett is the modern, tighter version of that intuition.

After all is said and done, one must appreciate Maxwell’s sneakiness. He found a loophole that wasn’t formally closed for more than a century – and in the process, he forced physicists to accept that even information itself has a thermodynamic price. There are no free lunches after all!

References (click to expand)
  1. Maxwell's Demon.
  2. Maxwell's Demon.
  3. Second Law of Thermodynamics.
  4. 2nd Law of Thermodynamics.
  5. Second Law of Thermodynamics.