This page belongs to the parent topic . Here we do not learn new theory — we stress-test the one big idea until no case can surprise you:
Intuition The single question we ask every time
"Does this number depend only on where I started and ended (a state function), or on the route I walked (a path function)?" A mountain's height at your feet is a state function; the kilometres your boots walked is a path function. Every example below is a different way the mountain can be climbed.
Before any symbol appears in a formula, here is the plain-word key you must carry:
Every case this topic can throw is one of these cells. The examples that follow are tagged with the cell they cover, so together they fill the whole grid.
#
Cell (case class)
What is tricky about it
Covered by
C1
Two routes, same endpoints — reversible vs irreversible
Same Δ U , different q and w
Ex 1
C2
Sign of w — expansion (w > 0 ) vs compression (w < 0 )
The direction flips the sign
Ex 2
C3
Zero input — free expansion, P ext = 0
w = 0 even though volume changes
Ex 1, Ex 5
C4
Adiabatic — q = 0
All energy goes to work; Δ U = − w
Ex 3
C5
Closed cycle — return to start
∮ d U = 0 but ∮ q = 0
Ex 4
C6
Constant-V vs constant-P — q becomes state-like
q V = Δ U , q P = Δ H
Ex 6
C7
Degenerate / limiting — V 2 → V 1 , or ln 1 = 0
Everything must go to zero smoothly
Ex 7
C8
Real-world word problem — a steam-engine-style cycle
Translate words into the matrix
Ex 8
C9
Exam twist — "given Δ U , find q and w " (trap)
Impossible without the path
Ex 9
Look at the map: the height axis (blue) is a state function U — points A and B sit at fixed heights no matter which trail you take. The wiggly trails (orange and green) have different lengths — that length is the path function. Keep this in mind for every example.
Worked example Example 1 — Cell C1 & C3: two routes, same endpoints
Statement: 1 mol ideal gas, held at T = 300 K , expands from V 1 = 10 L to V 2 = 20 L . Compute Δ U , q , w for (A) reversible and (B) free expansion.
Forecast: Guess now — will Δ U be the same for both? Will q ?
Δ U for both paths.
Why this step? For an ideal gas U depends only on T . Both paths keep T = 300 K , so Δ T = 0 ⇒ Δ U = 0 . State function → route-blind.
Δ U A = Δ U B = 0
Reversible work.
Why this step? Reversible means P ext = P gas = n R T / V at every instant, so we integrate w = ∫ P ext d V :
w A = n R T ln V 1 V 2 = ( 1 ) ( 8.314 ) ( 300 ) ln 2 = + 1729 J
Reversible heat. First Law q = Δ U + w = 0 + 1729 = + 1729 J .
Free-expansion work.
Why this step? "Free" means P ext = 0 , so w B = − ∫ 0 d V = 0 . Cell C3: zero input despite volume change.
w B = 0 , q B = Δ U + w B = 0
Verify: Δ U identical (0 = 0) ✔ state function. But w A = 1729 J = w B = 0 and q A = 1729 J = q B = 0 ✔ path functions. Same endpoints, different journey-costs — exactly the matrix's C1/C3.
The shaded area under each curve in the figure is the work. Reversible (orange) has area; free (green) hugs the axis with zero area.
Worked example Example 2 — Cell C2: the sign of work flips
Statement: Same gas, now compressed reversibly and isothermally from 20 L back to 10 L at 300 K . Find w and q .
Forecast: Will w be positive or negative this time?
Apply the same reversible formula, new limits.
w = n R T ln V 1 V 2 = ( 8.314 ) ( 300 ) ln 20 10 = ( 8.314 ) ( 300 ) ln 0.5 = − 1729 J
Why this step? ln 0.5 = − ln 2 , so the sign flips. The gas now receives work; w < 0 in our "w = work done by gas" convention.
Heat. q = Δ U + w = 0 + ( − 1729 ) = − 1729 J — heat flows out of the gas.
Verify: Compression is Example 1 run backwards; magnitudes match (1729 J ), signs reversed ✔. Units: mol ⋅ J mol − 1 K − 1 ⋅ K = J ✔.
Worked example Example 3 — Cell C4: adiabatic,
q = 0
Statement: A gas is compressed adiabatically and its internal energy rises by Δ U = + 500 J . Find q and w .
Forecast: With no heat allowed in or out, where does the energy come from?
Set q = 0 . Why this step? "Adiabatic" is the definition q = 0 (insulated walls).
First Law: Δ U = q − w ⇒ 500 = 0 − w ⇒ w = − 500 J .
Why this step? All the energy came from work done on the gas (w < 0 ).
Verify: q − w = 0 − ( − 500 ) = 500 = Δ U ✔. This is the adiabatic limit — even here w is path-dependent (a reversible vs shock compression to the same Δ U would trace different curves), but its value is pinned only because q was forced to zero.
Worked example Example 4 — Cell C5: a closed cycle
Statement: A gas goes A → B → C → A . Segment heats absorbed: q A B = + 800 J , q B C = − 300 J , q C A = − 200 J ; works done: w A B = + 500 J , w B C = 0 , w C A = − 200 J . Show ∮ d U = 0 but ∮ q = 0 .
Forecast: For a loop back to the start, which sum must vanish?
Loop heat. ∮ q = 800 − 300 − 200 = + 300 J .
Why this step? Path functions don't cancel around a loop — this is the engine's net heat intake.
Loop work. ∮ w = 500 + 0 − 200 = + 300 J — net work delivered.
Loop internal energy. ∮ d U = ∮ q − ∮ w = 300 − 300 = 0 .
Why this step? U is a state function; returning to A must return to the same U . See cyclic processes .
Verify: ∮ d U = 0 ✔ (state), ∮ q = 300 = 0 ✔ (path). The gas took in 300 J of net heat and gave out 300 J of net work — a one-cycle heat engine.
Worked example Example 5 — Cell C3 revisited: free expansion, both
q and w zero
Statement: Ideal gas doubles its volume in an insulated, evacuated chamber (Joule expansion). Find q , w , Δ U , Δ T .
Forecast: Volume changed a lot — did anything else?
Work: insulated + against vacuum ⇒ P ext = 0 ⇒ w = 0 .
Heat: insulated ⇒ q = 0 .
Internal energy: Δ U = q − w = 0 − 0 = 0 .
Temperature: ideal gas U ( T ) only ⇒ Δ U = 0 ⇒ Δ T = 0 .
Why this step? This is why Joule found no cooling for an ideal gas.
Verify: all four are 0 ✔. Compare Ex 1B: same endpoints, same zeros — self-consistent.
Worked example Example 6 — Cell C6: when
q becomes state-like
Statement: Heat 100 g water from 2 5 ∘ C to 10 0 ∘ C (c = 4.18 J g − 1 K − 1 ) at (a) constant volume, (b) constant pressure. Compare q .
Forecast: Will the two heats be equal?
Base heat. m c Δ T = 100 × 4.18 × 75 = 31350 J .
Constant volume: w = 0 , so q V = Δ U = 31350 J . Why? d V = 0 kills the work term; q now equals a state change.
Constant pressure: q P = Δ H . The tiny expansion work ≈ 0.05 J is negligible for a liquid, so q P ≈ 31350 J too.
Why this step? Under a fixed constraint , the path function q locks onto a state function (Δ U or Δ H ). Remove the constraint and it stops.
Verify: q V = 31350 J ✔; q P ≈ 31350 J ✔ (differ only by the ~0.05 J liquid work). See exact/inexact differentials for why this "locking" happens.
Worked example Example 7 — Cell C7: the degenerate limit
V 2 → V 1
Statement: Take the reversible isothermal work w = n R T ln ( V 2 / V 1 ) and let V 2 → V 1 . Show every path quantity vanishes smoothly.
Forecast: If you go nowhere, how much work is done?
Ratio → 1. As V 2 → V 1 , V 2 / V 1 → 1 and ln 1 = 0 .
w = n R T ln ( 1 ) = 0
Heat. q = Δ U + w = 0 + 0 = 0 .
Why this step? No net journey ⇒ no path cost. The formula is well-behaved at the boundary — no blow-ups, no discontinuity.
Verify: numerically with V 2 = 10.001 L , V 1 = 10 L : w = 8.314 × 300 × ln ( 1.0001 ) ≈ 0.25 J , shrinking toward 0 ✔. Limit confirmed.
Worked example Example 8 — Cell C8: real-world word problem (a mini steam engine)
Statement: Each cycle, an engine's working gas absorbs 1000 J of heat from a boiler, rejects 700 J to a condenser, and returns to its starting state. How much work per cycle does it deliver, and what is Δ U per cycle?
Forecast: Guess the work before computing.
Net heat. ∮ q = 1000 − 700 = + 300 J .
Cycle ⇒ state function returns. ∮ d U = 0 because the gas is back to its start.
Work. ∮ w = ∮ q − ∮ d U = 300 − 0 = + 300 J .
Why this step? In a cycle, all net heat becomes net work — that is literally how an engine earns its keep.
Verify: Δ U cycle = 0 ✔ (state function), work = 300 J ✔, efficiency = 300/1000 = 30% . Matches the C5 loop logic with real words.
Worked example Example 9 — Cell C9: the exam trap
Statement: "Given Δ U = + 100 J between two states, find q and w ." What should you answer?
Forecast: Is this even solvable?
Recognize the trap. Δ U is a state function — it fixes the change but says nothing about the route.
Show the ambiguity. All of these satisfy q − w = 100 :
q = 100 , w = 0 (constant-V heating)
q = 200 , w = 100 (heat + expansion)
q = 0 , w = − 100 (adiabatic compression)
Why this step? Infinitely many ( q , w ) pairs give the same Δ U ; only the path picks one.
Verify: 100 − 0 = 100 ✔, 200 − 100 = 100 ✔, 0 − ( − 100 ) = 100 ✔. All valid → the question is underspecified . Correct exam answer: "impossible without the process details."
Recall Quick self-test
Two paths give the same Δ U but different q . Which kind of function is q ? ::: A path function.
In a complete cycle, what is ∮ d U ? ::: Zero, because U is a state function.
Adiabatic means which path quantity is zero? ::: q = 0 .
Why can't you find q and w from Δ U alone? ::: Because Δ U fixes only the endpoints; q and w need the path.
Under constant pressure, q P equals which state function change? ::: Δ H (enthalpy).
Mnemonic Height vs Footsteps
State = the mountain's Height (endpoints only). Path = your Footsteps (the whole trail). U , H , S (entropy is a state function ) are Heights; q and w are Footsteps.