core26 min studyLesson 315 in Physics

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

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 dS=δQrev/TdS=\delta Q_{\mathrm{rev}}/T. 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 ΔS=Q/T\Delta S=Q/T 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.

∮δQrevT=0,SB−SA=∫ABδQrevT,∮δQTres≤0\oint\frac{\delta Q_{\mathrm{rev}}}{T}=0,\qquad S_B-S_A=\int_A^B\frac{\delta Q_{\mathrm{rev}}}{T},\qquad \oint\frac{\delta Q}{T_{\mathrm{res}}}\le0
The final form concerns a cyclic system exchanging heat with ideal reservoirs; each increment is positive into the system and divided by its reservoir’s absolute temperature. Equality holds for an overall reversible cycle.↔ Scroll wide equations horizontally.

Include the reservoir ledger

Suppose a closed system receives signed heats QjQ_j from ideal reservoirs at fixed temperatures TjT_j. Each reservoir changes entropy by −Qj/Tj-Q_j/T_j 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 Sprod=ΔSsys−∑jQj/Tj≥0S_{\mathrm{prod}}=\Delta S_{\mathrm{sys}}-\sum_jQ_j/T_j\ge0. 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.

ΔSres,j=−QjTj,Sprod=ΔSsys+∑jΔSres,j=ΔSsys−∑jQjTj≥0\Delta S_{\mathrm{res},j}=-\frac{Q_j}{T_j},\qquad S_{\mathrm{prod}}=\Delta S_{\mathrm{sys}}+\sum_j\Delta S_{\mathrm{res},j}=\Delta S_{\mathrm{sys}}-\sum_j\frac{Q_j}{T_j}\ge0
All entropy terms are in joules per kelvin. Reservoir temperatures remain fixed and positive, the system exchanges no matter, and all other entropy exchanges of the combined boundary are excluded by assumption.↔ Scroll wide equations horizontally.

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 Q/ThQ/T_h, while the cold side gains Q/TcQ/T_c. 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.

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.

  1. The hot reservoir loses heat magnitude 1200 J, so its entropy change is −1200/600=−2 J K−1-1200/600=-2\,\mathrm{J\,K^{-1}}. Its temperature remains fixed by the reservoir idealization.

  2. The cold reservoir gains 1200 J and therefore gains 1200/300=4 J K−11200/300=4\,\mathrm{J\,K^{-1}} of entropy. The link’s endpoint entropy change is zero.

  3. The isolated combination has total change −2+4+0=2 J K−1-2+4+0=2\,\mathrm{J\,K^{-1}}. This is the entropy produced by the finite-temperature heat transfer, while the total energy change is zero.

The result

The hot and cold changes are −2 and +4 J/K, giving +2 J/K total production. Conserving energy does not require conserving entropy.

Explore the model

Interactive lab

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).

Diffusion removes a temperature deviationThe 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. Current readings: Current amplitude: 1; Spatial L² norm: 1.772; Decay rate · κn²: 3.6 /s. All parameters are adjustable with the labeled controls below.Periodic heat equation mode 3 at time 0: the amplitude is 1.0π/2π3π/22π−1−0.500.51x · periodic intervalTemperature perturbation uExact mode · n = 3
Current temperature modeInitial sineCurrent amplitude
Current amplitude
1
Spatial L² norm
1.772
Decay rate · κn²
3.6 /s
t = 0 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.

Check your understanding

A closed system completes an irreversible cycle. What must its entropy change be?

Try it yourself

An ideal gas with νR=8 J K−1\nu R=8\,\mathrm{J\,K^{-1}} 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 ΔS=νRln⁡(2)=8ln⁡2≃5.55 J K−1\Delta S=\nu R\ln(2)=8\ln2\simeq5.55\,\mathrm{J\,K^{-1}}. 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.

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.