Laws of Thermodynamics – Advanced University‑Level Notes
Prepared for MIT‑style Physics/Engineering courses
Goal of these notes –
- Derive each law from first principles (statistical mechanics, classical mechanics, or information theory).
- Present rigorous proofs (Clausius & Carnot, entropy inequalities, etc.).
- Discuss edge cases (negative temperatures, quantum coherence, non‑equilibrium steady states).
- Offer a challenging problem that tests both conceptual understanding and mathematical skill.
Notation –
• (Q, W) : heat and work (positive when supplied to the system)
• (U) : internal energy
• (S) : entropy
• (T) : temperature (defined only for equilibrium states)
• (dX) : differential of variable (X)
• (C_V, C_P) : heat capacities at constant (V, P)
• (k_B) : Boltzmann constant, (k_B=1.3806488\times10^{-23},\text{J/K})
• (\beta = 1/(k_B T)) – inverse temperature
• (\Omega(E)) – number of microstates at energy (E) (microcanonical ensemble)
1. Zeroth Law – Definition of Temperature
Statement
If two systems (A) and (B) are each in thermal equilibrium with a third system (C), then (A) and (B) are in thermal equilibrium with each other.
Derivation (First Principles)
- Thermal equilibrium means no net heat flow: (Q_{AB}=0).
- Suppose the probability of exchanging a small amount of energy (\delta E) between two systems depends only on the initial energies, not on how the systems were prepared (i.e., ergodicity).
- Define a function (f(E)) such that the probability of transferring (\delta E) is proportional to (f(E)).
- For systems (A) and (B) to be indifferent to exchanging energy, we must have (f(E_A)=f(E_B)).
- Thus a monotonic function of state can be used to label equilibrium: choose temperature (T) such that (f(E) = 1/T).
- The transitivity follows automatically: if (1/T_A=1/T_C) and (1/T_B=1/T_C), then (1/T_A=1/T_B).
Rigorous Formulation
The zeroth law introduces an equivalence relation on the set of equilibrium states. By the axiomatic approach of Carathéodory (see §3.2), one can formally prove the existence of a monotonic integrating factor (T) for the differential form (dQ_{\text{rev}}) (the reversible heat).
Edge Cases
- Negative Temperature – For systems with an upper bound on energy (e.g., spins), (dS/dE) can become negative, leading to (T<0). The zeroth law still applies but the ordering of temperatures becomes reversed.
- Non‑thermal Equilibrium – In systems with long‑range interactions or quantum coherence, the notion of a single temperature may fail; one must introduce multiple temperatures (e.g., effective temperatures in spin glasses).
2. First Law – Conservation of Energy
2.1 Differential Form (Closed System)
[ dU = \delta Q - \delta W ]
- (U) is a state function; (dU) is exact.
- (\delta Q), (\delta W) are inexact differentials (path dependent).
2.2 Mechanical Work
For a simple compressible system: (\delta W = P,dV).
For a rotating system: (\delta W = \Omega,dJ).
In general: (\delta W = \sum_i X_i, dY_i) where (X_i) are generalized forces and (Y_i) are generalized displacements.
2.3 Derivation from Hamiltonian Mechanics
Consider a Hamiltonian (H(\mathbf{q},\mathbf{p},\lambda(t))) where (\lambda) is an externally controlled parameter (e.g., volume). The total derivative of (H) along a trajectory is
[ \frac{dH}{dt} = \frac{\partial H}{\partial \lambda}\frac{d\lambda}{dt} + \sum_i\left(\frac{\partial H}{\partial q_i}\dot{q}_i + \frac{\partial H}{\partial p_i}\dot{p}_i\right) ]
Using Hamilton’s equations, the sum vanishes. Thus
[ \frac{dH}{dt} = \frac{\partial H}{\partial \lambda}\frac{d\lambda}{dt} ]
The term (\partial H/\partial \lambda) is the generalized force (X). Therefore
[ dU = \delta Q + X, d\lambda ]
Identifying (X, d\lambda) as (-\delta W) gives the first law.
2.4 Statistical‑Mechanical Interpretation
In the microcanonical ensemble, (U) is the average energy (\langle E \rangle). For a quasi‑static process, energy changes due to particle exchange (chemical work) or external parameter changes. The first law remains valid because the total Hamiltonian energy is conserved; any energy exchanged with surroundings is accounted for in (\delta Q) or (\delta W).
2.5 Edge Cases
- Quantum Heat Engines – When the system is a few‑level quantum device, (dU) can be written in terms of state