This is the "roll up your sleeves" companion to Heat and Internal Energy — Microscopic vs Macroscopic . The parent note built the ideas; here we hit every kind of scenario the topic can throw at you, one worked example per cell.
Before we begin, a promise: every symbol below was defined in the parent, except a few we add here . We use
U = internal energy (energy stored inside), Δ U = its change,
Q = heat (energy crossing the boundary because of a temperature difference),
W = work done by the gas (energy leaving as ordered pushing),
n = number of moles, R = 8.314 J mol − 1 K − 1 (gas constant), T = temperature in kelvin,
f = degrees of freedom, and the two master formulas
Δ U = Q − W and U = 2 f n R T .
P and volume V (used in the isothermal and cycle examples)
P = force the gas pushes on each unit of wall area (measured in pascals). V = the space the gas fills (in cubic metres). For an ideal gas they are locked to T by the ideal-gas law P V = n R T , so if you fix two of P , V , T the third is fixed too. When a gas expands, it pushes its boundary through a distance, and the little bits of work P Δ V add up to the total work W .
Definition Molar heat capacity at constant volume
C V (used in Ex 2)
C V = heat needed to raise one mole by one kelvin while the volume is held fixed . Because a fixed volume does no work, all that heat becomes internal energy, so C V = n 1 Δ T Δ U = 2 f R . For a monatomic gas (f = 3 ) this is 2 3 R . See Specific Heats Cv and Cp .
Definition The Boltzmann constant
k B (needed in Ex 8)
k B = 1.381 × 1 0 − 23 J K − 1 is the energy-per-kelvin bookkeeping constant for a single molecule . It is just the gas constant R shared out among the molecules in one mole: k B = R / N A , where N A = 6.022 × 1 0 23 is the number of molecules per mole (Avogadro's number). So "R per mole" and "k B per molecule" say the same thing at two zoom levels — exactly the micro/macro split of the parent note.
Every problem below is just bookkeeping with these lines .
Think of "every scenario" as choosing a value for three knobs plus a few special cases. The table lists each cell and the example that lands on it.
Cell
What is special about it
Q
W
Sign of Δ U
Covered by
A Heat in, gas does work
classic first-law bookkeeping
> 0
> 0
+
Ex 1
B Constant volume (W = 0 ), heating
all heat → internal energy
> 0
0
+
Ex 2
C Isothermal (Δ U = 0 )
heat in = work out exactly
> 0
> 0
0
Ex 3
D Adiabatic (Q = 0 )
no heat; work changes U
0
> 0
− (expansion)
Ex 4
E Sign flip: work done on gas, heat leaks out
both negative
< 0
< 0
+
Ex 5
F Heat out , gas compressed
both negative
< 0
< 0
either sign
Ex 6
G Degenerate: free expansion into vacuum
Q = 0 , W = 0
0
0
0
Ex 7
H Degrees of freedom change (f : 3 vs 5)
diatomic gas
> 0
0
+
Ex 8
I Real-world word problem
tyre / pump framing
context
context
context
Ex 9
J Exam twist: cyclic process
Δ U = 0 over a full loop
net > 0
net > 0
0
Ex 10
K Heat in and gas compressed
both add to U
> 0
< 0
+
Ex 11
L Heat out while gas still does work
opposite signs
< 0
> 0
−
Ex 12
M Constant-volume cooling
heat removed, no work
< 0
0
−
Ex 13
N Heat in but too much work out
net cooling despite heating
> 0
> 0 (with W > Q )
−
Ex 14
Intuition How to read a scenario before touching numbers
Three questions, always in this order:
Is T fixed? If yes, Δ U = 0 (ideal gas: U depends only on T ).
Is V fixed? If yes, W = 0 .
Is the box sealed to heat? If yes, Q = 0 .
Answer these and the first law collapses to one term.
250 J of heat flows into a gas. The gas expands and does 90 J of work on its piston. Find Δ U .
Forecast: guess now — will U rise or fall, and by more or less than 250 J ?
Identify signs. Q = + 250 J (heat in is positive), W = + 90 J (gas does work, so positive).
Why this step? The first law's sign convention is the whole game; fix it before arithmetic.
Apply Δ U = Q − W = 250 − 90 = 160 J .
Why this step? Of the joules that entered, 90 left again as pushing; only the remainder stays stored.
Verify: 160 < 250 , so U rose but by less than the heat supplied — exactly what "some energy leaked out as work" predicts. Units: J − J = J. ✓
Heat 2 mol of monatomic gas from 300 K to 330 K inside a rigid sealed can. How much heat was needed?
Forecast: a rigid can can't move — so where can the heat possibly go?
Rigid ⇒ volume fixed ⇒ W = 0 .
Why this step? Work is force through a distance; a wall that cannot move means zero distance, zero work.
Monatomic ⇒ f = 3 ⇒ U = 2 3 n R T , so
Δ U = 2 3 n R Δ T = 2 3 ( 2 ) ( 8.314 ) ( 30 ) = 748.26 J .
Why this step? Δ U needs only the start and end temperatures — it's a state function, so the path is irrelevant.
First law with W = 0 : Q = Δ U = 748.26 J .
Why this step? With the work term gone, Δ U = Q − 0 collapses to Q = Δ U — the heat has nowhere to go but into storage.
Verify: All heat went to internal energy because no work escaped — this is precisely why C V = 2 3 R (defined above; see Specific Heats Cv and Cp ). Sanity: heating raised T , so Q > 0 . ✓
1 mol of ideal gas expands isothermally at T = 350 K from volume V 1 to V 2 = 3 V 1 . Find Δ U , W , and Q .
Forecast: heat is clearly flowing in — so surely U goes up? (It doesn't. Watch.)
Isothermal means T constant. For an ideal gas U = 2 f n R T depends only on T , so Δ U = 0 .
Why this step? No temperature change ⇒ average molecular speed unchanged ⇒ stored energy unchanged.
Isothermal work of an ideal gas (from Isothermal and Adiabatic Processes ):
W = n R T ln V 1 V 2 = ( 1 ) ( 8.314 ) ( 350 ) ln 3 = 3196.87 J .
Why this step? At constant T the pressure P falls as the gas spreads out; adding up the little pushes P Δ V with P = n R T / V (from P V = n R T ) gives the logarithm.
First law: Q = Δ U + W = 0 + 3196.87 = 3196.87 J .
Why this step? Rearranging Δ U = Q − W gives Q = Δ U + W ; with Δ U = 0 the heat needed equals exactly the work performed.
Verify: Q = W exactly — every joule of heat entering leaves immediately as work, keeping ⟨ v 2 ⟩ (hence T ) fixed. This is the parent note's "heat in ≠ internal energy up" made concrete. ✓
Look at the figure: a gas pushing a piston out while wrapped in perfect insulation. No heat can cross the wall, yet the gas cools . Why? Because the only energy account left is U , and the gas spends it doing work.
1 mol of monatomic gas expands adiabatically (Q = 0 ) and does 500 J of work. Find Δ U and the temperature drop Δ T .
Forecast: with no heat allowed in, and the gas spending energy on work, which way does T move?
Adiabatic ⇒ Q = 0 .
Why this step? "Insulated / fast" processes exchange no heat; this kills the Q term.
First law: Δ U = Q − W = 0 − 500 = − 500 J .
Why this step? The only place the 500 J of work could come from is the stored energy, so U must drop.
Convert to temperature via Δ U = 2 3 n R Δ T :
Δ T = 2 3 n R Δ U = 2 3 ( 1 ) ( 8.314 ) − 500 = − 40.09 K .
Why this step? U maps one-to-one to T for an ideal gas, so a known Δ U gives a known Δ T .
Verify: Δ T < 0 — the gas cooled without losing any heat, purely from doing work. This is why bike pumps warm on compression and aerosol cans chill on release. ✓
A piston is pushed in, doing 120 J of work on the gas, while 40 J of heat leaks out. Find Δ U .
Forecast: work goes in, heat goes out — net stored energy up or down?
Signs: heat out ⇒ Q = − 40 J . Work done on gas ⇒ work done by gas is W = − 120 J .
Why this step? Our W always means "work done by the gas." When the surroundings push in, the gas does negative work.
Δ U = Q − W = ( − 40 ) − ( − 120 ) = − 40 + 120 = + 80 J .
Why this step? Compression pumps energy in (+ 120 ) faster than heat leaks out (− 40 ), so the net is stored.
Verify: Δ U > 0 despite heat leaving — the gas got hotter by being squeezed. Double-negative handled correctly (− ( − 120 ) = + 120 ). ✓
A gas is compressed, with 70 J of work done on it, while 70 J of heat is removed. Find Δ U . Then repeat with only 50 J of heat removed.
Forecast: when the two effects are equal, what should happen to U ?
Case (i): Q = − 70 J , W = − 70 J (work done on gas).
Δ U = ( − 70 ) − ( − 70 ) = 0 J .
Why this step? Energy injected by compression exactly matches energy bled off as heat — perfect cancellation, T unchanged.
Case (ii): Q = − 50 J , W = − 70 J .
Δ U = ( − 50 ) − ( − 70 ) = + 20 J .
Why this step? Now less heat escapes, so a net 20 J stays stored and T rises.
Verify: Case (i) gives Δ U = 0 — this is how one keeps a compressed gas isothermal: remove exactly the compression work as heat. Case (ii) > 0 confirms "remove less heat ⇒ warmer." ✓
The figure shows the degenerate scenario: gas on the left, vacuum on the right, a valve between. Open the valve and the gas rushes into the empty half. There is nothing pushing back, and the box is insulated.
A thermally insulated box is split by a valve. Gas fills the left half; the right half is a perfect vacuum. The valve opens. Find Q , W , Δ U , and Δ T .
Forecast: the gas expands to double the volume — surely it cools, like Ex 4?
Insulated ⇒ Q = 0 .
Why this step? No heat can cross the wall.
The gas pushes against vacuum — no opposing force, no piston, so W = 0 .
Why this step? Work is force through distance; expanding into nothing means zero opposing force, hence zero work. This is the degenerate cell — both terms vanish.
Δ U = Q − W = 0 − 0 = 0 , so Δ T = 0 : the temperature does not change.
Why this step? With U unchanged and U set only by T , T is frozen even though V doubled.
Verify: Contrast with Ex 4 (adiabatic against a piston , which cooled). Same Q = 0 , but here W = 0 too — no work means no cooling. The lone difference is whether something pushes back . ✓
Common mistake "Expansion always cools a gas."
Why it feels right: Ex 4 cooled on expanding, and fridges use expansion.
The fix: Cooling on expansion needs the gas to do work against something. Free expansion into vacuum does no work, so an ideal gas keeps the same T . Expansion alone is not enough — pushing back is.
Heat 1 mol of diatomic gas (f = 5 : three translational + two rotational) at constant volume from 400 K to 420 K . Compare the heat needed to that for a monatomic gas over the same rise.
Forecast: more ways to store energy — should a diatomic need more or less heat for the same Δ T ?
Constant volume ⇒ W = 0 ⇒ Q = Δ U .
Why this step? A fixed volume does no work (no distance moved), so the first law Δ U = Q − W collapses to Q = Δ U — every joule of heat is stored.
Diatomic: U = 2 5 n R T , so
Q di = 2 5 n R Δ T = 2 5 ( 1 ) ( 8.314 ) ( 20 ) = 415.70 J .
Why this step? Each of the 5 degrees of freedom carries 2 1 k B T per molecule (with k B defined above; equipartition, see Equipartition Theorem ), so more channels ⇒ more energy per kelvin.
Monatomic same rise: Q mono = 2 3 ( 1 ) ( 8.314 ) ( 20 ) = 249.42 J .
Why this step? Repeat with f = 3 instead of 5 so we can compare like for like — same n , Δ T , only the number of storage channels differs.
Verify: Ratio 415.70/249.42 = 5/3 ≈ 1.667 — exactly f di / f mono = 5/3 . The extra rotational storage demands proportionally more heat. See Degrees of Freedom and Molecular Structure . ✓
A hand pump seals off 0.02 mol of air (treat as diatomic, f = 5 ) and compresses it quickly enough that no heat escapes. You do 18 J of work on the air. By how much does its temperature rise?
Forecast: you've felt a pump barrel get hot. Will the rise be a few degrees or a hundred?
"No heat escapes" ⇒ Q = 0 ; you do work on the gas ⇒ W = − 18 J .
Why this step? Fast pumping is adiabatic; your effort is negative "work by gas."
Δ U = Q − W = 0 − ( − 18 ) = + 18 J .
Why this step? All your effort is stored, since none leaks out as heat.
Δ U = 2 5 n R Δ T ⇒ Δ T = 2 5 ( 0.02 ) ( 8.314 ) 18 = 43.30 K .
Why this step? Convert stored energy to a temperature rise using the diatomic U –T link.
Verify: A ∼ 43 K jump from just 18 J into a tiny 0.02 mol of gas — that's why the barrel genuinely feels hot. Units: J / (J K− 1 ) = K. ✓
The figure sketches a closed loop on a pressure–volume diagram: the gas is taken through several steps and returns to its exact starting point (red dot). The key fact is where it ends .
A gas is carried through a complete thermodynamic cycle , returning to its starting state. Over the whole cycle it absorbs 600 J of heat and rejects 370 J . Find Δ U cycle and the net work done by the gas.
Forecast: heat came in and went out — is there any leftover stored energy after a round trip?
A cycle returns to the same state, and U is a state function , so Δ U cycle = 0 .
Why this step? Same start and end state ⇒ same U ⇒ zero net change, no matter how loopy the path.
Net heat: Q net = 600 − 370 = 230 J .
Why this step? Heat absorbed counts positive, heat rejected counts negative; their sum is the net heat crossing the boundary over the loop.
First law over the cycle: 0 = Q net − W net ⇒ W net = 230 J .
Why this step? With Δ U = 0 , whatever net heat entered must have left entirely as net work — this is how an engine produces work from a cycle.
Verify: W net = 230 J > 0 : the gas did net work, so on the P –V loop the path went clockwise, enclosing an area of 230 J . Round-trip stored change is zero, as any state function demands. ✓
A gas is warmed by 150 J of heat flowing in and at the same time the piston is pushed in, doing 60 J of work on the gas. Find Δ U .
Forecast: two effects that both deposit energy — should Δ U exceed the heat alone?
Signs: heat in ⇒ Q = + 150 J . Work done on the gas ⇒ work by the gas is W = − 60 J .
Why this step? Both surroundings-actions push energy inward , so both should raise U ; the signs must reflect that.
Δ U = Q − W = 150 − ( − 60 ) = 150 + 60 = + 210 J .
Why this step? Heat deposits 150 J ; compression deposits another 60 J ; nothing leaves, so all 210 J is stored.
Verify: Δ U = 210 > 150 — larger than the heat alone, because compression added to it rather than spending it. This is the mirror image of Ex 1 (there work subtracted ; here it adds ). ✓
A gas expands, doing 90 J of work on its piston, while at the same time 30 J of heat is drained out of it. Find Δ U .
Forecast: the gas is both losing heat and spending energy on work — how far must U fall?
Signs: heat out ⇒ Q = − 30 J . Gas expands and does work ⇒ W = + 90 J .
Why this step? Here the two signs point opposite to Ex 11 — both effects now withdraw energy from storage.
Δ U = Q − W = ( − 30 ) − ( 90 ) = − 120 J .
Why this step? 30 J left as heat and another 90 J left as work; both losses come out of U , so they add up as a drop.
Verify: Δ U = − 120 < 0 — steeper cooling than the adiabatic Ex 4, because heat leaves as well as work. Sign combination Q < 0 , W > 0 (the cell the earlier matrix had missed) is now covered. ✓
2 mol of monatomic gas in a rigid sealed can is cooled from 330 K to 300 K . How much heat leaves the gas?
Forecast: this is Ex 2 run backwards — what sign should Q have now?
Rigid ⇒ V fixed ⇒ W = 0 .
Why this step? A wall that cannot move does no work; the first law reduces to Q = Δ U .
Δ U = 2 3 n R Δ T = 2 3 ( 2 ) ( 8.314 ) ( 300 − 330 ) = − 748.26 J .
Why this step? The temperature fell , so Δ T < 0 and the stored energy drops by the same amount it rose in Ex 2.
Q = Δ U = − 748.26 J .
Why this step? With no work, all the lost internal energy must have left as heat — a negative Q meaning heat flowed out .
Verify: Q < 0 (heat removed), equal in size but opposite in sign to Ex 2's + 748.26 J — cooling is heating run in reverse. This is the W = 0 , Q < 0 edge case. ✓
A gas absorbs 80 J of heat while expanding and doing 200 J of work on its piston. Find Δ U and say whether the gas warms or cools.
Forecast: heat is flowing in — but the gas is working hard. Can T still fall?
Signs: heat in ⇒ Q = + 80 J ; gas does work ⇒ W = + 200 J .
Why this step? Both positive, but this time the withdrawal (W ) is bigger than the deposit (Q ).
Δ U = Q − W = 80 − 200 = − 120 J .
Why this step? The gas paid out 200 J of work but only took in 80 J of heat, so it had to dip 120 J into its own store.
Since Δ U < 0 and U = 2 f n R T , the temperature falls .
Why this step? Lower internal energy means lower average molecular KE, hence lower T — despite heat coming in.
Verify: Δ U = − 120 < 0 : heat was added yet the gas cooled , because work out exceeded heat in. This shatters the intuition "heat in ⇒ warmer" and completes the Q > 0 , W > 0 , W > Q cell. ✓
Recall Quick self-test across the matrix
Constant volume means W = ? ::: W = 0 , so Q = Δ U .
Isothermal (ideal gas) means Δ U = ? ::: Δ U = 0 , so Q = W .
Adiabatic means Q = ? ::: Q = 0 , so Δ U = − W .
Free expansion into vacuum: Q , W , Δ T ? ::: All zero — no heat, no work, no temperature change.
Heat in and gas compressed: sign of Δ U ? ::: Positive and large — both Q > 0 and − W > 0 deposit energy.
Heat out while gas does work: sign of Δ U ? ::: Negative — both effects withdraw energy (Q < 0 , W > 0 ).
Heat in but work out exceeds it (W > Q > 0 ): warms or cools? ::: Cools — Δ U = Q − W < 0 despite heat entering.
Over one full cycle, Δ U = ? ::: 0 , because U is a state function; then W net = Q net .
Work done on the gas enters the first law as ::: negative W (since W = work done by gas).
Relation between k B and R ::: k B = R / N A — R per mole equals k B per molecule.
Q = 0 so DeltaU = minus W
Use full DeltaU = Q minus W