- The Carnot cycle and efficiency
- Entropy — a statistical interpretation (Chemistry) · coming soon
- Gibbs free energy (Chemistry) · coming soon
Allowed by energy, never seen
A cup of tea at 80 °C stands in a room at 20 °C. Over half an hour the tea cools and the room warms very slightly. Now imagine the film run backwards. The room cools slightly, and the tea heats itself back up to 80 °C.
The first law has no objection to the backward film. The energy the room gives is exactly the energy the tea gains, so energy is conserved. Yet nobody has ever seen it happen. The lecture on the first law promised that the direction of such changes is the subject of the second law. This is that lecture.
The last lecture left a second puzzle. Its four-stage cycle took in 350 J of heat, did 30.7 J of work, and gave out 319.3 J of heat. Why give out so much? An engine that turned all 350 J into work would also conserve energy. Nobody has built one.
These two puzzles look different. One is about heat flowing. The other is about engines. This lecture shows that they are the same fact, and then finds the quantity that explains both: entropy.
Two statements of one law
The second law was first stated in words, in two ways.
The Clausius statement. No process is possible whose only result is the transfer of heat from a colder body to a hotter body.
The Kelvin statement. No process is possible whose only result is that heat is taken from one body and turned completely into work.
The words "only result" matter in both. A refrigerator does move heat from its cold inside to the warm kitchen, but that is not its only result: it also uses electrical work. And in the first-law lecture, a gas expanding at constant temperature turned all its heat into work. But the gas ended up bigger, so that was not the only result either. To repeat the trick, the gas must be pushed back, which costs work. Kelvin's statement is about an engine that works in a cycle, returning to its starting state each time.
These two statements are not two laws. If either one could be broken, the other could be broken too. Step through the argument below.
Press Next to add one step. Read the reason before you go on.
The argument shows that an engine which breaks the Kelvin statement could be used to break the Clausius statement.
- Suppose an engine E takes heat from the hot body and turns all of it into work . This breaks the Kelvin statement.
- Use that work to drive an ordinary refrigerator R. It takes heat from the cold body. By the first law it gives to the hot body.
- Add up for the hot body: it gives and receives . Its net gain is .
- The cold body loses . E and R both return to their starting states, and no work comes from outside.
- So the only result is that heat has moved from the cold body to the hot body. This breaks the Clausius statement.
Conclusion: if the Clausius statement is true, no perfect engine can exist. A similar argument runs the other way, so the two statements stand or fall together.
So the tea that never reheats itself and the engine that must give out heat are one fact seen from two sides. But a statement in words cannot calculate anything. Physics needs a quantity.
A quantity that keeps score: entropy
In 1865 Rudolf Clausius named that quantity entropy, from a Greek word for transformation. It is given the symbol . When a small amount of heat enters a system reversibly at temperature , the entropy rises by
Here is in kelvin, and is in joules per kelvin (). If the temperature stays constant, this becomes . "Reversibly" means slowly, through states that are always in equilibrium, so that a tiny change could run the process backwards. The next sections show why this word matters.
Like internal energy, entropy is a function of state. A gas at a given pressure, volume and temperature has a definite entropy, however it got there. Heat is not a function of state, but heat divided by temperature, along a reversible path, is.
Now apply it to the tea. A small amount of heat leaves the tea at and enters the room at . Both are large enough that their temperatures hardly change. So
This is positive exactly when is smaller than . The same is divided by a smaller temperature when it arrives than when it leaves. So heat flowing from hot to cold raises the total entropy, and heat flowing from cold to hot would lower it.
In any process, the total entropy of a system and its surroundings never decreases:
The total stays the same in a reversible process, and increases in every irreversible one.
This one inequality contains both word statements. Clausius: heat from cold to hot would make negative. Kelvin: a cyclic engine returns to its starting state, so its own entropy does not change. If it takes from a hot body, that body loses entropy . Something must gain at least as much. Work carries no entropy, so the engine must give heat to a colder body, with . That is why the cycle in the last lecture had to give out heat. How small that heat can be, and what it means for efficiency, is the subject of the next lecture.
A freezer turns 0.5 kg of water into ice. The entropy of the water falls. Does the freezer break the second law?
Show the answer
No. The law is about the total entropy. The freezer pumps the heat out of the water and gives it, plus the work from its motor, to the warmer kitchen. The kitchen's entropy rises by more than the water's falls. The entropy of one part of the world can fall, but only if another part gains more.
Reversible and irreversible
A reversible process could be run backwards by a tiny change, leaving no trace anywhere. Heat crosses only between bodies at almost the same temperature, and nothing rubs or splashes. Then . This is an ideal limit. Real heat flows need a real temperature difference, so they are irreversible.
The clearest irreversible process is the free expansion from the last lecture. A gas rushes into an empty space. No heat enters (), and no work is done (), so for an ideal gas the temperature stays the same. Has the entropy changed? You cannot use with , because the process was not reversible. Instead, use the fact that entropy is a function of state. Find a reversible path between the same two states: a slow isothermal expansion. Along that path the gas takes in heat , as the last lecture showed. So
The free expansion has the same , but nothing else changes, so the total entropy has increased. In general, for an irreversible change, where is the heat that actually entered.
Counting: why entropy increases
So far, entropy is defined by heat and temperature. But why should it only increase? Ludwig Boltzmann's answer, from the 1870s, is to count.
Put 4 molecules, labelled A, B, C and D, in a box with two halves. Each molecule is either left or right, so there are equally likely arrangements. Group them by how many molecules are on the left.
| Number on the left | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Arrangements | 1 | 4 | 6 | 4 | 1 |
"All 4 on the left" can happen in only one way. "2 on each side" can happen in 6 ways: choose which 2 of the 4 are on the left, . A description such as "2 on each side" is called a macrostate. Each detailed arrangement is a microstate, and is the number of microstates in a macrostate. As the molecules move at random, the gas spends most of its time in the macrostates with the most microstates, simply because there are more of them.
Boltzmann linked this count to entropy:
Here is the Boltzmann constant. Watch what happens as the number of molecules grows.
All the molecules start in the left half. At each step, one molecule chosen at random moves to the other half. Choose a number of molecules and press Play. Watch the graph of the fraction on the left, and count how often the box returns to "all on the left".
Molecules:
The graphs show two runs of the simulation. In each, all the molecules start on the left, and at each step one molecule chosen at random moves to the other half.
| Molecules | Chance that all are on the left | Arrangements with half on each side |
|---|---|---|
| 4 | 1 in 16 | 6 |
| 20 | about 1 in a million | 184 756 |
| 100 | about 8 × 10⁻³¹ | about 1.0 × 10²⁹ |
| 1000 | about 10⁻³⁰¹ | about 2.7 × 10²⁹⁹ |
With 4 molecules, the box often returns to "all on the left". With 20 it almost never does, and the fraction still wanders widely. With 1000, the fraction settles at one half and stays close to it. Nothing pushes the molecules towards the right. Each move is random. The gas spreads out because almost all the arrangements are spread out.
Now connect the counting to heat. Let a gas double its volume. Each molecule now has twice as many places to be, so the number of microstates is multiplied by 2 for every molecule, in all. Then
using . This is exactly the result found from for an isothermal doubling. Two completely different routes, one through heat and one through counting, give the same number.
That is it. That is the whole idea. Entropy measures how many microscopic arrangements fit what we see. Things change towards macrostates with more arrangements, because random motion visits all arrangements and almost all of them belong to those macrostates.
The second law is therefore a law of overwhelming probability, not an absolute prohibition. For one mole, the chance that every molecule is in the left half at a given moment is , with . That is about : a decimal point followed by about zeros before the first non-zero digit. "Never" is the honest word.
Entropy is often called "disorder". The word helps a little, but counting arrangements is the real meaning. Spread-out energy and spread-out molecules have more arrangements, so higher entropy.
Worked examples
200 J of heat flows from a large body at 400 K to a large body at 300 K. Find each entropy change and the total.
The bodies are large, so their temperatures stay constant. The heat can be treated as entering or leaving each body reversibly at its own temperature.
. .
, which is positive, so the process is allowed and irreversible.
Check: run it backwards (200 J from 300 K to 400 K) and every sign flips, giving . That is forbidden. ✓
0.10 mol of an ideal gas at 300 K doubles its volume. Find the total entropy change (a) for a slow isothermal expansion in contact with a reservoir at 300 K, and (b) for a free expansion into a vacuum.
(a) . The gas gains . The reservoir loses the same 173 J at the same temperature, so its entropy falls by . Total: 0. This is reversible.
(b) The gas starts and ends in the same states as in (a), so is again . Nothing else changes: no heat leaves any reservoir. Total: . This is irreversible.
Check by counting: . ✓
100 molecules are in a box with two halves. Compare the macrostates "all on the left" and "50 on each side".
There are microstates in total. "All on the left" has . "50 on each side" has .
So the chance of finding all 100 on the left is . The chance of exactly 50:50 is . That seems small, but the splits from 45:55 to 55:45 together have a chance of about 0.73. The gas is almost always close to even.
For large , a useful approximation is . For it gives , within 0.3% of the exact count.
Check with Boltzmann: between the two macrostates. ✓
1.0 kg of water () is heated from 20 °C to 80 °C by a large hot plate held at 80 °C. Find the entropy change of the water, of the hot plate, and of the total.
The water's temperature changes, so add up along a reversible path, imagining many reservoirs each a little hotter than the last:
.
The heat supplied is . The hot plate gives this at 353.15 K, so .
. Positive, as it must be: most of the heat crossed a large temperature difference.
Check: the water gains more entropy than the plate loses, because the water received the heat at lower temperatures, between 293 K and 353 K. ✓
Three traps
The entropy of one object can decrease: water freezing in a freezer, a gas compressed in a cooled cylinder, a growing plant. Only the total for the system and its surroundings cannot decrease. Always ask: where did the heat go, and what did it do to the entropy there?
In Worked Example 1, dividing by 127 °C and 27 °C instead of 400 K and 300 K gives , which is wrong by a factor of about 35. Entropy needs the absolute temperature in kelvin.
In a free expansion , so , but the gas's entropy rises by . The formula works only along a reversible path. For an irreversible change, find a reversible path between the same two states and calculate along that.
Work each one on paper first. Open a hint only when you are stuck.
-
On a winter night, 1500 J of heat passes through a window from a room at 293 K to the air outside at 273 K. Find the total entropy change.
Hint 1
Treat the room and the outside air as large bodies at fixed temperatures.
Hint 2
The room loses and the outside gains .
Full answer
.
Check: positive, as expected for heat flowing from warmer to colder. The total is small because 293 K and 273 K are close together. ✓
-
2.0 mol of an ideal gas is compressed slowly to half its volume while in contact with a reservoir at 300 K. Find the entropy change of the gas. Does the gas's change break the second law?
Hint 1
Use with .
Hint 2
In an isothermal compression, heat leaves the gas. Where does it go?
Full answer
.
The gas gives out heat to the reservoir at 300 K, so the reservoir gains . The total is 0, so the process is reversible and allowed. The gas's entropy fell, but the total did not.
-
A refrigerator takes 300 J of heat from its inside at 258 K. It uses 80 J of electrical work and gives 380 J to the kitchen at 298 K. Is this allowed by the second law? Would it still be allowed if it used only 30 J of work?
Hint 1
The refrigerator works in a cycle, so its own entropy does not change. Add the entropy changes of the inside and the kitchen.
Hint 2
With 30 J of work, the kitchen receives .
Full answer
With 80 J: . Positive, so it is allowed.
With 30 J: . Negative, so it is impossible. Too little heat would reach the kitchen to make up for the entropy taken from the inside.
This is the Clausius statement in numbers: moving heat from cold to hot needs work, and there is a smallest amount of work that can do it.
-
In a model, the arrangement of the molecules in a box changes to a new random arrangement 1000 times every second. On average, how long would you wait to see all the molecules in the left half (a) for 20 molecules, and (b) for 100 molecules? Compare (b) with the age of the universe, about s.
Hint 1
The chance of "all on the left" in any one arrangement is .
Hint 2
If an event has chance per try, you wait about tries on average. Divide the number of tries by 1000 to get seconds.
Full answer
(a) tries, which takes about 1050 s, roughly 17 minutes.
(b) tries, which takes about s. That is about times the age of the universe.
With only 100 molecules, the "backward film" is already hopeless. A real gas has around molecules. This is why the second law is never seen to fail, even though it rests on chance.
The laws of motion for single molecules work equally well forwards and backwards in time. A film of two molecules colliding looks normal either way. A film of tea reheating itself does not. The difference comes from the second law: the world started in a state of low entropy, and the count of arrangements has been growing ever since. Many physicists think this is why time has a direction at all.
Living things seem to break the rule, because they build order. But a plant or a person takes in energy as sunlight or food and gives out heat. The entropy given to the surroundings is more than the order built inside. Life does not break the second law. It runs on it.
In 1867, in a letter to Peter Guthrie Tait, James Clerk Maxwell imagined a tiny being at a door between two halves of a gas. It lets fast molecules through one way and slow ones the other, so one side heats and the other cools, apparently with no work. Kelvin later called it a "demon". The answer that most physicists now accept came in 1961, from Rolf Landauer, and in 1982, from Charles Bennett. The demon must record what it sees, and erasing each bit of that record gives out at least of heat. That puts back at least as much entropy as the demon removes. In 2012, a team in Lyon measured the heat given out when one bit was erased, using a tiny bead held by a laser. It came close to this limit. Information, it turns out, is physical.
Boltzmann's counting met strong opposition in his lifetime, when many scientists doubted that atoms were real. The formula , written in that form by Max Planck around 1900, is carved on Boltzmann's grave in Vienna.
- The Clausius statement (no heat from cold to hot as the only result) and the Kelvin statement (no cycle that turns heat completely into work) are equivalent forms of the second law.
- Entropy is a function of state, and its change is found by adding along a reversible path, with in kelvin.
- The total entropy of a system and its surroundings never decreases: it stays the same in a reversible process and increases in an irreversible one.
- For an irreversible change, the entropy change is found from a reversible path between the same two states, not from the heat that actually entered.
- Boltzmann's formula explains the second law: systems move towards macrostates with overwhelmingly more microstates.
- Counting microstates and dividing heat by temperature give the same entropy change, for example when an ideal gas doubles its volume.