Chapter 8 · Thermodynamics

8.1 Thermal Equilibrium and the First Law

Thermodynamics keeps the books of energy. The zeroth law gives temperature a meaning; heat and work are the two ways energy crosses a boundary; a gas does work $\int p\,dV$, the area under its $p$–$V$ curve; and the first law, $Q=\Delta U+W$, says the account always balances.

Pump up a bicycle tyre and the barrel of the pump gets warm. Let air out of the valve and the escaping air feels cold. Burn fuel in a car engine and the hot gas pushes a piston and turns the wheels; drop a hammer on a lump of lead again and again and the lead gets hot. In each case energy is changing form — from motion to "warmth", from "warmth" to motion — and in each case there is a strict account to be kept. Thermodynamics is the physics of that account: it deals with large-scale quantities such as pressure, volume and temperature, and with the two ways energy passes in and out of a body — heat and work.

In this section we set up the language of thermodynamics: systems, walls and state variables; the zeroth law, which is what makes temperature a meaningful, measurable quantity; the internal energy of a body and the difference between heat and work; how to calculate the work done by a gas from its $p$–$V$ diagram; and finally the first law of thermodynamics, which is the law of conservation of energy written for heat and work. Section 8.2 applies all of this to the standard processes (isothermal, adiabatic, isobaric, isochoric, cyclic), and 8.3 adds the second law. Heat, temperature scales and calorimetry were introduced in Section 7.5; here we look at them from the point of view of energy.

Systems, thermal equilibrium and the zeroth law

Thermodynamics always starts by drawing a boundary. Whatever is inside — a gas in a cylinder, a cup of tea, a block of ice, the air in a tyre — is the system; everything outside that can exchange energy with it is the surroundings. The nature of the boundary (the "wall") decides what can pass through it.

📘 Definition 8.1 — System, surroundings and walls

A thermodynamic system is a definite quantity of matter (or region of space) chosen for study; the surroundings are everything outside it that can interact with it. The system is

  • closed if no matter crosses the boundary (energy may), open if matter can cross it, and isolated if neither matter nor energy can cross it;
  • separated from the surroundings by an adiabatic wall if the wall allows no heat to pass, whatever the temperatures on either side (an ideal insulator — approximated by a vacuum flask or thick polystyrene); and by a diathermic wall if heat passes through it freely (a thin copper sheet).

Work can still be done through an adiabatic wall — for instance by pushing a piston or turning a paddle inside the system.

A gas in a cylinder is described, at the large scale, by a few numbers: its pressure $p$, volume $V$, temperature $T$ and the amount $n$ (in moles). When these are steady in time and the same throughout the gas, the gas is in an equilibrium state, and the numbers are called state variables. Some are intensive — they do not depend on the size of the system ($p$, $T$, density); others are extensive — they double when the system is doubled ($V$, $n$, mass, and the internal energy $U$ met below).

📘 Definition 8.2 — State variables, equation of state and thermal equilibrium

A state variable is a macroscopic quantity ($p$, $V$, $T$, $n$, $U$, …) whose value depends only on the present equilibrium state of the system, not on how the system got there. The state variables are not independent: they are linked by an equation of state. For an ideal gas it is

$$pV=nRT,\qquad R=8.31\ \text{J mol}^{-1}\text{K}^{-1},$$

with $T$ in kelvin (this equation is explained from the motion of molecules in Section 9.1; here we simply use it). Two systems placed in contact through a diathermic wall are in thermal equilibrium with each other when, after enough time, none of their state variables changes any more — no net heat flows between them.

Now comes a fact so obvious that it was named only after the first and second laws were already famous — so it had to be called the "zeroth" law.

📐 Law 8.1 — Zeroth law of thermodynamics

If two systems $A$ and $B$ are each in thermal equilibrium with a third system $C$, then $A$ and $B$ are in thermal equilibrium with each other.

Consequently there exists a state variable, the temperature, which has the same value for all systems in thermal equilibrium with one another. Two systems in thermal contact exchange no net heat if and only if their temperatures are equal.

Why this law matters. The zeroth law is what makes a thermometer work. The thermometer is system $C$: put it in contact with $A$, wait for equilibrium and note the reading; do the same with $B$. If the readings agree, the zeroth law guarantees that $A$ and $B$ would exchange no heat if brought together — without ever touching them to each other. It also tells us that temperature, unlike "hotness to the touch", is a property of the equilibrium state alone. (The law is not trivially true for every relation: "is a friend of" does not obey the same rule.)

The ideal-gas temperature scale. Any property that changes steadily with temperature can be used to build a thermometer, but different thermometers (mercury, alcohol, platinum resistance) agree exactly only at their fixed points. Gases behave much more alike: at low pressure, the pressure of a fixed volume of any gas is proportional to the absolute temperature. The SI kelvin is defined by one fixed point — the triple point of water, the unique state in which ice, liquid water and water vapour coexist in equilibrium, assigned the temperature $273.16\ \text{K}$ (that is, $0.01\ ^\circ\text{C}$).

📐 Result 8.2 — The constant-volume gas thermometer

A fixed mass of gas at constant volume, at low pressure, has $p\propto T$. If its pressure is $p_\text{tr}$ when the bulb is at the triple point of water, then at an unknown temperature where its pressure is $p$,

$$T=273.16\ \text{K}\times\frac{p}{p_\text{tr}}.$$

Absolute zero ($T=0$) is the temperature at which the gas pressure would extrapolate to zero. The Celsius temperature is $t_C=T-273.15$.

✏️ Example 1 — Reading a gas thermometer
A constant-volume gas thermometer reads $p_\text{tr}=6.80\times10^4\ \text{Pa}$ with its bulb at the triple point of water. (a) The bulb is placed in a warm liquid $A$ and the pressure settles at $8.20\times10^4\ \text{Pa}$. Find the temperature of $A$ in kelvin and in $^\circ\text{C}$. (b) The same reading is later obtained with a metal block $B$. What can you say about $A$ and $B$? (c) What pressure would the thermometer show in steam at the normal boiling point of water, $373.15\ \text{K}$?
(a) $T=273.16\times\dfrac{8.20}{6.80}=329.4\ \text{K}$, so $t_C=329.4-273.15=56.2\ ^\circ\text{C}$.
(b) The thermometer (system $C$) is in equilibrium with $A$ and, at the same reading, with $B$. By the zeroth law $A$ and $B$ are at the same temperature: placed in contact, no net heat would flow between them.
(c) $p=p_\text{tr}\times\dfrac{373.15}{273.16}=6.80\times10^4\times1.366=9.29\times10^4\ \text{Pa}$.
Check The ratio of pressures equals the ratio of kelvin temperatures; with Celsius temperatures the ratio would be meaningless ($0.01\ ^\circ\text{C}$ at the triple point).

Block $A$ is in thermal equilibrium with a thermometer $C$. Block $B$, tested with the same thermometer, gives a different reading. Which statement is correct?

Heat, work and internal energy

Every body contains energy at the molecular scale. The molecules of a gas fly about and collide; the molecules of a diatomic gas also rotate; the atoms of a solid vibrate about their positions, and all of them attract or repel their neighbours. Add up all of this energy, measured in the frame in which the body as a whole is at rest, and you get its internal energy.

📘 Definition 8.3 — Internal energy

The internal energy $U$ of a system is the sum of the kinetic energies of all its molecules (translational, rotational and vibrational, measured relative to the centre of mass of the system) and the potential energies of their mutual interactions. It does not include the kinetic energy of the system as a whole or its potential energy in an external field.

$U$ is a state variable (a "state function"): it has a definite value in each equilibrium state. For a change between two states, $\Delta U=U_\text{final}-U_\text{initial}$ depends only on those two states, not on the process that joined them.

For an ideal gas the molecules do not interact (except in collisions), so there is no intermolecular potential energy and $U$ is purely kinetic. The average kinetic energy of the molecules is set by the temperature, so the internal energy of an ideal gas depends on its temperature only — not on its pressure or volume separately. (Chapter 9 shows why and derives the numbers below.)

📐 Result 8.3 — Internal energy of an ideal gas

For $n$ moles of an ideal gas, $U$ depends only on $T$, and for any process between two states

$$\Delta U=nC_V\,\Delta T,$$

where $C_V$ is a constant of the gas (its molar heat capacity at constant volume — the name is explained in Section 8.2). Near room temperature $C_V=\tfrac32R$ for a monatomic gas (He, Ne, Ar) and $C_V=\tfrac52R$ for a diatomic gas (H$_2$, N$_2$, O$_2$, air). With $pV=nRT$ this gives the handy form, for a monatomic gas,

$$U=\tfrac32nRT=\tfrac32pV,\qquad \Delta U=\tfrac32\,\Delta(pV).$$

There are exactly two ways to change the internal energy of a closed system. You can put it on a hot stove — energy flows in because the stove is hotter. Or you can stir it, compress it, rub it or pass a current through a resistor inside it — energy enters through forces acting across the boundary, without any need for a temperature difference. The first way is heat, the second is work.

📘 Definition 8.4 — Heat and work in thermodynamics

Heat $Q$ is energy transferred between a system and its surroundings because of a temperature difference between them. Work $W$ is energy transferred by any other means — by a force acting through a displacement at the boundary (a moving piston, a turning paddle) or by electrical means.

Sign convention used throughout this course:

  • $Q\gt0$ when heat is supplied to the system; $Q\lt0$ when the system gives out heat;
  • $W\gt0$ when work is done by the system on the surroundings (a gas expanding); $W\lt0$ when work is done on the system (a gas being compressed).

Heat and work are not state variables. They describe energy in transit during a process, and their values depend on the path followed. A body "contains" internal energy; it never "contains" heat or work.

The equivalence of the two ways was shown by James Joule in the 1840s. Falling weights turned a paddle wheel inside an insulated vessel of water; the water's temperature rose exactly as if it had been heated. Doing $4.186\ \text{J}$ of work on $1\ \text{g}$ of water raises its temperature by $1\ \text{K}$ — the same as supplying $1\ \text{cal}$ of heat. Today we simply measure both in joules; the old "mechanical equivalent of heat", $J=4.186\ \text{J/cal}$, is only a unit conversion. Once energy is inside the water it is internal energy: nobody can tell whether it arrived as heat or as work.

✏️ Example 2 — Joule's paddle wheel
Two masses of $10\ \text{kg}$ each fall through $2.0\ \text{m}$ at a slow, steady speed, driving a paddle wheel in $1.5\ \text{kg}$ of water in an insulated vessel. The masses are wound up and allowed to fall $20$ times. Neglect the heat capacity of the vessel and paddles ($c_\text{water}=4200\ \text{J kg}^{-1}\text{K}^{-1}$). (a) Find $Q$, $W$ and $\Delta U$ for the water. (b) Find the rise in temperature. (c) How long would a $50\ \text{W}$ immersion heater take to produce the same change of state?
(a) The masses fall at steady speed, so all their lost potential energy goes into the paddles: work done on the water $=20\times2\times10\times9.8\times2.0=7840\ \text{J}$, i.e. $W=-7840\ \text{J}$ in our convention. The vessel is insulated: $Q=0$. So $\Delta U=Q-W=+7840\ \text{J}$.
(b) $\Delta T=\dfrac{\Delta U}{mc}=\dfrac{7840}{1.5\times4200}=1.24\ \text{K}$.
(c) The heater must supply $7840\ \text{J}$ (now as heat, $W=0$): $t=\dfrac{7840}{50}=157\ \text{s}$. The final state of the water is identical either way.
Note This is why $\Delta U$ is a state function but $Q$ and $W$ are not: the same change of state was produced with ($Q=0$, $W=-7840\ \text{J}$) and with ($Q=7840\ \text{J}$, $W=0$).

A gas is taken from state 1 to state 2 by two different processes. Which quantity is certainly the same for both processes?

Work done by a gas — the area under the p–V curve

Consider a gas in a cylinder closed by a piston of area $A$. The gas presses on the piston with force $pA$. If the piston moves out by a small distance $dx$, the gas does work $dW=pA\,dx$. But $A\,dx$ is the small increase in volume $dV$, so

$$dW=p\,dV .$$

This only makes sense if the gas has a single, well-defined pressure throughout — that is, if it passes through a sequence of equilibrium states. A piston that is yanked out suddenly leaves the gas in turmoil, with different pressures in different places, and the formula cannot be used during the change.

📘 Definition 8.5 — Quasi-static process

A quasi-static process is one carried out so slowly that the system is at every instant (as nearly as we like) in an equilibrium state, with well-defined $p$, $V$ and $T$ throughout. Such a process can be drawn as a continuous curve on a $p$–$V$ diagram, each point of which is an equilibrium state. In practice the pressure of the gas differs only infinitesimally from the external pressure, and its temperature only infinitesimally from that of anything it is in thermal contact with.

📐 Result 8.4 — Work done by a gas

In a quasi-static change of volume from $V_1$ to $V_2$, the work done by the gas is

$$W=\int_{V_1}^{V_2}p\,dV ,$$

which is the area under the path on the $p$–$V$ diagram, between the curve and the $V$-axis. $W\gt0$ for an expansion ($V_2\gt V_1$), $W\lt0$ for a compression, and $W=0$ if the volume does not change. Special cases:

  • constant pressure: $W=p\,(V_2-V_1)$ — a rectangle;
  • a straight-line path from $(V_1,p_1)$ to $(V_2,p_2)$: $W=\tfrac12(p_1+p_2)(V_2-V_1)$ — a trapezium.

Because the area depends on the shape of the path, so does $W$: different paths between the same two states involve different amounts of work.

Non-quasi-static changes. When a gas expands rapidly against a constant external pressure $p_\text{ext}$ (for example against the atmosphere, through a piston that moves until it is stopped), the work it does on the surroundings is still $p_\text{ext}\,\Delta V$, because that is the force times the distance moved at the boundary. And in a free expansion — a gas rushing into an evacuated container — nothing resists the gas at all: $p_\text{ext}=0$, so $W=0$, however much the volume grows.

Units. With $p$ in pascals and $V$ in cubic metres, $W$ comes out in joules. Two short cuts are worth remembering: $1\ \text{kPa}\times1\ \text{L}=10^3\ \text{Pa}\times10^{-3}\ \text{m}^3=1\ \text{J}$, and $1\ \text{L atm}=1.013\times10^5\ \text{Pa}\times10^{-3}\ \text{m}^3=101.3\ \text{J}$.

✏️ Example 3 — Three paths between the same two states
A monatomic ideal gas is taken from state $A$ ($p_A=300\ \text{kPa}$, $V_A=1.0\ \text{L}$) to state $B$ ($p_B=100\ \text{kPa}$, $V_B=4.0\ \text{L}$) by three different quasi-static paths: (i) $A\to C\to B$, expanding at constant pressure to $4.0\ \text{L}$ and then cooling at constant volume; (ii) $A\to D\to B$, cooling at constant volume to $100\ \text{kPa}$ and then expanding at constant pressure; (iii) the straight line $AB$ on the $p$–$V$ diagram. (a) Find the work done by the gas on each path. (b) Find $\Delta U$. (c) Find the heat supplied on each path.
(a) Using $\text{kPa}\times\text{L}=\text{J}$: (i) only the constant-pressure leg does work, $W=300\times(4.0-1.0)=900\ \text{J}$; (ii) $W=100\times3.0=300\ \text{J}$; (iii) trapezium, $W=\tfrac12(300+100)\times3.0=600\ \text{J}$.
(b) $\Delta U=\tfrac32(p_BV_B-p_AV_A)=\tfrac32(400-300)=150\ \text{J}$ — the same for all three paths.
(c) Anticipating the first law ($Q=\Delta U+W$): (i) $1050\ \text{J}$; (ii) $450\ \text{J}$; (iii) $750\ \text{J}$.
Check $T_B/T_A=p_BV_B/(p_AV_A)=400/300$: the gas ends slightly hotter, so $\Delta U\gt0$ ✓. The path highest on the diagram has the largest area and needs the most heat.
✏️ Example 4 — A gas whose pressure is proportional to its volume
A monatomic ideal gas expands quasi-statically from $V_1=2.0\ \text{L}$, $p_1=1.0\times10^5\ \text{Pa}$ to $V_2=4.0\ \text{L}$ in such a way that $p\propto V$ throughout. (a) Find the work done by the gas by integration and check it with the area. (b) Find $\Delta U$ and the heat supplied. (c) Show that, for this process, $Q/\Delta U=4/3$ whatever the end states.
(a) $p=aV$ with $a=p_1/V_1=\dfrac{1.0\times10^5}{2.0\times10^{-3}}=5.0\times10^7\ \text{Pa/m}^3$. $W=\displaystyle\int_{V_1}^{V_2}aV\,dV=\tfrac12a(V_2^2-V_1^2)=\tfrac12(5.0\times10^7)(16-4)\times10^{-6}=300\ \text{J}$. Area check: $p_2=2.0\times10^5\ \text{Pa}$, trapezium $\tfrac12(1.0+2.0)\times10^5\times2.0\times10^{-3}=300\ \text{J}$ ✓ (the path is a straight line through the origin).
(b) $p_1V_1=200\ \text{J}$, $p_2V_2=800\ \text{J}$. $\Delta U=\tfrac32(800-200)=900\ \text{J}$; $Q=\Delta U+W=1200\ \text{J}$.
(c) In general $W=\tfrac12a(V_2^2-V_1^2)=\tfrac12(p_2V_2-p_1V_1)=\tfrac12\Delta(pV)$ and $\Delta U=\tfrac32\Delta(pV)$, so $Q=2\Delta(pV)$ and $Q/\Delta U=2/\tfrac32=4/3$.
⏱ Shortcut Since $\Delta(pV)=nR\Delta T$: $Q=2nR\,\Delta T$ — this process needs $2R$ of heat per mole per kelvin, more than the $\tfrac32R$ at constant volume, because the gas also does work.

In Interactive 1 the gas starts at $A$ ($300\ \text{kPa}$, $1.0\ \text{L}$). Set $V_B=3.0\ \text{L}$, $p_B=200\ \text{kPa}$ and choose the straight line. What are the work done by the gas and the heat supplied?

With $V_B=3.0\ \text{L}$, $p_B=200\ \text{kPa}$ and the straight line, the readouts show $W=500\ \text{J}$ (trapezium $\tfrac12(300+200)\times2.0$), $\Delta U=450\ \text{J}$ (that is $\tfrac32(600-300)$) and $Q=950\ \text{J}$; the three paths give $W=600$, $400$ and $500\ \text{J}$. Switch paths: $W$ and $Q$ change, but $\Delta U$ stays at $450\ \text{J}$ because it depends only on $A$ and $B$. ($\Delta U=0$ would need $p_BV_B=p_AV_A$ — the same temperature.)
Interactive 1 — Same Two States, Different Paths

A monatomic ideal gas goes from state $A$ ($300\ \text{kPa}$, $1.0\ \text{L}$) to a state $B$ that you choose. Pick a path and press Play: the point traces the path and the shaded area under it — the work done by the gas — builds up. Compare $W$, $\Delta U$ and $Q$ for the three paths. (Here $1\ \text{kPa}\times1\ \text{L}=1\ \text{J}$.)

4.0 L100 kPa
$W$ (this path)—
$\Delta U$ (any path)—
$Q=\Delta U+W$—
$W$: ACB / ADB / line—

A gas expands from $2.0\ \text{L}$ to $5.0\ \text{L}$ at a constant pressure of $200\ \text{kPa}$. The work done by the gas is

The first law of thermodynamics

We now have three quantities for any process: the heat $Q$ supplied to the system, the work $W$ done by it, and the change $\Delta U$ in its internal energy. Energy is conserved, and heat and work are the only two ways it can cross the boundary of a closed system. So whatever is supplied as heat must either stay inside, raising $U$, or leave as work.

📐 Law 8.5 — First law of thermodynamics

For any process of a closed system, the heat supplied to the system equals the increase in its internal energy plus the work done by the system:

$$Q=\Delta U+W\qquad\text{(equivalently }\Delta U=Q-W\text{)},$$

with $Q\gt0$ for heat supplied to the system and $W\gt0$ for work done by it. For a small quasi-static step of a gas, $dQ=dU+p\,dV$. Although $Q$ and $W$ separately depend on the path, their difference $Q-W$ is the same for every path between two given states.

The first law is the law of conservation of energy, extended to include heat. It rules out a perpetual motion machine of the first kind — a device that delivers work forever without any input of energy: over a complete cycle the machine returns to its initial state, so $\Delta U=0$ and $W=Q$; no heat in, no work out. Some immediate consequences:

🧭 Problem-solving strategy — First-law bookkeeping
  1. Define the system and write down the sign convention: $Q$ into the system, $W$ by the system, $\Delta U=Q-W$.
  2. Find $W$ from the process: $p\,\Delta V$ at constant pressure, the area under the $p$–$V$ path in general, $0$ at constant volume or in a free expansion, $p_\text{ext}\Delta V$ against a constant external pressure. Add any spring or weight the gas has to push.
  3. Find $\Delta U$ from the end states: $nC_V\Delta T$ for an ideal gas ($\tfrac32\Delta(pV)$ if monatomic, $\tfrac52\Delta(pV)$ if diatomic) — for any path.
  4. The first law gives the third quantity. Check the signs against the physics: does the gas get hotter or colder? Does heat go in or out?
✏️ Example 5 — Boiling water: where does the latent heat go?
$1.00\ \text{g}$ of water at $100\ ^\circ\text{C}$ (volume $1.00\ \text{cm}^3$) is boiled at a constant pressure of $1.013\times10^5\ \text{Pa}$ and becomes $1671\ \text{cm}^3$ of steam at $100\ ^\circ\text{C}$. The latent heat of vaporisation is $2256\ \text{J/g}$. Find (a) the work done by the water against the atmosphere, (b) the increase in its internal energy, (c) the fraction of the latent heat that goes into internal energy.
Find the increase in internal energy (b) before you open the solution:
(a) $W=p\,\Delta V=1.013\times10^5\times(1671-1.00)\times10^{-6}=169\ \text{J}$.
(b) $Q=mL=2256\ \text{J}$. $\Delta U=Q-W=2256-169=2087\ \text{J}$.
(c) $\dfrac{2087}{2256}=0.925$: about $92.5\%$ goes into separating the molecules (raising their potential energy); only $7.5\%$ is spent pushing back the atmosphere.
Check The temperature is constant, yet $\Delta U\ne0$: water is not an ideal gas — its internal energy includes intermolecular potential energy, which changes on boiling. "$\Delta U=nC_V\Delta T$" is only for ideal gases.
✏️ Example 6 — A gas pushing a spring and the atmosphere
A monatomic ideal gas is held in a horizontal cylinder of cross-section $100\ \text{cm}^2$ by a light, frictionless piston. Outside is the atmosphere ($1.0\times10^5\ \text{Pa}$), and a spring of force constant $2000\ \text{N/m}$ connects the piston to a fixed wall; the spring is initially relaxed. The gas starts at $1.0\times10^5\ \text{Pa}$, $2.0\ \text{L}$, $300\ \text{K}$. It is heated slowly until the piston has moved out $10\ \text{cm}$. Find (a) the final pressure, volume and temperature, (b) the work done by the gas, (c) $\Delta U$ and the heat supplied.
Find the heat supplied (c) first:
(a) A light piston is in equilibrium: $pA=p_0A+kx$, so $p=p_0+\dfrac{kx}{A}$. At $x=0.10\ \text{m}$: $p_2=1.0\times10^5+\dfrac{2000\times0.10}{0.010}=1.2\times10^5\ \text{Pa}$. $V_2=2.0\ \text{L}+0.010\times0.10\ \text{m}^3=3.0\ \text{L}$. $T_2=300\times\dfrac{1.2\times3.0}{1.0\times2.0}=540\ \text{K}$.
(b) $W=p_0\,\Delta V+\tfrac12kx^2=1.0\times10^5\times1.0\times10^{-3}+\tfrac12\times2000\times0.10^2=100+10=110\ \text{J}$. Area check: $p$ rises linearly with $V$, so $W=\tfrac12(1.0+1.2)\times10^5\times1.0\times10^{-3}=110\ \text{J}$ ✓.
(c) $\Delta U=\tfrac32(p_2V_2-p_1V_1)=\tfrac32(360-200)=240\ \text{J}$; $Q=\Delta U+W=240+110=350\ \text{J}$.
⏱ Shortcut Split the work by where it goes: $p_0\Delta V$ to the atmosphere plus $\tfrac12kx^2$ into the spring (plus $mg\Delta h$ if a heavy piston is raised). Then $Q=\Delta U+W$.

In Interactive 2 (one mole of a monatomic gas, starting at $300\ \text{K}$) set $Q=+500\ \text{J}$ and $W=+800\ \text{J}$. Although heat is supplied, what happens to the temperature?

With $Q=+500\ \text{J}$, $W=+800\ \text{J}$ and a monatomic gas the readouts show $\Delta U=-300\ \text{J}$, $\Delta T=-24.1\ \text{K}$ and a final temperature of $276\ \text{K}$: the gas does more work than the heat it receives, so it must draw $300\ \text{J}$ from its internal energy, and $\Delta T=\Delta U/(nC_V)=-300/(1.5\times8.31)$. Supplying heat does not guarantee a rise in temperature. Switch to a diatomic gas: the same $\Delta U$ now gives only $-14.4\ \text{K}$, because $C_V=\tfrac52R$ is larger.
Interactive 2 — The First-Law Energy Account

One mole of an ideal gas starts at $300\ \text{K}$. Choose the heat $Q$ supplied to it (negative: heat given out) and the work $W$ it does (negative: work done on it, the piston pushed in). Press Play to watch the energy move: the bars show $Q$, $W$ and $\Delta U=Q-W$, and the thermometer shows the new temperature from $\Delta U=nC_V\Delta T$.

+500 J+800 J
$\Delta U=Q-W$—
$\Delta T=\Delta U/nC_V$—
final temperature—
type of change—
⚠️ JEE Main traps

1. Work by or work on? In $\Delta U=Q-W$, $W$ is the work done by the gas. "$400\ \text{J}$ of work is done on the gas" means $W=-400\ \text{J}$. Some books write $\Delta U=Q+W$ with $W$ done on the gas — the physics is the same; never mix the two conventions in one problem.

2. Only $\Delta U$ is path independent. $Q$ and $W$ depend on the path; $\Delta U$ does not. For an ideal gas $\Delta U=nC_V\Delta T$ for every process — not only at constant volume.

3. Heat supplied does not mean hotter. If the gas does more work than the heat it receives, it cools; in an adiabatic compression it gets hotter with no heat at all. Temperature follows $\Delta U$, not $Q$.

4. Free expansion. A gas rushing into a vacuum does no work ($p_\text{ext}=0$), not $p\,\Delta V$; for an ideal gas $\Delta U=0$ and $T$ is unchanged.

5. Units. Convert litres to $\text{m}^3$ ($1\ \text{L}=10^{-3}\ \text{m}^3$) or use $\text{kPa}\times\text{L}=\text{J}$; use kelvin in $pV=nRT$; $1\ \text{L atm}=101.3\ \text{J}$, $1\ \text{cal}=4.186\ \text{J}$.

A gas in a thermally insulated cylinder is compressed quickly by a piston. Which is correct?

Exercises

Take $R=8.31\ \text{J mol}^{-1}\text{K}^{-1}$, $g=9.8\ \text{m/s}^2$, $1\ \text{atm}=1.013\times10^5\ \text{Pa}$ and, for ideal gases, $C_V=\tfrac32R$ (monatomic) or $\tfrac52R$ (diatomic) unless told otherwise. $W$ is always the work done by the system.

I
Thermal equilibrium, temperature and internal energy.
  • 1 A constant-volume gas thermometer reads $5.0\times10^4\ \text{Pa}$ at the triple point of water and $6.5\times10^4\ \text{Pa}$ in a hot bath. Find the temperature of the bath in K and in $^\circ\text{C}$.
  • 2 Bodies $A$ and $B$ are each in thermal equilibrium with body $C$; $A$ is at $40\ ^\circ\text{C}$. What is the temperature of $B$, and will heat flow if $A$ and $B$ are put in contact? Which law did you use?
  • 3 Classify as intensive or extensive: pressure, volume, temperature, internal energy, number of moles, density.
  • 4 Find the pressure of $2.0\ \text{mol}$ of an ideal gas at $27\ ^\circ\text{C}$ in a $10\ \text{L}$ vessel.
  • 5 Find the internal energy of $3.0\ \text{mol}$ of helium (monatomic) at $400\ \text{K}$.
  • 6 $2.0\ \text{mol}$ of nitrogen (diatomic) are heated from $300\ \text{K}$ to $350\ \text{K}$ by some unknown process. Find $\Delta U$. What extra information would you need to find $Q$?
  • 7 A closed cardboard tube $1.0\ \text{m}$ long contains lead shot ($c=130\ \text{J kg}^{-1}\text{K}^{-1}$). It is quickly turned upside down $50$ times, so that the shot falls the length of the tube each time. Estimate the rise in temperature of the shot, assuming all the energy stays in it.
  • 8 Explain why it is wrong to speak of "the heat contained in a body", but correct to speak of its internal energy.
1 $T=273.16\times\dfrac{6.5}{5.0}=355.1\ \text{K}=82.0\ ^\circ\text{C}$.
2 By the zeroth law $A$ and $B$ are in thermal equilibrium with each other, so $B$ is also at $40\ ^\circ\text{C}$ and no net heat flows between them.
3 Intensive: pressure, temperature, density. Extensive: volume, internal energy, number of moles.
4 $p=\dfrac{nRT}{V}=\dfrac{2.0\times8.31\times300}{1.0\times10^{-2}}=4.99\times10^5\ \text{Pa}$ (about $4.9\ \text{atm}$).
5 $U=\tfrac32nRT=1.5\times3.0\times8.31\times400=1.50\times10^4\ \text{J}$.
6 $\Delta U=nC_V\Delta T=2.0\times\tfrac52\times8.31\times50=2.08\times10^3\ \text{J}$, whatever the process. To find $Q$ you need the work done, i.e. the path (for example, constant volume gives $W=0$ and $Q=\Delta U$).
7 Each fall converts $mgh$ into internal energy of the shot: $mc\,\Delta T=50\,mgh$, so $\Delta T=\dfrac{50\times9.8\times1.0}{130}=3.77\ \text{K}$, independent of the mass of shot.
8 Heat is energy transferred because of a temperature difference; once it has entered a body it is indistinguishable from energy that arrived as work (Example 2). What the body has is internal energy $U$, a state function; "heat in a body" has no definite value because $Q$ depends on the path.
II
Work done by a gas and the p–V diagram.
  • 1 A gas expands at a constant pressure of $2.0\times10^5\ \text{Pa}$ from $3.0\ \text{L}$ to $8.0\ \text{L}$. Find the work done by the gas.
  • 2 A gas is compressed at a constant pressure of $1.5\times10^5\ \text{Pa}$ from $6.0\ \text{L}$ to $2.0\ \text{L}$. Find $W$ (with its sign).
  • 3 A gas goes along a straight line on the $p$–$V$ diagram from $(1.0\times10^5\ \text{Pa},\ 2.0\ \text{L})$ to $(3.0\times10^5\ \text{Pa},\ 6.0\ \text{L})$. Find the work done by it.
  • 4 A gas expands quasi-statically from $1.0\ \text{L}$ to $2.0\ \text{L}$ with $p=aV^2$; its initial pressure is $1.0\times10^5\ \text{Pa}$. Find the work done.
  • 5 A gas in one half of an insulated box expands into the evacuated other half when a partition is removed. How much work does it do? Explain.
  • 6 A gas expands suddenly against a constant external pressure of $1.0\times10^5\ \text{Pa}$ from $2.0\ \text{L}$ to $5.0\ \text{L}$. Find the work done by the gas on the surroundings.
  • 7 A gas goes from state 1 to state 2 along path $a$, absorbing $800\ \text{J}$ of heat and doing $500\ \text{J}$ of work. Along path $b$ between the same states it does $200\ \text{J}$ of work. Find the heat absorbed along path $b$.
  • 8 Show that pressure × volume has the unit of energy, and express $1\ \text{L atm}$ in joules.
1 $W=p\,\Delta V=2.0\times10^5\times5.0\times10^{-3}=1000\ \text{J}$.
2 $W=1.5\times10^5\times(2.0-6.0)\times10^{-3}=-600\ \text{J}$: $600\ \text{J}$ of work is done on the gas.
3 Trapezium: $W=\tfrac12(1.0+3.0)\times10^5\times4.0\times10^{-3}=800\ \text{J}$.
4 $a=\dfrac{1.0\times10^5}{(1.0\times10^{-3})^2}=1.0\times10^{11}\ \text{Pa/m}^6$; $W=\dfrac a3(V_2^3-V_1^3)=\dfrac{1.0\times10^{11}}{3}\times7\times10^{-9}=233\ \text{J}$.
5 Zero: nothing pushes back on the gas (the far side is a vacuum), so no force acts through any displacement at a moving boundary. $W=p_\text{ext}\Delta V=0$.
6 $W=p_\text{ext}\,\Delta V=1.0\times10^5\times3.0\times10^{-3}=300\ \text{J}$ (the process is not quasi-static, but the work on the surroundings is still force × distance at the boundary).
7 $\Delta U=Q_a-W_a=300\ \text{J}$ for both paths; $Q_b=\Delta U+W_b=300+200=500\ \text{J}$.
8 $\text{Pa}\times\text{m}^3=\dfrac{\text{N}}{\text{m}^2}\times\text{m}^3=\text{N m}=\text{J}$. $1\ \text{L atm}=10^{-3}\times1.013\times10^5=101.3\ \text{J}$.
III
The first law.
  • 1 A gas absorbs $800\ \text{J}$ of heat and does $300\ \text{J}$ of work. Find $\Delta U$.
  • 2 $400\ \text{J}$ of work is done on a gas while it gives out $150\ \text{J}$ of heat. Find $\Delta U$.
  • 3 A gas expands adiabatically and does $600\ \text{J}$ of work. Find $Q$ and $\Delta U$; does it get hotter or colder?
  • 4 $2.0\ \text{mol}$ of a monatomic ideal gas receive $1000\ \text{J}$ of heat and do $400\ \text{J}$ of work. Find the change in temperature.
  • 5 $1.0\ \text{mol}$ of water evaporates at $100\ ^\circ\text{C}$ and $1\ \text{atm}$; the molar latent heat is $40.7\ \text{kJ/mol}$. Treating the vapour as an ideal gas and neglecting the volume of the liquid, find the work done and $\Delta U$.
  • 6 $1.0\ \text{kg}$ of ice at $0\ ^\circ\text{C}$ (density $917\ \text{kg/m}^3$) melts at $1\ \text{atm}$ to water (density $1000\ \text{kg/m}^3$); latent heat $3.36\times10^5\ \text{J/kg}$. Find $W$ and $\Delta U$, and comment on the size of $W$.
  • 7 In each cycle of its operation a gas takes in $900\ \text{J}$ of heat and gives out $600\ \text{J}$. Find the net work done per cycle.
  • 8 Use the first law to explain why the barrel of a bicycle pump gets warm, and why a carbon dioxide fire extinguisher's nozzle gets icy cold when it is used.
1 $\Delta U=Q-W=800-300=500\ \text{J}$.
2 $Q=-150\ \text{J}$, $W=-400\ \text{J}$: $\Delta U=-150-(-400)=+250\ \text{J}$.
3 $Q=0$, $W=+600\ \text{J}$: $\Delta U=-600\ \text{J}$. It gets colder.
4 $\Delta U=600\ \text{J}=nC_V\Delta T$: $\Delta T=\dfrac{600}{2.0\times1.5\times8.31}=24.1\ \text{K}$ (a rise).
5 $W=p\,V_\text{vap}=nRT=1.0\times8.31\times373=3.10\times10^3\ \text{J}$; $\Delta U=40\,700-3100=3.76\times10^4\ \text{J}$.
6 $\Delta V=\dfrac{1}{1000}-\dfrac{1}{917}=-9.05\times10^{-5}\ \text{m}^3$; $W=1.013\times10^5\times(-9.05\times10^{-5})=-9.2\ \text{J}$ (the atmosphere does a little work on the ice as it shrinks). $\Delta U=3.36\times10^5+9.2\approx3.36\times10^5\ \text{J}$: for melting, $W$ is negligible and nearly all the latent heat becomes internal energy.
7 Over a cycle $\Delta U=0$: $W=Q_\text{net}=900-600=300\ \text{J}$.
8 Pump: the air is compressed quickly, so little heat escapes ($Q\approx0$); $W\lt0$, so $\Delta U=-W\gt0$ and the air (and the barrel) warms. Extinguisher: the gas expands rapidly as it leaves, doing work against the atmosphere with $Q\approx0$, so $\Delta U\lt0$ and it cools enough to freeze moisture on the nozzle.
IV
Harder problems and applications.
  • 1 A gas is held by a light piston of area $0.020\ \text{m}^2$ against the atmosphere ($1.0\times10^5\ \text{Pa}$) and a spring of force constant $4000\ \text{N/m}$, initially relaxed. It is heated slowly and the piston moves out $5.0\ \text{cm}$. Find the work done by the gas.
  • 2 A vertical cylinder of cross-section $50\ \text{cm}^2$ has a frictionless piston of mass $10\ \text{kg}$; the atmosphere above is at $1.0\times10^5\ \text{Pa}$. The gas below is heated and the piston rises slowly by $20\ \text{cm}$. Find the pressure of the gas and the work it does. How much of this work raises the piston?
  • 3 A monatomic ideal gas is heated in a process in which $p\propto V$. Show that the heat needed per mole per kelvin is $2R$, and find the heat needed to raise the temperature of $1.0\ \text{mol}$ by $100\ \text{K}$.
  • 4 A $10\ \text{W}$ heater inside a gas runs for $60\ \text{s}$, while the gas expands at a constant $1.0\times10^5\ \text{Pa}$ from $3.0\ \text{L}$ to $4.5\ \text{L}$. Find $\Delta U$ of the gas (neglect heat losses).
  • 5 An ideal gas in an insulated container expands freely into a vacuum to three times its volume. Find $Q$, $W$, $\Delta U$ and the final temperature if it started at $300\ \text{K}$. How does the pressure change?
  • 6 A $10\ \text{g}$ lead bullet ($c=130\ \text{J kg}^{-1}\text{K}^{-1}$) moving at $300\ \text{m/s}$ embeds itself in a fixed wooden block. If half the kinetic energy becomes internal energy of the bullet, find its rise in temperature.
  • 7 Water falls $50\ \text{m}$ at a waterfall. If all its kinetic energy at the bottom becomes internal energy of the water ($c=4200\ \text{J kg}^{-1}\text{K}^{-1}$), find how much warmer the water is at the bottom.
1 $W=p_0A\,\Delta x+\tfrac12kx^2=1.0\times10^5\times0.020\times0.050+\tfrac12\times4000\times0.050^2=100+5.0=105\ \text{J}$.
2 $p=p_0+\dfrac{mg}{A}=1.0\times10^5+\dfrac{98}{5.0\times10^{-3}}=1.196\times10^5\ \text{Pa}$ (constant). $W=p\,\Delta V=1.196\times10^5\times5.0\times10^{-3}\times0.20=119.6\ \text{J}$, of which $mgh=19.6\ \text{J}$ raises the piston and $100\ \text{J}$ pushes back the atmosphere.
3 As in Example 4, $W=\tfrac12\Delta(pV)=\tfrac12nR\Delta T$ and $\Delta U=\tfrac32nR\Delta T$, so $Q=2nR\Delta T$: $2R$ per mole per kelvin. $Q=2\times8.31\times100=1662\ \text{J}$.
4 $Q=10\times60=600\ \text{J}$, $W=1.0\times10^5\times1.5\times10^{-3}=150\ \text{J}$, $\Delta U=450\ \text{J}$.
5 $Q=0$ (insulated), $W=0$ (no external pressure), so $\Delta U=0$ and, for an ideal gas, $T$ stays $300\ \text{K}$. With $T$ constant, $pV=$ constant between the end states: the pressure falls to one-third.
6 $K=\tfrac12(0.010)(300)^2=450\ \text{J}$; half is $225\ \text{J}$: $\Delta T=\dfrac{225}{0.010\times130}=173\ \text{K}$.
7 $mgh=mc\,\Delta T$: $\Delta T=\dfrac{9.8\times50}{4200}=0.117\ \text{K}$ — tiny, which is why Joule needed sensitive thermometers.
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ A gas is taken from state $i$ to state $f$ along path 1, absorbing $120\ \text{J}$ of heat and doing $50\ \text{J}$ of work. Along path 2 between the same states the gas does $20\ \text{J}$ of work. The heat absorbed along path 2 is (A) $50\ \text{J}$ (B) $70\ \text{J}$ (C) $90\ \text{J}$ (D) $150\ \text{J}$

Path 1 $\Delta U=Q_1-W_1=120-50=70\ \text{J}$, the same for every path from $i$ to $f$.
Path 2 $Q_2=\Delta U+W_2=70+20=90\ \text{J}$.
Answer (C).
⏱ Shortcut $Q_1-W_1=Q_2-W_2$, so $Q_2=Q_1-(W_1-W_2)=120-30$. (B) is $\Delta U$; (D) adds instead of subtracting.

E2. JEE Main · Numerical A monatomic ideal gas is taken from $(2.0\times10^5\ \text{Pa},\ 1.0\ \text{L})$ to $(1.0\times10^5\ \text{Pa},\ 3.0\ \text{L})$ along a straight line on the $p$–$V$ diagram. Find the heat absorbed by the gas, in joules. Give the answer to the nearest integer.

Work Trapezium: $W=\tfrac12(200+100)\ \text{kPa}\times2.0\ \text{L}=300\ \text{J}$.
ΔU $\Delta U=\tfrac32(p_2V_2-p_1V_1)=\tfrac32(300-200)=150\ \text{J}$.
Answer $Q=150+300=450$.
⏱ Shortcut Work in $\text{kPa}\times\text{L}$ (that is joules) throughout — no powers of ten to track.

E3. JEE Main · MCQ A gas expands quasi-statically from volume $V$ to $2V$ according to $p=aV^2$, where $a$ is a constant. The work done by the gas is (A) $\tfrac73aV^3$ (B) $3aV^3$ (C) $aV^3$ (D) $7aV^3$

Integrate $W=\displaystyle\int_V^{2V}aV'^2\,dV'=\frac a3\left[(2V)^3-V^3\right]=\frac{7aV^3}{3}$.
Answer (A).
⏱ Shortcut (D) forgets the $\tfrac13$ of the integral; (B) uses $\Delta p\,\Delta V$-type guesses. When $p$ varies, never use $p\,\Delta V$ — integrate or find the area.

E4. JEE Main · Numerical $2.0\ \text{g}$ of water at $100\ ^\circ\text{C}$ is converted to steam at $100\ ^\circ\text{C}$ at a constant pressure of $1.0\times10^5\ \text{Pa}$. Its volume increases from $2.0\ \text{cm}^3$ to $3340\ \text{cm}^3$. The latent heat of vaporisation is $2250\ \text{J/g}$. Find the increase in internal energy, in joules. Give the answer to the nearest integer.

Heat $Q=mL=2.0\times2250=4500\ \text{J}$.
Work $W=p\,\Delta V=1.0\times10^5\times(3340-2.0)\times10^{-6}=333.8\ \text{J}$.
Answer $\Delta U=4500-333.8=4166.2$, so $4166$.
⏱ Shortcut $\text{cm}^3\to\text{m}^3$ is $10^{-6}$; with $p=10^5\ \text{Pa}$, $W$ in joules is simply $\Delta V(\text{cm}^3)/10$.

E5. JEE Main · MCQ An ideal gas in a thermally insulated, rigid container is allowed to expand freely from one half of the container into the other, evacuated half. For this process (A) $Q=0$, $W\gt0$ and the temperature falls (B) $Q\gt0$, $W=0$ and the temperature rises (C) $Q=0$, $W=0$ and the temperature falls (D) $Q=0$, $W=0$, $\Delta U=0$ and the temperature is unchanged

Idea Insulated: $Q=0$. Expansion into a vacuum: nothing to push against, $W=0$. First law: $\Delta U=0$.
Ideal gas $U$ depends only on $T$, so $T$ is unchanged (the pressure halves).
Answer (D).
⏱ Shortcut (A) is the trap — it describes a slow adiabatic expansion against a piston, not a free expansion.

E6. JEE Main · Numerical A gas is enclosed in a cylinder by a light frictionless piston of area $50\ \text{cm}^2$. The atmospheric pressure outside is $1.0\times10^5\ \text{Pa}$, and the piston is attached to a spring of force constant $1000\ \text{N/m}$ that is initially relaxed. The gas is heated slowly until the piston has moved out by $10\ \text{cm}$. Find the work done by the gas, in joules. Give the answer to the nearest integer.

Atmosphere $p_0A\,x=1.0\times10^5\times5.0\times10^{-3}\times0.10=50\ \text{J}$.
Spring $\tfrac12kx^2=\tfrac12\times1000\times0.010=5\ \text{J}$.
Answer $W=50+5=55$.
⏱ Shortcut Work by the gas = energy delivered to everything it pushes. Forgetting the atmosphere (answer $5$) is the classic slip.
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

Research question. Can you repeat Joule's discovery at home — turn a measured amount of mechanical work into internal energy and show that the temperature rise agrees with $\Delta U=W_\text{on}=mc\,\Delta T$?

Why it matters. Every time energy is "lost" to friction, stirring or impact it turns up as internal energy, and engineers must account for it: brake discs on trains and racing cars reach several hundred degrees, the stirring paddles of industrial mixers heat their contents, and the energy of meteorite impacts melts rock. Joule's experiment is what showed that heat and work are two forms of the same quantity — the foundation of the first law (Law 8.5). Repeating it with simple equipment is a classic test of careful measurement.

What to do.

  1. Put about $0.5\ \text{kg}$ of lead shot (or dry sand, $c\approx800\ \text{J kg}^{-1}\text{K}^{-1}$) in a strong, sealed cardboard or plastic tube about $1\ \text{m}$ long, lagged with a towel.
  2. Measure the starting temperature of the contents with a digital thermometer (cool the shot a degree or two below room temperature so that heat gained and lost to the room roughly cancel).
  3. Invert the tube quickly $N=50$, then $100$, then $150$ times, measuring the height $h$ the contents fall each time and the temperature after each set.
  4. Plot $\Delta T$ against $N$ and compare the slope with the prediction $gh/c$.
  5. Estimate the fraction of the work that went into the contents, and list where the rest went.

Tools: Long tube with sealed ends, lead shot or sand, digital thermometer ($0.1\ \text{K}$ resolution), metre rule, towel, kitchen scale, graph paper or a spreadsheet.

Hand in: A table of $N$ and $\Delta T$, the graph with the predicted line, your measured value of $c$ (or of the "mechanical equivalent" $W/\Delta T$), and a paragraph on the main sources of error.

Going further. Repeat with the tube unlagged. How much faster does the shot lose its extra internal energy to the room, and how would you correct for it?

Instructor note: with lead ($c=130$) and $h\approx0.9\ \text{m}$, $100$ inversions give about $6.8\ \text{K}$ — easily measured; sand gives roughly a sixth as much. Measured rises are typically 60–90% of the prediction because the shot does not fall the full length, some energy goes into the tube and into sound, and heat leaks out. Starting slightly below room temperature reduces the leakage error.

🧪 Self-check quiz

0/5 correct

Q1. The zeroth law of thermodynamics is the basis for

Q2. Which of the following is a state function?

Q3. $300\ \text{J}$ of work is done on a gas and it gives out $100\ \text{J}$ of heat. The change in its internal energy is

Q4. On a $p$–$V$ diagram, the work done by a gas in a quasi-static process is

Q5. $2\ \text{mol}$ of a monatomic ideal gas absorb $500\ \text{J}$ of heat and do $500\ \text{J}$ of work. Its temperature