Technopedia

The technologist’s encyclopedia

First Law and Internal Energy

The first law is the conservation of energy applied to thermodynamic systems. It is relevant whenever you need to account for energy transfer between a system and its surroundings: engines, batteries, chemical reactions, phase changes, and material processing. It tells you how much energy moves, but not which direction (that is the second law).

Authoritative sources

Statement

For a closed system (no mass transfer):

ΔU=Q−W\Delta U = Q - W

where UU is internal energy, QQ is heat added to the system, and WW is work done by the system. Equivalently, in differential form:

dU=δQ−δWdU = \delta Q - \delta W
Details

Sign convention. The convention above (engineering / physics) takes W>0W > 0 when the system does work on the surroundings. IUPAC (chemistry) uses the opposite sign: dU=δQ+δWdU = \delta Q + \delta W where WW is work done on the system. Always check the convention.

State function vs. path function. UU is a state function: ΔU\Delta U depends only on initial and final states. QQ and WW are path functions: their values depend on the process. The inexact differentials δQ\delta Q, δW\delta W (not dQdQ, dWdW) reflect this.

Perpetual motion of the first kind. A device that produces work with no energy input (no heat, no mass flow) would violate the first law. The first law rules out such a device but does not rule out a 100%-efficient heat engine (that is the second law).

Heat

Heat QQ is energy transferred between a system and its surroundings solely due to a temperature difference. It is a path function (not a state function), which is why it appears as the inexact differential δQ\delta Q. This distinguishes it from internal energy UU (a state function) and from work WW (another path function, but transferred by means other than a temperature difference).

Work terms

The most common work terms for a simple compressible system:

δW=P dV(boundary work)\delta W = P\,dV \quad \text{(boundary work)}

Other work terms (shaft work, electrical work, surface work) are added as needed:

δW=P dV+δWother\delta W = P\,dV + \delta W_{\text{other}}
Details

P dVP\,dV work. For a quasi-static (reversible) expansion, the system pressure equals the external pressure at every instant, and the work is the area under the PP–VV curve:

W=∫ViVfP dVW = \int_{V_i}^{V_f} P\,dV

For an irreversible (free) expansion into vacuum, Pext=0P_{\text{ext}} = 0 and W=0W = 0, even though ΔV≠0\Delta V \neq 0.

Other work. Electrical work in a battery: δWelec=−E dQcharge\delta W_{\text{elec}} = -\mathcal{E}\,dQ_{\text{charge}}. Shaft work in a turbine: δWshaft=τ dθ\delta W_{\text{shaft}} = \tau\,d\theta. These are not P dVP\,dV but still count as work in the first law.

Internal energy

UU is the total microscopic energy of the system: kinetic energy of molecular motion (translation, rotation, vibration) plus potential energy of intermolecular interactions.

U=U(T,V,N,…)U = U(T, V, N, \ldots)

For an ideal gas: U=U(T)U = U(T) only (independent of volume).

Details

Ideal gas. For a monatomic ideal gas, U=32NkBTU = \tfrac{3}{2}Nk_B T. For a diatomic ideal gas (at moderate TT), U=52NkBTU = \tfrac{5}{2}Nk_B T. The key point: UU depends only on TT, not on VV or PP.

Real substances. For a real gas or a condensed phase, U=U(T,V)U = U(T, V). The volume dependence comes from intermolecular potential energy. The equation of state (e.g., van der Waals) connects P,V,TP, V, T and allows you to compute (∂U/∂V)T(\partial U/\partial V)_T from thermodynamic identities.

Reference state. Only ΔU\Delta U is physically meaningful. You choose a reference (e.g., U=0U = 0 for an ideal gas at 0 K) and work with differences.

Special processes (closed, P dVP\,dV only)

Heat capacities used below: CV=(∂U/∂T)VC_V = (\partial U/\partial T)_V (at constant volume) and CP=(∂H/∂T)PC_P = (\partial H/\partial T)_P (at constant pressure). For an ideal gas, CP−CV=nRC_P - C_V = nR.

ProcessConstraintδ Qδ WΔ U (ideal gas)
IsobaricP = constnCPΔ TPΔ VnCVΔ T
IsochoricV = constΔ U0nCVΔ T
IsothermalT = constWnRTln(Vf/Vi)0
Adiabatic (reversible)Q = 00−Δ UnCVΔ T
Details

Adiabatic relation. For a reversible adiabatic process of an ideal gas:

TVγ−1=const,PVγ=const,P1−γTγ=constTV^{\gamma - 1} = \text{const}, \quad PV^{\gamma} = \text{const}, \quad P^{1-\gamma}T^{\gamma} = \text{const}

where γ=CP/CV\gamma = C_P/C_V. For a monatomic gas γ=5/3\gamma = 5/3; for diatomic γ=7/5\gamma = 7/5.

Isothermal. Since ΔU=0\Delta U = 0 for an ideal gas at constant TT, all heat input becomes work: Q=W=nRTln⁡(Vf/Vi)Q = W = nRT\ln(V_f/V_i). This is the basis of the Carnot isothermal steps.

Open systems (control volume)

For a control volume with steady mass flow, the first law becomes the steady-flow energy equation:

Q˙−W˙=m˙[(h+v22+gz)out−(h+v22+gz)in]\dot{Q} - \dot{W} = \dot{m}\left[\left(h + \tfrac{v^2}{2} + gz\right)_{\text{out}} - \left(h + \tfrac{v^2}{2} + gz\right)_{\text{in}}\right]

where h=u+Pvh = u + Pv is specific enthalpy. See Thermodynamic Potentials and Equilibrium for the definition of enthalpy.

Details

This equation is the workhorse of turbomachinery (turbines, compressors, nozzles) and heat exchangers. When kinetic and potential energy changes are negligible (common in heat exchangers), it reduces to Q˙−W˙=m˙(hout−hin)\dot{Q} - \dot{W} = \dot{m}(h_{\text{out}} - h_{\text{in}}).

Example problem

A 2-mol sample of a monatomic ideal gas at 300 K and 1 atm expands reversibly and isothermally to a volume three times its initial volume. Find QQ, WW, and ΔU\Delta U.

Solution

Isothermal ideal gas: ΔU=0\Delta U = 0 (internal energy depends only on TT).

Work:

W=nRTln⁡VfVi=2×8.314×300×ln⁡3≈5480 JW = nRT\ln\frac{V_f}{V_i} = 2 \times 8.314 \times 300 \times \ln 3 \approx 5480 \text{ J}

First law: ΔU=Q−W⇒Q=W≈5480 J\Delta U = Q - W \Rightarrow Q = W \approx 5480 \text{ J}.

The gas absorbs 5.48 kJ of heat and does 5.48 kJ of work on the surroundings; its internal energy is unchanged.