The First Law of Thermodynamics: ΔU = q + W | Cambridge A Level Physics notes
Free preview: The First Law of Thermodynamics: ΔU = q + W
Energy In, Energy Stored
Watch: 90-second explainer
A gas in a cylinder is our system. Its energy is its internal energy U. There are only two ways to change U from outside:
- Heating: energy flows in (or out) because of a temperature difference between the gas and its surroundings.
- Work: a force moves, for example a piston pushes the gas in, or the gas pushes the piston out.
Energy is conserved. So the rise in internal energy must equal the energy that came in by heating plus the energy that came in by work. This is the first law of thermodynamics.
- = increase in internal energy of the system, in J
- = energy transferred to the system by heating, in J
- = work done on the system, in J
ℹ️ Statement
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.
📝 Cambridge sign convention
In 9702, W is the work done on the system. Some books write the law with W as work done by the gas, which changes the sign. Always use ΔU = q + W with W done on the gas, and say so in your answer.
The Sign Rules

Following the diagram
- The blue box is the system: a gas with internal energy U. Any change in U is ΔU.
- The red arrow is heating, q. It points into the gas, so q is positive when energy goes in.
- The blue arrow is work done on the gas, W. It points into the gas, like a piston pushing down. W is positive when the gas is compressed.
- Pink box: q is negative if the gas loses energy to its surroundings by heating.
- Blue box: W is negative if the gas expands, because then the gas does work on the surroundings instead.
- Add the two (with their signs) to get ΔU. A positive ΔU means the internal energy has gone up.
| Quantity | Positive (+) when | Negative (−) when |
|---|---|---|
| q | the gas is heated (energy in) | the gas loses energy by heating (energy out) |
| W | work is done on the gas (it is compressed) | the gas does work (it expands) |
| ΔU | internal energy rises (an ideal gas gets hotter) | internal energy falls (an ideal gas gets cooler) |
For an expansion at constant pressure, the work done by the gas is pΔV, so W = −pΔV. For a compression, W = +p|ΔV|.
Using the First Law
| Situation | What is zero | First law becomes |
|---|---|---|
| Heated in a sealed rigid container (constant volume) | W = 0 (no volume change) | ΔU = q: all the heating goes into internal energy |
| Very fast change, or a perfectly insulated container | q = 0 (no time or path for heating) | ΔU = W: compressing heats the gas, expanding cools it |
| Ideal gas at constant temperature | ΔU = 0 (U depends only on T) | q = −W: energy in by heating equals work done by the gas |
| Complete cycle back to the start | ΔU = 0 (U is a function of state) | total q = − total W |
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in The First Law of Thermodynamics
- Work Done by and on a Gas: W = pΔV
- The First Law of Thermodynamics: ΔU = q + W
- Move Up a Grade: A Level Thermal Physics and Ideal Gases
- Tricky Bits: A Level Thermal Physics and Ideal Gases
Video
What's inside for this topic
4 teacher notes, 113 practice questions, 6 flashcards, 7 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Work Done by and on a Gas: W = pΔV Next note: Move Up a Grade: A Level Thermal Physics and Ideal Gases