The Clausius Inequality and Entropy as a State Function
Statement
For any cyclic process a system undergoes while exchanging heat with reservoirs at absolute temperature T, the Clausius integral obeys ∮ dQ/T ≤ 0, with equality if and only if the cycle is reversible. The vanishing of ∮ dQrev/T makes ∫ dQrev/T path-independent, so dS = dQrev/T defines a state function, the entropy S; and for any real process dS ≥ dQ/T, whence the entropy of an isolated system never decreases.
Why it matters
This is the theorem that turns the second law from a list of impossible engines into a single scalar state function. Everything downstream — chemical potentials, phase equilibria, the Gibbs and Helmholtz free energies, the arrow of time — hangs on the fact that dQrev/T is an exact differential while dQ alone is not.
It is also the precise sense in which "energy is conserved but availability is not." The first law counts joules; the Clausius inequality tells you how many of those joules have been degraded into forms from which no further work can be extracted, and it does so with a bookkeeping quantity, S, that depends only on the state and not on how you got there.
Assumptions
Derivation
Result
Reading. Weighting each heat exchange by the reciprocal of the temperature at which it happens produces a quantity that returns to zero over any reversible cycle. That closure is what promotes S to a state variable: its change between two states is fixed regardless of path, even a wildly irreversible one, because you may compute it along any convenient reversible substitute. For real processes the inequality records the shortfall — entropy is generated, never destroyed.
Units check. dQ is in joules (J) and T in kelvin (K), so dQ/T and S carry units of J·K−1. The loop integral ∮ dQ/T is a sum of J·K−1 terms, dimensionally consistent with an entropy change, and the dimensionless inequality ≤ 0 compares like with like.
Limiting cases
- Reversible limit: all inequalities become equalities; ∮ dQrev/T = 0 and dS = dQrev/T exactly — no entropy generated.
- Adiabatic reversible (isentropic): dQ = 0 and reversible ⟹ dS = 0; the process runs along a surface of constant entropy.
- Adiabatic irreversible: dQ = 0 but dS > 0 — e.g. free expansion; entropy rises with no heat flow at all.
- Single-reservoir isothermal cycle: ∮ dQ/T = (1/T)∮ dQ = W/T ≤ 0, recovering Kelvin–Planck directly.
- Carnot cycle: two isotherms give QH/TH − QC/TC = 0, the discrete form of the equality.
Breaks when
- Negative absolute temperatures. In population-inverted spin systems T < 0 on the Kelvin scale; dividing by a negative T flips the inequality's sense, and the Carnot-chaining proof (which needs T0 > 0 to preserve the sign in step 6) no longer delivers ∮ dQ/T ≤ 0. Entropy is still defined, but its ordering with temperature is inverted.
- Small systems / large fluctuations. For a handful of particles the heat exchanged in a cycle fluctuates and ∮ dQ/T can be transiently positive on individual realisations. The Clausius inequality survives only as a statement about the ensemble average, ⟨∮ dQ/T⟩ ≤ 0; the sharp per-trajectory bound is replaced by fluctuation theorems (Jarzynski, Crooks).
- No well-defined boundary temperature. If the system is driven so violently that the reservoir contact temperature is ambiguous (shock fronts, radiative non-equilibrium), the integrand dQ/T has no single T to use and the inequality cannot be evaluated as written.
- Long-range / self-gravitating systems. Where entropy is non-extensive and no proper equilibrium reservoir exists (self-gravitating gas, black-hole thermodynamics without the horizon prescription), the reservoir-chaining construction has no valid T0 and the classical proof does not apply.
Failure modes
- Using the system temperature instead of the boundary temperature in dQ/T for an irreversible step. The Clausius T is the reservoir temperature at the contact; the system may not even have a uniform T.
- Computing ΔS along the actual irreversible path. S is a state function — integrate dQrev/T along a reversible substitute joining the same endpoints, never the real dissipative path.
- Claiming ΔS = 0 for an adiabatic free expansion because "no heat flowed." Q = 0 forces dS ≥ 0, not dS = 0; the expansion is irreversible so ΔS > 0.
- Forgetting the surroundings. A system's entropy can fall (refrigeration); only the total (system + reservoirs) obeys ΔStotal ≥ 0.
- Sign-convention slips in dQ — treating rejected heat as positive — which spuriously flip the direction of the inequality.
- Treating ∮ dQ/T ≤ 0 as a first-law statement. It is not energy balance; ∮ dQ equals the net work, whereas ∮ dQ/T is a second-law quantity that is generally nonzero even when energy is conserved.
Discussion
The deepest content of the theorem is the promotion of a path-dependent quantity to a state function. Heat dQ is an inexact differential: its cyclic integral, the net work, is generally nonzero, which is exactly why an engine can run. The integrating factor 1/T — and the fact that the thermodynamic temperature is a valid integrating factor is the real theorem — converts dQrev into the exact differential dS. That Carnot's efficiency result supplies precisely this factor is the hinge on which the whole edifice turns.
Physically, entropy generation measures lost opportunity. Whenever heat crosses a finite temperature difference, work that a reversible engine could have extracted is thrown away, and the ledger of that loss is ΔSgen = ΔStotal ≥ 0. The inequality is therefore not merely a prohibition but a currency: it quantifies how far a real process falls short of the reversible ideal, and it is additive across independent subsystems, which is why it scales up to whole plants and down to single molecular motors.
The theorem also fixes the direction of time in an otherwise time-symmetric mechanics. Newton's and Maxwell's equations run equally well forward and backward; the Clausius inequality does not. Its origin is statistical — the overwhelming number of microstates consistent with a "mixed" macrostate — and Boltzmann's S = kB ln Ω later gave the state function a microscopic identity, with kB carrying the same J·K−1 units that the Clausius integral demanded.
At the frontier the sharp inequality softens into an equality once fluctuations are tracked. The Jarzynski relation ⟨e−W/kBT⟩ = e−ΔF/kBT and the Crooks fluctuation theorem reproduce ⟨W⟩ ≥ ΔF (equivalently ΔStotal ≥ 0) on averaging, while permitting individual trajectories to transiently violate it. In this light the Clausius inequality is the macroscopic, thermodynamic-limit shadow of an exact microscopic identity — the second law is not so much broken as revealed to be a statement about ensembles.
Common misconceptions. Entropy is not "disorder" in any everyday visual sense — a crystallising solution can lower its own entropy while raising the surroundings' more; it is not the same thing as heat, nor is it conserved; and dS ≥ dQ/T does not forbid a system's entropy from decreasing, only the total's.
Worked examples
Example 1 — The Clausius integral vanishes for a Carnot cycle.
Reading. The reversible cycle closes the entropy ledger exactly; the two isothermal contributions cancel to the last figure. Units check. J divided by K gives J·K−1, and the difference of two equal J·K−1 quantities is zero.
Example 2 — Entropy generated by heat flow across a finite gradient.
Reading. Spontaneous heat flow down a temperature gradient generates entropy; the process is irreversible, consistent with dS > dQ/T for the composite. Reversing it (heat flowing cold→hot unaided) would give ΔStotal < 0 and is forbidden. Units check. J × K−1 = J·K−1, the correct entropy unit.
Problems
- A reversible engine takes QH = 2400 J from a reservoir at 600 K and rejects heat to a reservoir at 300 K. Verify that ∮ dQ/T = 0.
Solution
By carnot-efficiency, QC/QH = TC/TH = 300/600 = 0.5, so QC = 1200 J. Then ∮ dQ/T = QH/TH − QC/TC = 2400/600 − 1200/300 = 4.00 − 4.00 = 0 J·K−1. The reversible cycle closes the entropy ledger. - One mole of ideal gas expands isothermally and reversibly at T = 300 K from V1 to V2 = 2V1. Find ΔS of the gas, and state ΔS for the same endpoints reached by an irreversible free expansion.
Solution
Isothermal ideal gas: dU = 0, so dQrev = dW = p\,dV = (nRT/V)dV. Thus ΔS = ∫ dQrev/T = nR ∫V₁V₂ dV/V = nR ln(V2/V1) = (1)(8.314) ln 2 = 5.76 J·K−1. Because S is a state function, the free expansion between the same two states has the identical ΔSgas = +5.76 J·K−1 — but there Q = 0, so entropy is generated rather than transferred, and ΔStotal = +5.76 J·K−1 too (surroundings unchanged). - Two identical copper blocks, heat capacity C = 400 J·K−1 each, start at 350 K and 250 K and are placed in thermal contact until they equilibrate. Find the final temperature and the total entropy generated.
Solution
Equal heat capacities ⟹ Tf = (350 + 250)/2 = 300 K. For each block ΔS = C ln(Tf/Ti) (integrating dQrev/T = C\,dT/T along a reversible warming/cooling substitute). Hot block: 400 ln(300/350) = 400(−0.15415) = −61.66 J·K−1. Cold block: 400 ln(300/250) = 400(+0.18232) = +72.93 J·K−1. Total ΔSgen = −61.66 + 72.93 = +11.3 J·K−1 > 0, confirming irreversibility. - Ice melts at 0 °C (273.15 K) absorbing latent heat L = 334 J·g−1. For 50 g melted by contact with surroundings at 20 °C (293.15 K), find the entropy change of the ice and of the total system.
Solution
Melting is isothermal at Tm = 273.15 K. Heat absorbed Q = mL = 50 × 334 = 16700 J. Ice: ΔSice = Q/Tm = 16700/273.15 = +61.14 J·K−1. Surroundings lose Q at 293.15 K: ΔSsurr = −16700/293.15 = −56.97 J·K−1. Total ΔStotal = 61.14 − 56.97 = +4.17 J·K−1 > 0 — the finite temperature gap makes it irreversible. - Using only the Clausius inequality, prove that no engine operating between two reservoirs TH > TC can exceed the Carnot efficiency ηC = 1 − TC/TH.
Solution
For any engine cycle, ∮ dQ/T ≤ 0 gives QH/TH − QC/TC ≤ 0 (heats as magnitudes, rejected heat negative). Hence QC/QH ≥ TC/TH. Efficiency η = W/QH = 1 − QC/QH ≤ 1 − TC/TH = ηC. Equality holds only for a reversible (Carnot) cycle, where ∮ dQ/T = 0. Thus the Clausius inequality directly bounds every engine by the Carnot value.