Second Law of Thermodynamics and Entropy
Drop a hot stone into cold water and the water warms while the stone cools; you will wait forever to see the stone spontaneously reheat itself by chilling the water further. Shuffle a sorted deck and it disorders; keep shuffling and it never sorts. Let a gas fill a room and it never crowds back into one corner. Every one of these processes conserves energy perfectly — the first law is satisfied whichever direction they run. Yet only one direction ever happens. The second law of thermodynamics is the principle that supplies this arrow: it introduces an extensive state function, the entropy , and asserts that for any process in a thermally isolated system can only increase or stay the same. Historically the law was discovered through engines. Carnot's 1824 analysis of idealized reversible cycles, sharpened by Kelvin and Clausius, showed that the efficiency of a reversible engine depends only on the two reservoir temperatures — never on the working substance. Clausius distilled this into an inequality, , whose equality case for reversible cycles guarantees that is an exact differential. That defines entropy and hands the absolute thermodynamic temperature the role of integrating factor, converting the ragged, inexact heat differential into the perfectly exact . From entropy as a state function the entire structure of equilibrium thermodynamics unfolds. The fundamental relation identifies as derivatives of energy — or, inverted, of entropy. Maximizing total entropy at fixed energy, volume, and particle number yields the equilibrium conditions of equal temperatures, pressures, and chemical potentials between subsystems: the thermodynamic content of "reaching equilibrium." The free energies follow as Legendre transforms recasting the entropy-maximum principle into energy-minimum principles for systems coupled to reservoirs. Boltzmann gave the law its microscopic meaning: , where counts the microstates compatible with a macrostate. Because the number of microstates grows astronomically with available phase-space volume, an isolated system overwhelmingly likely drifts toward macrostates of larger . Entropy increase is then not an ironclad law of mechanics but a statement of overwhelming statistical probability for systems with degrees of freedom — reconciling time-symmetric microscopic dynamics with the macroscopic arrow of time.
- The second law states that the total entropy of an isolated system never decreases: , with equality only for reversible processes.
- Equivalent formulations — Clausius (heat does not spontaneously flow cold→hot), Kelvin–Planck (no cyclic engine fully converts heat to work), Carathéodory (adiabatic inaccessibility) — all imply the same entropy function.
- The Clausius inequality defines entropy , integrable because is an integrating factor for heat.
- Entropy distinguishes reversible from irreversible processes and sets the arrow of time: spontaneous changes increase total entropy and dissipate available work.
- Equilibrium maximizes entropy at fixed energy; the conjugate variables emerge as partial derivatives of .
- Statistically : entropy counts accessible microstates, and the law reflects the overwhelming probability of evolving toward larger phase-space volume.
- Key idea: There exists an extensive state function , the entropy, such that for any adiabatically isolated system , with equality iff the process is reversible. Equivalently , with acting as integrating factor for heat.
There exists an extensive state function , the entropy, such that for any adiabatically isolated system , with equality iff the process is reversible. Equivalently , with the absolute temperature acting as integrating factor for heat.
Where this lives today
The second law shapes the entire enterprise of energy conversion. A power plant with and cannot exceed the Carnot ceiling no matter the engineering; real plants reach because irreversibilities generate entropy. Refrigerators and heat pumps run the logic backward, and their ideal coefficient of performance explains why cooling near ambient is cheap and deep cryogenics is expensive. At the research frontier the law is being tested and extended at the smallest scales. In stochastic thermodynamics the entropy production of a single fluctuating trajectory — a colloidal bead, a stretched biomolecule — is a random quantity, and the Jarzynski equality and Crooks fluctuation theorem sharpen "" into exact statements about the probability of transient entropy decreases, which vanish exponentially in system size. Meanwhile the thermodynamic arrow of time is tied to cosmology: because the microscopic laws are time-symmetric, the observed arrow requires a low-entropy initial condition, and the smooth, low-gravitational-entropy early universe is thought to supply exactly that boundary condition.
The physical picture
Think of entropy as a count of how many microscopic arrangements look the same macroscopically. A shuffled deck has vastly more disordered orderings than sorted ones, so random shuffling overwhelmingly lands you in disorder. The second law is the macroscopic shadow of this counting: with particles the higher-entropy macrostates are so overwhelmingly more numerous that the reverse is simply never seen. The arrow of time is a probability statement wearing the costume of a law. The absolute temperature is the price, in energy, of one unit of entropy: at fixed volume . This single idea explains why heat flows hot-to-cold, and the figure below turns it into a number. Move an amount of heat from a hot body to a cold one: the hot body's entropy drops by , the cold body's rises by , and because the rise beats the drop — the universe's entropy goes up.
Reversibility is the boundary of the law. A process that proceeds through a continuous sequence of equilibrium states leaves the total entropy exactly unchanged and can be run backward. Real processes — free expansion, friction, finite-temperature heat flow — generate entropy and thereby pick out a preferred direction of time. The figure below contrasts the two: a reversible loop returns to zero, an irreversible one ratchets upward and never comes back down.
Entropy maximization is an optimization principle. At fixed total energy an isolated system partitions energy, volume, and particles among its parts so as to maximize ; the stationarity conditions are the familiar equalities of intensive variables, and the second-order conditions guarantee thermodynamic stability.
The core equations
The engine-based origin of the law is the Clausius inequality: sum the ratio heat-over-temperature around any cycle and it cannot be positive.
where: — heat absorbed by the system at a step (inexact); — temperature of the reservoir supplying it; — around a complete cycle. Equality holds for reversible cycles; strict inequality signals irreversibility. This single line contains the entire second law. For a reversible cycle the equality forces path-independence, so is the differential of a state function — the entropy.
where: — exact differential of entropy; — heat along a reversible path connecting the same endpoints. Because it is exact, is path-independent — the defining property of a state function. Comparing an irreversible path to a reversible return path yields the general inequality relating entropy change to actual heat.
where: — actual (possibly irreversible) heat absorbed; — temperature of the surroundings. Equality for reversible steps; for an adiabatic () process this reads . Applied to the isolated system-plus-surroundings, this becomes the law's headline statement.
where: — entropy of the whole isolated universe; the subsystem may freely decrease provided rises by more. With entropy in hand, the first and second laws combine into the fundamental relation of thermodynamics.
where: — internal energy; — pressure conjugate to ; — chemical potential conjugate to . Every equilibrium condition and Maxwell relation descends from this line. Inverting to the entropy representation exhibits as slopes of .
where: each intensive variable is an entropy derivative. That is positive is why heat flows toward lower temperature — energy migrates to where it buys the most entropy. Boltzmann's bridge makes entropy a microstate count, connecting thermodynamics to combinatorics.
where: (exact, SI 2019); — number of microstates consistent with the macrostate. The logarithm makes entropy additive: independent systems multiply their counts, and turns the product into a sum.
This is the quantitative heart of the second law, and the owned structural result of this article: we show that spontaneous heat flow across a finite temperature difference strictly increases total entropy, while an idealized reversible cycle changes it by exactly zero — pinning down where irreversibility lives. The strategy is to compute in two clean cases. First, direct heat conduction between two reservoirs, where the sign follows from . Second, a reversible engine cycle, where the reversible heats satisfy (Carnot's theorem) and the two entropy fluxes cancel to zero. Together they localize the entropy production to the irreversible step.
Step 1. Let heat pass from a hot reservoir at to a cold reservoir at (finite gap, ). The hot reservoir loses : its entropy change is . The cold reservoir gains : its change is .
Step 2. Add them for the isolated pair:
Why this is positive: since , we have , so the bracket is strictly positive — the process generates entropy. It is reversible only in the limit (infinitesimal gap).
Step 3. Now the reversible cycle. A reversible engine absorbs at and rejects at ; Carnot's theorem gives the signed relation (heat rejected, ). Sum the entropy exchanged with the reservoirs:
Why exactly zero: substitute and the terms cancel identically — no entropy is produced in a reversible loop.
Step 4. The contrast is the whole content of the law: the irreversible heat flow of Step 2 has , while the reversible loop of Step 3 has . Entropy production is the fingerprint of irreversibility, and its magnitude measures the lost opportunity to do work. Verified: for , , ; and symbolically — both in verify_aq-sm-second-law-entropy.py. Cf. Reif §5.5, Callen Ch. 4.
Go deeper · Derivation B · 1 minEntropy maximization gives thermal equilibrium: equal temperatures
We show that the abstract "maximize total entropy" principle produces the concrete, familiar equilibrium condition , and that the approach to it obeys the Clausius statement (heat flows hot→cold). Two subsystems exchange energy through a fixed, impermeable wall inside an isolated composite. Because the total energy is conserved, only one energy variable is free; maximizing the additive entropy over it and inserting the thermodynamic definition of temperature delivers the result, while the sign of the first-order change gives the direction of spontaneous heat flow.
Step 1. The composite is isolated: fixed, volumes and particle numbers fixed. Entropy is additive over weakly coupled parts:
Step 2. At the entropy maximum the derivative with respect to the free variable vanishes:
Why the minus sign: because total energy is fixed.
Step 3. Insert the definition :
Equal temperatures is the equilibrium condition — the thermodynamic meaning of "thermal contact settling down."
Step 4. Away from equilibrium, the entropy change for a small energy transfer is
If then , so : energy flows into the colder body. Heat flows hot→cold — the Clausius statement, derived. Verified: the second-order condition requires (thermal stability); the two-body mixing (AM > GM) is checked in the verify script. Cf. Callen Ch. 2, 8.
Limiting cases
The behavior of entropy under representative idealized processes:
| Case | Result | Meaning |
|---|---|---|
| Reversible process | Quasi-static, no dissipation; entropy merely transferred, total conserved, invertible. | |
| Irreversible process | Free expansion, friction, mixing, finite- heat flow; entropy generated internally. | |
| Isolated at equilibrium | Entropy stationary and maximal; perturbations only lower it — stability. | |
| Approach to | (const, for a perfect crystal) | Third law: entropy tends to a universal constant; is unattainable in finite steps. |
Worked examples
Example 1 — The entropy generated when hot and cold water mix (a real number).
Step 1. Bring of heat directly from a hot reservoir at to a cold one at (large reservoirs, so temperatures stay fixed).
Step 2. Hot reservoir entropy change: . Cold reservoir: .
Step 3. Total: . Positive, so the process is irreversible — exactly as observed; you never see heat crawl back uphill.
Step 4. The lost work is . Had a reversible engine handled the same , it could have delivered of work; direct conduction threw all of it away as generated entropy.
Example 2 — Free expansion of one mole of ideal gas.
Step 1. One mole of ideal gas doubles its volume by rushing into an evacuated chamber inside an insulated box: , with and , so and (ideal gas) .
Step 2. Entropy is a state function, so compute along a reversible isotherm between the same endpoints: .
Step 3. For and mol: . The surroundings are untouched (), so — irreversible.
Step 4. Cross-check microscopically: doubling the volume gives each of molecules twice as many accessible positions, so and — the counting picture and the thermodynamic integral agree exactly.
Going further
References. Fermi, Thermodynamics, Ch. 3–5 · Pathria & Beale, Statistical Mechanics, 3rd ed., Ch. 1 · Kardar, Statistical Physics of Particles, Ch. 1 · Reif, Fundamentals of Statistical and Thermal Physics, Ch. 3, 5 · Sethna, Statistical Mechanics, Ch. 5 · Callen, Thermodynamics and an Introduction to Thermostatistics, Ch. 1–4
Provenance. Equations and inequalities follow Pathria & Beale Ch. 1, Reif Ch. 3 & 5, Kardar Ch. 1, and Callen Ch. 1–4. A verifier should: (1) confirm the Carnot efficiency and the Clausius inequality; (2) recompute the irreversible heat-flow and the reversible-loop ; (3) recompute for one mole using , and ; (4) verify the entropy-maximum equilibrium condition and the stability requirement . Constants: (SI 2019 exact).
Builds on: First Law of Thermodynamics and Internal Energy · Work, Heat, and Inexact Differentials · Carnot Cycle and Thermodynamic Temperature · Reversible and Irreversible Processes · Zeroth Law of Thermodynamics and Empirical Temperature Leads to: Thermodynamic Potentials and the Fundamental Relation · Temperature, Pressure, and Chemical Potential as Entropy Derivatives · Helmholtz Free Energy, Enthalpy, and Gibbs Free Energy · Third Law of Thermodynamics · Maxwell Relations
Origins · 1 minWilliam Thomson and how this was discovered
William Thomson — ennobled as Lord Kelvin in 1892 — gave the Second Law one of its two canonical statements: no cyclic process can convert heat entirely into work with no other effect (the Kelvin–Planck statement). In 1848 he used Carnot's substance-independent efficiency to define an absolute thermodynamic temperature scale, the Kelvin scale, freeing temperature from any particular thermometric fluid. His 1852 paper on the "universal tendency in nature to the dissipation of mechanical energy" was among the first to state the arrow of time physically: usable energy degrades irreversibly even though the total is conserved. Clausius then named the degrading quantity entropy; Thomson supplied the engine-and-dissipation picture behind .
Does the second law mean everything must become more disordered?
Only the total entropy of an isolated system is forced to increase; local order can and does grow constantly. Snowflakes crystallize, planets and stars form, life organizes itself — all while raising the entropy of their surroundings by more than they lower their own. "Disorder" is also a loose word; entropy precisely counts accessible microstates, and a system can look more "ordered" while occupying more phase space (a stretched polymer, for instance). The rigorous statement is , not "everything decays."
If microscopic physics is time-reversible, where does the arrow of time come from?
This is the deep puzzle the second law forces on us. The equations of mechanics run equally well forwards and backwards, so nothing in them singles out a direction. The arrow is statistical: there are astronomically more microstates corresponding to "gas spread out" than to "gas in one corner," so an isolated system drifts overwhelmingly toward the more numerous macrostates. But this requires the system to start in an improbable low-entropy state — and explaining why the universe began that way is a genuinely open question, pushed back to cosmological initial conditions. The law describes the arrow; it does not fully explain why there is one.
Is the entropy increase absolutely certain, or just very likely?
For a macroscopic system it is so overwhelmingly likely that "certain" is a fair everyday description, but strictly it is statistical. The probability of a spontaneous entropy decrease is roughly , and for any macroscopic this is a number like — you would wait far longer than the age of the universe to see a mole of gas fluctuate back into one corner. For tiny systems (a few molecules, a colloidal bead) transient decreases are observed, and the Crooks and Jarzynski relations quantify exactly how often — turning "" into a precise probabilistic statement.
Why is the absolute temperature the integrating factor, and what fixes its scale?
The Clausius inequality becomes an equality for reversible cycles, which means has vanishing loop integral — it is exact, so is the integrating factor that turns inexact heat into the exact differential of entropy. What fixes is Carnot's theorem: the ratio of reversible heats between two reservoirs is the same for every working substance, and that universal ratio defines the temperature ratio . Setting the triple point of water (or, since 2019, fixing ) pins the scale. The absolute temperature is not just a thermometer reading; it is the substance-independent quantity that makes entropy exist.
What is the difference between the Clausius and Kelvin–Planck statements?
They sound different but are logically equivalent. Clausius: heat cannot spontaneously flow from a colder to a hotter body (no free refrigeration). Kelvin–Planck: no cyclic process can take heat from a single reservoir and convert it entirely into work (no perfect heat-to-work engine). You prove their equivalence by contradiction: a device violating one can be combined with an ordinary engine or refrigerator to violate the other. Both are subsumed by the entropy formulation , which is why that single inequality is taken as the master statement.
How can entropy be both "heat over temperature" and "log of microstate count"?
Because they are the same quantity seen from two levels. Clausius defined entropy macroscopically as the state function whose differential is — pure thermodynamics, no atoms. Boltzmann later showed this thermodynamic entropy equals , the (log of the) number of microstates realizing the macrostate. The bridge is checkable: for the free expansion of an ideal gas, the thermodynamic integral gives , and the microscopic count gives — identical. The macroscopic and the microscopic are two faces of one function.