Find a course

Module 3: The First Law of ThermodynamicsLesson 5 of 1115 min

Energy, Work and Heat: The First Law

How Joule showed that work and heat are both energy, how to apply ΔU = Q − W with the right signs, and how to find work from a pressure-volume diagram.

Step 1 of 13Learn

Joule's paddle wheel

In the 1840s, many scientists still thought heat was an invisible fluid called "caloric" that flowed from hot objects to cold ones. James Prescott Joule, the son of a brewer, tested a different idea. He let falling weights turn a paddle wheel inside an insulated tank of water. The paddles churned the water, and its temperature rose by a tiny but measurable amount.

No heat had been added, only mechanical work. Yet the water warmed exactly as if it had been heated. Joule found that a fixed amount of work always produced the same temperature rise: about 4.19 joules of work per calorie of heating, very close to the modern value of 4.186 J. Heat and work were two forms of the same thing: energy. The SI unit of energy is named after him.

That insight became the first law of thermodynamics: energy can't be created or destroyed, only transferred or converted. It sounds simple, but it rules out every "free energy" machine ever proposed, and it gives engineers a strict accounting system for engines, refrigerators, power plants and living cells.

In this lesson you'll learn how to keep that account: which energy goes in, which comes out, and how to get the signs right.

Step 2 of 13Diagram

Joule’s paddle-wheel experiment

Joule’s paddle-wheel experimentProcess diagram: Falling weights → Paddles churn the water → Water warms slightly → 4.18 J = 1 calorie.FallingweightsPaddleschurn thewaterWaterwarmsslightly4.18 J = 1calorie

Tap a shape with to see more.

Falling weights

Lose gravitational potential energy mgh, which Joule could measure precisely.

Paddles churn the water

The work is done by stirring, with no flame or hot object.

Water warms slightly

Only a fraction of a degree, measured with very sensitive thermometers.

4.18 J = 1 calorie

Work and heat are the same thing: energy. The caloric fluid theory was finished.

Step 3 of 13Learn

Internal energy and ΔU = Q − W

Think of a system, such as gas in a cylinder with a piston. Its internal energy (U) is the total energy of its particles. For an ideal gas, U depends only on temperature: warmer gas, more internal energy.

The internal energy can change in two ways: heat can flow in or out, and work can be done by or on the system. The first law keeps the account:

ΔU = Q − W

  • Q is the heat added to the system (positive if heat flows in, negative if it flows out).
  • W is the work done by the system on its surroundings (positive if the gas expands and pushes the piston out, negative if the surroundings compress the gas).

Example: a gas absorbs 500 J of heat and does 200 J of work pushing a piston. ΔU = 500 − 200 = +300 J. Its internal energy rises by 300 J, so it gets warmer.

Example: you compress a gas with 150 J of work (W = −150 J) while it loses 50 J of heat to the surroundings (Q = −50 J). ΔU = −50 − (−150) = +100 J. Compression warmed it, which is why a bicycle pump gets hot.

Internal energy is a state function: its change depends only on the starting and ending states, not on the path. Heat and work are not: they depend on how you get from one state to another.

Step 4 of 13Note

Step 5 of 13Practice · Sort into groups

Using ΔU = Q − W, classify each quantity as positive or negative for the gas.

Tap an item, then tap its group (or drag it there).

Step 6 of 13Diagram

Energy in and out of a gas in a cylinder

With ΔU = Q − W (W = work done by the gas). Tap each arrow to see its sign.

Energy in and out of a gas in a cylinderParts diagram: Gas: internal energy U, Heat in: Q > 0, Heat out: Q < 0, Gas expands: W > 0, Gas compressed: W < 0.Gas: internalenergy UHeat in: Q > 0Heat out: Q <0Gas expands:W > 0Gascompressed:W < 0

Tap a shape with to see more.

Gas: internal energy U
Heat in: Q > 0

Flame or warm surroundings add energy.

Heat out: Q < 0

Cool surroundings take energy away.

Gas expands: W > 0

The gas pushes the piston out and spends energy.

Gas compressed: W < 0

The piston pushes in and adds energy to the gas.

Step 7 of 13Practice · Work it out

A gas in a cylinder absorbs 800 J of heat while doing 300 J of work on a piston. By how many joules does its internal energy change?

Step 8 of 13Learn

Work on a pressure-volume diagram

When a gas expands against a piston at constant pressure P, the work it does is force × distance. Force = P × A (piston area) and A × distance = ΔV, so:

W = P × ΔV (at constant pressure)

Example: a gas at a constant 200 kPa (200,000 Pa) expands from 0.010 m³ to 0.015 m³. W = 200,000 × 0.005 = 1,000 J. Units check: Pa × m³ = (N/m²) × m³ = N·m = J. A frequent mistake is using liters and kilopascals without converting; conveniently, kPa × L = J, but mixing kPa with m³ or Pa with L is off by a factor of 1,000.

When pressure changes during the process, the work is the area under the curve on a pressure-volume (PV) diagram: volume on the horizontal axis, pressure on the vertical. Expansion (moving right) means positive work by the gas; compression (moving left) means negative work.

This picture explains why heat and work depend on the path. Two different routes from the same starting point to the same end point enclose different areas, so they involve different amounts of work, even though ΔU is the same. Since ΔU = Q − W, the heat must differ too.

For a cycle that returns to its starting state, ΔU = 0, and the net work equals the area enclosed by the loop. That's the principle of every heat engine: go around a loop in the right direction and the gas delivers net work each cycle.

Work done by a gas is the area under its path on a pressure-volume diagramVolume VPstate 1state 2area = work done by gas

Step 9 of 13Practice · Work it out

A gas expands at a constant pressure of 150 kPa from 2.0 L to 5.0 L. How much work does it do, in joules? (1 kPa × 1 L = 1 J)

Step 10 of 13Note

Step 11 of 13Practice · True or false

Because internal energy is a state function, the heat added to a gas must be the same for any process that takes it between the same two states.

Step 12 of 13Chart

Two paths between the same two states

ΔU is fixed by the start and end states, but the work (area under the path) and therefore the heat differ from path to path.

Two paths between the same two statesBar chart with 3 categories: ΔU: Path A 500 J, Path B 500 J; W by gas: Path A 300 J, Path B 600 J; Q in: Path A 800 J, Path B 1,100 J.0 J250 J500 J750 J1,000 J1,250 JΔUW by gasQ in500 J500 J300 J600 J800 J1,100 J
Illustrative numbers. In both cases Q − W = 500 J.
Two paths between the same two states
ItemPath APath B
ΔU500 J500 J
W by gas300 J600 J
Q in800 J1,100 J

Step 13 of 13Practice · Choose one

A gas is taken around a complete cycle and returns to its starting state. The loop on the PV diagram is traced clockwise and encloses an area equal to 400 J. What is true for one cycle?