Skip to content

The Laws of Thermodynamics

1.1 Zeroth Law and Temperature

Zeroth Law: If system AA is in thermal equilibrium with system BBAnd BB is in thermal equilibrium with system CCThen AA is in thermal equilibrium with CC.

This establishes temperature as a transitive equivalence relation: two systems are in thermal equilibrium if and only if they have the same temperature.

Definition. Temperature is the quantity that is equal for all systems in mutual thermal equilibrium. The ideal gas scale defines temperature via

PV=NkBTPV = Nk_BT

Where kB=1.381×1023k_B = 1.381 \times 10^{-23} J/K is Boltzmann”s constant.

1.2 First Law

First Law: The change in internal energy of a system equals the heat added minus the work done by the system:

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

For a reversible process: δW=PdV\delta W = P\,dV (PV work), giving

dU=δQPdVdU = \delta Q - P\,dV

Proposition 1.1. For an adiabatic process (δQ=0\delta Q = 0): dU=PdVdU = -P\,dV. For an isochoric process (dV=0dV = 0): dU=δQdU = \delta Q.

Definition. The heat capacity at constant volume and heat capacity at constant pressure are:

CV=(UT)V,CP=(HT)PC_V = \left(\frac{\partial U}{\partial T}\right)_V, \qquad C_P = \left(\frac{\partial H}{\partial T}\right)_P

Where H=U+PVH = U + PV is the enthalpy.

Proposition 1.2. For an ideal gas: CPCV=NkBC_P - C_V = Nk_B.

Proof. H=U+PV=U+NkBTH = U + PV = U + Nk_BT. Therefore CP=(H/T)P=(U/T)P+NkB=CV+NkBC_P = (\partial H/\partial T)_P = (\partial U/\partial T)_P + Nk_B = C_V + Nk_B (since UU depends only on TT for an ideal gas). \blacksquare

1.3 Second Law and Entropy

Second Law (Clausius statement): Heat cannot spontaneously flow from a colder body to a hotter body.

Second Law (Kelvin-Planck statement): No process can convert heat entirely into work in a cyclic manner without other effects.

These are equivalent: each implies the other.

Definition. The entropy change for a reversible process is

dS = \frac{\delta Q_{\mathrm{rev}}{T}}

Theorem 1.3 (Clausius Inequality). For any cyclic process:

δQT0\oint \frac{\delta Q}{T} \leq 0

With equality for reversible processes.

Proof. Consider a system undergoing a cycle interacting with nn heat reservoirs at temperatures T1,,TnT_1, \ldots, T_nExchanging heat QiQ_i with reservoir ii. The Clausius inequality follows from the impossibility of a perpetual motion machine of the second kind: a cycle that absorbs heat from a single reservoir and does work would violate the Kelvin-Planck statement. The detailed …/1-number-and-algebra/3_proof-and-logic uses auxiliary Carnot engines operating between pairs of reservoirs. \blacksquare

Corollary 1.4 (Principle of Increasing Entropy). For an isolated system, dS0dS \geq 0With equality for reversible processes.

1.4 Third Law

Third Law (Nernst): As T0+T \to 0^+The entropy of a perfect crystal approaches a constant (which can be taken as zero):

limT0S(T)=0\lim_{T \to 0} S(T) = 0

Consequences:

  1. It is impossible to reach absolute zero in a finite number of steps.
  2. The heat capacities CVC_V and CPC_P approach zero as T0T \to 0.

1.5 Thermodynamic Potentials

PotentialNatural VariablesDifferentialName
UUS,VS, VdU=TdSPdVdU = TdS - PdVInternal Energy
H=U+PVH = U + PVS,PS, PdH=TdS+VdPdH = TdS + VdPEnthalpy
F=UTSF = U - TST,VT, VdF=SdTPdVdF = -SdT - PdVHelmholtz Free Energy
G=HTSG = H - TST,PT, PdG=SdT+VdPdG = -SdT + VdPGibbs Free Energy

Theorem 1.5. At equilibrium for a system in contact with a heat bath at temperature TT: FF is minimised at constant T,VT, V; GG is minimised at constant T,PT, P.

Proof. For constant T,VT, V: dF=dUTdS=δQPdVTdSdF = dU - TdS = \delta Q - PdV - TdS. At equilibrium dSδQ/TdS \geq \delta Q/T (Clausius inequality), so dF0dF \leq 0. Hence FF decreases and is minimised at equilibrium. The argument for GG is analogous. \blacksquare

1.6 Maxwell Relations

From the exactness of dU=TdSPdVdU = TdS - PdV (and similarly for dHdH, dFdF, dGdG), the equality of mixed partial derivatives gives four Maxwell relations:

  1. (TV)S=(PS)V\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial P}{\partial S}\right)_V
  2. (TP)S=(VS)P\left(\frac{\partial T}{\partial P}\right)_S = \left(\frac{\partial V}{\partial S}\right)_P
  3. (SV)T=(PT)V\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V
  4. (SP)T=(VT)P\left(\frac{\partial S}{\partial P}\right)_T = -\left(\frac{\partial V}{\partial T}\right)_P
Worked Example: Deriving $(\partial U/\partial V)_T$ for an Ideal Gas

Solution. We use the thermodynamic identity dU=TdSPdVdU = TdS - PdV. Dividing by dVdV at constant TT:

(UV)T=T(SV)TP\left(\frac{\partial U}{\partial V}\right)_T = T\left(\frac{\partial S}{\partial V}\right)_T - P

By the third Maxwell relation: (S/V)T=(P/T)V(\partial S/\partial V)_T = (\partial P/\partial T)_V. For an ideal gas, P=NkBT/VP = Nk_BT/VSo (P/T)V=NkB/V(\partial P/\partial T)_V = Nk_B/V.

Therefore:

(UV)T=TNkBVNkBTV=0\left(\frac{\partial U}{\partial V}\right)_T = T \cdot \frac{Nk_B}{V} - \frac{Nk_BT}{V} = 0

This confirms that the internal energy of an ideal gas depends only on temperature. \blacksquare

1.7 Common Pitfalls

  • δQ\delta Q and δW\delta W are not exact differentials. Unlike dUdUThe heat and work are path-dependent. Only δQrev/T=dS\delta Q_{\mathrm{rev}/T = dS} is exact.
  • The second law prohibits certain processes but does not explain why they occur. Statistical mechanics provides the microscopic explanation: entropy measures the number of microstates, and the system evolves toward the macrostate with the most microstates.
  • Free energy minima determine equilibrium, not energy minima. At constant temperature, the system minimises FF (or GG), not UU.