
Optional extension · Interactive lesson
Entropy and irreversibility
Energy bookkeeping happily allows a cup of coffee to heat itself by chilling the room. Entropy is the quantity that rules that film out — a state function you can compute from a path the process never took, and a number that only ever grows for a system and its surroundings together.
UPII-E3.08 · Lesson 8 of 9 in this extension. Position is not a completion score.Optional extension. Use this unnumbered support sequence where your university’s syllabus or prerequisite needs require it. It is not an additional numbered unit. Optional work is not a required completion gate.
Build the model
The first law says what is possible; entropy says which way it runs.
The key idea
Entropy is a state function whose change between two equilibrium states equals the heat absorbed divided by the absolute temperature, summed along any reversible path joining them — and whose total over a system and its surroundings never decreases.
Example. Warming 0.500 kg of water (c = 4180 J kg⁻¹ K⁻¹) from 293 K to 313 K through a ladder of baths each a hair warmer gives ΔS = ∫ mc dT/T = mc ln(T₂/T₁) = 0.500 × 4180 × ln(313/293) = 2090 × 0.0660 = 138 J K⁻¹; the integral runs over T because the water warms while the heat goes in.
The complete physical model and assumptions
Energy conservation is blind to direction: a first-law audit is satisfied just as well by coffee cooling as by coffee heating itself while the room chills. Entropy breaks the tie. Carnot's result that Qₕ/Tₕ = Qc/Tc for a reversible engine means that δQᵣₑᵥ/T, unlike δQ itself, sums to zero around a closed reversible cycle, so its integral depends only on the endpoints and therefore defines a state function S. Boltzmann says what that function counts: S = kB ln Ω, the logarithm of the number of microscopic arrangements a macroscopic state allows, with the logarithm supplying exactly the additivity thermodynamic entropy needs. The direction then follows from arithmetic on enormous numbers — a system left alone drifts into the macrostate with overwhelmingly the most arrangements — and the entropy statement of the second law, ΔSsys + ΔSₛᵤᵣᵣ ≥ 0, is the record of that drift. The model has edges. S is defined only for equilibrium states, so a fluid in mid-turbulence has no single entropy while it is being stirred; the inequality constrains the total and never the system alone, which is how a freezer is legal; and it is statistical rather than mechanical, so a handful of particles visibly runs backwards and only at laboratory numbers does never become a safe word.
1δQ does not close a loop, but δQ/T does
Take a reversible Carnot engine between 600 K and 300 K that absorbs 6000 J from the boiler. It rejects Qc = 6000 × 300/600 = 3000 J, so the net heat around the cycle is 3000 J, not zero: heat is not a state function and there is no such thing as the heat content of a gas. Now weight each transfer by its temperature. The boiler term is 6000/600 = 10.0 J K⁻¹ in, the condenser term is 3000/300 = 10.0 J K⁻¹ out, and they cancel exactly. That cancellation is not a coincidence of these numbers; it is Carnot's Qₕ/Tₕ = Qc/Tc. Any reversible cycle can be covered by a mesh of narrow Carnot cycles whose shared adiabatic edges are traversed twice in opposite senses and cancel, leaving ∮ δQᵣₑᵥ/T = 0 for the cycle as a whole. A quantity whose loop integral always vanishes has a path-independent integral between any two points, so ∫ δQᵣₑᵥ/T defines the difference of a state function. Clausius named it entropy.
2Because S is a state function, you may fake the path
A rigid insulated vessel holds gas in one chamber and vacuum in the other; the membrane bursts. Audit it: Q = 0 because the walls are insulated, W = 0 because the gas pushes on nothing, so ΔU = 0 and an ideal gas ends at the temperature it started at. It is tempting to write ΔS = Q/T = 0, and it is wrong — the definition carries a reversible subscript, and a bursting membrane passes through no equilibrium states at all. What survives is that the endpoints, (T, V₁) and (T, V₂), are both proper equilibrium states. So invent a route between them that the formula does accept: a slow isothermal expansion against a piston, in contact with a bath at T. On that route ΔU = 0 again, so Qᵣₑᵥ = W = nRT ln(V₂/V₁), and ΔS = Qᵣₑᵥ/T = nR ln(V₂/V₁). For one mole doubling its volume that is 8.314 × ln 2 = 5.76 J K⁻¹. The gas keeps no memory of which route it took; only the endpoints entered the answer.
3What the state function is counting
Label four gas molecules and ask which half of a box each occupies. There are 2⁴ = 16 equally likely arrangements. Exactly one puts all four on the left; six put two on each side. The even split is not favoured by any force — it is favoured six to one by sheer count. Write Ω for the number of microscopic arrangements consistent with a macroscopic description; Boltzmann's S = kB ln Ω makes entropy the logarithm of that count. The logarithm is doing real work: microstate counts multiply when two systems are put side by side, Ω = Ω₁Ω₂, while entropies must add, and only a logarithm converts one into the other. Counting also reproduces the last section. Each molecule free to roam volume V has a position count proportional to V, so N of them give Ω ∝ VN; doubling V multiplies Ω by 2N and ΔS = kB ln 2N = N kB ln 2 = nR ln 2, the identical 5.76 J K⁻¹ per mole. For a mole the all-on-one-side state has probability 2(−6 × 10²³): not rare so much as never.
4Entropy is generated, not conserved
Apply the Clausius inequality to a cycle made of a real, irreversible leg from state 1 to state 2 and a reversible return, and the reversible leg contributes exactly −(S₂ − S₁). What is left is ΔS ≥ ∫ δQ/Tᵣₑₛ for the real leg, with Tᵣₑₛ the temperature of whatever supplied the heat, not the temperature inside the churning system. Define the shortfall as entropy generated, Sgen = ΔS − ∫ δQ/Tᵣₑₛ ≥ 0. This is the sharpest difference between the two laws. Energy is conserved: the joules are only moved and relabelled. Entropy is not conserved, it is manufactured — by friction, by conduction across a finite temperature gap, by unrestrained expansion, by mixing, by current through a resistor, by any finite-rate process at all. Nothing in nature destroys it. A reversible process is simply the idealised limit in which Sgen is driven to zero, which costs infinite time.
5The ledger belongs to the universe, not to the system
A freezer pulls 500 J out of its contents at 270 K and dumps 600 J into a 300 K kitchen, the extra 100 J being the work its compressor did. The contents lose entropy: ΔS = −500/270 = −1.85 J K⁻¹. The kitchen gains ΔS = +600/300 = +2.00 J K⁻¹. The total is +0.15 J K⁻¹, positive, so nothing illegal has happened even though one object's entropy plainly fell. Water freezing does the same, shedding 334 kJ per kilogram to its surroundings; so does a crystal growing, and so does every living thing. Only ΔSₜₒₜₐₗ is signed by the second law. The familiar statement that entropy never decreases is the special case of an isolated system, where there are no surroundings to take up the slack, so ΔSsys and ΔSₜₒₜₐₗ are the same number. Over-generalising that case is the commonest way to conclude that refrigerators and biology are impossible.
6Equilibrium is where the count peaks
Let a hot body at Tₕ and a cold one at Tc exchange a small amount of heat dQ. The hot one loses dQ/Tₕ of entropy, the cold one gains dQ/Tc, and the total change is dQ(1/Tc − 1/Tₕ), which is positive while Tₕ > Tc, shrinks as the gap closes, and reaches zero when the temperatures are equal. So the second law is not assuming the direction of heat flow, it is deriving it: the common temperature is the state where total entropy stops rising, which is exactly what equilibrium means. The same picture answers the unsettling question about time. Newton's laws and Maxwell's equations run equally well backwards, and a reversed film of a free expansion violates none of them; it merely asks the gas to land in one particular microstate out of 2N. For ten particles that reversal is watched routinely in simulation, which is why entropy increase is a statement about probability. At 10²³ particles the probability is so small that the statement becomes a law.
Key equations
Read the units, assumptions and limits before substituting.
Entropy change, Clausius definition
ΔS = S₂ − S₁ = ∫₁² δQᵣₑᵥ/T
Only the endpoints matter, so you may choose whichever reversible path is easiest to integrate; the real process need not resemble it.
S in J K⁻¹, δQᵣₑᵥ in J along a reversible path, T in K absoluteEntropy is a state function
∮ δQᵣₑᵥ/T = 0
Carnot's Qₕ/Tₕ = Qc/Tc tiled over a general cycle. This vanishing loop integral is the whole reason S exists.
Around any closed reversible cycle, T in K being the working substance's own temperatureClausius inequality
∮ δQ/Tᵣₑₛ ≤ 0
The real-cycle version of the card above, and the single step from which the entropy statement of the second law follows.
Q in J as actually exchanged, Tᵣₑₛ in K the reservoir supplying it; equality only if every step is reversibleEntropy statement of the second law
ΔSₜₒₜₐₗ = ΔSsys + ΔSₛᵤᵣᵣ ≥ 0
The arrow of time in one line: a process whose total entropy change would be negative never runs, whatever the energy books allow.
All three in J K⁻¹; the total is zero only for a reversible process, positive for every real oneBoltzmann's counting
S = kB ln Ω
Turns entropy into combinatorics, and the logarithm makes it add: give N particles twice the room and Ω is multiplied by 2N.
Ω is a pure count of microstates, kB = 1.381 × 10⁻²³ J K⁻¹, S in J K⁻¹The price of irreversibility
Wₗₒₛₜ = T₀ Sgen
Converts entropy generated into the joules of work the process threw away: 1 J K⁻¹ created beside a 300 K river costs 300 J.
T₀ in K the coldest reservoir available, Sgen = ΔSₜₒₜₐₗ in J K⁻¹, Wₗₒₛₜ in JInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Raise Tc towards Tₕ and watch the two bars converge until the net bar vanishes — that is the reversible limit, where conduction generates nothing. Push Tc past Tₕ and the net bar drops below the line: the same heat flowing uphill, the one process the second law forbids.
Live results
- HOT −Q/Tₕ
- -2.00 J K⁻¹
- COLD +Q/Tc
- 4.00 J K⁻¹
- GENERATED ΔSₜₒₜₐₗ
- 2.00 J K⁻¹
- WORK LOST Tc ΔSₜₒₜₐₗ
- 600 J
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 reservoir Tₕ: 600 K; Cold reservoir Tc: 300 K; Heat conducted Q: 1200 J
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The definition is ΔS = ∫ δQᵣₑᵥ/T, and the subscript is the entire content. Students apply it to the process in front of them: the vessel is insulated, so Q = 0, so ΔS = 0. That conclusion is wrong because a bursting membrane is not a reversible path and the formula was never available for it. You must supply a reversible route between the same two equilibrium states, and that route carries Qᵣₑᵥ = nRT ln(V₂/V₁), giving ΔS = nR ln(V₂/V₁) > 0. The same slip run backwards claims a system's entropy can never fall. It falls whenever heat leaves: a kilogram of water freezing at 273 K loses 334 kJ and with it 1.22 kJ K⁻¹. What may never fall is the total for the system plus its surroundings, and only for an isolated system are those the same quantity.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A copper bar joins a furnace held at 500 K to a water tank held at 300 K. In one minute 2400 J of heat passes along the bar, which is in a steady state and ends the minute exactly as it began. Find the entropy change of each reservoir and of the universe, and say what the sign rules out.
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.
- The bar returns to its own initial state, so its entropy change is zero — S is a state function. Only the two reservoirs keep score.
- Each reservoir is large enough that its temperature does not shift while the heat crosses, so the reversible path is isothermal and ∫ δQᵣₑᵥ/T collapses to Q/T. Furnace: ΔSₕ = −2400 J ÷ 500 K = −4.80 J K⁻¹.
- Tank: ΔSc = +2400 J ÷ 300 K = +8.00 J K⁻¹. The same joules bought more entropy at the tank because they arrived at the lower temperature.
- Total: ΔSₜₒₜₐₗ = −4.80 + 8.00 = +3.20 J K⁻¹, which is positive, so the process is allowed. Run the film backwards and the total would be −3.20 J K⁻¹, so those 2400 J never crawl back up the bar unaided.
Answer. ΔSfurnace = −4.80 J K⁻¹, ΔSₜₐₙₖ = +8.00 J K⁻¹, ΔSₜₒₜₐₗ = +3.20 J K⁻¹. Conduction down a temperature difference generates entropy; the reverse would destroy it, and is forbidden.
MediumExample 2
0.400 mol of helium fills one chamber of a rigid insulated vessel at 3.00 L; the other chamber, 6.00 L, is evacuated. A valve opens and the gas spreads through all 9.00 L. Find the entropy change of the gas from the macroscopic definition, then confirm it by counting microstates with S = kB ln Ω.
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.
- Audit the process. Q = 0 because the vessel is insulated, W = 0 because the gas expands against vacuum, so ΔU = 0 and the helium ends at the temperature T it started at. The endpoints are (T, 3.00 L) and (T, 9.00 L).
- The valve opening is irreversible, so ΔS = Q/T = 0 is not on offer. Because S is a state function, join the same endpoints by a reversible isothermal expansion against a piston, with the gas touching a bath at T.
- On that path ΔU = 0, so Qᵣₑᵥ = W = nRT ln(V₂/V₁), and ΔS = Qᵣₑᵥ/T = nR ln(V₂/V₁) = 0.400 × 8.314 × ln 3.00 = 3.3256 × 1.0986 = 3.65 J K⁻¹.
- Now count instead. Each molecule has three times as much room, so the position count per molecule triples and Ω₂/Ω₁ = 3.00N, with N = 0.400 × 6.022 × 10²³ = 2.409 × 10²³ molecules.
- ΔS = kB ln(Ω₂/Ω₁) = N kB ln 3.00, and N kB = n NA kB = nR = 3.3256 J K⁻¹, so ΔS = 3.3256 × 1.0986 = 3.65 J K⁻¹. The two routes agree because the gas constant is Boltzmann's constant per mole.
Answer. ΔSgas = +3.65 J K⁻¹ by either route. The vessel is insulated, so ΔSₛᵤᵣᵣ = 0 and the entire 3.65 J K⁻¹ is entropy generated by the expansion.
HardExample 3
A real engine takes 6.00 kJ per cycle from a 600 K boiler, delivers 2.10 kJ of work, and rejects the remainder to a 300 K river. Audit the cycle for entropy, convert the entropy generated into the work it cost, then decide whether a redesign delivering 3.30 kJ from the same 6.00 kJ is possible.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- The working substance returns to its starting state each cycle, so ΔU = 0 and Qc = Qₕ − W = 6.00 − 2.10 = 3.90 kJ goes to the river. Its own entropy change is zero for the same reason.
- Boiler: ΔSₕ = −6000 J ÷ 600 K = −10.0 J K⁻¹. River: ΔSc = +3900 J ÷ 300 K = +13.0 J K⁻¹.
- Total per cycle: Sgen = −10.0 + 13.0 = +3.0 J K⁻¹. Positive, so the engine is legal, and non-zero, so it is irreversible.
- Price the irreversibility: Wₗₒₛₜ = T₀ Sgen = 300 K × 3.0 J K⁻¹ = 900 J per cycle. Check it independently against the Carnot ceiling: ηC = 1 − 300/600 = 0.500 gives Wₘₐₓ = 3.00 kJ, and 3.00 − 2.10 = 0.90 kJ. The two agree.
- Now test the redesign. W = 3.30 kJ forces Qc = 6.00 − 3.30 = 2.70 kJ, so Sgen = −10.0 + 2700/300 = −10.0 + 9.0 = −1.0 J K⁻¹.
- A negative total entropy change is not a hard engineering target, it is a forbidden one: the redesign claims η = 0.550 against a Carnot ceiling of 0.500, and the first law alone would never have caught it.
Answer. Sgen = +3.0 J K⁻¹ per cycle, worth Wₗₒₛₜ = 900 J of work thrown away. The 3.30 kJ redesign needs Sgen = −1.0 J K⁻¹, so it is impossible.
Quick check
Select an answer and explain it before checking.
Review & continue
Entropy is a state function whose change between two equilibrium states equals the heat absorbed divided by the absolute temperature, summed along any reversible path joining them — and whose total over a system and its surroundings never decreases.
- 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 II completion tasks.