Carnot Engine & Entropy
Kinetic Theory and Statistical Mechanics: Comprehensive Study Notes
Introduction: From Carnot to Entropy and Kinetic Theory
Sadi Carnot’s analysis of steam engines led to the concept of the Carnot engine, the most efficient heat engine theoretically possible. Rudolf Clausius, analyzing the Carnot cycle mathematically, recognized that energy exists in different forms and can be converted between types—heat can become internal energy (raising temperature) or mechanical work (as in heat engines). To quantitatively describe spontaneous, irreversible processes like heat flowing from hot to cold, Clausius introduced the concept of entropy.
The kinetic theory of gases aims to unify thermodynamics with Newtonian mechanics by modeling gases as large numbers of molecules obeying classical laws. It states that the internal energy of a gas equals the total kinetic energy of its molecules, explaining the conversion between internal energy and mechanical work. Moreover, it explains entropy through statistics: systems evolve from statistically unlikely states to likely ones, so entropy is a measure of the statistical likelihood of a state.
Deriving the Ideal Gas Law from Molecular Motion
The ideal gas law: PV=nRT, where n is moles and R is the gas constant. Using N as the number of molecules, PV=NkBT, with kB being Boltzmann's constant.
Pressure arises from molecules colliding with container walls. Three factors determine pressure:
Momentum of a molecule: A molecule with mass m and speed v has momentum mv. When it bounces off a wall, the pressure exerted is proportional to its momentum—faster or heavier molecules produce higher pressure.
Return time: A molecule bounces back and forth between walls. If the distance between walls is L, the round-trip time is 2L/v. The pressure is proportional to v/L, and since L is proportional to volume V, pressure is proportional to v/V.
Number of molecules: N molecules exert N times the pressure of one molecule.
Combining: P∝VNmv2. Comparing with the ideal gas law P=VNkBT gives kBT∝21mv2. Thus, temperature is a measure of the average kinetic energy of gas molecules.
Quantitative Derivation of Pressure
Consider motion in the x-direction only. A molecule with velocity vx undergoes an elastic collision with a wall, reversing its x-velocity to −vx. Momentum transferred per collision: Δp=2mvx.
In time Δt, the molecule travels vxΔt. The distance for one round trip along x is 2Lx. Number of collisions with a given wall in Δt: 2LxvxΔt.
Total momentum transferred by N molecules to the wall in time Δt:
Pressure = force / area. The wall is in the yz-plane with area A=LyLz. Average force = change in momentum per unit time:
Introduce the average of vx2: ⟨vx2⟩=N1∑i=1Nvx,i2. Then P=VNm⟨vx2⟩.
For a system symmetric in x, y, z, the total kinetic energy per molecule is 21m(vx2+vy2+vz2), and ⟨vx2⟩=⟨vy2⟩=⟨vz2⟩=31⟨v2⟩. Thus:
where ⟨K⟩ is the average kinetic energy per molecule. Comparing with P=VNkBT gives:
Therefore, the average translational kinetic energy per molecule is 23kBT. The total internal energy U for an ideal monatomic gas (no interactions, only translational kinetic energy) is:
Equipartition Theorem and Heat Capacity
The equipartition theorem states that energy is equally divided among all degrees of freedom of motion, with each degree of freedom contributing 21kBT per molecule (or 21NkBT for the system).
Monatomic Gas
A monatomic gas molecule (single atom) has three translational degrees of freedom (x, y, z). Therefore:
Diatomic Gas
A diatomic molecule has additional degrees of freedom:
Translational: 3 (same as monatomic)
Rotational: 2 (rotation about two axes perpendicular to the bond; rotation along the bond axis has negligible moment of inertia)
Vibrational (at high temperatures): 2 additional contributions—kinetic energy of vibration and potential energy stored in the bond (modeled as a spring)
At moderate temperatures, rotations are active but vibrations are not: U=25NkBT (3 translational + 2 rotational). At high temperatures, vibrations become active: U=27NkBT (3 translational + 2 rotational + 2 vibrational).
Heat Capacity at Constant Volume
The heat capacity at constant volume CV is defined as:
For an ideal gas:
Monatomic: CV=23NkB
Diatomic (rotations active): CV=25NkB
Diatomic (vibrations active): CV=27NkB
Important: Only the energy put into translational motion contributes to temperature and pressure (as seen from the ideal gas law). Rotational and vibrational energy do not directly raise the temperature; they increase the heat capacity because more energy is required to raise the temperature by a given amount.
Dulong-Petit Law for Solids
In a solid, atoms are bound to a lattice and vibrate. Each atom has three vibrational degrees of freedom, each contributing both kinetic and potential energy, so each degree of freedom contributes 21kBT for kinetic and 21kBT for potential, total kBT per degree of freedom. With three degrees of freedom, the internal energy per atom is 3kBT, leading to U=3NkBT and heat capacity per atom CV=3kB. This is the Dulong-Petit law. However, at very low temperatures, classical theory fails and the heat capacity goes to zero—a phenomenon explained only by quantum mechanics.
Maxwell-Boltzmann Velocity Distribution
Not all molecules have the same speed. The Maxwell-Boltzmann distribution gives the probability that a molecule in a monatomic ideal gas has a velocity vector within a small interval.
Maxwell's Symmetry Argument
Consider a monatomic ideal gas in a spherical container. The probability distribution function f(v) for the velocity vector must satisfy:
Rotational symmetry: f depends only on the magnitude v=∣v∣, not direction.
Statistical independence of components: The probability for a velocity vector is the product of independent probabilities for each component: f(vx,vy,vz)=g(vx)g(vy)g(vz).
These conditions imply f is an exponential function of v2:
Determining Constants
Two constraints determine A and B:
Normalization: ∫−∞∞∫−∞∞∫−∞∞f(v)dvxdvydvz=1. In spherical coordinates in velocity space, dvxdvydvz=4πv2dv, so ∫0∞4πv2Ae−Bv2dv=1. This gives A=(πB)3/2.
Average kinetic energy: ⟨21mv2⟩=23kBT. Using f(v), ⟨v2⟩=∫v2f(v)d3v=2B3. Then 21m2B3=23kBT, so B=2kBTm.
Thus:
The speed distribution (probability per unit speed) is obtained by integrating over angles:
This is the Maxwell-Boltzmann speed distribution. At low temperatures, the distribution is narrow and peaked at low speeds; at high temperatures, it is broader and peaks at higher speeds.
Boltzmann's Statistical Approach
Boltzmann attempted to derive the velocity distribution using counting arguments based on the idea that all microscopic configurations (microstates) are equally likely.
Discrete Energy Levels
Consider a box with N molecules and total internal energy U, divided into discrete units of energy ϵ for mathematical convenience. The energy is randomly distributed among molecules through collisions. A macrostate is defined by the occupation numbers {ni}: ni molecules have energy iϵ. Constraints:
A microstate specifies exactly which molecule has which energy. The number of microstates (multiplicity) for a given macrostate is:
because we can arrange N molecules into groups, and permutations within a group are indistinguishable.
Most Likely Macrostate
The system evolves to the macrostate with the highest multiplicity (most microstates), as it is statistically most likely. Using Stirling's approximation lnn!≈nlnn−n, we maximize lnΩ=NlnN−N−∑i(nilnni−ni) subject to fixed N and fixed U. Using Lagrange multipliers α and β for the two constraints, we find:
The exponential dependence e−βE is called the Boltzmann factor. The parameter β is identified as β=1/(kBT).
Connection to Maxwell's Distribution
Boltzmann's method using equidistant energy states gives an energy distribution P(E)∝e−E/kBT, but Maxwell's distribution for speeds gives P(E)∝Ee−E/kBT (in 3D). The discrepancy arises because:
Maxwell assumes velocity components are equally spaced; energy is quadratic in velocity, so energy states are not equally spaced.
The factor E comes from the density of states in velocity space (number of velocity vectors with a given energy).
In 2D, the errors cancel and both methods agree; in 3D, Boltzmann's method undercounts high-energy states unless properly accounting for the density of states.
To make Boltzmann's method work, one must distribute velocity components (not energy) in equal intervals. This yields the same exponential dependence on v2 as Maxwell's approach.
Entropy and the Multiplicity of States
Clausius' Definition
Clausius defined entropy change for a reversible process as:
For spontaneous (irreversible) processes, entropy increases.
Boltzmann's Definition
Boltzmann proposed that entropy is related to the multiplicity Ω of a macrostate:
This definition is consistent with Clausius' for an ideal monatomic gas: S=kBlnΩ leads to the same ∂S/∂U=1/T as Clausius.
Quasi-Static Processes
The definition S=kBlnΩ assumes the system is in equilibrium. For a process to be described by Clausius' dS=dQ/T, it must be quasi-static—changing slowly enough that the system remains near equilibrium. For non-quasi-static processes, the total entropy change is the same (since entropy is a state function), but it cannot be computed as ∫dQ/T because additional entropy is generated internally as the system relaxes to equilibrium.
Phase Space and Coarse Graining
To describe both position and velocity distributions, we use phase space with axes for position r and momentum p. A microstate corresponds to a point in 6N-dimensional phase space.
Coarse Graining
Coarse graining divides phase space into cells of finite size h3 per particle (or h3N for N particles). This is necessary because continuous variables would give infinite multiplicity. The number of microstates is the accessible phase space volume divided by the cell volume.
Entropy of an Ideal Gas from Phase Space
For a monatomic ideal gas of N particles in volume V with total energy U, the accessible phase space volume is:
Position: each particle can be anywhere in V, so real-space volume VN.
Momentum: total kinetic energy U=∑pi2/(2m), so momentum vectors lie on a hypersphere of radius 2mU in 3N-dimensional momentum space. The surface area of a d-dimensional sphere is Γ(d/2)2πd/2rd−1.
The total number of accessible microstates (before correcting for indistinguishability) is:
Using Stirling's approximation and U=23NkBT, we obtain the entropy S=kBlnΩ. However, this expression does not properly account for the indistinguishability of identical particles.
The Gibbs Paradox and Indistinguishability
The Gibbs paradox arises when considering two identical volumes of the same gas separated by a removable partition. If we treat particles as distinguishable, removing the partition increases entropy (because each particle can now be anywhere in twice the volume). But if the gases are identical, we expect no irreversible change and therefore no entropy increase.
The resolution: for practically indistinguishable particles, we must divide the number of microstates by N! to avoid counting permutations of identical particles as distinct. This leads to the Sackur-Tetrode equation for the entropy of a monatomic ideal gas:
or equivalently,
If the two gases are different (distinguishable), mixing does increase entropy, and the formula without the N! correction applies to each species separately.
Coarse-Grained Entropy Increase
Coarse graining is essential to observe entropy increase. If we use infinitely fine resolution, the phase space volume (and hence entropy) remains constant over time (Liouville's theorem). But with finite coarse graining, as molecules spread out in phase space, the number of occupied coarse-grained cells increases, increasing the multiplicity and entropy.
Thermodynamic Potentials from Statistical Mechanics
Temperature, Pressure, and Chemical Potential as Derivatives of Entropy
For a closed system, entropy tends to a maximum. The derivatives of entropy with respect to energy, volume, and particle number define intensive variables:
Temperature: T1=(∂U∂S)V,N
Pressure: TP=(∂V∂S)U,N
Chemical potential: Tμ=−(∂N∂S)U,V
These are also the Lagrange multipliers from the constrained optimization: β=1/(kBT) for energy, etc.
The Fundamental Thermodynamic Relation
Combining the differentials:
Multiplying by T gives the fundamental thermodynamic relation:
Chemical Potential and Chemical Reactions
For a system at fixed T and V, the Helmholtz free energy F=U−TS tends to a minimum. Its differential is dF=−SdT−PdV+μdN. For a reaction converting type A to type B, equilibrium occurs when μA=μB.
At fixed T and P, the Gibbs free energy G=U−TS+PV tends to a minimum, with dG=−SdT+VdP+μdN. Again, equilibrium for a reaction requires μA=μB.
Systems in Contact with a Reservoir
Binding of a Molecule: A Simple Example
Consider a system (e.g., a binding site on a blood cell) that can be either empty (state 0, energy 0) or bound to an oxygen molecule (state 1, energy ϵ<0). The system is in contact with a reservoir at temperature T and chemical potential μ for oxygen. The change in reservoir entropy when the system goes from empty to bound is:
The ratio of probabilities is given by the ratio of multiplicities:
Normalizing (P0+P1=1) gives:
This makes intuitive sense: stronger binding (more negative ϵ) or higher chemical potential (more oxygen available) increases the probability of binding.
Gibbs Factor and Grand Partition Function
For a system that can exchange both energy and particles with a reservoir (fixed T, μ, V), the probability of a microstate s with energy Es and particle number Ns is proportional to the Gibbs factor:
The normalization constant is the Grand partition function:
Then Ps=Z1e−(Es−μNs)/kBT.
If the system only exchanges energy (fixed N), the Gibbs factor reduces to the Boltzmann factor e−Es/kBT, and the normalization constant is the partition function Z=∑se−Es/kBT.
Gibbs Entropy and the Partition Function
Boltzmann vs. Gibbs Entropy
Boltzmann entropy: S=kBlnΩ, where Ω is the number of microstates for a given macrostate (for isolated systems).
Gibbs entropy (more general):
where Ps is the probability of the system being in microstate s. For independent particles, the Gibbs entropy reduces to the Boltzmann entropy. For interacting systems, the Gibbs definition is consistent with Clausius' thermodynamics.
Using the Partition Function
For a system in the canonical ensemble (fixed T, V, N), the partition function is Z=∑se−Es/kBT. The average energy is:
The entropy is:
The Helmholtz free energy is:
All thermodynamic quantities can be derived from Z.
Example: Ideal Gas Partition Function
For a single monatomic molecule in volume V at temperature T, the partition function (summing over all momentum and position states with coarse-graining h) is:
For N distinguishable particles, Z=Z1N. Correcting for indistinguishability: Z=N!Z1N. Using Stirling's approximation, we recover the Sackur-Tetrode equation for entropy, and ⟨E⟩=23NkBT.
Ensembles in Statistical Mechanics
Microcanonical Ensemble (isolated system): fixed U, V, N. All microstates satisfying these constraints are equally likely. The multiplicity Ω(U,V,N) gives the entropy S=kBlnΩ.
Canonical Ensemble (closed system in thermal contact with reservoir): fixed T, V, N. The probability of a microstate is e−E/kBT/Z. The partition function Z(T,V,N) connects to thermodynamics: F=−kBTlnZ, S=−∂F/∂T, etc.
Grand Canonical Ensemble (open system in contact with reservoir for energy and particles): fixed T, V, μ. The probability of a microstate with energy E and particle number N is e−(E−μN)/kBT/Z, where Z is the grand partition function.
Summary of Key Concepts
Kinetic theory: internal energy = kinetic energy of molecules; explains pressure and temperature.
Equipartition theorem: each quadratic degree of freedom contributes 21kBT per molecule.
Maxwell-Boltzmann distribution: velocity distribution derived from symmetry; gives f(v)∝v2e−mv2/(2kBT).
Boltzmann's counting: multiplicity Ω for a macrostate; S=kBlnΩ; most likely macrostate maximizes Ω.
Statistical definition of temperature, pressure, chemical potential: as derivatives of entropy.
Gibbs paradox: indistinguishability of identical particles requires dividing by N!; leads to Sackur-Tetrode equation.
Canonical and grand canonical ensembles: probability proportional to Boltzmann factor or Gibbs factor; partition functions generate thermodynamics.
Gibbs entropy: S=−kB∑PslnPs is the fundamental definition, consistent with Clausius for interacting systems.

Ask anything
We've read this whole study set, so questions about it get the best answers.