Why time has a direction.

An egg never unbreaks, though the laws that move it run the same both ways. Counting arrangements explains why, up to one open question.

  • Physics
  • 7 min read
  • 1 simulation

If the laws run the same both ways, why does time only go one way?

An egg rolls off the counter and breaks. Nobody has ever watched the pieces jump back up and join. That feels obvious, until you remember that the laws moving every atom in the egg work just as well backwards.

So what picks the direction? Not the laws. It comes down to counting, and to one odd fact about how things started.

The figure beside the text changes as you scroll, and you can grab it whenever you like. Add particles, open and close the door, press reverse.

Four particles

Start small. Shrink the egg to four particles in a box. They are points that bounce off the walls and push each other away when they come close. All four begin in the left half, behind a door.

Open the door. They wander through, and the count on the left goes up and down. Four, three, two, back to four. Every so often all four are on the left again, just like the start, and nothing forbids it. With four particles that happens about one moment in sixteen.

Add particles with the slider. Close the door to freeze the split.

Figure. A box twice as wide as it is tall, split by a partition with a door. Four particles start in the left half. When the door opens they wander through, and a line chart of the count on the left bounces between zero and four, touching four again from time to time.

Forty particles

Now add more. Same start, same door, same rules, and only the number changes, from four to forty.

The count falls toward twenty and stays there, give or take three. Wait as long as you like. All forty on the left does not come back.

The rules did not change. With forty particles, all on the left is about one moment in a trillion.

Keep adding particles. The dashed line at the top is all of them on the left.

Figure. The same box with forty particles, all starting on the left. They spread out, and the count on the left settles near twenty and never reaches the dashed line at forty.

Count the ways

So why twenty? Because there are more ways to be there.

Take a split of the forty, say twenty and twenty, and count the arrangements that look like it from outside. Each bar on the stage is one split. Its height is that count on a log scale, since the real numbers would not fit on a page.

Exactly one arrangement puts all forty on the left. 137,846,528,820 put twenty on each side. A gas that wanders among arrangements spends its time where the arrangements are.

S=kln⁡WS = k \ln W

WW is how many arrangements look the same to you, here a split between the halves. kk is Boltzmann’s constant, set to 1 on the stage so the bars read S/k=ln⁡WS/k = \ln W. So entropy is a count, or to be exact the log of one. For forty particles the even split has S/k=25.6S/k = 25.6, and all on the left has 0.

The marker rides the bars as the gas wanders. Slide the particle count to reshape them.

Figure. The box above a bar chart. Each bar is one split of the forty particles between the halves, and its height is the number of arrangements on a log scale. The bars peak at twenty on each side and fall to nothing at both ends, and a marker rides along them at the current split.

Press reverse

The laws run the same backwards, so you can try it. At time 2 the stage reverses every velocity at once.

The film runs backwards. The particles retrace their paths, entropy falls from 25.5 to 0, and every particle ends up back on the left, to within about a millionth of the box height. Josef Loschmidt put this to Boltzmann in 1876. If the laws allow this film, why is it never seen?

Now do it again, but first nudge every velocity by a millionth of a typical speed. The return stalls. Entropy bottoms out near 17, and the gas never gets home.

The reason is that collisions multiply small differences. Here a gap grows tenfold in about 0.2 time units. Wait about five time units before reversing and the computer’s own rounding, in the sixteenth digit, ruins the return too. So the backwards film is lawful, but it needs a start set exactly right, and nothing in an ordinary gas sets it that way.

Press Reverse at any moment. Then choose a nudge and try again.

Figure. The box above a chart of entropy against time. The forty particles spread out until time 2, every velocity reverses, and they retrace their paths until all are back on the left and entropy returns to zero. A second run with a nudge of one millionth stops short, and its entropy bottoms out near 17.

How long would you wait

Could the ordered state come back on its own, then? Poincaré proved in 1890 that a closed system comes back close to where it started, given long enough. Zermelo pressed that against Boltzmann in 1896. So it does come back. The real question is when.

The Ehrenfests’ urn model gives the answer exactly. Balls sit in two urns. On each move one ball, picked at random, hops to the other urn. The mean wait for all NN balls to be back in the urn they started in is

2N moves.2^N \text{ moves.}

It comes from counting, with no guessing in it. At one move a second, 10 balls wait 17 minutes and 20 balls wait 12 days. 40 balls wait 35,000 years. 60 balls wait 37 billion years, more than twice the age of the universe, and 100 balls wait 4×10224 \times 10^{22} years.

A mole of gas has about 6×10236 \times 10^{23} molecules. For that many, 2N2^N has about 1.8×10231.8 \times 10^{23} digits.

Slide the balls and watch the marker. At 59 balls it passes the age of the universe.

Figure. Two urns with balls that hop from one to the other, one at a time, above a time ruler from one second to ten to the 23 years. Markers show the mean wait for all balls to be back in one urn at one move a second: 17 minutes for 10 balls, 12 days for 20, 35 thousand years for 40, 37 billion years for 60, and 4 times ten to the 22 years for 100.

What the second law says

So the second law is really about odds. With four particles, entropy dips all the time. With forty, a dip all the way back to the start is rare. With a mole of gas it never happens in practice, though it is not ruled out in principle.

Counting alone does not give you the arrow. Switch the stage to a mixed start and entropy sits near its top in both directions of time. Start all on the left and it rises away from that moment both ways, into the future and into the past. Run the film backwards from the start and entropy climbs toward the past too.

So the arrow needs two things, the counting and a start that was ordered. Follow an egg’s order back through the hen and the sunlight and you reach an early universe with very low entropy. That assumption is called the past hypothesis, a term from David Albert. Why the universe began that way is still open.

Switch between an ordered and a mixed start, and see which way entropy runs.

Figure. The box with forty particles above a chart of entropy, as a share of its maximum, from six time units before the ordered start to six after. The trace is a V: zero at the start and near one on both sides. Switching to a mixed start gives a flat line near the top.

What this does not say, and where it goes next.

The gas here is a model, points in two dimensions with a soft push between them, so the numbers belong to the model. The urn’s waits assume one move a second. That is a convention and not a measured rate for any real gas. And entropy here is a count of arrangements that look alike from outside, which is narrower than “mess”.

Small errors that multiply, as they do in the reversal, are the subject of the first note: Deterministic. And still unknowable.

Sources

  1. Ludwig Boltzmann, “Über die Beziehung zwischen dem zweiten Hauptsatze der mechanischen Wärmetheorie und der Wahrscheinlichkeitsrechnung respektive den Sätzen über das Wärmegleichgewicht”, Wiener Berichte 76 (1877). English translation by Kim Sharp and Franz Matschinsky, Entropy 17(4) (2015).
  2. Boltzmann’s entropy formula, for the history of the form S=kln⁡WS = k \ln W (Planck, about 1900). A secondary source.
  3. Paul and Tatyana Ehrenfest, “Über zwei bekannte Einwände gegen das Boltzmannsche H-Theorem”, Physikalische Zeitschrift 8 (1907). The mean return time 2N2^N is also set out on the Ehrenfest model page, and checked against this note’s engine.
  4. Mark Kac, “On the notion of recurrence in discrete stochastic processes”, Bulletin of the American Mathematical Society 53 (1947).
  5. Harvey R. Brown, Wayne Myrvold and Jos Uffink, “Boltzmann’s H-theorem, its discontents, and the birth of statistical mechanics”, Studies in History and Philosophy of Modern Physics 40 (2009). The dates of Loschmidt’s and Zermelo’s objections, and Poincaré’s recurrence theorem (Acta Mathematica 13, 1890), are as given there.
  6. D. Levesque and L. Verlet, “Molecular dynamics and time reversibility”, Journal of Statistical Physics 72 (1993). Only the abstract was read.
  7. David Z. Albert, Time and Chance (Harvard University Press, 2000), on the past hypothesis.
  8. Planck Collaboration, “Planck 2018 results. VI. Cosmological parameters”, Astronomy and Astrophysics 641 (2020), for the age of the universe, about 13.8 billion years.
  9. The Avogadro constant, 6.02214076×1023 mol−16.02214076 \times 10^{23}\ \text{mol}^{-1}, exact in the SI since 2019.
  10. CPLEAR Collaboration, Physics Letters B 444 (1998), and BaBar Collaboration, Physical Review Letters 109 (2012), for direct observations of time reversal violation in rare weak decays.