Search

Search papers and lessons

Thermodynamic Entropy

Level 2 · 8 min read

Thermodynamic entropy is the physical quantity that measures how many microscopic arrangements match a system's visible state, and it never decreases in an isolated system.

On this page

  • Colour = topic mix
  • Discrete math
  • Probability
  • Information theory
  • Thermal physics
  • Sign in to see your progress

TL;DR

Thermodynamic entropy, written SS and measured in joules per kelvin, is a physical quantity that counts how hard a system's state is to pin down. It can be defined in three equivalent ways: as heat divided by temperature for reversible processes (Clausius), as the logarithm of the number of microscopic arrangements (Boltzmann), and as an average surprise over those arrangements (Gibbs). In an isolated system, SS never decreases.

This is why hot coffee cools, why heat flows from hot to cold, and why no engine can turn all its heat into work. Where you'll see it: in the efficiency limits of engines and refrigerators, in chemistry's reaction spontaneity, and in the statistical physics behind Boltzmann distributions.

Intuition

Entropy is easiest to picture by counting. Take 100 coins on a table. A macrostate is what you can see, such as "all heads". Only one arrangement of the coins matches it. The macrostate "50 heads and 50 tails" can be made in about 102910^{29} ways. A random shake of the table almost always lands in the most common macrostate, simply because it has so many more ways to happen.

Gas molecules in a box work the same way. When a partition is removed and a gas spreads into both halves, the number of possible positions for each molecule grows. Nothing forces the spread; the spread is simply the overwhelmingly likely outcome. Entropy is the physical name for that count, taken on a logarithmic scale so that numbers stay manageable.

Heat is a related story. Energy moving from a hot body to a cold one spreads the energy among more microscopic motions. The hot body loses less entropy than the cold body gains, so the total goes up. The phrase "entropy is disorder" is a common shorthand, but it hides the real content: entropy counts how many microscopic states fit the description you have.

Thermodynamic entropy is the version of this idea that engineers and chemists use. They measure it through heat and temperature, without needing to know the microscopic state at all.

The math

Clausius: entropy from heat

Definition: Clausius entropy change

For a reversible process in which a small amount of heat δQrev\delta Q_{\text{rev}} enters a system at absolute temperature TT, the entropy change is

dS=δQrevT.dS = \frac{\delta Q_{\text{rev}}}{T}.

For a finite process, ΔS=∫δQrev/T\Delta S = \int \delta Q_{\text{rev}} / T along any reversible path between the same two states.

Entropy is a state function: ΔS\Delta S depends only on the start and end states, not on the path. The integral is taken along a reversible path, a path made of infinitely slow steps where the system is always in equilibrium, even if the real process was messy.

The second law says that for any isolated system, ΔS≥0\Delta S \ge 0, with equality only for reversible processes. For the whole universe, the total entropy never falls.

Boltzmann: entropy from counting

For an isolated system whose microscopic states are all equally likely, let WW be the number of microstates that match the macrostate. Then

S=kBln⁡W,S = k_B \ln W,

where kB=1.380649×10−23 J/Kk_B = 1.380649 \times 10^{-23}\,\mathrm{J/K} is the Boltzmann constant. The constant converts the dimensionless logarithm into the units of entropy. The logarithm is what makes entropy additive: two independent systems have W=WAWBW = W_A W_B, so S=SA+SBS = S_A + S_B (see Logarithm).

Gibbs: entropy as an average

When the microstates have different probabilities pip_i, the general form is

S=−kB∑ipiln⁡pi.S = -k_B \sum_i p_i \ln p_i.

If all WW states are equally likely, then pi=1/Wp_i = 1/W and the sum gives −kB⋅W⋅(1/W)ln⁡(1/W)=kBln⁡W-k_B \cdot W \cdot (1/W)\ln(1/W) = k_B \ln W. Boltzmann's formula is the special case of Gibbs's. This is the same expression as the Shannon entropy of a distribution, multiplied by kBk_B and measured in nats.

Entropy from the partition function

For a system in contact with a heat bath at temperature TT, the probabilities are pi=e−Ei/(kBT)/Zp_i = e^{-E_i/(k_B T)}/Z (see Partition Function). Substituting into the Gibbs form gives

S=⟨E⟩T+kBln⁡Z,S = \frac{\langle E \rangle}{T} + k_B \ln Z,

where ⟨E⟩\langle E \rangle is the average energy. This expresses the entropy through the average energy and the partition function, and it connects the three definitions above.

Worked examples

Example
Isothermal expansion of an ideal gas

One mole of ideal gas expands slowly and reversibly at constant temperature, doubling its volume. For an ideal gas, the change in entropy is ΔS=nRln⁡(V2/V1)\Delta S = nR \ln(V_2/V_1).

  1. Amount of gas: n=1n = 1 mole.
  2. Gas constant: R=8.314 J/(mol⋅K)R = 8.314\,\mathrm{J/(mol \cdot K)}.
  3. Volume ratio: V2/V1=2V_2/V_1 = 2.
  4. Entropy change: ΔS=1×8.314×ln⁡2=8.314×0.6931=5.76 J/K\Delta S = 1 \times 8.314 \times \ln 2 = 8.314 \times 0.6931 = 5.76\,\mathrm{J/K}.

Interpretation: the gas gains about 5.8 joules per kelvin, because each molecule now has twice as much volume to occupy. The same result follows from Clausius: heat absorbed is nRTln⁡2nRT\ln 2, divided by TT.

Example
Counting coin arrangements

Take 100 fair coins. Compare the macrostate "all heads" with "exactly 50 heads".

  1. All heads: W=1W = 1, so S=kBln⁡1=0S = k_B \ln 1 = 0.
  2. Exactly 50 heads: W=(10050)≈1.01×1029W = \binom{100}{50} \approx 1.01 \times 10^{29}.
  3. Logarithm: ln⁡W=ln⁡(1.01)+29ln⁡10≈0.009+66.775=66.78\ln W = \ln(1.01) + 29 \ln 10 \approx 0.009 + 66.775 = 66.78.
  4. Entropy: S=1.381×10−23×66.78=9.2×10−22 J/KS = 1.381 \times 10^{-23} \times 66.78 = 9.2 \times 10^{-22}\,\mathrm{J/K}.

Interpretation: the number of arrangements is enormous, but the entropy is tiny in joules per kelvin, because one coin is far too small a system to notice. The constant kBk_B is small on purpose. Entropy only becomes large in macroscopic systems containing about 102310^{23} particles.

Example
Heat flowing between two reservoirs

A 100 joule amount of heat flows from a hot reservoir at 400 kelvin to a cold reservoir at 300 kelvin, in a single step.

  1. Hot reservoir loses heat: ΔShot=−100/400=−0.25 J/K\Delta S_{\text{hot}} = -100/400 = -0.25\,\mathrm{J/K}.
  2. Cold reservoir gains heat: ΔScold=+100/300=+0.333 J/K\Delta S_{\text{cold}} = +100/300 = +0.333\,\mathrm{J/K}.
  3. Total: ΔS=−0.25+0.333=+0.083 J/K\Delta S = -0.25 + 0.333 = +0.083\,\mathrm{J/K}.

Interpretation: the total is positive, as the second law requires. The reverse flow, from cold to hot with no other change, would give a total of −0.083 J/K-0.083\,\mathrm{J/K}, which is forbidden. Heat flows downhill in temperature because that is the direction in which total entropy rises.

Tradeoffs and failure modes

SituationWhat goes wrongBetter choice
Irreversible process, such as a sudden expansionClausius ∫δQ/T\int \delta Q/T along the real path is not definedFind any reversible path between the same two states and integrate along it
Microstates not equally likelyBoltzmann's kBln⁡Wk_B \ln W is wrong for that systemUse the Gibbs form with the actual probabilities
Local entropy decreases, as in a refrigeratorLooks like a violation of the second lawCount the whole isolated system, including the heat dumped to the surroundings
Saying entropy means disorderMisleads in cases such as a crystal forming from a melt or mixing of identical gasesThink in terms of counted arrangements and energy spreading
Small systems of a few particlesThermodynamic averages fluctuate stronglyUse the full statistical description

The second law is statistical in the Boltzmann picture. Entropy can decrease in a small system for a short time, because the most likely outcome is not guaranteed. For macroscopic systems, the chance of a noticeable decrease is so small that it is never observed.

History

Sadi Carnot's 1824 analysis of heat engines was the first step toward the idea that heat and work have a fundamental limit. Rudolf Clausius introduced the quantity in the 1850s and 1860s, defined it as heat divided by temperature, and in 1865 coined the word entropy from the Greek for transformation. Ludwig Boltzmann showed in the 1870s that entropy measures counted microstates, and his formula S=klog⁡WS = k \log W was later written with the constant kk by Max Planck. Josiah Willard Gibbs gave the general probability form in his 1902 book on statistical mechanics. The concept caught on because it explained why engines are limited, why chemical reactions go in one direction, and how microscopic motion produces the thermal properties we measure.

Check yourself

QuestionA system absorbs 300 joules of heat reversibly at a constant temperature of 300 kelvin. By how much does its entropy change?Show answer

ΔS=Q/T=300/300=1 J/K\Delta S = Q/T = 300/300 = 1\,\mathrm{J/K}. The result depends only on the heat and the temperature, because entropy is a state function computed along a reversible path.

QuestionWhy does the Boltzmann formula use a logarithm?Show answer

Because entropy must add when independent systems are combined, while the number of arrangements multiplies. The logarithm turns a product into a sum: ln⁡(WAWB)=ln⁡WA+ln⁡WB\ln(W_A W_B) = \ln W_A + \ln W_B.

QuestionIn the coin example, why is the entropy of 50 heads only about 10−2110^{-21} joules per kelvin, even though there are about 102910^{29} arrangements?Show answer

The entropy is kBln⁡Wk_B \ln W, and kBk_B is about 10−2310^{-23} joules per kelvin. The logarithm of 102910^{29} is only about 67. So the answer is about 67×1.4×10−23≈10−2167 \times 1.4 \times 10^{-23} \approx 10^{-21} joules per kelvin. Entropy becomes large only when the number of particles is macroscopic.

QuestionA refrigerator cools its interior, so the interior's entropy drops. Does this violate the second law?Show answer

No. The refrigerator pumps heat into the kitchen, which raises the kitchen's entropy by more than the interior loses. The second law applies to the total isolated system, which includes the surroundings. Here the total still rises.

QuestionWhy can the Gibbs formula be used for a system whose microstates have unequal probabilities, where Boltzmann's formula cannot?Show answer

Boltzmann's formula assumes all WW microstates are equally likely, so that each has probability 1/W1/W. The Gibbs sum −kB∑piln⁡pi-k_B \sum p_i \ln p_i works for any set of probabilities and reduces to Boltzmann's expression when they are all equal.

Sources