---
title: "The Second Law: Entropy"
book: "University Physics — Year 1"
subject: physics
language: en
chapter: 23
exercises: 12
source: https://one-course.com/books/physics/3/en/chapter/23-the-second-law-entropy
---

# Chapter 23 — The Second Law: Entropy

Drop a hot spoon into a cup of cold water: the spoon cools, the water warms, and the two end at one temperature. The first law would allow the reverse just as well — the water cooling further while the spoon heated up, energy conserved to the joule — yet it never happens. A film run backward is instantly recognizable; the molecules obey laws that have no arrow, and the world has one. The second law of thermodynamics names the quantity that tells the two directions apart: entropy, which a [closed system](https://one-course.com/books/physics/3/en/chapter/12-newtons-laws-of-dynamics#def-b1-newton-dynamics-conservation) can only create, never destroy. This chapter states the law, computes entropy for the systems of this volume, shows how it measures irreversibility, and gives it, at the end, its meaning in terms of counting.

![An ice cube melting in hot coffee: heat flows one way only, and the entropy created measures how far from reversible the mixing is.](https://one-course.com/images/onecourse/chapters/physics-3/b1-second-law-entropy/img-b1d68b6fb92a.jpg)

*An ice cube melting in hot coffee: heat flows one way only, and the entropy created measures how far from reversible the mixing is.*

## 23.1 The second law

**Theorem 23.1 (Second law of thermodynamics).**

Every [closed system](https://one-course.com/books/physics/3/en/chapter/12-newtons-laws-of-dynamics#def-b1-newton-dynamics-conservation) possesses an extensive state function, the *entropy* $S$ ($\mathrm{J}/\mathrm{K}$), such that in any transformation

$$
\Delta S = S_{\mathrm{exch}} + S_{\mathrm{created}}, \qquad
S_{\mathrm{exch}} = \int\frac{\delta Q}{T_{\mathrm{ext}}}, \qquad
S_{\mathrm{created}} \geq 0 ,
$$

where $\delta Q$ is the heat received from the surroundings at the temperature $T_{\mathrm{ext}}$ of the place where it enters, and $S_{\mathrm{created}} = 0$ if and only if the transformation is reversible. An isolated system ($\delta Q = 0$) can only see its entropy grow, and its equilibrium is the state of maximum entropy.

**Proof.** *Admitted at this level.* ∎

**Remark 23.2 (Reading the law).**

Unlike energy, entropy is not conserved: it is *exchanged* with heat (and only with heat — work carries no entropy) and *created* by every irreversible process: friction, heat flowing across a temperature difference, a gas rushing into a vacuum, mixing. The created term is the measure of irreversibility, and a transformation is possible only if it is non-negative. “Reversible” is an idealization — quasi-static, frictionless, heat exchanged across vanishing temperature gaps — that real processes approach but never reach.

![The entropy balance: heat brings entropy Q/T_ ext across the boundary, work brings none, and irreversible processes inside create some — never destroy it.](https://one-course.com/images/onecourse/chapters/physics-3/b1-second-law-entropy/fig-d7133dee745b.svg)

*The entropy balance: heat brings entropy $\delta Q/T_{\mathrm{ext}}$ across the boundary, work brings none, and irreversible processes inside create some — never destroy it.*

**Proposition 23.3 (Fundamental identity; entropy of the perfect gas and of condensed phases).**

For a [closed system](https://one-course.com/books/physics/3/en/chapter/12-newtons-laws-of-dynamics#def-b1-newton-dynamics-conservation) of fixed composition, along any reversible path, $\delta Q_{\mathrm{rev}} = T\,\dd S$ and $\delta W_{\mathrm{rev}} = -P\,\dd V$, so

$$
\dd U = T\,\dd S - P\,\dd V ,
$$

a relation between state functions that holds for any infinitesimal change. Consequently, for $n$ [moles](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) of [perfect gas](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-model),

$$
S(T, V) = nC_{V,m}\ln T + nR\ln V + \text{const}, \qquad
S(T, P) = nC_{P,m}\ln T - nR\ln P + \text{const},
$$

and for a [condensed phase](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#prop-b1-kinetic-theory-condensed) of heat capacity $C$, $S(T) = C\ln T + \text{const}$.

**Proof.** Reversible: $T_{\mathrm{ext}} = T$ and $S_{\mathrm{created}} = 0$ give $\dd S =
\delta Q/T$; the first law then gives the identity, which no longer refers to a path. [Perfect gas](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-model): $\dd S = (\dd U + P\,\dd V)/T = nC_{V,m}\dd T/T
+ nR\,\dd V/V$; integrate; use $PV = nRT$ for the other form. [Condensed phase](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#prop-b1-kinetic-theory-condensed): $\dd V = 0$, $\dd S = C\,\dd T/T$. ∎

**Example 23.4 (Reading the formulas).**

An adiabatic [reversible transformation](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#def-b1-first-law-transformation) is *isentropic*: $S(T, V)$ constant gives $T^{C_{V,m}}V^R$ constant, i.e. $TV^{\gamma - 1}$ constant — [Laplace’s law](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#prop-b1-first-law-transformations) again. Doubling the volume of a [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) of gas at constant temperature raises its entropy by $R\ln2 = 5.8\,\mathrm{J}/\mathrm{K}$, whether done reversibly (the entropy comes in as heat from the bath) or by a [Joule expansion](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#rem-b1-first-law-irreversible) into vacuum (no heat: the same $5.8\,\mathrm{J}/\mathrm{K}$ are then *created*). The state function does not care how it got there; the balance does.

## 23.2 Entropy balances

**Proposition 23.5 (Heat exchanged with a thermostat).**

A system receiving the heat $Q$ from a thermostat at $T_0$ (whatever happens inside) has $S_{\mathrm{exch}} = Q/T_0$, and the thermostat’s own entropy changes by $-Q/T_0$: a thermostat exchanges entropy reversibly.

**Proof.** $T_{\mathrm{ext}} = T_0$ is constant; the thermostat’s internal state changes infinitesimally, so its own creation is negligible. ∎

**Example 23.6 (A hot body in a cold lake).**

An iron block ($m = 1.0\,\mathrm{kg}$, $c = 450\,\mathrm{J}/(\mathrm{kg}\,\mathrm{K})$) at $T_1 =
373\,\mathrm{K}$ dropped into a lake at $T_0 = 293\,\mathrm{K}$: it ends at $T_0$, with $\Delta S_{\text{block}} = mc\ln(T_0/T_1) = -109\,\mathrm{J}/\mathrm{K}$ and $Q =
mc(T_0 - T_1) = -36\,\mathrm{kJ}$ given to the lake, so $S_{\mathrm{exch}} =
Q/T_0 = -123\,\mathrm{J}/\mathrm{K}$ and $S_{\mathrm{created}} = -109 + 123 = +14\,\mathrm{J}/\mathrm{K}$. The block’s entropy fell, the lake’s rose by more: the process is irreversible, and the number measures by how much.

**Proposition 23.7 (Two consequences).**

1. *(Clausius)* Heat does not flow spontaneously from a cold body to a hotter one: a quantity $Q > 0$ passing from $T_h$ to $T_c < T_h$ creates $S = Q(1/T_c - 1/T_h) > 0$ ; the reverse would destroy entropy.
2. *(Kelvin)* No cyclic machine can produce work from a single thermostat: over a cycle $\Delta S = 0 = Q/T_0 + S_{\mathrm{created}}$ forces $Q \leq 0$ , hence $W = -Q \geq 0$ — the machine can only *receive* work and reject heat.

**Proof.** Both are the balance applied to the system “the two thermostats” or “the machine over a cycle”, with $S$ a state function so that $\Delta S
= 0$ over a cycle. ∎

**Definition 23.8 (Entropy diagram).**

In the $(S, T)$ plane a [reversible transformation](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#def-b1-first-law-transformation) is a curve, and the heat received is the area under it: $Q_{\mathrm{rev}} = \int T\,\dd S$. A reversible isotherm is horizontal, an isentropic (reversible adiabatic) vertical; a reversible cycle encloses an area equal to the heat received and hence, by the first law, to the work delivered ([Chapter 24](https://one-course.com/books/physics/3/en/chapter/24-heat-engines-and-machines#ch-b1-heat-engines)).

![Left: in the entropy diagram a reversible cycle of two isotherms and two isentropics receives T_h S at the hot temperature, rejects T_c S at the cold one, and delivers the difference as work — the Carnot cycle of the next chapter. Right: entropy created when two equal bodies at T_1 and T_2 are put in contact: zero only for T_1 = T_2, positive otherwise.](https://one-course.com/images/onecourse/chapters/physics-3/b1-second-law-entropy/fig-068939d005ee.svg)

![Left: in the entropy diagram a reversible cycle of two isotherms and two isentropics receives T_h S at the hot temperature, rejects T_c S at the cold one, and delivers the difference as work — the Carnot cycle of the next chapter. Right: entropy created when two equal bodies at T_1 and T_2 are put in contact: zero only for T_1 = T_2, positive otherwise.](https://one-course.com/images/onecourse/chapters/physics-3/b1-second-law-entropy/fig-e9f51bc0058c.svg)

*Left: in the [entropy diagram](#def-b1-second-law-entropy-TS) a reversible cycle of two isotherms and two isentropics receives $T_h\Delta S$ at the hot temperature, rejects $T_c\Delta S$ at the cold one, and delivers the difference as work — the Carnot cycle of the next chapter. Right: entropy created when two equal bodies at $T_1$ and $T_2$ are put in contact: zero only for $T_1 = T_2$, positive otherwise.*

**Method 23.9 (Making an entropy balance).**

1. Compute $\Delta S$ of the system from the state functions ( [Proposition 23.3](#prop-b1-second-law-entropy-identity) ): initial and final states only.
2. Compute $S_{\mathrm{exch}}$ from the heat actually received and the temperature of the source: $\sum Q_i/T_i$ for thermostats, $\int\delta Q/T_{\mathrm{ext}}$ otherwise.
3. Deduce $S_{\mathrm{created}} = \Delta S - S_{\mathrm{exch}}$ ; it must be $\geq 0$ — if not, the transformation is impossible (or an error was made); $= 0$ for a reversible one.

**Example 23.10 (Mixing hot and cold).**

Two equal masses $m$ of water at $T_1$ and $T_2$ mixed in a thermos end at $(T_1 + T_2)/2$ (first law); $\Delta S = mc[\ln\frac{T_f}{T_1} + \ln\frac{T_f}{T_2}]
= mc\ln\frac{(T_1 + T_2)^2}{4T_1T_2} \geq 0$ (arithmetic mean above geometric mean), with no exchange: all created. For $1\,\mathrm{kg}$ at $300\,\mathrm{K}$ and $400\,\mathrm{K}$: $86\,\mathrm{J}/\mathrm{K}$. The weekend problem shows that by mixing them *reversibly* — through an ideal engine — one would instead recover work and end at $\sqrt{T_1T_2}$.

## 23.3 What entropy counts

**Proposition 23.11 (Boltzmann’s formula).**

A macroscopic state (given $U$, $V$, $N$) can be realized by a number $\Omega$ of microscopic configurations (*microstates*). Its entropy is

$$
S = k_B\ln\Omega .
$$

An isolated system evolves toward the macroscopic state that has, by far, the most microstates: the growth of entropy is the march toward the overwhelmingly probable.

**Proof.** *Admitted at this level.* ∎

**Example 23.12 (Why the gas never comes back).**

$N$ molecules free to be in either half of a box: $2^N$ arrangements, all equally likely; only one has them all on the left. Letting a gas confined to one half expand multiplies $\Omega$ by $2^N$, so $\Delta S =
Nk_B\ln2 = nR\ln2$ — exactly the Joule-expansion result above, now with a meaning: the molecules have $2^N$ times more ways to be. The chance of their spontaneous return is $2^{-N}$: one in a thousand for ten molecules, one in $10^{30}$ for a hundred, and for a [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) a number with $10^{23}$ zeros. The second law is not a prohibition; it is a probability so lopsided that it has never once been caught failing.

![Twenty molecules in a box: the number of arrangements with k of them in the left half. The even split is realized 184756 ways, the all-left state once. With 1023 molecules the peak becomes a spike of relative width 10-11: the uniform gas is not a law, it is the only thing one could ever observe.](https://one-course.com/images/onecourse/chapters/physics-3/b1-second-law-entropy/fig-bf5bc056c731.svg)

*Twenty molecules in a box: the number of arrangements with $k$ of them in the left half. The even split is realized $184756$ ways, the all-left state once. With $10^{23}$ molecules the peak becomes a spike of relative width $10^{-11}$: the uniform gas is not a law, it is the only thing one could ever observe.*

## 23.4 Exercises

**Exercise 23.1 ★.**

Entropy change of $1.0\,\mathrm{kg}$ of ice melting at $0{}^{\circ}\mathrm{C}$ ($L_f = 334\,\mathrm{kJ}/\mathrm{kg}$), and of $1.0\,\mathrm{kg}$ of water boiling at $100{}^{\circ}\mathrm{C}$ ($L_v = 2260\,\mathrm{kJ}/\mathrm{kg}$). Why is the second so much larger?

**Solution of Exercise 23.1.**

$\Delta S = mL/T$: melting $334000/273 = 1.22\,\mathrm{kJ}/\mathrm{K}$; boiling $2260000/
373 = 6.06\,\mathrm{kJ}/\mathrm{K}$. Vaporization frees the molecules from each other entirely — far more microscopic disorder, and far more heat per [kelvin](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-temperature).

**Exercise 23.2 ★.**

Entropy change of $1.0\,\mathrm{kg}$ of water heated from $20\,$ to $80{}^{\circ}\mathrm{C}$. Does it depend on how the heating is done?

**Solution of Exercise 23.2.**

$\Delta S = mc\ln(T_2/T_1) = 4180\ln(353/293) = 0.78\,\mathrm{kJ}/\mathrm{K}$ — a state function: independent of the method (the entropy *created* is not).

**Exercise 23.3 ★.**

One [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) of [perfect gas](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-model) doubles its volume at constant temperature. $\Delta S$; entropy exchanged and created if the expansion is reversible; if it is a [Joule expansion](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#rem-b1-first-law-irreversible) into vacuum.

**Solution of Exercise 23.3.**

$\Delta S = nR\ln2 = 5.8\,\mathrm{J}/\mathrm{K}$. Reversible isothermal: $Q = nRT\ln2$ from the bath at $T$, $S_{\mathrm{exch}} = nR\ln2$, created $0$. Joule: $Q = 0$, $S_{\mathrm{exch}} = 0$, created $5.8\,\mathrm{J}/\mathrm{K}$.

**Exercise 23.4 ★.**

Show from $S(T, V)$ that a reversible [adiabatic transformation](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#prop-b1-first-law-transformations) of a [perfect gas](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-model) obeys $TV^{\gamma - 1} =$ const. What is the entropy change in a *sudden* adiabatic compression ([Exercise 22.11](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#exo-b1-first-law-11))? Compute it for that exercise’s numbers.

**Solution of Exercise 23.4.**

$S = nC_{V,m}\ln T + nR\ln V$ constant: $T^{C_{V,m}}V^R$ constant, i.e. $TV^{R/C_{V,m}} = TV^{\gamma - 1}$ constant. Sudden compression: $Q = 0$, so $S_{\mathrm{exch}} = 0$ and $\Delta S = S_{\mathrm{created}}$; with $T$: $300 \to
643$ K, $V$: $24.9 \to 10.7$ L: $\Delta S = 20.8\ln(643/300) + 8.314\ln(10.7/
24.9) = 15.9 - 7.0 = +8.9\,\mathrm{J}/\mathrm{K}$ created.

**Exercise 23.5 ★★.**

A $1.0\,\mathrm{kg}$ iron block ($c = 450\,\mathrm{J}/(\mathrm{kg}\,\mathrm{K})$) at $100{}^{\circ}\mathrm{C}$ is dropped into a lake at $20{}^{\circ}\mathrm{C}$. Entropy change of the block, of the lake, of the universe.

**Solution of Exercise 23.5.**

Block: $450\ln(293/373) = -109\,\mathrm{J}/\mathrm{K}$; lake: $+36000/293 = +123\,\mathrm{J}/\mathrm{K}$; universe: $+14\,\mathrm{J}/\mathrm{K}$.

**Exercise 23.6 ★★.**

Two $1.0\,\mathrm{kg}$ masses of water at $300\,\mathrm{K}$ and $400\,\mathrm{K}$ are mixed adiabatically. Final temperature, entropy created. Show in general that the created entropy $mc\ln[(T_1 + T_2)^2/4T_1T_2]$ is non-negative.

**Solution of Exercise 23.6.**

$T_f = 350\,\mathrm{K}$; $S = 4180[\ln(350/400) + \ln(350/300)] = 4180 \times
0.0206 = 86\,\mathrm{J}/\mathrm{K}$, all created. $(T_1 + T_2)^2 - 4T_1T_2 = (T_1 - T_2)^2
\geq 0$, so the logarithm’s argument is $\geq 1$.

**Exercise 23.7 ★★.**

A $1.0\,\mathrm{kJ}$ heat leak crosses a wall from a room at $300\,\mathrm{K}$ to the outside at $280\,\mathrm{K}$. Entropy created. Same heat from a $1000\,\mathrm{K}$ furnace to the room: compare, and comment on where the “loss” is greatest.

**Solution of Exercise 23.7.**

$S = Q(1/T_c - 1/T_h)$: $1000(1/280 - 1/300) = 0.24\,\mathrm{J}/\mathrm{K}$; furnace to room: $1000(1/300 - 1/1000) = 2.3\,\mathrm{J}/\mathrm{K}$, ten times more: the larger the temperature gap a heat flow crosses, the more irreversible — the furnace-to-room drop is where the high-grade energy is squandered.

**Exercise 23.8 ★★.**

Prove Kelvin’s statement from the entropy balance of a machine running a cycle in contact with one thermostat. Why does a ship’s engine not simply extract heat from the sea?

**Solution of Exercise 23.8.**

Cycle: $\Delta S = 0 = Q/T_0 + S_{\mathrm{created}}$ with $S_{\mathrm{created}} \geq 0$, so $Q \leq 0$ and $W = -Q \geq 0$: the machine cannot deliver work. The sea is a single thermostat: its heat cannot be turned into work without a colder body to dump entropy into.

**Exercise 23.9 ★★.**

One [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) of nitrogen and one [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) of oxygen, at the same $T$ and $P$, separated by a wall in a box of total volume $2V$, are allowed to mix. Entropy change (treat each gas as expanding into the whole box). Is it created or exchanged? What if both sides held nitrogen?

**Solution of Exercise 23.9.**

Each gas expands from $V$ to $2V$ at constant $T$: $\Delta S = 2 \times R\ln2
= 11.5\,\mathrm{J}/\mathrm{K}$, created (no heat exchanged, the box is isolated). Two halves of nitrogen: removing the wall changes nothing macroscopic — $\Delta S = 0$ (Gibbs’s paradox: identical molecules are not “mixed”).

**Exercise 23.10 ★★★.**

A $100\,\mathrm{W}$ bulb burns for one hour; all its energy ends up as heat in a room at $293\,\mathrm{K}$. Entropy created. Where, physically, was it created?

**Solution of Exercise 23.10.**

$Q = 3.6 \times 10^{5}\,\mathrm{J}$ into the room at $293\,\mathrm{K}$: $S = 1230\,\mathrm{J}/\mathrm{K}$ created — in the filament (electrical work turned into heat) and in the flow of that heat from the hot filament to the cool room; the electrical work itself carried no entropy.

**Exercise 23.11 ★★★.**

A body of heat capacity $C$ at $T_1$ is cooled to $T_0 < T_1$ (a) by direct contact with a thermostat at $T_0$, (b) in two steps through an intermediate thermostat at $\sqrt{T_1T_0}$, (c) through a continuum of thermostats. Entropy created in each case; conclude on what “reversible cooling” would require.

**Solution of Exercise 23.11.**

$\Delta S_{\text{body}} = C\ln(T_0/T_1)$ in every case. (a) exchanged $C(T_0 - T_1)/T_0$: created $C[T_1/T_0 - 1 - \ln(T_1/T_0)]$. (b) two steps with ratio $r = \sqrt{T_1/T_0}$ each: created $2C[r - 1 - \ln r]$, smaller (for $T_1/T_0 = 2$: $0.193C$ against $0.307C$). (c) infinitely many steps: each creates $C[(1 + \epsilon) - 1 - \ln(1 + \epsilon)] \approx C\epsilon^2/2$, summing to zero as $\epsilon \to 0$: reversible cooling needs a thermostat at every intermediate temperature — heat must never cross a finite gap.

**Exercise 23.12 ★★★.**

Probability that $N$ molecules all sit in the left half of a box, for $N = 10$, $100$, $10^{22}$ (express the last as a power of ten). Show that $\Delta S = k_B\ln(2^N)$ equals $nR\ln2$ and comment on the words “irreversible” and “impossible”.

**Solution of Exercise 23.12.**

$2^{-10} = 10^{-3}$; $2^{-100} = 8 \times 10^{-31}$; $2^{-10^{22}} = 10^{-3\times10^{21}}$. $k_B\ln2^N = Nk_B\ln2 = nR\ln2$. “Impossible” strictly means probability zero; here it is $10^{-3\times10^{21}}$ — not zero, but a number so small that no difference can ever be observed: irreversibility is statistics at the scale of $10^{23}$.

## 23.5 Problem: The cup of coffee and the arrow of time

**Problem 23.1.**

Weekend problem — a cooling cup, a mixed bath, a refrigerator and a box of molecules: four entropy balances, and what the created entropy would have been worth in work

Water: $c = 4180\,\mathrm{J}/(\mathrm{kg}\,\mathrm{K})$; room (a thermostat): $T_0 = 293\,\mathrm{K}$; $R = 8.314\,\mathrm{J}/(\mathrm{mol}\,\mathrm{K})$, $k_B = 1.38 \times 10^{-23}\,\mathrm{J}/\mathrm{K}$.

**Part I — The cooling cup.** A cup of $0.25\,\mathrm{kg}$ of coffee at $T_1 = 363\,\mathrm{K}$ cools to room temperature.

1. Heat given to the room, and the room’s entropy change.
2. Entropy change of the coffee.
3. Entropy created; check its sign.
4. The cup is drunk when it reaches $330\,\mathrm{K}$ : entropy created up to that moment.
5. Show that for any $T_1 > T_0$ , $S_{\mathrm{created}} = mc[T_1/T_0 - 1 -  \ln(T_1/T_0)] \geq 0$ (study $f(x) = x - 1 - \ln x$ ).
6. The coffee cools faster if stirred or blown upon: does that change the created entropy? Why or why not?

**Part II — Mixing, badly and well.** Two $1.0\,\mathrm{kg}$ masses of water at $T_1 = 400\,\mathrm{K}$ and $T_2 =
300\,\mathrm{K}$, in a thermos.

7. Direct mixing: final temperature $T_f$ and entropy created.
8. Instead, an ideal engine takes heat from the hot water, rejects heat to the cold one and delivers work, until both are at the same temperature $T_f'$ ; the whole process is reversible. Write the entropy balance and show that $T_f' = \sqrt{T_1T_2}$ .
9. Compute $T_f'$ and the work delivered (first law on the two waters).
10. Check the reversible scheme’s entropy balance numerically: the entropy lost by the hot water equals that gained by the cold.
11. Compare the work with $T_0 \times S_{\mathrm{created}}$ of question 6 (take the room as the reference temperature here, $T_0 \approx T_2$ ): what does the created entropy of the careless mixing measure?
12. Why does no kitchen recover that work?

**Part III — The refrigerator.** A refrigerator keeps its interior at $T_c = 278\,\mathrm{K}$ in the room at $T_0$; heat leaks into it at $40\,\mathrm{W}$, which the machine pumps back out.

13. Over one second, write the entropy balance of the machine (a cyclic device): entropy received from the cold interior, given to the room, created inside.
14. Deduce the minimum work per second (the [electric power](https://one-course.com/books/physics/3/en/chapter/6-dc-circuits-kirchhoffs-laws-and-theorems#thm-b1-dc-circuits-kirchhoff) ) needed, and the corresponding maximal coefficient of performance $Q_c/W$ .
15. Express that bound in terms of $T_c$ and $T_0$ alone, and evaluate it for a freezer at $T_c = 255\,\mathrm{K}$ .
16. A real refrigerator of this size draws about $15\,\mathrm{W}$ : entropy created per second.
17. Left open, the refrigerator’s door lets heat in at $200\,\mathrm{W}$ : minimum power now, and why an open refrigerator warms a room.
18. What would the second law say about a refrigerator that needed no electricity at all?

**Part IV — Counting.** A box is divided in two equal halves by a wall; $N$ molecules of a [perfect gas](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-model) are on the left. The wall is removed.

19. Number of microstates before and after (each molecule may be in either half), and $\Delta S$ by Boltzmann’s formula.
20. Check against $\Delta S = nR\ln2$ from the thermodynamic formula for a [Joule expansion](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#rem-b1-first-law-irreversible) .
21. For $N = 50$ , probability of finding all molecules back on the left at a random instant; for one [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) , the [order of magnitude](https://one-course.com/books/physics/3/en/chapter/1-units-dimensions-and-measurement#def-b1-units-dimensions-oom) of that probability as a power of ten.
22. How many yes/no questions (bits) specify which half each of the $N$ molecules is in? Compare with $\Delta S/(k_B\ln2)$ .
23. Entropy exchanged and created in the [Joule expansion](https://one-course.com/books/physics/3/en/chapter/22-the-first-law-of-thermodynamics#rem-b1-first-law-irreversible) ; why is it the textbook example of irreversibility?
24. The same gas is compressed back reversibly and isothermally to the left half: work received, heat given to the room, entropy exchanged; what must be supplied to undo the free expansion?
25. Summarize in three lines: what the second law conserves (nothing), what it forbids, and what created entropy costs.

**Solution of Problem 23.1.**

**1.** $Q = mc(T_0 - T_1) = 0.25 \times 4180 \times (-70) = -73\,\mathrm{kJ}$ for the coffee: the room gains $73\,\mathrm{kJ}$, $\Delta S_{\text{room}} = 73150/293
= +250\,\mathrm{J}/\mathrm{K}$.

**2.** $mc\ln(T_0/T_1) = 1045\ln(293/363) = -224\,\mathrm{J}/\mathrm{K}$.

**3.** $S_{\mathrm{created}} = -224 - (-250) = +26\,\mathrm{J}/\mathrm{K} > 0$.

**4.** $\Delta S = 1045\ln(330/363) = -99.6\,\mathrm{J}/\mathrm{K}$; $Q = 1045 \times
(-33) = -34.5\,\mathrm{kJ}$, $S_{\mathrm{exch}} = -117.7\,\mathrm{J}/\mathrm{K}$: created $18\,\mathrm{J}/\mathrm{K}$ so far — most of the irreversibility happens while the coffee is hottest.

**5.** $\Delta S - Q/T_0 = mc[\ln(T_0/T_1) - (T_0 - T_1)/T_0] = mc[x - 1 -
\ln x]$ with $x = T_1/T_0$; $f'(x) = 1 - 1/x$ vanishes at $x = 1$ where $f = 0$, and $f'' = 1/x^2 > 0$: minimum $0$.

**6.** No: initial and final states are the same, the heat is the same, the room is the same thermostat — the created entropy is fixed by the states, not by the speed.

**7.** $T_f = 350\,\mathrm{K}$; created $4180\ln(350^2/120000) = 86\,\mathrm{J}/\mathrm{K}$.

**8.** Reversible: total entropy conserved: $mc\ln(T_f'/T_1) + mc\ln(T_f'/
T_2) = 0$, so $T_f'^2 = T_1T_2$.

**9.** $T_f' = \sqrt{120000} = 346.4\,\mathrm{K}$; the waters lose $mc[(T_1 -
T_f') + (T_2 - T_f')] = 4180 \times (53.6 - 46.4) = 30\,\mathrm{kJ}$, delivered as work.

**10.** Hot: $4180\ln(346.4/400) = -601\,\mathrm{J}/\mathrm{K}$; cold: $4180\ln(346.4/
300) = +601\,\mathrm{J}/\mathrm{K}$: sum zero, as reversibility demands.

**11.** $T_0S_{\mathrm{created}} = 300 \times 86 = 26\,\mathrm{kJ}$, close to the $30\,\mathrm{kJ}$ recoverable: the created entropy, times the reference temperature, is the work that the irreversible path threw away.

**12.** It would need an engine working between two lukewarm waters whose temperatures keep changing — a few tens of kilojoules for a large machine: not worth it, but the second law says the work was there.

**13.** Received from the interior $Q_c/T_c = 40/278 = 0.144\,\mathrm{W}/\mathrm{K}$; given to the room $Q_0/T_0 = (40 + W)/293$; balance over a cycle: $0 = 0.144 - (40 + W)/293 + S_c$.

**14.** $S_c \geq 0$: $(40 + W)/293 \geq 0.144$, $W \geq 42.2 - 40 =
2.2\,\mathrm{W}$; COP $\leq 40/2.2 = 18$ ($= T_c/(T_0 - T_c)$).

**15.** $\mathrm{COP}_{\max} = T_c/(T_0 - T_c)$: for a freezer $255/38 = 6.7$ — the colder the box, the dearer each joule removed.

**16.** With $W = 15$: $S_c = (55/293) - 0.144 = 0.044\,\mathrm{W}/\mathrm{K}$ created every second.

**17.** $W \geq 200 \times 15/278 = 10.8\,\mathrm{W}$; the machine dumps $200\,\mathrm{W}$ plus its own work into the room while the interior stays cold: the room’s net gain is $W$ — an open refrigerator is a heater.

**18.** $W = 0$ would give $S_c = Q_c(1/T_0 - 1/T_c) < 0$: forbidden — Clausius’s statement.

**19.** Before: $1$ (all left); after: $2^N$; $\Delta S = k_B\ln2^N =
Nk_B\ln2$.

**20.** $Nk_B = nR$: $\Delta S = nR\ln2$, the Joule-expansion result.

**21.** One bit per molecule: $N$ bits; and $\Delta S/(k_B\ln2) = N$ — entropy counts the information one would need to pin the molecules down.

**22.** $2^{-50} = 9 \times 10^{-16}$; for a [mole](https://one-course.com/books/physics/3/en/chapter/20-kinetic-theory-and-the-perfect-gas#def-b1-kinetic-theory-scales) $2^{-6\times10^{23}} =
10^{-1.8\times10^{23}}$.

**23.** No heat ($Q = 0$): exchanged $0$, created $nR\ln2$ — the purest case: no work, no heat, only the spreading of the gas.

**24.** $W = nRT\ln2$ received, $Q = -nRT\ln2$ given to the room, $S_{\mathrm{exch}} = -nR\ln2$ (the gas’s entropy returns to its initial value, reversibly): undoing the free expansion costs the work $nRT\ln2$ and dumps $nR\ln2$ of entropy into the room — the universe keeps the $nR\ln2$ created once and for all.

**25.** Entropy is conserved in nothing real — only in the idealized reversible limit; the law forbids every process that would destroy it (heat uphill, work from one thermostat, unmixing for free); and every bit created is work lost, $T_0S_{\mathrm{created}}$ of it.
