Alex Oberneyer

Interactive essays / 03

Why does change
have a direction?

Count microscopic possibilities, scale up a rare fluctuation, and follow heat between two bodies. See what entropy explains—and which assumptions give time its arrow.

ENTROPY & IRREVERSIBILITY3 SMALL EXPERIMENTSBASIC PROBABILITY · MATH EXPLAINED INSIDE

A warm room does not gather its heat back into your coffee.
The energy is still there. Something else has changed.

01 / Microstates & macrostates

More ways to look the same.

Imagine twelve labeled particles, each equally likely to be in the left or right half of a box. One precise left/right assignment is a microstate in this toy model. The number on the left is a macrostate: a coarser description that ignores which particles are where.

“All twelve on the left” names one assignment. “Six on each side” can happen in 924 assignments. An exact six-and-six arrangement is no more likely than any other exact arrangement. The category is more likely because it contains more possibilities.

Experiment 01

Count the ways a macrostate can happen.

Choose how many particles are on the left. The sketch shows one representative arrangement, not a simulated trajectory.

6
012

6 particles left · 6 particles right

924
LEFT/RIGHT ASSIGNMENTS
22.56%Probability of this count
6.829S / kB = ln Ω

924 of 4,096 equally likely assignments have 6 particles on the left.

How many arrangements give each left-side count?For twelve particles, the number of left-right arrangements peaks at six on each side, with 924 arrangements. All twelve on one specified side has just one arrangement.Number of arrangements · peak 9240123456789101112Particles on the left
All 13 possible counts. The selected bar is dark green; the selected count and its multiplicity are also stated above.

Each particle independently has a 50% chance of occupying either half at equilibrium. This counts left/right assignments only; it omits positions within each half, momenta, and interactions.

Ω(k) = 12! / [k! (12 − k)!]
P(k) = Ω(k) / 2¹²   ·   S(k) / kB = ln Ω(k)Ω (omega) is multiplicity, k is the count on the left, and ! denotes factorial. ln is the natural logarithm. kB is Boltzmann’s constant, with units J/K. The displayed ratio S/kB is dimensionless.

The entropy shown is a Boltzmann entropy for this coarse occupancy model, with an arbitrary constant omitted. It is not the full thermodynamic entropy of a real gas.

Exactly six on each side occurs only 22.56% of the time. Counts from four through eight together occupy 85.4% of the assignments. “Near balance” includes many macrostates; it does not require a perfectly equal split.

02 / Small to large

Scale makes reversal rare.

With twelve particles, all-left is unusual but conceivable. With a macroscopic number, the same fractional concentration is fantastically unlikely under the equilibrium model.

For N independent particles, all on the specified left side has probability (1/2)N. Each extra particle halves that probability. The scale changes what you should expect to see.

Experiment 02

Make the system bigger.

The event is all particles in the specified left half, sampled from the equilibrium distribution.

100
121000
P(all left) = 10−30.10
LOGARITHMIC PROBABILITY SCALE

About 7.889 × 10^−31 per independent equilibrium draw.

All on either side is twice as probable as all on the specified left side. These are probabilities per equilibrium draw, not return times: a time estimate also needs a dynamical model and its correlations.

Counting explains why concentrated states occupy so little of the available state space. It does not, by itself, prove how a system will move through that space or how fast it will mix.

The usual macroscopic arrow combines a low-entropy starting condition with dynamics that carry typical states into much larger macrostate regions. Small fluctuations can go the other way. With many particles, a large spontaneous reversal becomes overwhelmingly unlikely.

03 / Energy & entropy

The energy balances.
The entropy grows.

A hot object cools while a cold object warms. Energy is conserved, but its ability to drive useful changes can diminish as the temperature difference disappears.

Take two bodies with equal, constant heat capacity C = 100 J/K. The cold body starts at 300 K. The pair is isolated: no heat crosses its outer boundary and no work is done. Each body is treated as internally equilibrated at every displayed stage.

Experiment 03

Keep the energy. Change its distribution.

Choose the initial hot temperature, then move heat toward equilibrium. Progress is a fraction of the final heat transfer, not elapsed time.

400 K
320 K600 K
0%
0%100%
0.000
TOTAL ENTROPY CHANGE · J/K

No heat transferred yet. Total energy is unchanged.

400.0 KInitially hot body
300.0 KInitially cold body
Change from the initial state
Hot body ΔS0.000 J/K
Cold body ΔS0.000 J/K
Heat moved hot → cold0 J
Total energy change0 J

The hot body loses entropy; the cold body gains more. The second law applies to the isolated pair. A subsystem’s entropy can decrease when it exchanges heat with its surroundings.

ΔStotal = C ln(Thot / Thot,0) + C ln(Tcold / Tcold,0)T denotes absolute temperature in kelvin; subscript 0 denotes the starting value. For constant heat capacity, integrating dS = C dT/T along a reversible reference path gives each body’s state-function change.

At the default temperatures, both bodies end at 350 K. The hot body loses 13.353 J/K, the cold gains 15.415 J/K, and the pair gains 2.062 J/K. Moving heat back to restore the original temperatures requires a change elsewhere, such as work input and heat rejection.

This is thermodynamic irreversibility: you cannot restore both the system and its surroundings to their starting states after the process. It does not mean that energy was destroyed.

04 / Reversibility & limits

Where does the arrow come from?

Many microscopic equations are reversible. Reversing all the relevant motions with sufficient precision would reverse an idealized trajectory. That extraordinarily special preparation is different from letting a warm room spontaneously reassemble a temperature gradient.

Coarse descriptions discard microscopic detail. Their entropy can grow even when the underlying reversible dynamics preserve fine-grained information. Entropy increase is not a claim that the microscopic laws literally forget the past.

Tempting shortcutMore useful distinction
Entropy means messinessSpecify the macrostate, constraints, and how many microstates fit it. Visual tidiness is not a universal entropy measure.
Entropy must rise everywhereApply the balance to the chosen system and its surroundings. A refrigerator cools locally while generating entropy overall.
Every step raises entropyFinite systems fluctuate. The macroscopic tendency is statistical, not a ban on every small downward step.
Information entropy is heat entropyThey share probability mathematics, but thermodynamic interpretation requires physical states and constraints.

Shannon entropy measures uncertainty in a probability distribution. With 4,096 equally likely left/right assignments, the microstate distribution has 12 bits of uncertainty. That is a different quantity from ln Ω(k), the selected macrostate’s multiplicity measure above.

For equally likely physical microstates, the statistical expression S = kB ln Ω connects counting to thermodynamics. More generally, −kB Σ p ln p has the same form as Shannon entropy after changing units. The probability model and the physical meaning still have to be specified.

Use this perspective for heat flow, mixing, and the limits of engines. For biology, cities, or software, define a measurable state space before treating “entropy” as anything more than an analogy.

05 / Retrieve & transfer

What exactly are you counting?

Keep one idea

A macrostate is likely when many microscopic possibilities fit inside it. The arrow of time also needs a story about the past and the dynamics.

Try these without moving the controls first.

1. Is one particular six-and-six arrangement more likely than all-left?

No. Under the independent 50/50 model, each exact assignment has probability 1/4,096. The macrostate with six on each side is more likely because it includes 924 exact assignments.

2. Can the hot body’s entropy decrease without breaking the second law?

Yes. It transfers heat to the cold body. The hot body loses entropy, but the cold body gains more, so the isolated pair’s total entropy increases.

3. Transfer: a partition makes the left compartment twice as large. Can you keep P(all left) = 2⁻ᴺ?

No. In an ideal equilibrium model each particle now has left probability 2/3, so P(all left) = (2/3)N. The equal-volume assumption failed; the most likely count also shifts toward two-thirds on the left.

4. Does a tiny equilibrium probability tell you how long to wait?

Not by itself. You need a model of motion, a time scale, and correlations between configurations. Treating every microscopic instant as an independent fresh draw invents a dynamical assumption.

Sources & scope

Follow the ideas back.

The occupancy example is a finite combinatorial model with equally likely independent left/right assignments. The thermal example uses isolated bodies with constant heat capacities and no work, phase changes, or internal gradients. Neither simulation derives physical dynamics from microstate counting.

  1. MIT Unified Engineering · A Statistical Definition of Entropy
    Multiplicity, the logarithm, and Boltzmann’s constant.
  2. MIT Unified Engineering · Irreversibility, Entropy Changes, and Lost Work
    State-function changes, reversible reference paths, and entropy generation.
  3. MIT 8.333 · Statistical Mechanics I
    Microscopic dynamics, statistical equilibrium, and the connection between statistical mechanics and thermodynamics.

These are original teaching examples, not empirical datasets. This page makes no network requests and stores no answers. Its experiments work offline once downloaded; navigation and source links need the corresponding files or a connection.