Worked examples — Entropy — Clausius definition dS = dQ_rev - T
This page is the "flight simulator" for the Clausius definition from the parent note Entropy — Clausius definition. Before you touch an exam problem, you should have flown through every kind of case entropy can throw at you: heat in, heat out, temperature constant, temperature changing, adiabatic-and-reversible, adiabatic-and-irreversible, two bodies meeting, and the sneaky "the answer is zero" traps.
Every symbol used here was built in the parent note. As a one-line refresher:
The scenario matrix
Every entropy problem you will meet is one (or a combination) of the cells below. The worked examples that follow are tagged with the cell they cover. Note that Cell J (system vs surroundings vs universe) is a bookkeeping layer that can sit on top of any process — Example 5 shows it for a spontaneous two-body flow and Example 8 shows it for a gas-plus-reservoir expansion, so the two are different applications, not a repeat.
| Cell | Situation | Sign of | Key move |
|---|---|---|---|
| A | Heat in at constant (isothermal expansion) | , pulls out | |
| B | Heat out at constant (isothermal compression) | same, | |
| C | Temperature rising (heating, variable ) | integrate | |
| D | Temperature falling (cooling) | same, | |
| E | Reversible adiabatic (, reversible) | isentropic — trap-buster | |
| F | Irreversible adiabatic (free expansion, ) | reversible substitute path | |
| G | Two bodies to thermal equilibrium (irreversible mixing) | overall | sum two variable- integrals |
| H | General ideal-gas state change (both and change) | any sign | two-log master formula |
| I | Real-world word problem (ice melting) | latent heat at constant | |
| J | Bookkeeping layer: system vs surroundings vs universe | check each | compute (Ex 5 = spontaneous flow, Ex 8 = gas + reservoir) |
We now cover all ten cells with eight examples (some examples hit two cells at once).
Example 1 — Isothermal expansion and compression (Cells A + B)
Forecast: guess the signs before reading. Expansion → gas gets more room → more places for molecules → bigger mess. Compression should undo it exactly.
- on each leg. Why this step? Internal energy of an ideal gas depends only on , and is fixed, so .
- First Law → all heat becomes work: With the First Law gives . Why does the integral become a log? Substitute the ideal-gas law , so (with constant), giving .
- Entropy: . Why can come out? It is constant, so it factors straight out of the integral.
- (a) expansion: .
- (b) compression: , so .
Verify: signs match the forecast (expand , compress ). The round trip gives — correct, since is a state function and we returned to the start. Units: . ✔
Example 2 — Heating and cooling water (Cells C + D)
Forecast: heating should give , cooling , and equal magnitudes.
- . Why "rev"? Imagine an infinite ladder of reservoirs, each only hotter than the water, so every slice moves reversibly.
- . Why not just ? Because is not constant — you must use the local temperature of each slice, so you integrate.
- . Why a log? ; the ratio is what survives.
- (a): . Note on rounding: with the log of is , so (carry the full log, do not approximate ).
- (b): .
Verify: heating , cooling , magnitudes equal (state function, same endpoints reversed). Units . ✔
Example 3 — Reversible adiabatic (Cell E, the "answer is zero" case)
Forecast: makes many people say " trivially." Careful — is it zero for the right reason?
- Adiabatic means at every instant. Why this matters: the numerator of is zero all along the path.
- . Why this is legitimate here: the process is reversible, so the definition applies directly along the actual path — no substitute path needed.
Verify: cross-check with the master ideal-gas formula (Example 6). Using the two facts about above and plugging into gives exactly (verified numerically in the checks). The zero is earned, not assumed. ✔
Example 4 — Free expansion into vacuum (Cell F)
Forecast: , (nothing pushed back), so and stays constant. Tempting to write . Is that right?
- Identify the endpoints: same , volume . Why endpoints only? is a state function — the actual violent path is irrelevant.
- Build a reversible substitute: a reversible isothermal expansion between the same endpoints. Why allowed? Any reversible path between the same states gives the true .
- Apply Example 1's result: .
Verify: as it must be for an irreversible process in an isolated system. The actual heat does not enter — that is exactly the parent note's headline trap. ✔
Example 5 — Two bodies reaching equilibrium (Cells G + J, spontaneous flow)

Forecast: the metal cools (), the water warms (). Since the process (heat flowing across a finite temperature gap) is irreversible, guess . The figure above shows why the final temperature sits close to the water's value: follow the two curves — the aluminium (orange) plunges a long way while the water (teal) barely rises, because the water's heat capacity dwarfs the metal's, and they meet at the dashed plum line .
- Energy balance for : heat lost by Al = heat gained by water. Why? No heat leaves the insulated system, so First Law conserved internal energy. Read this on the figure as "how far each curve travels vertically."
- Solve: . Numerically . Why sensible? The water's heat capacity () hugely outweighs the metal's (), so equilibrium sits close to the water's start — exactly what the near-flat teal curve in the figure shows.
- of each body — each cools/warms over a range, so use the Cell-C/D integral: Why local ? Both bodies change temperature, so integrate along an imagined ladder of reservoirs.
- Numbers: Why these signs and sizes follow: so the aluminium's log is negative (it cooled); so the water's log is positive (it warmed). The water's magnitude is larger because its (the multiplier in front of the log) is roughly 15 times the metal's, which more than makes up for its smaller temperature swing.
- Universe: .
Verify: metal negative, water positive (forecast ✔). Sum is positive, as the Second Law demands for a spontaneous, irreversible heat flow across a finite gap. If we had let heat flow through infinitely many intermediate reservoirs (reversible), the sum would tend to . ✔
Example 6 — General ideal-gas state change (Cell H, master formula)
Forecast: temperature doubles ( from the term) and volume doubles ( from the term). Both push entropy up, so expect a solidly positive answer.
- Master formula (derived in parent): . Why two terms? After dividing the First Law by , one exact piece came from and one from .
- Plug in with :
- Compute: .
Verify: both terms positive (forecast ✔). Sanity check on the tool: setting recovers Example 1's isothermal result; setting recovers Example 2's heating result. Reversible-adiabatic (Example 3) makes the two terms cancel exactly. ✔
Example 7 — Melting ice, real-world word problem (Cell I)
Forecast: solid → liquid means molecules gain freedom to wander, so entropy should rise.
- Heat absorbed: . Why "rev"? Melting happens at a fixed with the surroundings only infinitesimally warmer — genuinely reversible.
- Constant → pulls out: . Why not integrate? Temperature does not change during a phase change.
- Compute: .
Verify: positive (solid → liquid, more disorder ✔). Units: . ✔
Example 8 — Exam twist: gas plus reservoir (Cell J, reversible vs irreversible)
Forecast: reversible should give exactly; irreversible should give .
Reversible case:
- System: . Why? Cell A result.
- Surroundings: the reservoir loses the same heat at the same , so . Why negative? Heat leaving lowers the reservoir's entropy.
- Universe: . Why zero? Reversible ⇒ no entropy generated.
Irreversible (free) case: 4. System: same endpoints ⇒ same . 5. Surroundings: , reservoir untouched ⇒ . Why zero? In a free expansion the gas pushes on nothing and the insulated walls pass no heat, so no heat is exchanged with the reservoir — with zero heat crossing at temperature , . 6. Universe: .
Verify: reversible → ; irreversible → (both forecasts ✔). Same in both cases confirms is a state function; only the surroundings' entropy tells the two processes apart. This is the operational content of the Clausius Inequality and the Second Law of Thermodynamics. ✔
Active recall
Recall Which cell? Match the scenario to its move (hide answers)
- "Ice melts at 0 °C" ::: Cell I — constant- latent heat, .
- "Gas doubles volume into vacuum, insulated" ::: Cell F — reversible isothermal substitute, .
- "Reversible adiabatic compression" ::: Cell E — (isentropic).
- "Hot metal into cold water" ::: Cell G — sum two terms, universe .
- "Both and change for a gas" ::: Cell H — master formula .
Connections
- Parent · Clausius definition
- Carnot Cycle and Efficiency — why underpins these sums
- First Law of Thermodynamics — energy balance in Examples 5 and 6
- Second Law of Thermodynamics — in Examples 5 and 8
- Reversible vs Irreversible Processes — Cells E vs F, reversible vs free expansion
- Exact and Inexact Differentials — why the substitute-path trick works
- Statistical Entropy — Boltzmann S = k ln W — "more room ⇒ more microstates"
- Clausius Inequality — Example 8's irreversible universe increase