Drop a little ink into a glass of water and wait. The colour spreads until the whole glass is evenly tinted, and it stays that way: you will never see the ink gather itself back into a single drop. A cup of tea cools to room temperature, but a lukewarm cup never heats itself up by cooling the room. A ball dropped on the floor bounces lower and lower and finally lies still; it never starts bouncing again by itself. None of these reversed processes would break the conservation of energy. Something else forbids them. This lesson gives that something a name, entropy, and shows that the same law sets a hard limit on every engine and power station in the world.
Processes that go one way only#
Look again at the examples. In each one, energy that was in one place, or in an orderly form, ends up spread out:
- Heat flows from hot to cold. Lesson 4.2 showed that a hot and a cold object in contact reach the same temperature. The reverse, two objects at the same temperature drifting apart to one hot and one cold, never happens.
- Gases mix and do not un-mix. Open a door between a room full of nitrogen and a room full of oxygen, and the molecules, which move at random (lesson 4.4), soon fill both rooms evenly. They never sort themselves back.
- Motion turns into thermal energy. A bouncing ball loses its kinetic energy to the random motion of the molecules in the ball, the floor and the air (lessons 3.4 and 4.2). The reverse would need all those molecules to push the ball upward at the same moment.
The NASA Glenn page Second Law, Entropy makes the key point with the first example: heat flowing from a cold object to a hot one would conserve energy perfectly well, yet it is never seen (NASA Glenn, Second Law, Entropy). The first law of thermodynamics (lesson 4.8) only says how much energy there is; it says nothing about which way things go. Processes like these, which cannot run backwards by themselves, are called irreversible. A film of any of them played backwards looks obviously wrong.
The second law in words#
The rule that picks the direction is the second law of thermodynamics. Several physicists stated it in the 1800s in different but equivalent forms; Clausius, Kelvin and Carnot each wrote one for the problem they were studying (NASA Glenn, Second Law, Entropy). The simplest is the one associated with Rudolf Clausius:
The words "by itself" matter. A fridge does move heat from its cold inside to the warmer kitchen, but only because a motor does work on it. The last section of this lesson comes back to that.
Why should nature care about direction? The answer comes from counting.
Counting arrangements#
Take a box with an imaginary line down the middle and put four gas molecules in it, labelled A, B, C and D. Each molecule wanders about at random, so at any moment it is equally likely to be in the left half or the right half. Each molecule has two choices, so there are possible arrangements, all equally likely. Group them by how many molecules are on the left:
| Molecules on the left | Number of arrangements | Chance |
|---|---|---|
| 4 | 1 (ABCD) | 1/16 |
| 3 | 4 | 4/16 |
| 2 | 6 | 6/16 |
| 1 | 4 | 4/16 |
| 0 | 1 | 1/16 |
From outside you cannot tell which molecule is which; you only see how many are on each side. Physicists call the outside description (here "two on the left") a macrostate, and each detailed arrangement (here "A and C on the left") a microstate. The even split can be made in 6 ways and is the most likely macrostate. "All on the left" can be made in only 1 way.
For molecules there are microstates, and only one of them has every molecule on the left. So the chance that all are in one half at a given moment is
In words
P equals ( one half ) to the power N
The numbers fall off astonishingly fast:
| 1 | 0.5 |
| 4 | 0.0625 |
| 10 | , about 1 in 1000 |
| 100 |
A litre of air at holds about molecules (from the ideal gas law, lesson 4.3). For them, "all in one half" is so unlikely that it would never be seen in many lifetimes of the universe. That is why gases mix and do not un-mix. The mixed state is not forced by any special force; it is simply made of overwhelmingly more microstates than the sorted state, and random motion carries the molecules into the most likely macrostate and keeps them there.
Entropy#
Entropy, symbol , turns this counting into a physical quantity. If a macrostate can be made in ways (the Greek capital omega), its entropy is
In words
S equals k B log capital omega
Here is Boltzmann's constant from lesson 4.3, so entropy is measured in joules per kelvin, . The natural logarithm (lesson 0.9) keeps the numbers manageable: for a real gas is unimaginably large, but its logarithm is a number we can work with. The logarithm also makes entropy add up: if two systems have and microstates, together they have , and .
You do not need to calculate with this formula at this level, but one example shows how it works. Let a gas spread from one half of a box into the whole box. Each molecule now has twice as many places to be, so grows by a factor and the entropy grows by (MIT 8.21 Lecture 8, slide 8). For one mole, , that is .
Now the second law can be said with entropy. An isolated system (one that exchanges no energy or matter with its surroundings) moves at random from microstate to microstate, and so ends up, with near certainty, in the macrostate with the most microstates:
In words
capital delta S is greater than or equal to 0
The total entropy of an isolated system never decreases. It grows until the system reaches equilibrium, where it is as large as it can be, and then stays constant (MIT 8.21 Lecture 8, slide 8). The entropy of one part can go down, as when water freezes in a freezer, but only if the entropy of something else goes up by at least as much.
Entropy is often called a measure of "disorder". That is a useful picture (a mixed gas looks more disordered than a sorted one), but the precise meaning is the count of microstates.
Entropy and heat: ΔS = Q/T#
Counting microstates is hard for real objects. Fortunately there is a second way to find a change in entropy, using only heat and temperature. When a small amount of heat flows gently into an object at temperature , its entropy changes by
In words
capital delta S equals Q over T
with in kelvin. is positive for heat flowing in, which raises the entropy, and negative for heat flowing out. The formula holds when the temperature stays (nearly) the same while the heat flows: for a small amount of heat, for a very large object such as a lake or the air outside (called a reservoir), or during a phase change, where the temperature stays fixed (lesson 4.6).
There is a second condition: the heat must flow in gently, slowly and without stirring, friction or sudden expansion, so that the object stays close to equilibrium all the time. In general the entropy rises by at least , and only for such a slow, gentle change is it exactly (MIT 8.044 Lecture 8, slides 8 and 13; MIT 8.21 Lecture 10, slide 9). Two consequences matter later:
- A slow change with no heat, , leaves the entropy unchanged. A gas that expands slowly in an insulated cylinder keeps the same entropy (MIT 8.21 Lecture 9, slide 7); lesson 4.10 uses this for the expanding universe.
- A sudden change can raise the entropy with no heat at all. The gas that rushes from one half of a box into the empty other half (the free expansion above) gains although no heat flows in.
Why does heat raise the entropy? Heat flowing in gives the particles more energy, and more energy can be shared out among them in more ways. Why divide by ? A cold object has little energy to share, so the same extra joule opens up many new arrangements; a hot object already has plenty, and one more joule makes less difference. The two descriptions of entropy, counting and , give the same answer, which is shown in the university course (MIT 8.044 Lecture 8, slides 3 to 8).
Melting ice
of ice at melts into water at . The latent heat of fusion of ice is (lesson 4.6). By how much does the entropy of the water change?
The heat
.
The entropy change
The temperature stays at while the ice melts, so .
What it means
The entropy goes up: liquid water, with molecules free to move past each other, can be arranged in far more ways than the orderly crystal of ice. Freezing the water again in a freezer lowers its entropy by the same amount, which is allowed only because the freezer gives even more entropy to the kitchen, as the last section shows.
Why heat flows from hot to cold#
Now the Clausius form of the second law follows from the entropy form. Let heat pass from a hot object at to a cold object at , both large enough that their temperatures barely change. The hot object loses entropy and the cold one gains (NASA Glenn, Second Law, Entropy):
In words
capital delta S total equals minus Q over T h plus Q over T c
Because is smaller than , the same divided by the smaller temperature gives the larger number. The cold object gains more entropy than the hot one loses, so the total goes up, as the second law allows. Run it the other way, heat from cold to hot, and both signs flip: the total entropy would go down, which the second law forbids. That is the whole reason heat flows only from hot to cold.
Two blocks, two directions
Heat engines#
A heat engine is any machine that turns heat into work over and over again: a steam turbine in a power station, a car engine, a jet engine. Each one takes a working substance, usually a gas or steam, round a closed cycle, so that it ends each cycle in the same state as it started (MIT 8.044 Lecture 11, slide 8). In each cycle:
- it takes heat from a hot reservoir (burning fuel, or steam from a boiler);
- it does work , for example by pushing a piston or spinning a turbine;
- it gives the remaining heat to a cold reservoir (the cooling water, the air).
In this lesson , and are all positive amounts, and is the work the engine does, not the work done on the gas as in lesson 4.8. After a full cycle the working substance is back where it began, so its internal energy has not changed, and energy conservation gives
In words
W equals Q h minus Q c
The efficiency is, as in lesson 3.5, the useful energy out divided by the energy in. The useful output is the work and the input is the heat from the hot reservoir:
In words
eta equals W over Q h equals 1 minus Q c over Q h
Why not simply make zero and turn all the heat into work? Because of entropy. Taking from the hot reservoir lowers its entropy by . The engine itself ends each cycle where it started, so its own entropy has not changed. Work carries no entropy. The only way to make the total entropy go up (or at least not go down) is to give some heat to the cold reservoir: its entropy rises by , and the second law needs (MIT 8.21 Lecture 8, slide 11). Every heat engine must throw some heat away. This is the second law in the form associated with Kelvin: no engine working in a cycle can turn heat from one reservoir completely into work.
An engine's energy flows
The Carnot limit#
How small can be? The smallest amount the second law allows is when the total entropy stays exactly constant, , so . Putting that into the efficiency gives the largest efficiency any heat engine can have, named after Sadi Carnot:
In words
eta max equals 1 minus T c over T h
Both temperatures must be in kelvin. The limit depends only on the two temperatures, not on how cleverly the engine is built or what the working substance is. To reach it, every step would have to be reversible, with heat flowing across only tiny temperature differences, so the engine would have to run very slowly (MIT 8.21 Lecture 9, slide 6). Real engines therefore stay well below it. To raise the limit you need a hotter hot side or a colder cold side.
A power station
A coal-fired power station makes steam at about , and its cooling water is at about . (a) What is its Carnot limit? (b) In practice such stations reach about 40% (MIT 8.21 Lecture 8, slide 12). For an electrical output of , how much heat must the fuel supply each second, and how much goes into the cooling water?
(a) The limit
, or 62.5%. Even a perfect engine would have to throw away 37.5% of the heat.
A car engine has much hotter gases inside, about when the fuel burns, so its Carnot limit with outside air is , or 87%. A real petrol engine reaches only about 25% (MIT 8.21 Lecture 8, slide 12): its gases do not stay at the top temperature, heat leaks through the cylinder walls, and the hot exhaust leaves the engine long before it has cooled to .
Refrigerators and heat pumps#
Run a heat engine backwards and you get a refrigerator or a heat pump: put work in, take heat from a cold place, and deliver heat to a warm place (MIT 8.21 Lecture 10, slides 5 and 30). Energy conservation now reads
In words
Q h equals Q c plus W
A refrigerator's job is to take heat out of its cold inside; a heat pump's job is to deliver heat into a warm house, taking it from the colder air or ground outside (reading 2, slide 5). Both move heat from cold to hot, which the second law forbids by itself. The work is what makes it possible: it adds to the heat delivered to the warm side, so that the warm side gains enough entropy to make up for what the cold side loses.
Why a fridge needs a plug
A freezer compartment at () stands in a kitchen at (). The fridge removes of heat from the freezer. (a) If it did this with no work, so that the kitchen received just , what would the change in total entropy be? (b) What is the least work the fridge needs?
(a) No work
. The total entropy would decrease, so this is impossible: it is heat flowing by itself from cold to hot.
(b) The least work
The kitchen must gain at least as much entropy as the freezer loses: , so . The extra energy comes from the work, .
In practice
A real fridge needs several times this minimum, but the idea holds: the electricity does not "make cold"; it pays for moving heat uphill, and the kitchen gets slightly warmer than if the fridge were off.
A heat pump uses the same trick to heat a house. With of electrical work it might take of heat from the cold air outside and deliver into the house: three times as much heat as an electric heater gives for the same electricity (MIT 8.21 Lecture 10, slide 12, compares the heat delivered with the work put in).
Try it#
The simulation starts with a box divided by a wall. Put particles of one kind on the left and the other kind on the right (set "Number of Particles" for each side; the simulation allows 10 to 200 per side, in steps of 10), then press "Remove Divider". Watch the two kinds spread into each other; tick "Center of Mass" to follow where each kind is on average. Wait as long as you like: do the two kinds ever sort themselves back into their own halves?
Compare the fewest particles the simulation allows, 10 of each, with the most, 200 of each. With 10, the number of one kind on the "wrong" side jumps about a lot from moment to moment, and the centre of mass wanders. With 200 it hardly changes. Even with only 10, all of one kind back on their own side at a given moment has a chance of , about 1 in 1000, so you would have to look about a thousand times to catch it once. With 200 it is hopeless. That is the rule at work.
Summary#
- Many processes run one way only: heat flows from hot to cold, gases mix and do not un-mix, motion turns into thermal energy. They do not break energy conservation when reversed; the second law of thermodynamics forbids the reverse.
- Second law (Clausius): heat does not flow by itself from a colder object to a hotter one.
- Entropy measures the number of microstates behind a macrostate, , in . The chance that all randomly moving particles are in one half of a box is , so a mixed state is overwhelmingly more likely than a sorted one.
- The total entropy of an isolated system never decreases: .
- Heat flowing into an object at temperature changes its entropy by . When heat flows from hot to cold the cold side gains more entropy than the hot side loses, so the total rises.
- A heat engine takes from a hot reservoir, does work and gives to a cold one. Its efficiency can never exceed the Carnot limit , with temperatures in kelvin: 62.5% for a power station between 800 K and 300 K, which in practice reaches about 40%.
- A refrigerator or heat pump needs work to move heat from cold to hot: .