doPhysics.in
All chapters

Work Done by a Gas

15 min read4 ideas6 checks2 figures to playBy Asheshanand Acharya
What you will learn 0 / 4
Work is p dv
Maths you need
Look around
Every breath is work

Take a deep breath and watch your chest rise. Your lungs swell by about half a litre, and the air around you must be pushed aside to make room. Pushing something through a distance is work. So every breath does work on the atmosphere, about fifteen times a minute, all your life.

you will find how much work your lungs do on the air around you in one breath.

A force through a distance

A gas pushes on every wall of its container. On a piston of area \(A\) the gas at pressure \(p\) exerts a force \(F = pA\). Let the piston move out by a small distance \(dx\), so slowly that \(p\) stays the same during the step. The gas does work \(dW = F\,dx = pA\,dx\). But \(A\,dx\) is the small volume \(dV\) swept by the piston. So \(dW = p\,dV\).

The work done by a gas on its pistonA gas in a cylinder pushes on a piston of area A with a force F equal to p times A. The piston moves out by a small distance dx, from the dashed line to its new place. The shaded slice between them is the volume swept, dV equal to A dx. The work done by the gas is F dx, which is p A dx, which is p dV. F dx area of the piston: A force of the gas: F = pA work: dW = F dx = pA dx swept volume: dV = A dx so dW = p dV
Fig 2.1The gas pushes the piston with force \(F = pA\). The piston moves out by \(dx\), from the dashed line, and sweeps the shaded volume \(dV = A\,dx\). The work done by the gas is \(F\,dx = p\,dV\).

For a larger change we add the small steps. The pressure may change as the volume changes, so we integrate. The piston's shape does not matter: any boundary that moves outward sweeps a volume, and the work is \(p\) times that volume. The result holds for a quasi-static process of any gas, ideal or not.

RememberWork done by a gas
\[ W = \int_{V_1}^{V_2} p\,dV, \qquad W = p\,(V_2 - V_1)\ \text{at constant pressure} \]
Holds whena quasi-static process, so that the gas has one pressure \(p\) at every stage.
Symbols\(W\) work done by the gas, \(p\) pressure of the gas, \(V_1\) and \(V_2\) initial and final volumes
Units\(W\) in J, \(p\) in Pa, \(V\) in m³

The sign of \(W\) follows the sign of \(dV\). When the gas expands, \(dV\) is positive and the gas does positive work on its surroundings. When the gas is compressed, \(dV\) is negative and \(W\) is negative: the surroundings do work on the gas. The same rule for heat is fixed here too, once for the whole chapter.

definition 4.2
The sign convention

In this book \(Q\) is the heat given to the gas: positive when heat flows in, negative when heat flows out. \(W\) is the work done by the gas: positive when the gas expands, negative when it is compressed.

Now the breath. The lungs push back the atmosphere at a steady \(1.013 \times 10^5\,\text{Pa}\) while they swell by \(0.5\,\text{L} = 5 \times 10^{-4}\,\text{m}^3\). The work done on the air is \(p\,\Delta V = 1.013 \times 10^5 \times 5 \times 10^{-4} = 51\,\text{J}\). That is about the work of lifting a \(5\,\text{kg}\) bag of rice through one metre, in every breath.

ExampleA piston pushed out

A gas at \(1.5 \times 10^5\,\text{Pa}\) pushes a piston of area \(0.02\,\text{m}^2\) out by \(5\,\text{cm}\), with the pressure held steady. Find the force on the piston, the work done by the gas and the volume swept.

Try it on paper first. The solution is one tap away when you are ready.
Checkpoint · numericUnanswered

A gas is compressed at a steady \(200\,\text{kPa}\) from \(6\,\text{L}\) to \(4\,\text{L}\). What work does the gas do, in joules, with its sign?

J± 2 %
Work as area
Maths you need

Work is an area

Draw the path of a quasi-static process on the \(p\)-\(V\) diagram. Over a small step \(dV\), the strip under the path has height \(p\) and width \(dV\). Its area is \(p\,dV\), the work of that step. Adding the strips gives the whole area under the path. So the work done by a gas is the area between its path and the \(V\) axis.

principle 4.1
Work as an area

The work done by a gas in a quasi-static process is the area under its path on the \(p\)-\(V\) diagram. It is positive when the path runs towards larger volume and negative when it runs towards smaller volume.

A handy unit makes the areas quick to read. With pressure in kPa and volume in litres, one square of \(1\,\text{kPa} \times 1\,\text{L}\) is \(10^3\,\text{Pa} \times 10^{-3}\,\text{m}^3 = 1\,\text{J}\). Take a gas going along a straight line from \(2\,\text{L}\) at \(200\,\text{kPa}\) to \(6\,\text{L}\) at \(100\,\text{kPa}\). The area under the line is a trapezium, \(\tfrac12(200 + 100) \times 4 = 600\,\text{kPa L}\). So the gas does \(600\,\text{J}\).

Checkpoint · numericUnanswered

A gas expands from \(1\,\text{L}\) to \(5\,\text{L}\) while its pressure falls linearly from \(300\,\text{kPa}\) to \(100\,\text{kPa}\). How much work does it do, in joules?

J± 2 %
Work depends on the path
Maths you need
Predict firstLocked

A gas goes from state 1 (\(10\,\text{L}\), \(300\,\text{kPa}\)) to state 2 (\(30\,\text{L}\), \(150\,\text{kPa}\)). Path A expands first and then lowers the pressure; path B lowers the pressure first and then expands. Which path does more work?

Two states, several paths, different workA pressure-volume graph with state 1 at 10 litres and 300 kilopascals and state 2 at 30 litres and 150 kilopascals. Chips choose the route and play draws it, while the area under the route fills and a readout keeps the running work, using 1 kilopascal litre equals 1 joule. Path A expands at 300 kilopascals and then cools at constant volume: 6000 joules. Path B cools first and then expands at 150 kilopascals: 3000 joules. The straight line gives 4500 joules. The cycle goes out along path A and back along path B: the return takes back 3000 joules, the darker shading under the lower line, and the net work, +3000 joules, is the area enclosed.10203050100150200250300OV (L)p (kPa) 1 2 path A: W = 0 J

Play each chip in the figure above. Path A does \(6000\,\text{J}\): its whole expansion happens at \(300\,\text{kPa}\), and its drop in pressure at \(30\,\text{L}\) does no work. Path B does \(3000\,\text{J}\). The straight line between the states does \(\tfrac12(300 + 150) \times 20 = 4500\,\text{J}\). Three paths, one start, one end, three amounts of work.

This is a new kind of quantity. The temperature at state 2 is fixed by state 2 alone; it does not care how the gas got there. The work done on the way is not like that. It belongs to the journey, not to the destination. So we never speak of "the work in a gas", only of the work done in a process.

Common mistake

The integral \(\int p\,dV\) uses the pressure of the gas, which needs a quasi-static path. A gas that expands suddenly against a steady outside pressure \(p_\text{ext}\) still does the work \(p_\text{ext}\,\Delta V\) on its surroundings. But that is not an area under any path of the gas, because the gas had no single pressure on the way.

Cycles and net work
Maths you need

Going round a cycle

A process that returns a gas to its starting state is a cyclic process, or cycle. Choose the cycle chip in the figure above. The gas goes out along path A and does \(6000\,\text{J}\). It comes back along path B, now compressed at \(150\,\text{kPa}\), and \(3000\,\text{J}\) of work is done on it. The net work is \(6000 - 3000 = 3000\,\text{J}\). That is exactly the area enclosed by the loop, \(150 \times 20\).

principle 4.2
Net work in a cycle

The net work done by a gas in a cycle is the area enclosed by the cycle on the \(p\)-\(V\) diagram. It is positive when the cycle runs clockwise and negative when it runs anticlockwise.

Why clockwise? In a clockwise loop the gas expands along the upper part, at high pressure, and is compressed along the lower part, at low pressure. It gives out more work than it takes back. An engine runs this way. In an anticlockwise loop the gas expands at low pressure and is compressed at high pressure, so net work is done on it. A refrigerator runs this way. The next chapter builds both.

CheckpointUnanswered

A gas goes round a triangle on the \(p\)-\(V\) diagram: from \((2\,\text{L}, 100\,\text{kPa})\) to \((6\,\text{L}, 100\,\text{kPa})\), up to \((6\,\text{L}, 300\,\text{kPa})\), and straight back to the start. What is the net work done by the gas?

Other diagrams, read as p-V

A process is often drawn on a graph of \(V\) against \(T\), or \(p\) against \(T\). Read it by asking what stays constant, then redraw it on \(p\)-\(V\). On a \(V\)-\(T\) graph, a straight line through the origin means \(V/T\) is constant. By \(pV = nRT\), the pressure is then constant: an isobar, a horizontal line on \(p\)-\(V\). On a \(p\)-\(T\) graph, a line through the origin means the volume is constant. That is a vertical line on \(p\)-\(V\), and the gas does no work.

One process on three diagramsThree small graphs side by side: pressure against volume, volume against temperature, and pressure against temperature, for one mole of ideal gas going from state A to state B. Chip isobaric: a horizontal line on p-V, a line through the origin on V-T, a horizontal line on p-T. Chip isochoric: a vertical line on p-V, a horizontal line on V-T, a line through the origin on p-T. Chip isothermal: a falling hyperbola on p-V, a vertical line on V-T and a vertical line on p-T.OVp OTV OTp A B A B A B
Fig 2.2One process from A to B drawn three ways: \(p\)-\(V\), \(V\)-\(T\) and \(p\)-\(T\). Choose a chip. Constant pressure is a line through the origin on \(V\)-\(T\). Constant volume is a line through the origin on \(p\)-\(T\). Constant temperature is a vertical line on both \(V\)-\(T\) and \(p\)-\(T\).

At constant pressure, \(p\,\Delta V = nR\,\Delta T\), so the work can be read straight from a \(V\)-\(T\) graph. One mole warmed from \(300\,\text{K}\) to \(400\,\text{K}\) along a line through the origin does \(W = nR\,\Delta T = 1 \times 8.31 \times 100 = 831\,\text{J}\). The pressure itself does not even need to be known.

CheckpointUnanswered

On a \(p\)-\(T\) graph, a fixed amount of gas goes from A to B along a straight line through the origin. How much work does it do?

Checkpoint · numericUnanswered

On a \(V\)-\(T\) graph, a gas goes from \(3\,\text{L}\) to \(6\,\text{L}\) along a straight line through the origin. Its pressure is \(100\,\text{kPa}\). How much work does it do, in joules?

J± 2 %
Exam traps
  1. Taking the work in a compression as positive.
    \(W\) is the work done by the gas. The volume falls, so \(W\) is negative; the surroundings do positive work on the gas.
  2. Thinking the work depends only on the two end states.
    Work is the area under the path. Two paths between the same states can enclose very different areas.
  3. Finding work as an area under a \(V\)-\(T\) or \(p\)-\(T\) graph.
    Only an area on a \(p\)-\(V\) diagram is work. Redraw the process on \(p\)-\(V\) first.