Topic 9.4

The first law of thermodynamics

Energy conservation for a gas: internal energy changes through heating and work in isothermal, isobaric, isochoric and adiabatic processes.

7 min read2 worked examples3 questions to check yourself

Big idea

The internal energy of a gas changes by exactly the energy transferred to it by heating plus the work done on it, which is conservation of energy applied to a thermal system.

Pressure–volume diagram: states A (V = 2 L, P = 150 kPa), B (V = 6 L, P = 150 kPa). Processes: A to B isobaric expansion (area under it shaded: the work done by the gas). The axes are numbered.V (L)P (kPa)246501001500ABexpansion

A gas expands at a constant pressure of 150 kPa150\ \text{kPa} from 2 L2\ \text{L} to 6 L6\ \text{L}. The shaded area under the path, (150 kPa)(4 L)=600 J(150\ \text{kPa})(4\ \text{L}) = 600\ \text{J}, is the work the gas does on the piston. The work done on the gas is therefore W=−600 JW = -600\ \text{J}.

Explanation

The internal energy UU of an ideal gas is the total kinetic energy of its particles, so it depends only on the amount of gas and its temperature; for a monatomic ideal gas U=32nRTU = \tfrac{3}{2}nRT. There are two ways to change it: heating, QQ, and work, WW, energy transferred by a force that moves a boundary such as a piston. The first law of thermodynamics says ΔU=Q+W\Delta U = Q + W. Here QQ is positive when energy enters the gas by heating, and WW is the work done on the gas, positive in a compression. Some problems instead use the work done by the gas, Wby=−WW_{\text{by}} = -W, and write ΔU=Q−Wby\Delta U = Q - W_{\text{by}}: the words "by the gas", or a minus sign before the work in the first law, mark that convention.

At constant pressure the work done on the gas is W=−P ΔVW = -P\,\Delta V. In a compression ΔV\Delta V is negative, so WW is positive and energy goes into the gas. In an expansion the gas does work on its surroundings, so WW is negative. On a PV diagram the size of the work is the area under the path, even when the pressure changes.

Four processes have names. Isochoric (constant volume): W=0W = 0, so ΔU=Q\Delta U = Q. Isobaric (constant pressure): W=−P ΔVW = -P\,\Delta V. Isothermal (constant temperature): ΔU=0\Delta U = 0, so Q=−WQ = -W; any energy that enters by heating leaves as work. Adiabatic (no heating): Q=0Q = 0, so ΔU=W\Delta U = W; compressing the gas warms it.

Because UU depends only on the state of the gas, ΔU\Delta U between two states is the same along every path, while QQ and WW depend on the path. In a cycle the gas returns to its starting state, so ΔU=0\Delta U = 0, and the net work is the area the cycle encloses; in a clockwise cycle the gas does net work on its surroundings.

Equations

  • ΔU=Q+W\Delta U = Q + W

    The change in a system's internal energy equals the energy transferred to it by heating plus the work done on it.

    ΔU\Delta U

    change in the internal energy of the gas (J)

    QQ

    energy transferred to the gas by heating (negative if it leaves) (J)

    WW

    work done on the gas (negative if the gas expands) (J)
    Use it when

    Any process on a gas: find the two quantities you can, and the first law gives the third.

    Not when

    Do not mix sign conventions. Some books write ΔU=Q−W\Delta U = Q - W with WW as the work done by the gas; the physics is the same, but decide which WW you mean and keep to it.

  • W=−P ΔVW = -P\,\Delta V

    At constant pressure, the work done on a gas is minus the pressure times the change in volume.

    WW

    work done on the gas (J)

    PP

    pressure of the gas (Pa)

    ΔV\Delta V

    change in volume, final minus initial (m³)
    Use it when

    The pressure is constant while the volume changes. With pascals and cubic metres the answer is in joules; kilopascals times litres also gives joules.

    Not when

    If the pressure changes during the process, use the area under the path on the PV diagram instead, with the same sign rule.

  • ΔU=32nR ΔT\Delta U = \tfrac{3}{2}nR\,\Delta T

    The internal energy of a monatomic ideal gas changes only when its temperature does, and in proportion to the temperature change.

    ΔU\Delta U

    change in internal energy (J)

    nn

    amount of gas (mol)

    RR

    ideal gas constant, $8.31$ (J/(mol·K))

    ΔT\Delta T

    change in temperature (K)
    Use it when

    A monatomic ideal gas (helium, neon, argon) changes temperature by any process. Since nRT=PVnRT = PV, it can also be written ΔU=32Δ(PV)\Delta U = \tfrac{3}{2}\Delta(PV).

    Not when

    The factor 32\tfrac{3}{2} is for monatomic gases only. For any ideal gas, though, it is still true that ΔU=0\Delta U = 0 when the temperature does not change.

Worked examples

  1. Heating a gas at constant pressure

    Step by step

    A cylinder closed by a freely sliding piston holds 0.150 mol0.150\ \text{mol} of helium, a monatomic ideal gas, at constant pressure. The gas is warmed from 20 °C20\ \text{°C} to 80 °C80\ \text{°C}. How much energy must enter the gas by heating? Use R=8.31 J/(mol⋅K)R = 8.31\ \text{J/(mol·K)}.

    0 of 4 steps
  2. A cycle run the other way

    Written as an exam answer

    A fixed amount of gas is taken around the triangular cycle A to B to C and back to A shown on the PV diagram. Determine the net work done on the gas in one cycle and the net energy transferred to the gas by heating. Is the gas acting as a heat engine?

    Pressure–volume diagram: states A (V = 1 L, P = 100 kPa), B (V = 3 L, P = 100 kPa), C (V = 1 L, P = 400 kPa). Processes: A to B isobaric expansion; B to C straight line; C to A isochoric. They form a closed cycle, drawn counter-clockwise (net work done on the gas); the enclosed area, the net work, is shaded. The axes are numbered.V (L)P (kPa)1231002003004000ABC
    1. Step 1:

      From A to B the gas expands by 2 L2\ \text{L} at 100 kPa100\ \text{kPa}, doing 200 J200\ \text{J} of work on its surroundings (1 kPa×1 L=1 J1\ \text{kPa} \times 1\ \text{L} = 1\ \text{J}): WAB=−200 JW_{AB} = -200\ \text{J}.

    2. Step 2:

      From B to C the gas is compressed; the work done on it is the trapezoid under the line: WBC=12(100+400) kPa×2 L=+500 JW_{BC} = \tfrac{1}{2}(100 + 400)\ \text{kPa} \times 2\ \text{L} = +500\ \text{J}. From C to A, WCA=0W_{CA} = 0.

    3. Step 3:

      Net work done on the gas: W=−200 J+500 J=+300 JW = -200\ \text{J} + 500\ \text{J} = +300\ \text{J}, the triangle's area, positive because the counterclockwise cycle compresses at higher pressures than it expands.

    4. Step 4:

      The gas returns to A, so ΔU=0\Delta U = 0 and Q=−W=−300 JQ = -W = -300\ \text{J}: a net 300 J300\ \text{J} leaves by heating. Work goes in and heating comes out, the reverse of an engine, as in a refrigerator.

    Answer

    The net work done on the gas is +300 J+300\ \text{J} per cycle and a net 300 J300\ \text{J} leaves it by heating, so it is not a heat engine

Common mistakes

  • Mistake

    A gas is compressed, so ΔV\Delta V is negative and the work done on it is negative.

    What is true

    Compressing a gas puts energy into it, so the work done on the gas is positive: W=−P ΔVW = -P\,\Delta V, and minus a negative is positive.

  • Mistake

    In an isothermal process the temperature does not change, so no energy is transferred by heating.

    What is true

    Constant temperature means ΔU=0\Delta U = 0, not Q=0Q = 0. A gas that expands isothermally does work, and that much energy must enter by heating. The process with Q=0Q = 0 is adiabatic, and in it the temperature does change.

  • Mistake

    A gas cannot get hotter unless it is heated.

    What is true

    Temperature follows the internal energy, which changes through heating and work together. A gas compressed quickly gets hotter with no heating at all, as a bicycle pump shows.

Check yourself

  1. 1.

    An ideal gas expands at constant temperature and does 250 J250\ \text{J} of work on a piston. What are ΔU\Delta U, WW and QQ for the gas?

  2. 2.

    A gas in a well-insulated cylinder is compressed quickly, and 400 J400\ \text{J} of work is done on it. What happens to its internal energy and its temperature?

  3. 3.

    A gas is taken from state X to state Y along two different paths on a PV diagram. The area under path 1 is larger than the area under path 2. Compare the changes in internal energy and the energy transferred by heating.

Try it

Three steps take a gas from A to C: the pressure is lowered at constant volume, the gas expands at constant pressure, then the pressure is lowered again. Change the pressure of the expansion. A and C are at the same temperature (PV=600 JPV = 600\ \text{J} at both), so ΔU=0\Delta U = 0 for every path, yet the work, and with it the heating, is different each time.

200 kPa
Pressure–volume diagram: states A (V = 2 L, P = 300 kPa), M (V = 2 L, P = 200 kPa), N (V = 8 L, P = 200 kPa), C (V = 8 L, P = 75 kPa). Processes: A to M isochoric; M to N isobaric expansion (area under it shaded: the work done by the gas); N to C isochoric. The axes are numbered.V (L)P (kPa)24681002003000AMNCwork by gas = 1200 J

Builds on

Practice 9.4 with feedback

Problem sets for Unit 9 grade themselves, and Raise hints at the next step instead of giving the answer.

Spotted a mistake in this lesson? Tell us and we will fix it.