
You likely took chemistry and or physics in high school. and some of you make have taken these courses in college as well. One topic that is covered in both classes is thermodynamics. As a refresher thermodynamics at its most basic level is the study of the heat and how it interacts with energy. There are four laws of thermodynamics that describe how thermal energy interacts with matter. Let’s take a closer look at the laws of thermodynamics. You can find these laws in any high school chemistry or physics textbook. I am using the laws of thermodynamics as found at chem.libretexts.org.
The Law of Thermodynamics

The Zeroth Law of thermodynamics “states that if two systems are in thermodynamic equilibrium with a third system, the two original systems are in thermal equilibrium with each other. Basically, if system A is in thermal equilibrium with system C and system B is also in thermal equilibrium with system C, system A and system B are in thermal equilibrium with each other.” You may be curious as to why this law is called the zeroth law rather than the first law. The first and second law had already been established before the zeroth law was developed. Scientists believed that the zeroth law was a more fundamental law than the first and second law. They named it the zeroth law so it would appear first in the numeric listing of the laws.
The first Law states that “…energy can be converted from one form to another with the interaction of heat, work and internal energy, but it cannot be created nor destroyed, under any circumstances.” This is basically a restatement of the Law of Conservation of Energy.
The second Law of thermodynamics states that “… the state of entropy of the entire universe, as an isolated system, will always increase over time. The second law also states that the changes in the entropy in the universe can never be negative.” According to chem.libretexts.org “entropy is simply a measure how much the energy of atoms and molecules become more spread out in a process and can be defined in terms of statistical probabilities of a system or in terms of the other thermodynamic quantities.” You can find a much more in depth description of entropy in one of my earlier posts. The second law also describes the direction of the flow of heat. If two objects of differing temperatures are brought together in an isolated system the heat will flow from the warmer object to the cooler object until both objects reach thermal equilibrium which simply means they reach the same temperature. Another point to be made here is that the temperature of an object is a measure of the average kinetic energy of the object’s particles. So the higher the kinetic energy the higher the temperature. Faster moving particles are hotter than slower moving particles. This will be a key factor later in the discussion.
The third law of thermodynamics “… essentially allow us to quantify the absolute amplitude of entropies. It says that when we are considering a totally perfect (100% pure) crystalline structure, at absolute zero (0 Kelvin), it will have no entropy (S). Note that if the structure in question were not totally crystalline, then although it would only have an extremely small disorder (entropy) in space, we could not precisely say it had no entropy. One more thing, we all know that at zero Kelvin, there will still be some atomic motion present, but to continue making sense of this world, we have to assume that at absolute Kelvin there is no entropy whatsoever.
Gedankenexperiment
Physicists often use gedankenexperiment or thought experiments to describe scientific phenomena when testing the idea may not be practical or possible. One example of a thought experiment is one Albert Einstein had of a person trying to chase a beam of light. He tried to imagine what would happen if a person were able to catch up to the wave and ride it like a surfer riding on a water wave. This idea played a pivotal role in the development of his special theory of relativity. Perhaps the most famous thought experiment was one developed by Erwin Schrodinger known as Schrodinger’s cat. According to wtamu.edu ” Schrodinger’s Cat was simply a teaching tool that Schrodinger used to illustrate how some people were misinterpreting quantum theory. Schrodinger constructed his imaginary experiment with the cat to demonstrate that simple misinterpretations of quantum theory can lead to absurd results which do not match the real world.”
Maxwell’s Demon and the Second Law
James Clerk Maxwell was a Scottish scientist who lived from 1831-1879. He developed the theory of electromagnetism which unified light, electricity, and magnetism into one central theory. He derived a set of four equations that describe electromagnetism. Maxwell is generally regarded on equal footing as Isaac Newton and Albert Einstein. His ideas helped in the derivation of Einstein’s theory of special relativity as well as contribute to quantum theory.

Now that we have some of the background information out of the way let’s take a look at Maxwell’s demon and how in pertains to the second law of thermodynamics. Maxwell’s demon is a thought experiment created by James Clerk Maxwell in 1871 to see if it would be possible to violate the second law of thermodynamics. In this thought experiment Maxwell envisioned a container separated in half by a partition which has a small door on it. The air is the same temperature on both sides of the container that is to say both sides of the box are in thermal equilibrium with each other. A demon sits on top of the partition and is able to observe the path and velocity of all the individual particles and this demon has the ability to open the door and let particle pass from one side of the container to the other.
In his thought experiment the demon would open the door to allow high speed particles to pass from the right side of the container to the left. The demon would also open the door to allow slow moving particles from the left side to the right. Eventually the left side of the box would contain all the high moving particles while the right side would contain all the slow moving particles. Remember, the particles on the left side of the box are hotter than those on the right because they are moving faster and because temperature is a measure of the average kinetic energy of the particles. The two sides of the container are no longer in thermal equilibrium with one another. At this point the entropy is lower than it was before the demon began separating particles. Recall that the second law of thermodynamics states that the entropy of an isolated system will always increase over time.
So is that the end of the story? Did James Clerk Maxwell determine that the second law of thermodynamics can be violated by a demon capable of separating high speed particles from low speed particles? If so does our current technology have the ability to do the same thing? Scientists and physicists wrestled with this idea for more than a hundred years as the thought experiment was seen as a threat to the second law of thermodynamics.
The Resolution to Maxwell’s Demon and the Preservation of the 2nd Law of Thermodynamics
In 1961 Rolf Landauer came up with an idea to solve the paradox of Maxwell’s demon and the violation of the 2nd law of thermodynamics. Landauer came up with an idea, now called the Landauer principle which states “any logically irreversible manipulation of information, such as the erasure of a bit or the merging of two computation paths, must be accompanied by a corresponding entropy increase in non-information-bearing degrees of freedom of the information-processing apparatus or its environment.” Great, so what does that actually mean and how does that solve this conundrum? Well, the demon must learn about the particles if he is to do his job. There is an inherent randomness to the particles before the demon starts his task. As he separates the particles the randomness of the particles decreases while the randomness of the demon’s memory increases. Be it a demon or a technological device there is a finite amount of memory available. Eventually the memory must be reset in order for the task to continue. According to an article in cacm.acm.org: “physicists resolved the paradox by noting that Maxwell’s demon eventually would need to erase the information it had gleaned about the molecules, and that this erasure would create enough entropy to preserve the Second Law.” The deletion of information creates heat which is radiated into the box or out to the universe ultimately increasing entropy of the system thus preserving the 2nd law of thermodynamics. Here is a good video describing both the thought experiment as well as the resolution: https://youtu.be/8Uilw9t-syQ




