Lesson 9 of 10 · 16 min

Internal energy, work and the first law

Explain how heating and work both change a system's internal energy, apply ΔU=Q+W\Delta U = Q + W with the correct signs, and explain how thermal energy can do mechanical work.

What you will be able to do

  • Explain how a system with thermal energy can do mechanical work.
  • State the first law of thermodynamics, ΔU=Q+W\Delta U = Q + W, and explain why it follows from conservation of energy.
  • Use the sign conventions for QQ and WW to solve problems for any one unknown.
  • Describe how the drive to improve steam engines led to the laws of thermodynamics.

Pump up a bike tyre quickly and the barrel of the pump gets warm, even though nothing heated it. Lift the lid of a pot of boiling water and the steam pushes it up. Both show the same idea: heating is not the only way to change a system's internal energy. Doing work is the other.

Gas in a cylinder. Heating adds energy to the gas (Q>0Q > 0); as the gas pushes the piston out, it does work on its surroundings (W<0W < 0).

A hot gas has thermal energy: its particles move fast and collide constantly with the walls of their container. If one wall can move, like a piston, each collision gives it a tiny push. Together the pushes make a force, and when the piston moves, that force acts through a distance. The gas does mechanical work.

The energy for that work comes from the gas's internal energy, so unless energy keeps being added by heating, the gas cools as it does work. Steam engines, car engines and power-station turbines all work this way: heat a gas so it pushes harder, let it expand against a piston or turbine blades, and keep heating it to keep going.

Key idea

The first law of thermodynamics

ΔU=Q+W\Delta U = Q + W
  • ΔU\Delta U is the change in the internal energy of the system (J).
  • QQ is the energy added to the system by heating: positive if energy flows in, negative if it flows out.
  • WW is the work done on the system: positive if the surroundings do work on it (such as compressing a gas), negative if the system does work on its surroundings (such as a gas expanding against a piston).

This is conservation of energy for a system: its internal energy can change only by energy crossing its boundary, and heating and work are the two ways energy crosses.

Signs in the first law.
SituationSign of QSign of WInternal energy
A gas is heated and expands, pushing a piston outpositivenegativeDepends on which is larger
Air is compressed quickly in a pump, with no time for heatingzeropositiveIncreases (the air warms)
A hot drink cools on the benchnegativezeroDecreases
Gas rushes out of an aerosol can and expands, with no time for heatingzeronegativeDecreases (the can feels cold)

Worked example

Heating a gas that expands

  • Simple familiar
  • Technology free

A gas in a cylinder absorbs 850 J of energy by heating. At the same time it expands and does 320 J of work pushing a piston outwards. Calculate the change in the internal energy of the gas.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. QQ positive if energy is added by heating, negative if removed.

  2. WW positive if work is done on the system (compression), negative if the system does work (expansion).

  3. ΔU=Q+W\Delta U = Q + W.

Watch out for

  • Adding 850 and 320 to get 1170 J.

A gas absorbs 600 J of energy by heating and does 250 J of work on its surroundings as it expands. What is the change in its internal energy?

in J

Common mistake

Two sign conventions in the wild

The QCAA formula and data book writes ΔU=Q+W\Delta U = Q + W, where WW is the work done on the system. Some textbooks and most engineering courses write ΔU=Q−W\Delta U = Q - W, where WW is the work done by the system. They describe the same physics with opposite signs for WW.

In QCAA exams use ΔU=Q+W\Delta U = Q + W: compressing a gas makes WW positive, and a gas that expands has negative WW.

Worked example

Why a bike pump gets warm

  • Complex familiar
  • Technology free

In one quick stroke of a bike pump, the cyclist does 45 J of work compressing the air inside. During the stroke, 12 J of energy is transferred from the air to the pump barrel by heating.

(a) State the values of QQ and WW for the air, with signs.

(b) Calculate the change in internal energy of the air.

(c) Explain what happens to the temperature of the air, using the kinetic particle model.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Translate each sentence into a signed QQ or WW.

  2. ΔU=Q+W\Delta U = Q + W.

  3. Positive ΔU\Delta U with no change of state means a temperature rise.

Watch out for

  • Thinking the temperature can only rise if energy is added by heating.

Air in a bike pump is compressed so quickly that no energy is transferred by heating (Q=0Q = 0). Which statement is correct?

Choose one answer

History

From steam engines to the laws of thermodynamics

Thomas Newcomen's steam engine (1712) pumped water out of mines but turned only about 1 % of its coal's energy into work. James Watt's separate condenser (patented 1769) cut the waste dramatically, and the race to build better engines drove both technology and science.

Sadi Carnot (1824) asked what limits an engine's efficiency and showed that it depends on the temperatures the engine works between. James Joule's experiments in the 1840s showed that work and heat are two ways of transferring the same thing, energy, and by the 1850s Rudolf Clausius and William Thomson had stated the first and second laws of thermodynamics. The same push for efficiency produced the internal combustion engine (Nicolaus Otto's four-stroke engine, 1876) and the steam turbines in today's power stations.

Joule's paddle-wheel experiment

Joule let heavy weights fall slowly, turning a paddle wheel inside an insulated container of water. The paddles churned the water and its temperature rose by a fraction of a degree. The rise was always proportional to the work done by the falling weights, W=mghW = mgh, with no heating involved.

Work done on the water increased its internal energy exactly as heating would have. Joule's value for the "mechanical equivalent of heat" was within about 1 % of the modern one: 4.18 J of work raises the temperature of 1 g of water by 1 K, which is just cwc_w again.

The internal energy of a gas decreases by 150 J while 400 J of work is done on it. Find QQ, the energy added to the gas by heating, with its sign.

in J

Exam tip

Say the signs in words

Before you substitute, write each quantity in words with its sign: "energy is added by heating, so Q=+850 JQ = +850\ \mathrm{J}; the gas does work on the piston, so W=−320 JW = -320\ \mathrm{J}." Most lost marks in first-law questions are sign errors, and this sentence shows the marker your reasoning. Then say what the answer means: a positive ΔU\Delta U with no change of state means the temperature rises.

Summary

  • A gas with thermal energy can do mechanical work by pushing a piston or turbine blade through a distance; its internal energy falls unless it is heated.

  • ΔU=Q+W\Delta U = Q + W: the change in internal energy equals the energy added by heating plus the work done on the system.

  • Q>0Q > 0 when energy flows in by heating; W>0W > 0 when work is done on the system (compression) and W<0W < 0 when the system does work (expansion).

  • The first law is the law of conservation of energy applied to heating and work.

  • Doing work on a gas (such as compressing it quickly) raises its temperature even without heating.

  • Improving steam engines led to the science of thermodynamics and to later engines and turbines.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 9 of 100% read

Save your progress with a free account