
Thermal unit · institution-dependent · Interactive lesson
Calculating entropy changes & irreversibility
Almost nothing real is reversible, yet entropy is defined only along reversible paths. This lesson is the workaround: join the same two end states by a route you can integrate, add the surroundings' change separately, and the surplus is the entropy the real process created.
UPIII-07.09 · Lesson 9 of 9 in this unit. Position is not a completion score.Thermal unit · institution-dependent. Many departments teach thermal physics separately or within Physics II. Check whether your university includes this numbered unit in Physics III.
Build the model
Invent the reversible path, integrate dQ/T along it, then audit the surroundings.
The key idea
The entropy change of a system between two equilibrium states is ∫dQᵣₑᵥ/T along any reversible path joining them, and the entropy a real process generates is the sum of the system's change and the surroundings' change, which is zero only if the process was reversible.
Example. Warming 1.00 kg of water from 20.0 °C to 80.0 °C changes its entropy by 4186 ln(353.15/293.15) = 779 J K⁻¹ however it was heated; a single 80.0 °C reservoir supplying the 251 kJ loses only 711 J K⁻¹, so that route generates 68 J K⁻¹.
The complete physical model and assumptions
Entropy is a state function, so the change between two equilibrium states does not care how the system actually travelled, and that is the whole trick of this topic. The real process may be violent: a hot block dropped into cold water, a gas bursting into a vacuum. During it the system has no single temperature, and ∫dQ/T along the real path is either undefined or simply wrong. So you invent a reversible surrogate, a quasi-static route joining the same end states, and integrate dQᵣₑᵥ/T along that instead. For a body of constant heat capacity the surrogate is a slow warming through a ladder of reservoirs, and ∫C dT/T gives C ln(T₂/T₁). For a phase change at fixed temperature it collapses to mL/T. For an ideal gas the first law splits dQᵣₑᵥ = nCᵥ dT + p dV, and dividing by T leaves two independent logarithms, nCᵥ ln(T₂/T₁) + nR ln(V₂/V₁), valid for any path at all. Irreversibility is then found by audit rather than inspection: add the surroundings' change to the system's. A reversible process sums to zero; free expansion leaves the surroundings untouched and generates nR ln(V₂/V₁); conduction of Q from Tₕ to Tc generates Q(1/Tc − 1/Tₕ). The model stops where its inputs do: C must be constant across the range, the gas ideal, the end states genuine equilibria, and a reservoir large enough that its temperature does not move while it gives or takes Q.
1Integrate along a path you invent, not the one that happened
Drop a 0.500 kg copper block at 400 K into a large lake at 300 K. While it cools, its surface is colder than its core and the water beside it is warmer than the lake, so neither body has a single temperature and the real process has no ∫dQ/T to evaluate. Entropy is a state function: ΔS depends only on the two equilibrium end states, block at 400 K and block at 300 K. So replace the real process with a reversible surrogate joining the same states. Imagine the block handed down a ladder of reservoirs, each a hair cooler than the last, so that at every instant its temperature is defined and the heat it absorbs is dQᵣₑᵥ = C dT, negative while it cools. Along that ladder the integral is ∫C dT/T, and it gives the answer for the real process too. The lake needs its own surrogate: it is so large that its temperature stays at 300 K, so its change is simply Q/300 K. The rule for the rest of the topic: system and surroundings each get a reversible route to their own final state, and the two routes need not fit together into one reversible process. That mismatch is exactly where entropy gets generated.
2Heating: why the logarithm, and when the shortcut fails
For a body of constant heat capacity C the surrogate integral is ∫C dT/T = C ln(T₂/T₁), and the logarithm matters. Take the copper block: C = 0.500 kg × 385 J kg⁻¹ K⁻¹ = 192.5 J K⁻¹, so warming it from 300 K to 400 K gives ΔS = 192.5 ln(4/3) = 55.4 J K⁻¹. The heat involved is Q = 192.5 × 100 = 19 250 J. Divide that by the starting temperature and you get 64.2 J K⁻¹; divide by the final temperature and you get 48.1 J K⁻¹; the truth sits between them, because each parcel of heat is weighted by the temperature at which it arrived and the early parcels arrive cold. Dividing by the arithmetic mean 350 K gives 55.0 J K⁻¹, within 1%, which is why the shortcut Q/Tₘₑₐₙ survives in first-year work for small ratios: expand ln(1 + x) for small x and the two agree to second order. Double the temperature and the shortcut is 4% low; multiply it by ten and the shortcut is 29% low. The log form also fails if C moves across the range, as it does for a solid well below its Debye temperature; then C(T) stays inside the integral and the logarithm is replaced by whatever ∫C(T) dT/T evaluates to.
3Phase change collapses the integral, and stages add
At a transition the temperature holds still while the heat flows, so ∫dQᵣₑᵥ/T becomes Q/Tₜᵣ with nothing left to integrate. Freezing 0.100 kg of water at 0 °C removes 0.100 × 334 000 J = 33.4 kJ at 273.15 K, so the water's entropy falls by 33 400/273.15 = 122 J K⁻¹. A negative ΔS for the system is perfectly legal; it is the total that may not fall, and freezer coils that took the heat at, say, −18.0 °C gained 33 400/255.15 = 131 J K⁻¹, more than the water lost. Because every stage is a reversible integral between equilibrium states, stages simply add. Ice at −10 °C becoming water at 20 °C is three terms: m cice ln(273.15/263.15) for warming the ice, mLf/273.15 for melting it, and m cwater ln(293.15/273.15) for warming the water. What you may not do is skip a stage or let one end away from equilibrium: the surrogate must pass through the same intermediate states the sum assumes, and it must use the latent heat at the actual transition temperature, not a value averaged over the whole range.
4The ideal gas: two independent logarithms from the first law
For n moles of ideal gas along any reversible path, the first law reads dQᵣₑᵥ = dU + p dV = nCᵥ dT + (nRT/V) dV. Divide by T and both terms become exact differentials: dS = nCᵥ dT/T + nR dV/V. Integrate from state 1 to state 2 with Cᵥ constant and ΔS = nCᵥ ln(T₂/T₁) + nR ln(V₂/V₁). Nothing about the path survived: the two logarithms depend only on where the gas started and where it ended, which is the state-function property made explicit. Eliminating V with pV = nRT and using Cₚ = Cᵥ + R gives the equivalent ΔS = nCₚ ln(T₂/T₁) − nR ln(p₂/p₁), useful when pressures are what you measured. Two limiting cases check the result. Isothermal: the first term vanishes and ΔS = nR ln(V₂/V₁), which is Qᵣₑᵥ/T for the heat nRT ln(V₂/V₁) absorbed. Reversible adiabatic: ΔS = 0, so nCᵥ ln(T₂/T₁) = −nR ln(V₂/V₁), which rearranges to T V(R/Cᵥ) = constant, and since R/Cᵥ = γ − 1 that is the familiar TV(γ−1) = constant. Isentropic and adiabatic coincide here only because the path was reversible.
5Free expansion: the entropy is created, not received
Open a partition and let 1.00 mol of ideal gas rush from V into an evacuated 2V. No heat crosses the insulated wall, Q = 0; the gas pushes on nothing, W = 0; so ΔU = 0 and, for an ideal gas whose internal energy depends only on temperature, T is unchanged. Now the temptation: Q = 0, so ∫dQ/T = 0, so ΔS = 0. That integral was taken along the real path, which is not reversible, and the definition does not permit it. The surrogate joining the same end states, same T and doubled V, is a reversible isothermal expansion, which absorbs Qᵣₑᵥ = nRT ln 2 while doing equal work, and ΔS = Qᵣₑᵥ/T = nR ln 2 = 8.314 × 0.693 = 5.76 J K⁻¹. Or read it off the two-term formula: the T term is zero and the V term is nR ln 2. The surroundings meanwhile exchanged nothing, so their change is zero and the whole 5.76 J K⁻¹ is generated. Boltzmann's count agrees: each molecule has twice the volume available, the multiplicity multiplies by 2N, and k ln 2N = Nk ln 2 = nR ln 2. The lost opportunity is the isothermal work nRT ln 2 the gas could have delivered and did not; at 300 K that is 1.73 kJ.
6Conduction across a finite temperature difference
Let Q = 1000 J flow from a reservoir at Tₕ = 400 K to one at Tc = 300 K. The hot reservoir loses Q/Tₕ = 2.50 J K⁻¹; the cold one gains Q/Tc = 3.33 J K⁻¹; the sum Sgen = Q(1/Tc − 1/Tₕ) = 0.83 J K⁻¹ is positive because the same joules are worth more entropy at the lower temperature. The formula carries its own limiting case: with Tₕ = Tc + ΔT, Sgen ≈ Q ΔT/T², which vanishes as the gap closes, so conduction across a vanishing difference is the reversible heat transfer the surrogate paths assume. The generated entropy is also a price tag. A Carnot engine between the same reservoirs would have delivered W = Q(1 − Tc/Tₕ) = 250 J from the same 1000 J, and Tc Sgen = 300 × 0.833 = 250 J: lost work equals the cold temperature times the entropy generated. When the two bodies are finite rather than reservoirs, the logarithms return. Two equal bodies of heat capacity C at Tₕ and Tc meet at (Tₕ + Tc)/2, and Sgen = C ln[(Tₕ + Tc)²/(4 Tₕ Tc)], non-negative because the arithmetic mean beats the geometric mean, and zero only when the temperatures were already equal.
Key equations
Read the units, assumptions and limits before substituting.
Reversible-surrogate integral
ΔS = ∫₁² dQᵣₑᵥ / T
Entropy is a state function, so any reversible route gives the same ΔS: choose the one whose integral is easiest, not the path the system really took.
S in J K⁻¹; T the absolute temperature in K; dQᵣₑᵥ the heat along a reversible path between the same two end statesHeating at constant heat capacity
ΔS = C ln(T₂/T₁), with C = mc or nCₘₒₗₐᵣ
The logarithm, not Q divided by one temperature: T changes as the heat flows, so each dQ is weighted by its own 1/T.
c in J kg⁻¹ K⁻¹ or Cₘₒₗₐᵣ in J mol⁻¹ K⁻¹, taken constant over the range; T₁, T₂ in KPhase change at fixed temperature
ΔS = ±mL / Tₜᵣ
T is constant through the transition, so the integral collapses to the heat over that one temperature.
L the latent heat in J kg⁻¹, Tₜᵣ the transition temperature in K; + for melting or boiling, − for freezing or condensingIdeal gas, any change of state
ΔS = nCᵥ ln(T₂/T₁) + nR ln(V₂/V₁)
Two additive terms, one for temperature and one for volume, fixed by the end states alone; with pV = nRT it rewrites as nCₚ ln(T₂/T₁) − nR ln(p₂/p₁).
n in mol; Cᵥ the molar heat capacity in J mol⁻¹ K⁻¹, held constant; R = 8.314 J mol⁻¹ K⁻¹Entropy generated by free expansion
Sgen = nR ln(V₂/V₁)
The surroundings change by nothing, so every joule per kelvin of the gas's increase was created, not transferred.
V₁, V₂ the initial and final volumes in m³; T unchanged for an ideal gas because Q = 0 and W = 0Entropy generated by conduction
Sgen = Q (1/Tc − 1/Tₕ)
Positive whenever Tₕ > Tc and vanishing as Tₕ → Tc, the reversible limit; Tc Sgen is the work a Carnot engine could have extracted instead.
Q the heat conducted in J from a reservoir at Tₕ to one at Tc, both in K and both large enough to hold their temperaturesInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Slide f along the curves and watch the slope readout dSgen/dQ, which is 1/Tcold − 1/Tₕₒₜ at the bodies' present temperatures, fall to exactly zero at equilibrium. Then bring Tₕ down towards Tc: the solid sum flattens onto the zero line while the two body curves stay, which is the reversible limit of conduction.
Live results
- HOT BODY NOW
- 440 K
- COLD BODY NOW
- 360 K
- GENERATED SO FAR
- 54.5 J K⁻¹
- SLOPE dSgen/dQ NOW
- 0.51 J K⁻¹ kJ⁻¹
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Hot body start Tₕ: 500 K; Cold body start Tc: 300 K; Fraction of heat conducted f: 0.60
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The most common error is “Q = 0, so ΔS = 0”: the gas in a free expansion is insulated, so students set its entropy change to zero. The flaw is in the integral. ΔS = ∫dQ/T only when the path is reversible, and an insulated gas rushing into a vacuum is nothing of the kind. Along an irreversible path the Clausius inequality makes ∫dQ/T a strict lower bound: ΔS > ∫dQ/T = 0. To find the actual value you must abandon the real path, connect the same two end states by a reversible surrogate, and integrate along that; for the free expansion the surrogate is an isothermal expansion that does absorb heat, and it returns nR ln(V₂/V₁). Adiabatic and isentropic mean the same thing only when the process is reversible. The cousin error is dividing one heat by one temperature for a body whose temperature changes; that is not a surrogate at all, and the logarithm is what a proper one produces.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A 0.150 kg block of ice at 0.0 °C melts completely on a bench in a room held at 22.0 °C. Take Lf = 334 kJ kg⁻¹ and treat the room as a reservoir. Find the entropy change of the ice, the entropy change of the room, and the entropy generated.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Heat absorbed by the ice: Q = mLf = 0.150 × 334 000 = 50 100 J, all of it at the fixed melting temperature 273.15 K.
- Ice, reversible surrogate at constant T: ΔSice = Q/Tₘ = 50 100/273.15 = +183.4 J K⁻¹.
- Room, a reservoir at 295.15 K losing the same Q: ΔSᵣₒₒₘ = −50 100/295.15 = −169.7 J K⁻¹.
- Sum: Sgen = 183.4 − 169.7 = +13.7 J K⁻¹, which is Q(1/273.15 − 1/295.15). Positive, as conduction across a 22 K gap must be; it would shrink to zero as the room temperature approached 0 °C, where the ice would stop melting.
Answer. ΔSice = +183 J K⁻¹, ΔSᵣₒₒₘ = −170 J K⁻¹, Sgen = +13.7 J K⁻¹
MediumExample 2
3.00 mol of an ideal diatomic gas (Cᵥ = 5R/2) is taken by a rough, irreversible compression from 300 K and 20.0 L to 450 K and 8.00 L. Find its entropy change, then confirm the value by working in T and p instead of T and V. Does the roughness of the real process alter the answer?
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Entropy is a state function, so ignore the real process and use nCᵥ ln(T₂/T₁) + nR ln(V₂/V₁) with nCᵥ = 3.00 × 20.785 = 62.36 J K⁻¹ and nR = 24.94 J K⁻¹.
- Temperature term: 62.36 × ln(450/300) = 62.36 × 0.4055 = +25.28 J K⁻¹. Volume term: 24.94 × ln(8.00/20.0) = 24.94 × (−0.9163) = −22.85 J K⁻¹.
- ΔS = 25.28 − 22.85 = +2.43 J K⁻¹: the heating slightly outweighs the compression.
- Check in T and p. p₁ = nRT₁/V₁ = 24.94 × 300/0.0200 = 3.74 × 10⁵ Pa and p₂ = 24.94 × 450/0.00800 = 1.40 × 10⁶ Pa, so p₂/p₁ = 3.75. With nCₚ = 3.00 × 29.10 = 87.30 J K⁻¹: 87.30 × 0.4055 − 24.94 × ln 3.75 = 35.40 − 32.97 = +2.43 J K⁻¹, as it must be.
- The roughness changes nothing about ΔS of the gas, which the end states fix; it changes how much the surroundings gained and hence how much was generated. A reversible adiabatic compression from 300 K and 20.0 L to 8.00 L would end at 300 × 2.50.4 = 433 K with ΔS = 0; ending at 450 K instead leaves the gas 2.43 J K⁻¹ above that.
Answer. ΔSgas = +2.43 J K⁻¹ by either route; the irreversibility of the real path does not change it.
HardExample 3
Two identical 2.00 kg copper blocks (c = 385 J kg⁻¹ K⁻¹), one at 500 K and one at 300 K, are pressed together inside an insulated box and left. Find the final temperature, the entropy change of each block, and the entropy generated. Compare the last with the entropy generated if the same heat were conducted between two reservoirs at 500 K and 300 K.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Equal heat capacities C = 2.00 × 385 = 770 J K⁻¹ and no heat leaves the box, so energy conservation gives Tf = (500 + 300)/2 = 400 K. The heat passed across is Q = 770 × 100 = 77.0 kJ.
- Each block's temperature changes, so each needs the logarithmic surrogate. Hot block: ΔSₕ = 770 ln(400/500) = 770 × (−0.2231) = −171.8 J K⁻¹.
- Cold block: ΔSc = 770 ln(400/300) = 770 × 0.2877 = +221.5 J K⁻¹.
- Sgen = 221.5 − 171.8 = +49.7 J K⁻¹. Check against the closed form C ln[(Tₕ + Tc)²/(4TₕTc)] = 770 ln(640 000/600 000) = 770 × 0.06454 = 49.7 J K⁻¹.
- Reservoirs fixed at 500 K and 300 K passing the same 77.0 kJ: Sgen = 77 000 × (1/300 − 1/500) = 77 000 × 1.333 × 10⁻³ = 102.7 J K⁻¹, about twice as much. The finite blocks generate less because the gap shrinks as heat flows, and the last joules cross an almost reversible gap. The interactive figure on this page opens on this very case, with C scaled to 1.00 kJ K⁻¹.
Answer. Tf = 400 K; ΔSₕₒₜ = −172 J K⁻¹, ΔScold = +222 J K⁻¹, Sgen = +49.7 J K⁻¹, against 103 J K⁻¹ for reservoirs.
Quick check
Select an answer and explain it before checking.
Review & continue
The entropy change of a system between two equilibrium states is ∫dQᵣₑᵥ/T along any reversible path joining them, and the entropy a real process generates is the sum of the system's change and the surroundings' change, which is zero only if the process was reversible.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics III completion tasks.