These notes were written in collaboration with Michael Zhao.
Entropy and the Second Law of Thermodynamics
Section titled “Entropy and the Second Law of Thermodynamics”A warm object cools in contact with a colder one. Energy conservation would also allow the same amount of energy to flow the other way, so the first law alone cannot predict which process occurs. The second law supplies that direction, and entropy lets us calculate it.
Reversibility and the second law
Section titled “Reversibility and the second law”A process is reversible if it can be undone while restoring both the system and its surroundings. The system must pass through equilibrium states in the ideal limit, and effects such as friction and heat flow across a finite temperature difference must be absent. Free expansion, friction, and heat conduction across a finite temperature difference are all irreversible. An isothermal expansion can be reversible if the gas stays arbitrarily close to equilibrium with the reservoir and the piston moves without friction.
The Kelvin–Planck statement rules out a cyclic device whose sole effect is converting heat from one reservoir entirely into work. The Clausius statement rules out a cyclic device whose sole effect is transferring heat from a colder reservoir to a hotter one. A work-free refrigerator could return the heat rejected by an ordinary engine to its hot reservoir, leaving only the conversion of hot-reservoir heat into work. Conversely, a perfect one-reservoir engine could drive an ordinary refrigerator with no external work. Either device would violate both statements. A perpetual-motion machine of the first kind violates energy conservation, while one of the second kind violates the second law.
Calculating entropy changes
Section titled “Calculating entropy changes”For a reversible process,
and for a reversible isothermal transfer,
Entropy is a state property, so any reversible path between the same equilibrium endpoints gives the same . For a simple compressible system at fixed particle number, combining reversible heat and reversible work on the gas gives
This equation relates neighboring equilibrium states. For an ideal gas, substitute and . Integrating with constant heat capacities gives
Specializing: for an isothermal process, for isochoric, and for isobaric.
For instance, connect two equal-temperature states with volumes and by first cooling at fixed volume to , then expanding at constant pressure until the gas is back at . The first leg contributes and the second contributes . Their sum is , the same change as for a reversible isothermal expansion.
To find for an irreversible process (like free expansion), invent any reversible process connecting the same two states and compute along it — since is a state function, the answer carries over.
Theorem (Second Law of Thermodynamics). The total entropy of an isolated system never decreases:
Equality holds in the reversible limit. A system that exchanges heat can lose entropy, so include the surroundings when testing the second law. For an amount of heat flowing from an object at to one at , the combined entropy change is
The colder object gains more entropy than the hotter object loses. For a cyclic engine between a hot and a cold reservoir the working substance returns to its initial entropy, leaving with positive heat magnitudes. Equality gives the Carnot relation.
Example. One mole of an ideal gas free-expands into a vacuum until its volume doubles. Find the entropy change of the gas and of the universe.
Free expansion is irreversible, so we cannot integrate along the actual path. But entropy is a state function, and the endpoints have the same temperature ( for a free expansion). So connect them with a reversible isothermal expansion, for which
The surroundings exchanged no heat ( in the real process), so and
confirming the process is irreversible — exactly what the second law demands.
Maximum work and reversibility
Section titled “Maximum work and reversibility”Compare two paths between the same equilibrium states with heat exchanged only with a reservoir at temperature . The total entropy change is . With work output positive, the first law gives , hence
If a reversible path is available under these constraints, it has and delivers the most work. For an ideal-gas expansion between equal-temperature states at , free expansion delivers zero work, whereas reversible isothermal expansion delivers . The difference is the work lost to irreversibility.
A Statistical View of Entropy
Section titled “A Statistical View of Entropy”Microscopically, entropy counts arrangements. Every individual microstate of an isolated system is equally probable, but the configurations (macroscopic descriptions, e.g. “how many molecules in the left half”) are not, because some configurations correspond to far more microstates.
For molecules split as and between two halves of a box, the multiplicity is
This is sharply peaked at the even split: for the configuration with the molecules essentially evenly distributed dominates so overwhelmingly that we never observe spontaneous compression into one half.
Boltzmann’s entropy ties this to the macroscopic definition:
This explains the two combination rules — probabilities of independent subsystems multiply, while their entropies add — and the change in entropy between two configurations is
For large factorials, Stirling’s approximation for factorials is used to approximate entropy:
A “spread out” configuration has higher multiplicity, hence higher entropy, than an ordered one (, so ) — the statistical statement of the Second Law.
Counting states of a monatomic ideal gas
Section titled “Counting states of a monatomic ideal gas”A molecule’s position contributes a factor proportional to in phase space. Its thermal momentum width in each direction scales as , so the three momentum dimensions contribute a factor proportional to at fixed molecular mass. For identical molecules, exchanging two labels does not create a new physical state. The classical phase-space count therefore includes a factor . With the quantum phase-space cell size, the dilute monatomic gas has the Sackur–Tetrode entropy
At fixed its change is , matching the thermodynamic formula. In a reversible adiabat the expansion opens more position states, but the gas cools and the thermal momentum range shrinks. The two contributions cancel because stays constant.
Mixing identical and distinct gases
Section titled “Mixing identical and distinct gases”Take away the partition between two equal samples of the same gas at the same temperature and density. Counting the two samples as distinct would give an apparent entropy gain of . The correction removes this artifact. The combined gas has the same and temperature, so its entropy is just the sum of the initial entropies. This resolves Gibbs’ mixing paradox.
For two distinguishable ideal gases, each species really does gain access to the entire container. At fixed temperature, each contributes . For two equal samples, each species doubles its accessible volume and the total mixing entropy is .