This is a drill page for the derivation note . There we built the one master idea
W = ∫ V 1 V 2 P d V
Here we throw every kind of case at it: each sign, each degenerate input, each limit, a word problem, and an exam trap. Guess before you compute — that "Forecast" habit is how you catch nonsense answers.
Recall What each symbol means (built once, used everywhere)
P = pressure = force per area the gas pushes with (unit: pascal, Pa = N/m 2 ).
V = volume the gas fills (unit: m 3 ; note 1 L = 1 0 − 3 m 3 ).
W = ∫ P d V = the running sum of tiny pushes P d V as volume changes. On a P –V picture it is the area under the path .
n = moles of gas, R = 8.314 J mol − 1 K − 1 (the gas constant), T = absolute temperature in kelvin.
γ (gamma) = ratio of heat capacities, = 5/3 for a monatomic gas, = 7/5 for a diatomic gas. It appears only in adiabatic work.
ln = natural logarithm — the function that undoes e ( ⋅ ) ; it shows up because ∫ V d V = ln V .
Every question this topic can throw is one cell of this table. The worked examples below are tagged [Cell n] so you can see the whole space gets covered.
Cell
Case class
What makes it tricky
1
Isobaric expansion (V 2 > V 1 )
positive work, pull P out
2
Isobaric compression (V 2 < V 1 )
work comes out negative
3
Isochoric (d V = 0 ) — degenerate
area is zero, W = 0 no matter the heat
4
Isothermal expansion
P varies → log appears, W > 0
5
Isothermal compression
same log, V 2 < V 1 → ln < 0 → W < 0
6
Adiabatic expansion (gas cools)
power-law integral, W > 0 , sign trap
7
Limiting behaviour
V 2 → V 1 (all W → 0 ); γ → 1 (adiabatic → isothermal)
8
Cyclic loop — sign by direction
net W = enclosed area; clockwise > 0
9
Real-world word problem
translate words → which formula
10
Exam twist
mixed path / first-law combination
The picture above is the whole matrix in one glance: same two endpoints, different coloured paths, different shaded areas. Work is the area, and the area depends on the path.
3 mol of gas is heated at constant pressure from T 1 = 250 K to T 2 = 350 K . Find W .
Forecast: Constant pressure and the gas gets hotter → it expands → work should be positive , a few thousand joules.
Step 1 — pick the formula. Why this step? Constant P lets us pull P out of ∫ P d V = P ( V 2 − V 1 ) ; using P V = n R T this becomes W = n R Δ T . No integral survives.
Step 2 — plug in. Why this step? All quantities are known in SI.
W = n R ( T 2 − T 1 ) = 3 × 8.314 × ( 350 − 250 ) = 2494.2 J
Verify: Positive ✓ (matches forecast, gas expands). Units: mol ⋅ mol K J ⋅ K = J ✓.
Gas at constant pressure P = 2 × 1 0 5 Pa is compressed from V 1 = 0.05 m 3 to V 2 = 0.02 m 3 . Find W done by the gas.
Forecast: Volume shrinks , so the gas is pushed in — work done by the gas should be negative .
Step 1 — formula. Why this step? Pressure constant → W = P ( V 2 − V 1 ) directly (no need for n R T ; we already have P and V ).
Step 2 — plug in with correct order V 2 − V 1 . Why this step? Keep final minus initial so the sign takes care of itself.
W = 2 × 1 0 5 × ( 0.02 − 0.05 ) = 2 × 1 0 5 × ( − 0.03 ) = − 6000 J
Verify: Negative ✓. Sanity: surroundings did + 6000 J on the gas. Units: Pa ⋅ m 3 = m 2 N ⋅ m 3 = N ⋅ m = J ✓.
Writing V 1 − V 2 "to make it positive" is the classic sign flip. Always final minus initial ; let the physics decide the sign.
1000 J of heat is added to gas in a sealed rigid tank (volume fixed). Find the work done by the gas.
Forecast: Rigid tank → piston can't move → zero work regardless of how much heat you dump in.
Step 1 — check what's constant. Why this step? Rigid container ⇒ V constant ⇒ d V = 0 .
W = ∫ V 1 V 1 P d V = 0
Step 2 — where did the heat go? Why this step? First law Δ U = Q − W (see First Law of Thermodynamics ) with W = 0 gives Δ U = Q = 1000 J — all heat became internal energy.
Verify: W = 0 ✓. This is the degenerate cell: the area under a vertical line on a P –V diagram is zero (no width).
2 mol of gas expands isothermally at T = 400 K from V 1 = 10 L to V 2 = 30 L . Find W .
Forecast: Constant temperature, expansion → W > 0 , and because pressure drops as it spreads, we get a log , not P Δ V .
Step 1 — why a log? Why this step? At constant T , P V = n R T ⇒ P = V n R T changes as V changes, so P cannot come out of the integral. We integrate ∫ V n R T d V = n R T ln V .
W = n R T ln V 1 V 2
Step 2 — note the ratio needs no unit conversion. Why this step? V 2 / V 1 = 30/10 = 3 is a pure number; litres cancel.
W = 2 × 8.314 × 400 × ln 3 = 6651.2 × 1.0986 = 7307.2 J
Verify: Positive ✓. ln 3 ≈ 1.0986 . Units: J (the log is dimensionless) ✓.
The same 2 mol gas at 400 K is now compressed from 30 L back to 10 L . Find W .
Forecast: Same magnitude as Example D but negative — we're squeezing, so the gas does negative work. Reverse path, opposite sign.
Step 1 — same formula, swapped limits. Why this step? V 2 / V 1 = 10/30 = 1/3 , and ln ( 1/3 ) = − ln 3 .
W = 2 × 8.314 × 400 × ln 30 10 = 6651.2 × ( − 1.0986 ) = − 7307.2 J
Verify: Exactly − Example D ✓. This is why ∮ over out-and-back at constant T is zero — same path, opposite direction cancels.
1 mol of diatomic gas (γ = 7/5 ) expands adiabatically from T 1 = 500 K to T 2 = 380 K . Find W .
Forecast: Adiabatic = wrapped in a blanket, Q = 0 ; expansion means it spends its own internal energy, so it cools (T drops, matches given) and W > 0 .
Step 1 — pick the temperature form. Why this step? We're given temperatures, so use W = γ − 1 n R ( T 1 − T 2 ) (derived from ∫ K V − γ d V ). Note the order T 1 − T 2 — initial minus final.
Step 2 — plug in. Why this step? γ − 1 = 7/5 − 1 = 2/5 = 0.4 .
W = 0.4 1 × 8.314 × ( 500 − 380 ) = 0.4 997.68 = 2494.2 J
Verify: Positive ✓ (cooling expansion gives W > 0 ). If you had written γ − 1 n R ( T 2 − T 1 ) you'd get − 2494.2 J , wrongly claiming an expanding gas does negative work — that's the [Cell 6] sign trap.
Two limits at once.
(i) An isothermal process with V 2 → V 1 (barely any expansion).
(ii) An adiabatic curve as γ → 1 : show it approaches the isothermal answer.
Forecast: (i) No volume change → W → 0 . (ii) When γ = 1 , P V γ = K becomes P V = K = constant, which is the isothermal condition — so the two formulas should merge.
Step 1 — limit (i) numerically. Why this step? Take 1 mol at 300 K , V 2 / V 1 = 1.001 .
W = 1 × 8.314 × 300 × ln ( 1.001 ) = 2494.2 × 0.0009995 = 2.493 J
As V 2 / V 1 → 1 , ln ( 1 ) = 0 , so W → 0 ✓ — smoothly, not abruptly.
Step 2 — limit (ii) conceptually. Why this step? The adiabatic work γ − 1 P 1 V 1 − P 2 V 2 has γ − 1 → 0 in the denominator, but the numerator also → 0 because when γ = 1 the curve is P V = const so P 1 V 1 = P 2 V 2 . The 0/0 resolves (L'Hôpital) exactly to n R T ln ( V 2 / V 1 ) — the isothermal result.
Verify: Both limits behave. The Adiabatic Process and PV^gamma curve is steeper than the Isothermal Process and Boyle's Law curve for γ > 1 ; at γ = 1 they coincide (figure above).
A gas runs the rectangular loop A → B → C → D → A shown above:
A = ( V = 1 m 3 , P = 1 × 1 0 5 Pa ) , B = ( 3 , 1 × 1 0 5 ) , C = ( 3 , 3 × 1 0 5 ) , D = ( 1 , 3 × 1 0 5 ) , traversed in that order. Find W net .
Forecast: Trace the order A → B → C → D → A : it runs anticlockwise here (expand at low pressure, compress at high pressure). Anticlockwise ⇒ W net < 0 . Magnitude = box area.
Step 1 — leg by leg. Why this step? Only the horizontal legs have d V = 0 ; vertical legs (V fixed) give 0 .
A → B (expand at P = 1 0 5 ): W = 1 0 5 × ( 3 − 1 ) = + 2 × 1 0 5 J .
B → C (isochoric): 0 .
C → D (compress at P = 3 × 1 0 5 ): W = 3 × 1 0 5 × ( 1 − 3 ) = − 6 × 1 0 5 J .
D → A (isochoric): 0 .
Step 2 — sum. Why this step? Net work is the algebraic sum around the loop.
W net = 2 × 1 0 5 + 0 − 6 × 1 0 5 + 0 = − 4 × 1 0 5 J
Verify: Enclosed area = Δ P ⋅ Δ V = ( 2 × 1 0 5 ) ( 2 ) = 4 × 1 0 5 J ; sign negative because anticlockwise ✓. Matches Carnot Cycle logic: loop direction sets the sign.
A weather balloon holds 0.5 mol of gas. Rising through the atmosphere it expands, its temperature falling from 290 K to 250 K with negligible heat exchange over the fast ascent. Treat the gas as monatomic (γ = 5/3 ). How much work does it do?
Forecast: "Negligible heat exchange" is the keyword → adiabatic . Expansion + cooling → W > 0 .
Step 1 — translate words to a case. Why this step? No heat + given T 1 , T 2 ⇒ adiabatic temperature formula W = γ − 1 n R ( T 1 − T 2 ) .
Step 2 — plug in. Why this step? γ − 1 = 5/3 − 1 = 2/3 ≈ 0.6667 .
W = 0.6667 0.5 × 8.314 × ( 290 − 250 ) = 0.6667 166.28 = 249.4 J
Verify: Positive ✓. The energy for this 249.4 J came from the gas's own internal store (see Internal Energy and Cv ), which is why it cooled.
In an isothermal expansion, a gas absorbs Q = 5000 J of heat. A student claims "the work done is zero because temperature is constant, so Δ U = 0 ." Correct them and find the actual work.
Forecast: The claim confuses "Δ U = 0 " with "W = 0 ". At constant T the piston still moves, so W = 0 . In fact first law forces W = Q .
Step 1 — apply the first law. Why this step? Δ U = Q − W . Isothermal ⇒ T constant ⇒ Δ U = 0 (internal energy depends only on T ). Therefore
0 = Q − W ⇒ W = Q = 5000 J .
Step 2 — where the student went wrong. Why this step? Δ U = 0 says heat and work are equal , not that either is zero. The gas quietly converts all 5000 J of absorbed heat into work.
Verify: W = 5000 J , positive (expansion) ✓. Consistent with the log formula: whatever n R T ln ( V 2 / V 1 ) equals, it must here equal the 5000 J absorbed.
Recall Rapid self-test
Isobaric compression 0.05 → 0.02 m 3 at 2 × 1 0 5 Pa, work by gas ::: − 6000 J
Isothermal, 2 mol, 400 K, volume 10 → 30 L ::: + 7307 J
Same but compressed 30 → 10 L ::: − 7307 J
Adiabatic diatomic, 500 → 380 K, 1 mol ::: + 2494 J
Anticlockwise rectangular loop, Δ P = 2 × 1 0 5 , Δ V = 2 ::: − 4 × 1 0 5 J
Isothermal expansion absorbing 5000 J of heat, work ::: 5000 J (since Δ U = 0 ⇒ W = Q )