Visual walkthrough — Spontaneity — second law; entropy ΔS
Step 1 — Draw the "arrangements" of a tiny world
WHAT. Before any formula, picture the smallest possible world: 4 boxes and 2 identical energy coins. A "microstate" is one specific way of dropping the coins into boxes. Count them.
WHY. Entropy is a counting idea. If we cannot count arrangements by hand first, the symbol later means nothing. We start this small so the whole set fits on one figure.
PICTURE. Figure s01 lays out every arrangement. Placing 2 identical coins in 4 boxes gives distinct microstates (the red grid). Now spread the coins over 6 boxes and the count jumps to (the violet grid) — more room means more ways.

- — the raw count of arrangements. Bigger = more ways for the world to "be" that state.
Step 2 — Why we take the logarithm:
WHAT. Glue two independent little worlds side by side. The combined count is the product (every arrangement of the left pairs with every arrangement of the right). But we want a bookkeeping number that adds. The logarithm is the one tool that turns "multiply" into "add".
WHY this tool and not another? We demand entropy be additive: two separate systems should have total entropy . Yet their microstates multiply. The only continuous function with is the logarithm. So the log is not a guess — it is forced by the additivity requirement.
PICTURE. Figure s02: left world () and right world () combine to microstates (the grid of pairings), yet — heights of the bars literally stack.

See Boltzmann distribution & microstates for how is computed for real systems.
Step 3 — The heat definition:
WHAT. Counting microstates works for toy boxes but is hopeless for a beaker of water. We need a way to measure a change in entropy from lab quantities: heat and temperature. The link is .
WHY divide heat by ? The same dollop of heat scrambles a cold, quiet system far more than a hot, already-jittery one — a whisper in a silent room versus a shout in a stadium. So the entropy gained is heat relative to how energetic the surroundings already are: hence . And we insist on — the heat along the reversible (gentlest, infinitely slow) path — because only that unique path makes a state function (depends on start & end alone).
PICTURE. Figure s03: the same heat arrow dropped into a cold system (big entropy splash, magenta) versus a hot system (small splash, orange). The splash size is .

Step 4 — Isothermal shortcut: pull out
WHAT. If temperature is held constant (isothermal), is the same for every slice, so it slides out of the sum.
WHY. A constant multiplier can leave an integral. This collapses the messy integral into one clean division — the workhorse formula for melting, boiling, and dissolving (all happen at fixed ).
PICTURE. Figure s04: many equal-width heat slices, each divided by the same , adding up to one bar of height .

- — pulled out because it never changes.
- — total reversible heat for the whole step.
Step 5 — Split the world: system + surroundings
WHAT. The second law speaks about the universe, so we cut the world into two pieces that share a wall: the system (our beaker) and the surroundings (everything else, a giant reservoir at fixed ).
WHY split? A system alone can get more ordered (water freezing → neat lattice, ). That looks like a second-law violation — until you notice the heat it dumped into the surroundings. To judge spontaneity honestly we must add both books.
PICTURE. Figure s05: a box (system) inside a large ring (surroundings). Heat crosses the wall. Whatever leaves the system, , enters the surroundings.

- — the wall conserves heat: what one loses, the other gains.
- at constant pressure (heat at fixed is enthalpy).
- The minus sign is the whole story: an exothermic system () makes .
Step 6 — Add the books: the second law appears
WHAT. Sum the two entropy changes. The reversible (ideal) path gives exactly zero; any real path leaks extra disorder, so the total can only be .
WHY and not ? Real processes take shortcuts (friction, finite temperature gaps, rushing). Every shortcut generates entropy inside the universe that never comes back. So only for the perfect reversible limit; for everything real, .
PICTURE. Figure s06: two stacked bars, and , combining. Green case (sum climbs = spontaneous), grey case (sum flat = equilibrium), red case (sum drops = forbidden).

Step 7 — Every case on one dial
WHAT. Walk all sign combinations of and so no scenario surprises you.
WHY. The contract: cover every quadrant. Spontaneity flips depending on which term wins, and temperature is the referee.
PICTURE. Figure s07: a 2×2 grid of with each cell's verdict.

| Spontaneous? | |||
|---|---|---|---|
| (exo) | both push up ⇒ | Always | |
| (endo) | both pull down ⇒ | Never | |
| (exo) | fight; wins at low | Only low | |
| (endo) | fight; wins at high | Only high |
Step 8 — The degenerate cases
WHAT. Check the edges: , exactly reversible (), and a perfect crystal.
WHY. Formulas must survive their limits, or they hide a bug.
PICTURE. Figure s08: a number line of . As , the term blows up in magnitude, so enthalpy utterly dominates near absolute zero. As we sit at equilibrium (ice ⇌ water at ). At a perfect crystal has , so .

- One arrangement only ⇒ zero entropy — this is the Third Law of Thermodynamics.
- Near , ⇒ the surroundings term overwhelms everything.
The one-picture summary

Figure s09 compresses the whole chain: count → log → heat/T → split world → add → verdict. Read it left to right and you have re-derived the second law.
Recall Feynman retelling of the walkthrough
Start with a toy world of a few boxes and a couple of energy coins, and just count the ways to arrange them — that count is . Glue two toy worlds together and the counts multiply, but we want a score that simply adds, so we take the logarithm: that gives . For a real beaker we can't count coins, so we measure entropy by heat instead: pour heat in gently () and divide by how hot it already is () — a whisper in a quiet room changes things more than a shout in a stadium. Now cut the universe into the beaker (system) and everything else (surroundings) sharing a wall; heat leaving one enters the other, which is why the surroundings' entropy is . Add the two books together and you get . If that total climbs, the process happens by itself; if it's flat, you're at equilibrium; if it would drop, it's forbidden. Temperature is the referee that decides which term wins — and that referee is exactly what Gibbs Free Energy ΔG packages up.
Connections
- Parent: 2.5.12 Spontaneity — second law; entropy ΔS (Hinglish)
- Boltzmann distribution & microstates · Gibbs Free Energy ΔG · Enthalpy ΔH
- First Law of Thermodynamics · Reversible vs Irreversible Processes · Third Law of Thermodynamics