The First Law of Thermodynamics
There are only two ways to change the internal energy of a gas: heat it, or do work on it. The first law of thermodynamics is the statement that energy is conserved when you do either or both: . This note shows where the work done comes from, sets out the sign convention Cambridge uses (which catches out many students), and works through the classic exam questions: single processes, – graphs and the cycle table that appears in Paper 4 almost every year.
Two ways to transfer energy
Think of a gas in a cylinder with a movable piston.
- Heating. Place the cylinder on a hot plate. Energy flows into the gas because of the temperature difference. Faster-moving molecules in the hot wall pass kinetic energy to the gas molecules that collide with it. This is a transfer of energy by heating.
- Doing work. Push the piston in. The molecules bouncing off the inward-moving piston rebound faster than they arrived, so the gas gains kinetic energy. This is a transfer of energy by doing work: a force moves its point of application.
Both raise the internal energy. The result can be identical: from the final state alone you cannot tell which method was used, because internal energy depends only on the state.
Work done when a gas changes volume
Consider gas at pressure in a cylinder with a piston of area . The gas pushes on the piston with force . If the gas expands slowly at constant pressure so the piston moves out a distance , the work done by the gas is
since is the increase in volume .
Work done when the volume of a gas changes by at constant pressure . Units: .
Work done by the gas and work done on the gas
The same quantity of work can be described from either side:
- When a gas expands, it pushes the surroundings back: work is done by the gas. Equivalently, the work done on the gas is negative.
- When a gas is compressed, the surroundings push the piston in: work is done on the gas. Equivalently, the work done by the gas is negative.
Work done on the gas work done by the gas. Always say which one you mean.
Work as an area on a – graph
If the pressure changes during the expansion, split it into small steps, each with nearly constant pressure. The work in each step is , the area of a thin strip under the curve. So:
The work done by (or on) a gas is the area under the – graph between the initial and final volumes.
The shaded area is the work done by an ideal gas as it expands isothermally from to units of volume. A constant-pressure change appears as a horizontal line, and its area is the rectangle . A constant-volume change is a vertical line, with zero area: no work is done when the volume does not change.
The first law of thermodynamics
Energy is conserved. The increase in a system's internal energy must equal the energy put in by heating plus the energy put in by doing work.
- : increase in internal energy of the system
- : energy transferred to the system by heating
- : work done on the system
The first law of thermodynamics states that the increase in internal energy of a system is equal to the sum of the energy transferred to the system by heating and the work done on the system.
The sign convention
Every quantity is measured as energy going into the gas:
| Quantity | Positive when | Negative when |
|---|---|---|
| internal energy increases (temperature of an ideal gas rises) | internal energy decreases | |
| energy is transferred to the gas by heating | energy is transferred from the gas (it cools its surroundings) | |
| work is done on the gas (it is compressed) | work is done by the gas (it expands) |
So for a gas expanding against a constant pressure, , with positive. For a compression, is negative and is positive. Many students find it easier to decide the sign from the physics (expanding means negative) and then put in the magnitude .
Using the engineering convention. Some textbooks write , with the work done by the gas. Cambridge uses with the work done on the gas. Mixing the two gives the wrong sign for . Always state your convention in words: " = work done on the gas ".
Applying the first law to an ideal gas
For an ideal gas, internal energy depends only on temperature (for a monatomic gas, ). This makes four special processes easy to analyse.
| Process | What is fixed | Consequence | First law becomes |
|---|---|---|---|
| Constant volume | : all heating goes to internal energy | ||
| Constant pressure | : some heating is used to do work | ||
| Isothermal | : heating supplied equals work done by the gas | ||
| Adiabatic (no heat transfer) | thermal isolation, or a very fast change |
Physical meanings to recognise in questions:
- Rapid compression (a bicycle pump, a diesel engine): there is no time for energy to escape by heating, so . Work done on the gas increases its internal energy, so its temperature rises. That is why a pump gets hot.
- Rapid expansion (gas escaping from an aerosol can, air rushing out of a tyre valve): and is negative, so is negative and the gas cools.
- Slow expansion in good thermal contact with surroundings: the temperature stays constant (isothermal). The gas does work, so it must absorb an equal amount of energy by heating.
- Heating at constant pressure needs more energy than at constant volume for the same temperature rise, because some of the energy supplied is used for the work done by the expanding gas.
Cycles
In an engine, the gas goes through a sequence of changes and returns to its starting state. Because internal energy is a function of state, after a complete cycle
The net work done by the gas in one cycle is the area enclosed by the loop on a – graph. Going clockwise round the loop, the gas does more work expanding (at high pressure) than is done on it while it is compressed (at low pressure), so there is net work output: this is a heat engine.
The graph shows a rectangular cycle A to B to C to D and back to A, with pressure in units of and volume in units of . The gas expands along BC at high pressure and is compressed along DA at low pressure; the net work done by the gas is the area of the rectangle enclosed by the loop. The cycle is analysed in a worked example below.
- Draw up a table with columns , , and one row per stage.
- Fill in what is given. Mark zeros: at constant volume; for adiabatic stages; for isothermal stages (ideal gas).
- Find for constant-pressure stages with , taking the sign from the physics: expanding, negative; compressed, positive.
- Use along each row to find the missing entry.
- Use around the cycle to find any remaining .
- Check: total = (total ) = net work done by the gas = enclosed area.
Worked examples
A gas at a constant pressure of expands from to while of energy is supplied to it by heating. Calculate (a) the work done by the gas and (b) the increase in internal energy of the gas.
Solution
(a) Work done by the gas:
(b) The gas expands, so the work done on the gas is . Energy supplied by heating .
Of the supplied, leaves again as work pushing the piston out; stays as internal energy.
The outlet of a bicycle pump is blocked and the handle is pushed in quickly, doing of work on of air. (a) Explain why the energy transferred by heating can be taken as zero. (b) Calculate the increase in internal energy. (c) Treating the air as a monatomic ideal gas, estimate the temperature rise.
Solution
(a) The compression is rapid, so there is not enough time for a significant amount of energy to be transferred to the surroundings by heating: .
(b) (work done on the gas), so .
(c) :
(Air is diatomic, so its real internal energy per kelvin is larger and the actual rise is smaller, about . The monatomic model gives the right idea: rapid compression heats a gas.)
of a monatomic ideal gas is heated from to . Calculate the energy that must be supplied by heating (a) at constant volume and (b) at constant pressure.
Solution
In both cases the temperature change is the same, so
(a) Constant volume: , so .
(b) Constant pressure: the gas expands. From at constant , . This is the work done by the gas, so .
More energy is needed at constant pressure because is used to push back the surroundings.
A gas expands from to . During the expansion its pressure falls uniformly from to . Its internal energy decreases by . Calculate the energy transferred to the gas by heating.
Solution
The work done by the gas is the area under the straight line, a trapezium:
The gas expands, so , and .
is supplied to the gas by heating. You cannot use with a single pressure here, because the pressure is not constant.
A monatomic ideal gas is taken round the rectangular cycle shown above: A to B to C to D and back to A. Using , complete a table of , and for each stage, and find the net work done by the gas.
Solution
Internal energies: , , , .
- A to B: constant volume, ; ; .
- B to C: expansion at ; work done by gas , so ; ; .
- C to D: constant volume, ; ; .
- D to A: compression at ; ; ; .
| Stage | / J | / J | / J |
|---|---|---|---|
| A to B | |||
| B to C | |||
| C to D | |||
| D to A | |||
| Cycle |
Net work done by the gas , which equals the enclosed area . The total is zero, as it must be for a cycle.
An ideal gas expands slowly in a cylinder kept in a water bath at constant temperature, doing of work on the surroundings. State the change in internal energy of the gas and the energy transferred by heating, and explain your answers.
Solution
The temperature is constant and the internal energy of an ideal gas depends only on temperature, so .
(work done by the gas), so .
is transferred from the water bath to the gas by heating, exactly replacing the energy the gas does as work. Without this heating the gas would cool as it expanded.
Wrong sign for . In , is work done on the gas. An expanding gas has negative . Write the sign from the physics before substituting: "gas expands, so ".
Using when changes. only applies at constant pressure. For any other process, the work is the area under the – graph (a trapezium for a straight line, counting squares for a curve).
Thinking adiabatic means isothermal. In an adiabatic change no energy is transferred by heating, but the temperature does change: compression warms the gas, expansion cools it. In an isothermal change the temperature is constant, but energy is transferred by heating.
- "State the first law of thermodynamics" (2 marks): increase in internal energy equals energy supplied to the system by heating plus work done on the system. Or give with every symbol defined, including the direction ("increase in", "to the system", "on the system").
- In cycle table questions, every row is worth a mark or two. Show calculations, and always check that the column sums to zero.
- "Explain why the temperature of the gas rises when it is compressed rapidly": rapid, so no time for heating (); work is done on the gas ( positive); so is positive; internal energy of an ideal gas is kinetic, so the mean kinetic energy, and hence the temperature, increases.
- Many questions combine this topic with the ideal gas equation: use to find temperatures at each corner of a cycle, then for internal energies.
- Read units on graph axes carefully: and are common. .
- Internal energy can be changed by heating the system or by doing work on it.
- Work done by a gas at constant pressure: ; in general, the area under the – graph.
- Work done on the gas work done by the gas. No work is done at constant volume.
- First law: , where is the increase in internal energy, the energy transferred to the system by heating and the work done on the system.
- Ideal gas: isothermal ; constant volume ; adiabatic .
- Around a cycle ; net work done by the gas = area enclosed by the loop = net energy supplied by heating.
Practice questions
- State the first law of thermodynamics in terms of the quantities in .
- A gas at a constant pressure of is compressed from to . Calculate the work done on the gas.
- A gas at constant pressure expands from to while is supplied to it by heating. Calculate the change in internal energy.
- of a monatomic ideal gas is heated in a sealed rigid container from to . Calculate the energy supplied by heating.
- Explain why air escaping rapidly from a car tyre feels cold.
- A gas is compressed isothermally. of work is done on it. State the values of and , and describe the energy transfer that takes place.
- Explain, using the first law, why more energy is needed to raise the temperature of a gas by at constant pressure than at constant volume.
- A monatomic ideal gas at expands at constant pressure from to . Calculate (a) the work done by the gas, (b) the increase in internal energy, using , and (c) the energy supplied by heating.
- A fixed mass of ideal gas undergoes a cycle P to Q to R to P. P to Q is a rapid (adiabatic) compression in which of work is done on the gas. Q to R is heating at constant volume, in which is supplied. During R to P the gas returns to its original state and does of work. Copy and complete a table of , and for each stage, and find the net work done by the gas per cycle.
- of a monatomic ideal gas is at and . (a) Calculate its volume. (b) It is heated at constant volume until the pressure is ; calculate the new temperature and the energy supplied. (c) It then expands at constant pressure until its volume has doubled; calculate the work done by the gas, the change in internal energy and the energy supplied by heating in this stage.
Answers
- The increase in internal energy of a system () is equal to the sum of the energy transferred to the system by heating () and the work done on the system ().
- , positive because the gas is compressed: .
- Work done by the gas , so . .
- (constant volume), so .
- The air expands rapidly, so there is no time for heating: . The air does work pushing back the atmosphere, so is negative. Therefore is negative: the internal (kinetic) energy of the molecules falls, and the temperature of the air drops.
- (ideal gas at constant temperature). : is transferred from the gas to the surroundings by heating, equal to the work done on it.
- The same temperature rise means the same . At constant volume , so . At constant pressure the gas expands and does work on the surroundings ( negative), so is larger by the work done by the gas.
- (a) . (b) . (c) , so .
- P to Q: , , . Q to R: , , . R to P: (cycle total zero); ; . Net work done by the gas , which equals the net energy supplied by heating, .
- (a) . (b) At constant volume : . . (c) At constant pressure, doubling doubles to . Work done by the gas (equivalently ), so . . .