The big idea: The internal energy U of a gas is the total energy of all its particles added up:
- the random kinetic energy of the particles (how fast they jiggle and fly about), plus - the potential energy stored in the forces between them.
For an ideal gas the particles don't attract each other, so there is no potential energy — and then U depends on temperature alone. Hotter gas = more internal energy.
Internal energy ≠ heat: Internal energy is energy a gas already has inside it. Heat is energy on the move — energy flowing in or out because of a temperature difference. You change U by adding heat or by doing work.
Because an ideal gas's internal energy depends only on temperature, raising its temperature always raises U, and any process at constant temperature leaves U unchanged (ΔU = 0). This single fact decides the sign of ΔU in almost every exam question.
Energy is just bookkeeping: The first law of thermodynamics is conservation of energy for a gas. The heat you add to a gas either raises its internal energy or gets spent doing work as the gas pushes outward — or some of each.
- heat ADDED to the gas (J)
- increase in internal energy of the gas (J)
- work done BY the gas on its surroundings (J)
Read it as a sentence: heat in = energy stored + work done out. Rearranged, the change in internal energy is ΔU = Q − W — the heat you put in minus the work the gas spends expanding.
Worked example — heating an expanding gas
500 J of heat is added to a gas. As it warms, the gas expands and does 200 J of work pushing back its surroundings. Find the change in internal energy.
Solution
- Start from the given first law, rearranged for ΔU:
- Put in the numbers (heat added Q = 500 J, work done by gas W = 200 J):
- Work it out — keep the unit:
Final answer
ΔU = +300 J. The internal energy rises, so the gas ends up warmer than it started.
Learn what examiners really want
See exactly what to write to score full marks. Our AI shows you model answers and the key phrases examiners look for.
Get the signs right or lose every mark: In the booklet's convention, Q is heat ADDED to the gas and W is work done BY the gas. So:
- Heat added ⇒ Q is positive; heat removed ⇒ Q is negative. - Gas expands (does work on surroundings) ⇒ W is positive. - Gas is compressed (surroundings do work on it) ⇒ W is negative. - Temperature rises ⇒ ΔU is positive; temperature falls ⇒ ΔU is negative.
| Situation | Sign | Why |
|---|---|---|
| Heat added to the gas | Q > 0 | Energy flows in |
| Heat removed from the gas | Q < 0 | Energy flows out |
| Gas expands | W > 0 | Gas does work on its surroundings |
| Gas compressed | W < 0 | Surroundings do work on the gas |
| Temperature rises | ΔU > 0 | Particles move faster |
A trick that always works: Before you substitute, write the sign of each quantity in words next to it: 'heat removed → Q = −...', 'gas compressed → W = −...'. Then plug straight into ΔU = Q − W. The minus signs do the rest.
Pushing back the surroundings: When a gas expands it pushes its container (or a piston) outward, so it does work on the surroundings. At constant pressure that work is simply the pressure times the change in volume.
- work done BY the gas (J)
- pressure of the gas, held constant (Pa)
- change in volume (m³)
Worked example — work done by an expanding gas
A gas expands at a constant pressure of P = 1.0×10⁵ Pa, increasing its volume by ΔV = 2.0×10⁻³ m³. Find the work done by the gas.
Solution
- Write the given formula first:
- Substitute the values:
- Work it out — keep the unit:
Final answer
W = 200 J done by the gas. (The gas expanded, so W is positive.)
Units must match: Use pascals (Pa) for pressure and cubic metres (m³) for volume, and W comes out in joules (J). A volume given in litres or cm³ must be converted to m³ first (1 L = 1×10⁻³ m³).
Never wonder what to study next
Get a personalized daily plan based on your exam date, progress, and weak areas. We'll tell you exactly what to review each day.
Where it shows up: The first law is HL only (B.4):
- Paper 1A — a one-step 'find ΔU / Q / W' with the signs, or 'what does internal energy of an ideal gas depend on?'. - Paper 2 — a multi-stage process where you track Q, W and ΔU through each step, often finishing with W = PΔV for the constant-pressure stage.
Three easy marks: (1) Quote the given first law Q = ΔU + W before substituting. (2) Decide the sign of every term in words first. (3) For an ideal gas, no temperature change ⇒ ΔU = 0.
IB-style question — compressing and cooling a gas
A gas in a cylinder is compressed by a piston, which does 350 J of work on the gas. At the same time 500 J of heat is removed from the gas to the cooling surroundings. Determine the change in the internal energy of the gas, and state whether the gas warms or cools.
Solution
- Start from the given first law, rearranged for ΔU:
- Fix the signs in words: heat is removed ⇒ Q = −500 J; the gas is compressed, so work done by the gas is negative ⇒ W = −350 J:
- Work it out — keep the unit:
Final answer
ΔU = −150 J. The internal energy falls, so the gas cools (heat lost outweighs the work done on it).