Clausius inequality and entropy production
Define entropy through reversible heat and audit irreversibility by including both a system and the reservoirs that exchange heat with it.
On this page
The question for today
What you’ll understand
- Distinguish entropy change from heat divided by temperature for an irreversible process.
- Evaluate a cyclic Clausius sum with heat-in signs.
- Calculate total entropy production including the thermal reservoirs.
A refrigerator can lower the entropy of the cooled compartment, so the claim that every system’s entropy must always rise is too strong. The second law concerns a complete accounting of entropy transfer and production. A system can export entropy to its surroundings, but an isolated combination cannot have a negative net entropy change. We will define entropy using reversible comparison paths and then apply the resulting state function to irreversible processes whose actual heat exchanges occur through reservoirs at specified temperatures.
A reversible heat integral defines a state difference
For a reversible cycle, the integral of heat absorbed divided by the equilibrium temperature is zero. That path-independence result permits a state function S whose differential is . Entropy has units of joules per kelvin. To find its difference between equilibrated states, choose any suitable reversible path connecting them, whether or not the actual physical process followed that path. The reversible comparison is a computational device, not a description of a rapid irreversible trajectory.
For an irreversible process, substituting the actual heat directly into generally fails. A thermally insulated free expansion of an ideal gas has no heat input but a positive entropy change. The endpoint entropy can instead be computed with a reversible isothermal expansion between the same volumes. That imagined comparison has heat input and boundary work, although the actual expansion has neither. State-function equality of entropy changes does not imply equality of the path-dependent transfers.
Include the reservoir ledger
Suppose a closed system receives signed heats from ideal reservoirs at fixed temperatures . Each reservoir changes entropy by because its lost heat enters the system. If those reservoirs, the system, and ideal work receivers form an otherwise isolated combination, their total entropy change is nonnegative. Define this total as entropy production for the complete interaction. Work transfers energy without carrying entropy in this ideal bookkeeping, although dissipating that work later can generate entropy elsewhere.
This gives . It includes irreversible contacts as well as internal system dissipation under the chosen combined boundary. A more local balance can use the boundary temperature where heat crosses and assign production to individual regions, but the allocation changes when the boundary moves. The total isolated-combination result remains consistent. Always state which reservoirs and interfaces are included before attaching an entropy-production number to one component.
Finite temperature differences create production
Transfer a positive heat magnitude Q directly from a hot reservoir to a colder one. The hot side loses entropy , while the cold side gains . The gain exceeds the loss because the colder temperature has the larger reciprocal. Energy is conserved, but entropy increases. The same heat amount has different entropy-transfer magnitudes at different temperatures, which is why entropy is not simply another name for energy or for a quantity of heat stored in matter.
Entropy production vanishes in the reversible limit of infinitesimal thermal differences and no other dissipative effects. For a system that returns to its initial state, its entropy change is zero even while the reservoirs gain positive total entropy each cycle. For an isolated system alone, all external heats vanish and its entropy change equals its production. These special cases are consequences of one balance, not competing versions of the second law, and they provide useful checks on signs and boundary choices.
Work it through
Heat conduction between two reservoirs
A conducting link transfers 1200 J from a reservoir at 600 K to one at 300 K. The link returns to its initial state, and no work or other exchanges occur. Find each reservoir’s entropy change and total entropy production.
The hot reservoir loses heat magnitude 1200 J, so its entropy change is . Its temperature remains fixed by the reservoir idealization.
The cold reservoir gains 1200 J and therefore gains of entropy. The link’s endpoint entropy change is zero.
The isolated combination has total change . This is the entropy produced by the finite-temperature heat transfer, while the total energy change is zero.
The hot and cold changes are −2 and +4 J/K, giving +2 J/K total production. Conserving energy does not require conserving entropy.
The living notebook
Explore the model
Interactive lab · heat
Diffusion removes a temperature deviation
Treat the signed sine as a small deviation about a sufficiently large positive background temperature. Reset, set Spatial mode n = 1 and Diffusivity κ = 0.5; then Step twice to t = 1 and predict amplitude exp(−0.5). For a new run Reset, set n = 1 and κ = 1, Step twice, and predict exp(−1).
- Current amplitude
- 1
- Spatial L² norm
- 1.772
- Decay rate · κn²
- 3.6 /s
The exact periodic heat-equation mode is u(x,t) = exp(−κn²t) sin(nx), on [0,2π]. Playback advances physical time. The initial sine is shown separately, and the unnormalized L² norm is √π exp(−κn²t). This analytic instrument does not run a finite-difference solver or test discretization stability. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forThe instrument shows one exact periodic diffusion mode and its L² norm. It does not calculate thermodynamic entropy, reservoir heat, or entropy production; those require the balance and a physical constitutive model.
Pause & reason
Check your understanding
Your turn
Try it yourself
An ideal gas with expands freely and adiabatically from volume V to 2V. Its equilibrated initial and final temperatures are equal. Find heat, boundary work, entropy change, and production.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Use the actual process for energy transfers and a reversible isothermal comparison for the state-function entropy change.
Compare with the solution
Actual heat and boundary work are both zero. The reversible comparison gives . The actual closed system is isolated during expansion, so its entropy change equals its entropy production. Zero heat exchange therefore does not imply zero entropy change; the missing contribution is irreversible production.
Keep the idea
Take it with you
- Entropy differences can be computed on a reversible comparison path.
- The actual heat of an irreversible process is insufficient by itself to determine entropy change.
- The entropy of an isolated system-plus-surroundings combination cannot decrease.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.