The first law says energy is conserved, but it allows processes that never actually happen — heat flowing from a cold body to a hot one, or a single reservoir's heat being turned fully into work. The second law of thermodynamics rules these out by fixing the natural direction of thermal processes. It has two equivalent classic statements:
- Kelvin–Planck statement: it is impossible to build an engine that, working in a cycle, takes heat from a single reservoir and converts all of it into work. Some heat must always be rejected.
- Clausius statement: heat cannot flow on its own from a colder body to a hotter body; external work must be done to make this happen.
A heat engine is a device that converts heat into work in a repeating cycle. It absorbs heat $Q_1$ from a hot source (at $T_1$), converts part of it into useful work $W$, and rejects the remainder $Q_2$ to a cold sink (at $T_2$). By energy conservation $W=Q_1-Q_2$, and the efficiency is the fraction of input heat turned into work:
- $\eta=\frac{W}{Q_1}=\frac{Q_1-Q_2}{Q_1}=1-\frac{Q_2}{Q_1}$.
- Since $Q_2>0$ always (Kelvin–Planck), $\eta<1$: no engine can be 100% efficient.
The Carnot engine is an ideal, reversible engine and is the most efficient engine possible between two given temperatures. Its cycle has four reversible steps: isothermal expansion (heat $Q_1$ in at $T_1$), adiabatic expansion (cooling to $T_2$), isothermal compression (heat $Q_2$ out at $T_2$) and adiabatic compression (back to start). For the Carnot cycle the heat ratio equals the temperature ratio, so:
- $\eta_{Carnot}=1-\frac{T_2}{T_1}$, with temperatures in kelvin.
- Efficiency rises as the source gets hotter or the sink gets colder; $\eta=1$ only if $T_2=0\ \text{K}$, which is unattainable.
A refrigerator (or heat pump) is a heat engine run in reverse. Using external work $W$, it extracts heat $Q_2$ from a cold region (inside the fridge, at $T_2$) and dumps $Q_1=Q_2+W$ into the warmer room (at $T_1$). Its performance is measured by the coefficient of performance (COP), the heat removed per unit work:
- $\beta=\frac{Q_2}{W}=\frac{Q_2}{Q_1-Q_2}$.
- For an ideal (Carnot) refrigerator $\beta=\frac{T_2}{T_1-T_2}$.
- Unlike efficiency, the COP can be greater than 1 — that is why a refrigerator can move more heat than the work it consumes.