Skip to main content

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.
Starting model: Entropy and irreversibilityThree bars for one act of conduction: 1200 J leaving a hot reservoir at 600 K and arriving at a cold one at 300 K. The hot bar hangs below the zero line at −Q/T_h = -2.00 J K⁻¹, the cold bar rises to +Q/T_c = 4.00 J K⁻¹, and the third bar is their sum, ΔS_total = 2.00 J K⁻¹, the entropy generated.+50−5−2.004.002.00−Q/Tₕ+Q/TcΔSₜₒₜₐₗQ = 1200 J from Tₕ = 600 K to Tc = 300 Kentropy generated = 2.00 J K⁻¹ lost work = 600 J
Start with a picture. Change the model in the lab below.

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.

1

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.

2

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 absolute

Entropy 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 temperature

Clausius 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 reversible

Entropy 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 one

Boltzmann'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 J
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

600 K
400 to 900 K; steps of 25.
300 K
200 to 700 K; steps of 25.
1200 J
400 to 2000 J; steps of 100.

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.

Interactive Physics II modelThree bars for one act of conduction: 1200 J leaving a hot reservoir at 600 K and arriving at a cold one at 300 K. The hot bar hangs below the zero line at −Q/T_h = -2.00 J K⁻¹, the cold bar rises to +Q/T_c = 4.00 J K⁻¹, and the third bar is their sum, ΔS_total = 2.00 J K⁻¹, the entropy generated.+50−5−2.004.002.00−Q/Tₕ+Q/TcΔSₜₒₜₐₗQ = 1200 J from Tₕ = 600 K to Tc = 300 Kentropy generated = 2.00 J K⁻¹ lost work = 600 J
Three bars for one act of conduction: 1200 J leaving a hot reservoir at 600 K and arriving at a cold one at 300 K. The hot bar hangs below the zero line at −Q/Tₕ = −2.00 J K⁻¹, the cold bar rises to +Q/Tc = 4.00 J K⁻¹, and the third bar is their sum, ΔSₜₒₜₐₗ = 2.00 J K⁻¹, the entropy generated.

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

Baseline 600; choose 400 to 900, in steps of 25.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

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.

5

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.

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.

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.

6

Quick check

Select an answer and explain it before checking.

A rigid insulated container is split by a membrane into two equal volumes, with 1.0 mol of ideal gas on one side and vacuum on the other. The membrane bursts and the gas fills the whole container. What are the entropy changes of the gas and of its surroundings?
7

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.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.