Categories
physics

Say Hello to Maxwell’s Demon

Image Credit: Phys.org

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

Image credit: sciencenotes.org

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.

Image credit: thunderbolts.info

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

Categories
physics thermal physics thermodynamics

A Brief Conceptual Introduction to Entropy

A common depiction of entropy. Courtesy of chemistry.tutorvista.com

Disclaimer

I want to make it clear that this post is meant as a conceptual introduction to an often misunderstood topic. I do not go into the mathematics associated with entropy, nor do I discuss the contributions of perhaps the most crucial person in the history and development of entropy, Ludwig Boltzmann. This discussion is meant to introduce the reader to the basic terminology, including the laws of thermodynamics as well as the concept of entropy.

Courtesy of en.citizendium.org

If I ask you the following question: “what is entropy,” how would you answer? Would you describe it as the tendency of a system to move towards disorder or chaos? This seems to be the oversimplified definition that many people have learned. I’d like to offer a different description of entropy, one that is a bit more in-depth and one that is more accurate. This idea of an increase in disorder is not altogether incorrect; it is somewhat incomplete. I hope to give you a conceptual picture of entropy while avoiding the cumbersome math involved.

Thermal Physics Vocabulary and The Laws of Thermodynamics

We need to discuss some topics of thermodynamics in order to more accurately understand entropy. I’d like to introduce some common vocabulary terms associated with thermal physics. These terms are presented in no particular order. Kinetic energy is the energy of a body in motion. The greater the speed of a particle or particles, the greater the kinetic energy. For our purposes, temperature can be described as the average kinetic energy of an object. Meaning the average kinetic energy of the particles at the microscopic level. As particles are heated up, they move faster and collide more often with each other than when the particles are at a lower temperature. Thermal equilibrium means that two objects that are in contact with one another have reached the same temperature. Thermal energy is simply heat. Absolute zero is a temperature so low that there is no heat is available to transfer to other systems. Sciencedaily.com describes absolute zero as “the point at which the fundamental particles of nature have minimal vibrational motion, retaining only quantum mechanical, zero-point energy-induced particle motion.” Absolute zero is measured a 0 on the Kelvin scale, which corresponds o -273 on the Celsius scale and -460 on the Fahrenheit scale.

temperature scales
A comparison of the three temperatures scales. Courtesy of britannica.com

Let’s look at the terminology that is specific to the concept of entropy. A microstate, according to khanacademy.org, is “the arrangement of each molecule in the system at a single instant.” A macrostate is the observable configuration of the microstates. So what does that mean? Think of flipping 3 coins, labeled as A, B, &C. How can you end up with 2 heads and 1 tail? You can end up with an arrangement of heads for coin A, heads for coin B, and tails for coin C. You could end up with tails for coin A, heads for coin B, and heads for coin C, or you could end up with heads for coin A, heads for coin B, and tails for coin C. The exact configuration of which state (heads or tails) a specific coin lands on is the microstate. In the example I gave, you have a total of 3 microstates corresponding to a single macrostate. The macrostate is 2 heads and 1 tails. The microstate is the specific arrangement of the coins, as seen below.

In the above chart, you can see the specific 252 microstates that are associated with the microstate of a 10-coin system.

The Laws of Thermodynamics

The next topic worth discussing is the numbering system as well as the laws of thermodynamics. There are four laws, but they begin with the zeroth law and end with the third law. The zeroth law was actually included as a law much later than laws 1,2&3. “British physicist Ralph H. Fowler who first coined the term ‘zeroth law,’ based on a belief that it was more fundamental even than the other laws.” (https://www.thoughtco.com/laws-of-thermodynamics-p3-2699420) This zeroth law states that if two systems are in thermal equilibrium with a third, then they (the first two systems) are in equilibrium with each other. This is the basis of temperature and is actually how the old glass thermometers work. You place the thermometer under your tongue and wait for the thermometer, the patient, and the fluid in the thermometer to come to thermal equilibrium and take the temperature reading.

Courtesy of byjus.com

The first law of thermodynamics is a restatement of the law of conservation of energy. It states that energy in the universe can neither be created or destroyed; it can, however, be transformed from one form to another and be transferred to another object. An example of transformation from one form to another would be dropping a rock from a high cliff. Before the rock is dropped, it contains potential energy (think stored energy), and once it is dropped, the potential energy is transformed into kinetic energy (energy of motion) as the object falls to the ground. When the rock hits the ground, it transfers its energy to the ground.

Courtesy of thetechreader.com

According to https://www.grc.nasa.gov/WWW/k-12/airplane/thermo2.html, the second law of thermodynamics states “that if a physical process is irreversible, the combined entropy of the system and the environment must increase. The final entropy must be greater than the initial entropy for an irreversible process: Sf > Si (irreversible process)” This law tells us that the entropy of the universe is always increasing. There may be a local decrease in entropy in a system, but the entropy increase in the surroundings will always be greater than a local decrease.

Courtesy of rmhspoe.blogspot.com

The third law of thermodynamics states, according to http://physicsforidiots.com/physics/thermodynamics/, “As temperature approaches absolute zero, the entropy of a system approaches a constant minimum.” This law is also used to illustrate that absolute zero is a temperature that is so low that it can never actually be reached.

Courtesy of slideserve.com

So Now What?

So now we have these vocabulary terms and a set of laws, but how do they apply to entropy? First off let’s look at a definition of entropy, according to www.merriam-webster.com/dictionary/entropy entropy is “a measure of the unavailable energy in a closed thermodynamic system that is also usually considered to be a measure of the system’s disorder, that is a property of the system’s state, and that varies directly with any reversible change in heat in the system and inversely with the temperature of the system.” So is this the best working definition of entropy we can come up with? Short answer no.

Let’s take a look at what is really going on with thermodynamics and entropy and why the idea of “the tendency of a system to increase disorder” is not the best description of entropy. Think of a cup of black coffee which has liquid creamer poured into it.

Courtesy of roastycoffe.com

It may appear that the creamer is in a highly disordered state, and as a result, you might predict that this cup of coffee would have greater entropy compared to a cup of coffee below.

Courtesy of thriftyfun.com

The coffee cup in the first image does appear to be more disordered, but it is the coffee cup in the second image that has greater entropy. How can this be? If we change our working definition of entropy to be the tendency of a system toward the state with the maximum number of microstates, we can answer this question. In the first image of the coffee and creamer, as with a macrostate of 3 coins being heads, heads, heads, there are fewer ways in which the objects, molecules of creamer, or coins can arrange themselves for that specific configuration. If we look at the coffee with the creamer uniformly mixed with the coffee, we can see that there are more ways for the particles to reach uniform mixture because it doesn’t matter which particles of creamer mix with which particles of coffee in order to get the even mixture. Just as obtaining 2 heads and 1 tails is more likely than obtaining 3 heads because of the number of possible ways to obtain either outcome. There is only one way microstate that gives a macrostate of 3 heads, but there are 3 microstates that can deliver the macrostate of 2 heads and 1 tails.

Another example which illustrates that disorder does not necessarily equate to entropy is the universe. The entropy of the universe was very low after the big bang and had been increasing ever since. The universe moments after the big bang would have had little structure as compared to what we have now, galaxies, stars, planets, people. The kicker is that because of so many ordered and structured objects in the universe today, and there are many more microstates available to create all these objects.

The above are two examples why we need a better working definition for entropy than one that focuses on disorder. A more accurate or complete definition must include the idea of a system tending toward a state of the maximum amount of microstates for a given macrostate. There are many times when the old fashioned definition of chaos and disorder applies just fine, but it is not a completely accurate description.