physics2u
Tier
⌕ Search ⌘K
physics2u.com/vault/clausius-inequality-and-entropy.html
Derivation

The Clausius Inequality and Entropy as a State Function

D-150 Home PU-203 Threads energy · chance Depends on Carnot's Theorem and Maximum Engine Efficiency
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
The Kelvin–Planck statement of the second law holds.No cyclic device may convert heat from a single reservoir wholly into work. Drop it and the auxiliary Carnot engines could pump net work out of the master reservoir, the sign of the inequality is lost, and ∮ dQ/T could take either sign. A thermodynamic (absolute) temperature scale exists, with T > 0.Established by Carnot efficiency: a reversible engine between two reservoirs satisfies QH/QC = TH/TC. Without it the ratio dQ/T has no reservoir-independent meaning and the integrand is undefined. The system returns exactly to its initial state each cycle, and the auxiliary Carnot engines can be made arbitrarily close to reversible.If the cycle does not close, ΔU ≠ 0 and the first-law bookkeeping that equates net work to master-reservoir heat fails; if the auxiliary engines carry their own irreversibility they inject extra entropy and the equality branch is never reached. At every contact the system's boundary temperature equals the reservoir temperature T supplying dQ.For an irreversible cycle the relevant T is the reservoir (boundary) temperature, not the system's ill-defined internal temperature; conflating the two mis-locates the inequality.
Derivation
1
a cycle 𝒞 : divide into N steps, step i exchanging dQi with a reservoir at Ti
Any smooth cyclic path may be approximated to arbitrary accuracy by a finite chain of isothermal contacts; the continuum limit is taken at the end. A
2
insert a reversible Carnot engine between a master reservoir T0 and each Ti, feeding dQi into the system
Legal because a Carnot engine can deliver any required heat at any Ti while touching only T0 and Ti; this replaces every reservoir in the problem with the single master reservoir T0. B
3
dQ0,i = T0 · (dQi / Ti)
The thermodynamic-temperature relation for a reversible engine, Qhot/Qcold = Thot/Tcold, applied to each auxiliary engine (heat drawn from T0 to supply dQi at Ti). This is the only place carnot-efficiency enters. B
4
Q0 = Σi dQ0,i = T0 Σi dQi/Ti  ⟶  T0𝒞 dQ/T
Total heat withdrawn from the master reservoir over one full pass; T0 is a constant and factors out, and N → ∞ turns the sum into the closed-loop integral. A
5
system + N auxiliary engines all return to their initial states ⟹ ΔUtotal = 0 ⟹ Wnet = Q0
First law over one complete cycle of the composite device: with internal energy restored, every joule taken from T0 emerges as net work. B
6
Kelvin–Planck: Wnet ≤ 0 ⟹ Q0 = T0 ∮ dQ/T ≤ 0 ⟹ ∮ dQ/T ≤ 0
The composite exchanges heat with the single reservoir T0 over a cycle; the second law forbids net positive work from that. Dividing by T0 > 0 preserves the sense of the inequality. This is the Clausius theorem. C
7
for a reversible 𝒞 run backward every dQ → −dQ, giving ∮ dQ/T ≥ 0; with step 6: ∮ dQrev/T = 0
A reversible cycle satisfies the inequality in both directions, and the only number that is both ≤ 0 and ≥ 0 is zero. C
8
∮ = ∫A→B (path 1) + ∫B→A (path 2) = 0 ⟹ ∫A→B (path 1) dQrev/T = ∫A→B (path 2) dQrev/T
Two arbitrary reversible paths from A to B form a closed loop; the loop integral vanishes, so the two path integrals are equal. Path-independence of the integral is exactly the condition for an exact differential. B
9
define dS ≡ dQrev/T ,   SB − SA = ∫AB dQrev/T
Because the integral depends only on the endpoints, it defines a state function up to an additive constant — the entropy. A
10
irreversible A→B, then reversible B→A: ∫AB dQ/T + ∫BA dQrev/T ≤ 0
This composite is a genuine cycle, so the Clausius theorem (step 6, strict for an irreversible leg) applies. C
11
BA dQrev/T = SA − SB ⟹ ∫AB dQ/T ≤ SB − SA ⟹ dS ≥ dQ/T
Substitute the state-function value of the reversible return leg and rearrange; in differential form this is the Clausius inequality for a process. C
12
isolated system: dQ = 0 ⟹ dS ≥ 0
With no heat crossing the boundary the inequality collapses to the law of entropy increase. A
Result
∮ dQ/T ≤ 0   (= 0 iff reversible)   ⟹   dS = dQrev/T ,   dS ≥ dQ/T ,   (dS)isolated ≥ 0

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.

1
cycle = isotherm at TH (absorb QH) + adiabat + isotherm at TC (reject QC) + adiabat
Adiabatic legs carry dQ = 0 and contribute nothing to ∮ dQ/T. A
2
∮ dQ/T = QH/TH − QC/TC
Each isotherm has constant T, so ∫ dQ/T = Q/T; rejected heat enters with a minus sign. A
3
carnot-efficiency: QH/QC = TH/TC. Take TH = 500 K, TC = 300 K, QH = 1000 J ⟹ QC = 600 J
Thermodynamic-temperature relation for the reversible engine; then insert numbers. B
4
∮ dQ/T = 1000/500 − 600/300 = 2.00 − 2.00 J·K−1
Direct arithmetic. A
∮ dQ/T = 0.00 J·K−1

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.

1
Q flows from reservoir TH to reservoir TC; each reservoir stays at fixed T (very large heat capacity)
A reservoir's temperature is unchanged by finite Q, so its ΔS = ∫ dQrev/T = Q/T at that fixed T. A
2
ΔStotal = ΔScold + ΔShot = (+Q/TC) + (−Q/TH) = Q(1/TC − 1/TH)
Cold gains +Q, hot loses Q; entropy is a state function so we sum the reservoir changes. B
3
TH = 400 K, TC = 300 K, Q = 1000 J
Insert numbers after the symbolic form is fixed. A
4
ΔStotal = 1000(1/300 − 1/400) = 1000(3.333×10−3 − 2.500×10−3) = 1000 × 8.33×10−4
Arithmetic; the bracket is positive because TC < TH. A
ΔStotal = +0.833 J·K−1 > 0

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
  1. 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.
  2. 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).
  3. 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.
  4. 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.
  5. 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.