5D Library › The Thermodynamics of Desire · 中文
Chapter 1. Entropy: Why Everything Cools
A cup of tea and a hundred coins
Put a cup of hot tea on a desk and leave it. In half an hour it will be lukewarm; in two hours it will be at room temperature. No one has ever seen the reverse: a lukewarm cup that, left alone, draws heat from the room and begins to steam. The second law of thermodynamics names this one-way traffic. In an isolated system, a quantity called entropy never decreases, and in practice it increases until the system reaches equilibrium.
For most of the nineteenth century this was a law without an explanation. Ludwig Boltzmann supplied one. He argued that entropy counts the number of ways the invisible parts of a system, its molecules, can be arranged while the system looks the same from outside (Boltzmann 1877). The formula is carved on his grave in Vienna, in a later notation:
Here is the number of microscopic arrangements (microstates) compatible with what we see (the macrostate), and joules per kelvin is Boltzmann’s constant, which converts a pure count into the units of heat.
Evidence
In statistical mechanics the second law is a statement about probability. A macrostate that can be realised in more ways is more likely, and when a system is free to explore its microstates it ends up, overwhelmingly, in the macrostates with the largest . For systems the size of a cup of tea, the numbers are so large that “overwhelmingly” means that the reverse has never been observed (Schroeder 2000).
The idea is easiest to see with coins rather than molecules. Toss a hundred coins. The macrostate is the number of heads; a microstate is the full sequence, heads or tails for each coin.
Calculation
from math import comb, log
k_B = 1.380649e-23 # J/K
N = 100 # coins
for heads in (100, 90, 75, 50):
omega = comb(N, heads)
print(f"{heads:3d} heads: Omega = {omega:9.3e} S/k_B = ln(Omega) = {log(omega):5.1f}")
print(f"S for 50 heads = {k_B * log(comb(N, 50)):.2e} J/K")
total = 2 ** N
near_half = sum(comb(N, h) for h in range(40, 61))
print(f"share of all microstates with 40-60 heads: {near_half / total:.4f}")
print(f"chance of 90 or more heads: {sum(comb(N, h) for h in range(90, 101)) / total:.1e}")
# 100 heads: Omega = 1.000e+00 S/k_B = ln(Omega) = 0.0
# 90 heads: Omega = 1.731e+13 S/k_B = ln(Omega) = 30.5
# 75 heads: Omega = 2.425e+23 S/k_B = ln(Omega) = 53.8
# 50 heads: Omega = 1.009e+29 S/k_B = ln(Omega) = 66.8
# S for 50 heads = 9.22e-22 J/K
# share of all microstates with 40-60 heads: 0.9648
# chance of 90 or more heads: 1.5e-17There is exactly one way to have a hundred heads and about ways to have fifty. Almost 97 percent of all possible sequences lie between forty and sixty heads. Nothing pushes the coins towards the middle; the middle is simply where almost all the possibilities are. Shake the coins in a box and they will find it, and a hundred heads, once lost, will not come back in the lifetime of the universe.
A cup of tea holds around molecules, not a hundred, and the counts grow accordingly. That is why the second law, which is “only” a statement about probability, behaves like an iron rule.
Open systems and negative entropy
The second law speaks of isolated systems, ones that exchange neither energy nor matter with anything else. Very little in our lives is isolated. A refrigerator makes its inside colder by doing work and dumping heat into the kitchen; the entropy of the kitchen rises by more than the entropy of the food falls, so the total still goes up. Local order can grow, provided something pays for it elsewhere.
Living things are the most striking example. A cell, a body and a forest are wildly improbable arrangements of matter, and they stay that way for years or centuries. They do it by taking in energy in an ordered form, sunlight or food, and giving it back in a disordered form, heat.
Evidence
In 1944 the physicist Erwin Schrödinger put this in a phrase that has stayed in use: “What an organism feeds upon is negative entropy.” He explained that the essential thing in metabolism is that the organism succeeds in freeing itself from all the entropy it cannot help producing while alive (Schrödinger 1944). “Negative entropy”, or negentropy, is not a substance. It is a shorthand for a flow of order into a system, paid for by a larger flow of disorder out of it.
Keep this picture in mind, because the rest of the book leans on it. Order that lasts in an open system is not a possession. It is a process, a balance between what flows in and what leaks out. When the inflow stops, the order does not stay where it was; it relaxes, like the tea, towards the most probable state.
From heat to information
In 1948 Claude Shannon, an engineer at Bell Laboratories, was looking for a way to measure how much information a message carries. He arrived at a formula with the same shape as the entropy of statistical physics (Shannon 1948). If a source can produce outcomes with probabilities , its entropy in bits is
is zero when one outcome is certain and largest when all outcomes are equally likely. It measures how spread out a probability distribution is, or equivalently how uncertain we are about what will happen next.
Note
Shannon’s and Boltzmann’s are the same mathematics applied to different things. When the probabilities are those of a physical system’s microstates, the two agree up to the constant . When the probabilities describe something else, such as letters in a text or where a person’s attention goes, is a perfectly good measure of spread, but it is not a thermodynamic quantity: no heat flows and no temperature is involved. This book uses in that second sense and does not pretend otherwise.
There is one place where information and heat meet directly. Rolf Landauer showed in 1961 that erasing one bit of information in a physical device must release at least of heat into the surroundings (Landauer 1961). Forgetting has a minimum energy price.
Calculation
How does the Landauer limit compare with the energy a human brain actually uses?
from math import log
k_B = 1.380649e-23 # J/K
T = 310.0 # body temperature, K
landauer = k_B * T * log(2)
print(f"Landauer limit at 310 K: {landauer:.2e} J per erased bit")
rest_kcal_per_day = 1700 # a typical adult resting metabolic rate
body_W = rest_kcal_per_day * 4184 / 86400
brain_W = 0.20 * body_W # the brain uses about a fifth of it
print(f"resting body: {body_W:4.1f} W brain (20 %): {brain_W:4.1f} W")
print(f"brain power / Landauer limit: {brain_W / landauer:.1e} bit erasures per second")
# Landauer limit at 310 K: 2.97e-21 J per erased bit
# resting body: 82.3 W brain (20 %): 16.5 W
# brain power / Landauer limit: 5.5e+21 bit erasures per secondEvidence
The human brain is about 2 percent of body weight but accounts for about 20 percent of the body’s energy use at rest. Most of that energy goes on ongoing activity; the extra energy used when a person concentrates on a task is small by comparison (Raichle and Gusnard 2002).
The calculation shows that the brain works nowhere near the thermodynamic limit, and the evidence shows that concentrating does not cost much extra energy. So when people say that attention is “drained” or “used up”, they are not describing a literal shortage of joules. They are describing something else: attention is a limited capacity that must be allocated, and how it is allocated has consequences. That is where Shannon’s entropy becomes useful.
The entropy of an evening
Think of an evening at home as a probability distribution: the share of attention that goes to the person across the table, to the meal, to a phone, to work messages, to a television in the background. Shannon’s formula turns that distribution into a single number.
Calculation
from math import log2
def H(p):
return 0.0 - sum(x * log2(x) for x in p if x > 0)
evenings = {
"one shared activity": [1.0],
"dinner, mostly together": [0.7, 0.2, 0.1],
"4 things, evenly": [0.25] * 4,
"16 apps and tabs, evenly": [1 / 16] * 16,
}
for name, p in evenings.items():
print(f"{name:26s} H = {H(p):4.2f} bits (max for {len(p):2d} options: {log2(len(p)):4.2f})")
# one shared activity H = 0.00 bits (max for 1 options: 0.00)
# dinner, mostly together H = 1.16 bits (max for 3 options: 1.58)
# 4 things, evenly H = 2.00 bits (max for 4 options: 2.00)
# 16 apps and tabs, evenly H = 4.00 bits (max for 16 options: 4.00)Each extra bit doubles the number of equally likely places attention might be. An evening at four bits is, in this precise sense, sixteen times as scattered as an evening devoted to one thing.
Higher entropy is not automatically worse. A party, a market or a brainstorming session is meant to spread attention widely. But attention that is always spread, by default rather than by choice, has measurable costs.
Evidence
In laboratory tasks, people who habitually use many media at once were more easily distracted by irrelevant stimuli and slower at switching between tasks than people who rarely did (Ophir, Nass, and Wagner 2009). In a study of interrupted office work, people compensated for interruptions by working faster, but reported more stress, frustration, time pressure and effort (Mark, Gudith, and Klocke 2008). Neither study measured relationships; both show that scattered attention is not free.
The classical Chinese tradition made a similar observation more than two thousand years ago, without the arithmetic.
Source text
五色令人目盲,五音令人耳聋,五味令人口爽,驰骋畋猎令人心发狂,难得之货令人行妨。是以圣人为腹不为目,故去彼取此。(老子, n.d.)
The author’s translation: The five colours blind the eye; the five notes deafen the ear; the five flavours dull the palate; racing and hunting madden the heart; rare goods lead people astray. So the sage attends to the belly, not the eye: he lets go of that and takes this. (Daodejing, chapter 12)
The chapter does not say that colours, music and food are bad. It says that a mind pulled outward by every stimulus loses the capacity to register any of them; the eye that is shown everything sees nothing. “The belly” in this passage is usually read as what nourishes from within, as opposed to what dazzles from outside. In the language of this chapter, the sage chooses a low-entropy allocation of attention on purpose.
What cooling means, and what it does not
We can now state the first idea of the book carefully.
Hypothesis · not established · The relaxation of shared attention
Without a continuing input, the attention two people give each other spreads out over the many other things that compete for it, because there are far more ways for attention to be elsewhere than for it to be shared. In this view, the “cooling” of a relationship is in the first place a statistical relaxation of shared attention, not a decision and not a defect of either person.
The hypothesis can be tested. It predicts that, over months, the share of waking attention a couple spends jointly falls unless something actively renews it, that the Shannon entropy of each partner’s attention at home rises over the same period, and that both changes come before, not after, a fall in reported closeness. If closeness falls first and attention follows, or if the two are unrelated, the hypothesis is wrong.
Note
The second law does not say that love must end. It says that an isolated system runs down. A relationship is not isolated: it is open to new experiences, to repair, to shared work and to the world around it. The question is not whether entropy increases, but what keeps an open system ordered, and that is the subject of the next two chapters. Chapter 2 asks why repeated pleasures lose their force; Chapter 3 asks how order is maintained, and how it collapses, in systems that live on a flow.
References
Fan, Y. (2026). The Thermodynamics of Desire: Entropy, Dopamine Prediction Error and Dissipative Structures in Human Bonds [欲望的热力学] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23682498 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).