TL;DR
Thermodynamic entropy, written 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, 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 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
For a reversible process in which a small amount of heat enters a system at absolute temperature , the entropy change is
For a finite process, along any reversible path between the same two states.
Entropy is a state function: 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, , 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 be the number of microstates that match the macrostate. Then
where 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 , so (see Logarithm).
Gibbs: entropy as an average
When the microstates have different probabilities , the general form is
If all states are equally likely, then and the sum gives . Boltzmann's formula is the special case of Gibbs's. This is the same expression as the Shannon entropy of a distribution, multiplied by and measured in nats.
Entropy from the partition function
For a system in contact with a heat bath at temperature , the probabilities are (see Partition Function). Substituting into the Gibbs form gives
where 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
One mole of ideal gas expands slowly and reversibly at constant temperature, doubling its volume. For an ideal gas, the change in entropy is .
- Amount of gas: mole.
- Gas constant: .
- Volume ratio: .
- Entropy change: .
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 , divided by .
Take 100 fair coins. Compare the macrostate "all heads" with "exactly 50 heads".
- All heads: , so .
- Exactly 50 heads: .
- Logarithm: .
- Entropy: .
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 is small on purpose. Entropy only becomes large in macroscopic systems containing about particles.
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.
- Hot reservoir loses heat: .
- Cold reservoir gains heat: .
- Total: .
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 , which is forbidden. Heat flows downhill in temperature because that is the direction in which total entropy rises.
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| Irreversible process, such as a sudden expansion | Clausius along the real path is not defined | Find any reversible path between the same two states and integrate along it |
| Microstates not equally likely | Boltzmann's is wrong for that system | Use the Gibbs form with the actual probabilities |
| Local entropy decreases, as in a refrigerator | Looks like a violation of the second law | Count the whole isolated system, including the heat dumped to the surroundings |
| Saying entropy means disorder | Misleads in cases such as a crystal forming from a melt or mixing of identical gases | Think in terms of counted arrangements and energy spreading |
| Small systems of a few particles | Thermodynamic averages fluctuate strongly | Use 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 was later written with the constant 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
. 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: .
QuestionIn the coin example, why is the entropy of 50 heads only about joules per kelvin, even though there are about arrangements?Show answer
The entropy is , and is about joules per kelvin. The logarithm of is only about 67. So the answer is about 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 microstates are equally likely, so that each has probability . The Gibbs sum works for any set of probabilities and reduces to Boltzmann's expression when they are all equal.