3.2 The first law: heat, work, and internal energy

The first law of thermodynamics is the conservation of energy, written to include heat. A system holds energy in its internal energy UU — the kinetic and potential energy of its molecules — and that store changes by two routes: heat added, and work done.

Statement

For a closed system (no mass crossing its boundary),

  dU  =  δQδW  =  TdSpdV.  \boxed{\;dU \;=\; \delta Q - \delta W \;=\; T\, dS - p\, dV.\;}

The internal energy rises by the heat added δQ=TdS\delta Q = T\,dS and falls by the work it does δW=pdV\delta W = p\,dV. The notation distinguishes two kinds of quantity. UU, SS, VV are state functions: dUdU, dSdS, dVdV are exact differentials, and their change around a cycle is zero. Heat and work are not state functions — there is no “heat content” of a body — so they are written δQ\delta Q and δW\delta W, path-dependent quantities that have meaning only as flows during a process. The first law’s content is that although QQ and WW each depend on the path, their difference QW=ΔUQ - W = \Delta U does not.

The four standard processes

For an ideal gas the equation of state and the first law together fix the energy budget of any process. Four idealised paths recur because along each one a different one of the four quantities (ΔU\Delta U, QQ, WW, or a state variable) is held fixed:

0.511.521234VpCumulativework W = ∫p dV0.811ΔU (ideal gas)0.000heat Q = ΔU + W0.811monatomic ideal gasU = (3/2) pV
Process:

Each path realises a different bargain among ΔU (internal energy), W (work done by the gas), and Q (heat in). Isothermal: ΔU = 0, so Q = W. Adiabatic: Q = 0, so ΔU = −W. Isobaric: W = p ΔV. Isochoric: W = 0, so Q = ΔU. The first law dQ = dU + dW is the universal balance behind all four.

Pick a process and traverse it on the ppVV diagram. The shaded area under the path is the work W=pdVW = \int p\,dV; the readouts accumulate WW, ΔU\Delta U, and QQ along the way. Because work is the area under the path, a cycle — a closed loop — does net work equal to the area it encloses, even though every state variable returns to its start. That is the principle of the heat engine, and the entry to the second law in 3.5.