The First Law of Thermodynamics

Difficulty: Easy (Introductory)Physics · Worked example

Energy can cross a system boundary in more than one way. For a closed ideal-gas model, heat can enter while the gas does work on its surroundings. The first law tells us how to account for the difference.

Choose the system and the signs

A closed system exchanges energy but not matter. For the gas alone, neglecting changes in bulk kinetic and gravitational energy, define Q as heat entering the gas and W as work done by the gas. [1] Then [2]:

\[\Delta U=Q-W\]

All three terms have units of joules. Heat leaving the gas has negative Q; work done on the gas has negative W. Some textbooks define work positive into the system instead, giving a plus sign. The physics is unchanged if the convention is used consistently.

Illustrative energy accounting
Q (J)W (J)ΔU (J)
300100200
0−100100
−500−50

Work and internal energy in the gas model

For a quasi-static piston model, the work by the gas along a path is the signed area under its pressure-volume curve. For an ideal gas with constant molar heat capacity at constant volume \(C_V\), [3]:

\[W=\int_{V_1}^{V_2}p\,dV,\qquad \Delta U=nC_V(T_2-T_1)\]

Internal energy change depends only on the endpoint temperatures in this model. Work and heat depend on how those endpoints are reached. Zero temperature change does not imply zero heat or work.

Worked example: constant volume

Take the virtual state 100 kPa, 10 L and 300 K, with the monatomic ideal-gas model \(C_V=3R/2\). Let temperature increase by a factor of 1.5 at constant volume. The pressure becomes 150 kPa, temperature 450 K, and work is zero. Since \(nR=p_1V_1/T_1=1000/300\,\mathrm{J/K}\):

\[\Delta U=\frac32\frac{1000}{300}(450-300)=750\,\mathrm J\]

Therefore Q = 750 J. Independent check: the change is \(3(p_2V_2-p_1V_1)/2\), which gives the same 750 J.

Explore virtually

In the Thermodynamics Simulator, choose monatomic and isochoric with the state and temperature ratio above. Compare the calculated work, heat and internal-energy change. Switch to isothermal with volume ratio 2 from the original starting state. Now internal energy remains unchanged and the calculated heat entering equals the work leaving. These values are simulated, not measured.

Check your understanding

A gas receives 200 J of heat and does 200 J of work. What is ΔU? Must the heat transfer be zero if the internal energy is unchanged?

Answer

ΔU = 0 J. Heat need not be zero; here the positive heat input exactly balances the work output. For this ideal gas with fixed amount, temperature is unchanged between endpoints.

Model limits

This model neglects mass flow, reactions, phase changes and changes in bulk kinetic or gravitational energy. It describes equilibrium endpoints and idealized paths, not rates of heat transfer or hardware behavior. Use only the simulation and paper calculations.

References

  1. OpenStax, University Physics Volume 2, §3.2 Work, Heat, and Internal Energy (2016). Reference page checked 27 November 2026.
  2. OpenStax, University Physics Volume 2, §3.3 First Law of Thermodynamics (2016). Reference page checked 27 November 2026.
  3. OpenStax, University Physics Volume 2, Chapter 3, Key Equations (2016). Reference page checked 27 November 2026.

Continue learning

Physics