This page is written in collaboration with Michael Zhao.
Temperature and the Zeroth Law of Thermodynamics
Section titled βTemperature and the Zeroth Law of ThermodynamicsβTheorem (Zeroth Law of Thermodynamics). If systems and are each in thermal equilibrium with a third system , then and are in thermal equilibrium with each other.
This is what lets temperature be a well-defined property: a thermometer (system ) can be used to compare any two systems. Two systems placed in thermal contact eventually reach the same temperature.
The temperature scales are related by
where is in kelvin. The triple point of water defines the kelvin,
A constant-volume gas thermometer measures temperature through the pressure of a fixed volume of gas, read off as a height difference in a mercury manometer. Extrapolating the pressure of a dilute gas to zero defines absolute zero.
Thermal Expansion
Section titled βThermal ExpansionβMost materials expand when heated due to the increased motion of its atoms. For a solid, the change in any length is
where is the coefficient of linear expansion.
For an isotropic solid (same material everywhere) the fractional change is the same for every line in the body β length, thickness, face diagonal, body diagonal, and the diameter of a hole punched in it. The expansion behaves like a photographic enlargement in three dimensions. Consequently, area and volume scale as
A common trap: a hole in a plate gets larger when the plate is heated, not smaller, because every line lengthens in the same ratio.
For a liquid we describe expansion by volume directly,
where is the coefficient of volume expansion (so for an isotropic solid). Water is the famous exception to : between and about it contracts on heating, reaching maximum density (minimum specific volume) near . This is due to IMFs and other chemical properties that wonβt be discussed here.
Thermal expansion comes from the asymmetry of the interatomic potential energy curve . Near the equilibrium separation the well is steeper on the close-in side than on the far side. As temperature and vibrational energy rise, the average separation creeps outward even though does not change. A perfectly symmetric (parabolic) well would give no expansion.
A bimetallic strip bonds two metals with different (e.g. brass and steel). Heating bends the strip toward the lower- metal; coiling it into a helix turns this into a thermometer or thermostat switch.
Example. Railroad track is laid in steel segments at . How wide must the expansion gap between consecutive segments be so the rails do not buckle when the temperature rises to ? Take .
Each segment lengthens by
So a gap of about is needed. Note that we used the installed length and the temperature change (the size of a degree is the same in and ); the absolute temperature never enters.
The Ideal Gas
Section titled βThe Ideal GasβTheorem (Ideal Gas Law). Pressure, volume, temperature, and amount of gas are tied together by
Here
and the molar gas constant is
is the number of moles of gas (see AP Chemistry for more information), is the number of particles, is pressure, is volume, is temperature (in Kelvin), is Avogadroβs number, and is Boltzmannβs constant.
The model rests on a handful of assumptions:
- The gas is made of particles in random motion obeying Newtonβs laws (no quantum effects).
- The number of molecules is very large.
- The molecules occupy a negligible fraction of the container volume.
- No forces act on a molecule except during collisions (with walls or other molecules).
- All collisions are elastic and of negligible duration.
Brownian motion
Section titled βBrownian motionβRobert Brown observed fine particles suspended in a fluid jittering randomly. Einstein modeled this as the cumulative effect of molecular bombardment: for a sphere of radius suspended in a gas of viscosity ,
Note that denotes the average. Jean Baptiste Perrin used measurements of to deduce . Qualitatively, a larger would mean the bombardment on opposite sides nearly balances (less jitter); a smaller would mean bigger fluctuations.
Pressure from kinetic theory
Section titled βPressure from kinetic theoryβTreating wall collisions as elastic momentum reversals and extrapolating from one dimension to three gives
where is the mass density. Solving for the root-mean-square speed,
Example. Find the rms speed of nitrogen molecules (, molar mass ) in air at .
Using ,
This is comfortably faster than the speed of sound in air (), which makes sense β sound propagates through the same molecular collisions, just slower than the typical molecular speed.
Mean free path
Section titled βMean free pathβA molecule sweeps out a cylinder as it moves; treating it as having effective diameter (all other molecules being points) and counting collisions gives the mean free path
Two refinements: using converts this to
and accounting for the fact that the relative speed between molecules exceeds the average speed introduces a factor of :
Maxwell speed distribution
Section titled βMaxwell speed distributionβFor molecules of mass at temperature , the number with speeds in is , where
Three characteristic speeds come from this distribution:
Their fixed ratio is worth memorizing:
The average translational kinetic energy per molecule is
Changing variables with gives the MaxwellβBoltzmann energy distribution
Real gases
Section titled βReal gasesβFor real gases the ideal gas law is the first term of the virial expansion
which reduces to the ideal gas law as the density . The van der Waals equation corrects separately for molecular volume and intermolecular attraction:
The constant for attractive forces: a molecule approaching the wall is pulled back by the others behind it, softening its impact and lowering the pressure. The constant accounts for the finite volume the molecules themselves occupy.
Heat and Heat Transfer
Section titled βHeat and Heat TransferβHeat is energy that flows between a system and its environment because of a temperature difference. By convention when heat flows into the system. Crucially, heat and work are not state functions (a function that has the same value regardless of path) since a system does not βcontainβ heat or work. They are associated with a process, with the transfer between states, not with the states themselves.
Conduction
Section titled βConductionβFor a slab of thickness and cross-section , the rate of heat flow is
where is the thermal conductivity (units W/mΒ·K). In differential form,
with the minus sign because heat flows down the temperature gradient. For a rod of length between fixed temperatures ,
Building materials are rated by the R-value (thermal resistance)
Conductances in series add like resistances (same , temperature drops add); in parallel the areas add.
Example. Two slabs with thicknesses and conductivities are stacked face to face. The outer faces are held at and (with ). In steady state, find the rate of heat flow and the interface temperature .
In steady state no energy piles up at the interface, so the same flows through both slabs:
Solving the right-hand equality for and substituting back gives a result that looks exactly like resistors in series β the thermal resistances add:
The same idea extends to any number of layers: just sum all the in the denominator.
Convection and radiation
Section titled βConvection and radiationβConvection transfers heat through bulk fluid motion: warmed fluid expands, becomes less dense, and rises while cooler fluid sinks, setting up a circulation.
Radiation transfers energy by electromagnetic waves, requiring no medium. Every object emits radiation depending on its temperature; the power radiated scales as the fourth power of the Kelvin temperature (see Stellar Physics). Earthβs average temperature levels off near because at that temperature it radiates energy away as fast as it absorbs it from the Sun.
Heat capacity and latent heat
Section titled βHeat capacity and latent heatβThe heat capacity of a body and the specific heat of its material are
Therefore the heat to change temperature is
if varies with temperature. For a phase change at constant temperature, the latent heat (heat of transformation) gives
with for fusion (melting/freezing) and for vaporization (boiling/condensing).
A useful empirical fact: the molar heat capacity (specific heat times molar mass) of most solids approaches about at high temperature (the DulongβPetit value), falling off toward zero at low temperature.
Example. How much heat is needed to turn of ice at into water at ? Use , , and .
Do the problem in three stages β never melt and warm in one step, because melting happens at constant temperature.
- Warm the ice from to :
- Melt the ice at :
- Warm the meltwater from to :
The total is
The melting step requires much more heat because latent heats are typically much larger than the heat for a modest temperature change.
When the temperature difference between a body and its surroundings is small, the cooling rate is proportional to that difference:
The excess temperature decays exponentially. This is Newtonβs Law of Cooling.
The First Law of Thermodynamics
Section titled βThe First Law of ThermodynamicsβTheorem (First Law of Thermodynamics). Energy is conserved when we count both heat and work:
In this sign convention, is the heat added to the system and is the work done on the system, so both positive and positive raise the internal energy.
Work done on a gas
Section titled βWork done on a gasβThe work done on the gas during a volume change is
The sign is the subtle part: when the gas expands () it does positive work on its surroundings, so negative work is done on the gas. On a diagram the magnitude of the work is the area under the curve, and work is path-dependent β different paths between the same endpoints give different work.
The internal energy of an ideal gas depends only on temperature. With degrees of freedom (talked about in the next section),
Degrees of freedom and equipartition
Section titled βDegrees of freedom and equipartitionβThe total kinetic energy of a molecule splits among independent quadratic terms (translational, rotational, and for some molecules vibrational):
The equipartition theorem says each independent degree of freedom carries an average energy . Therefore
with
- monatomic gas: , so ;
- diatomic gas: (3 translational + 2 rotational), so ;
- polyatomic gas (nonlinear): , so .
A linear molecule like has no kinetic energy for rotation about its own axis, so that mode does not count. Vibration adds further degrees of freedom at high temperature.
Molar heat capacities of an ideal gas
Section titled βMolar heat capacities of an ideal gasβHow much heat raises the temperature depends on how the heat is added.
At constant volume no work is done, so
At constant pressure the gas also does expansion work. Substituting and into the first law (with the same as the constant-volume path between the same isotherms) gives Mayerβs relation:
The ratio of heat capacities,
is called the adiabatic gas constant and controls adiabatic processes. Collecting values:
| Gas | |||
|---|---|---|---|
| Monatomic | |||
| Diatomic | |||
| Polyatomic |
(Heat capacities in J/(molΒ·K).)
Thermodynamic Processes
Section titled βThermodynamic ProcessesβEach type of process is a different constraint applied to the first law. The table at the end summarizes them.
Isochoric (constant volume)
Section titled βIsochoric (constant volume)βNo volume change means no work:
All heat goes into internal energy.
Isobaric (constant pressure)
Section titled βIsobaric (constant pressure)βIsothermal (constant temperature)
Section titled βIsothermal (constant temperature)βFor an ideal gas , so . The path is a hyperbola , and
This work is negative when the gas expands () and positive when it is compressed.
Adiabatic (no heat flow)
Section titled βAdiabatic (no heat flow)βWith ,
The gas follows
Since , an adiabat is steeper than an isotherm through the same point, so an adiabatic expansion does less work and cools the gas. Carrying out the integral,
Example. A diatomic ideal gas () initially at is compressed adiabatically to half its volume. Find the final temperature.
Along an adiabat is constant, so
Since ,
The gas heats up even though no heat was added β all of the compression work went into internal energy. This is the principle behind a diesel engine igniting fuel without a spark plug.
Cyclical and free expansion
Section titled βCyclical and free expansionβOver a complete cycle the system returns to its initial state, so and : the net heat absorbed equals the net work done by the gas, which is the area enclosed by the cycle on a diagram.
In a free expansion a gas rushes into vacuum: no work is done () and no heat is exchanged (), so and for an ideal gas . This is an irreversible, nonequilibrium process β the path is not even well defined between the endpoints, though the endpoints themselves are equilibrium states, and cannot be reversed (unless you vacuum the surroundings) because gas will flow from high pressure to low pressure.
Thermodynamic process summary table
Section titled βThermodynamic process summary tableβUnderlined results apply to ideal gases only.
| Process | Restriction | First law | Other results |
|---|---|---|---|
| All | none | , | |
| Adiabatic | |||
| Constant volume | |||
| Constant pressure | , | ||
| Isothermal | |||
| Cycle | |||
| Free expansion |
Entropy and the Second Law of Thermodynamics
Section titled βEntropy and the Second Law of ThermodynamicsβMost naturally occurring processes proceed in one direction only; they are irreversible (there are reversible reactions (like in Chemistry) but for most purposes processes are irreversible without active heat input). Entropy is the state function that picks out that direction.
For a reversible process,
and for a reversible isothermal transfer,
Entropy is a state property: depends only on the endpoints, not the path. For an ideal gas this gives the very useful general form
Specializing: for an isothermal process, for isochoric, and for isobaric.
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). In a closed system entropy never decreases:
with equality only for reversible processes. Equivalently, heat flows spontaneously from hot to cold, and energy does not spontaneously concentrate.
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.
Heat Engines
Section titled βHeat EnginesβA heat engine uses a working substance cycling through thermodynamic processes to extract heat and produce work. Because it returns to its starting state each cycle, , so the net work equals the net heat. Drawing heat from a hot reservoir and dumping to a cold one,
and the efficiency is
The Carnot engine
Section titled βThe Carnot engineβThe Carnot cycle is two isotherms (at and ) joined by two adiabats. On a β diagram it is simply a rectangle: the isotherms are horizontal, and the adiabats are vertical (constant entropy, βisentropicβ, although this term is rarely used). Heat enters reversibly at and leaves reversibly at , so
Substituting into the efficiency gives the result below.
Theorem (Carnot efficiency). A reversible engine operating between reservoirs at and has efficiency
No engine operating between two reservoirs can beat this, because the Carnot cycle is fully reversible β no energy is lost to friction, turbulence, or unrestrained heat conduction.
Proof (Carnot efficiency is the maximum efficiency). Suppose an engine X were more efficient than a Carnot engine between the same reservoirs. Use Xβs work output to drive a Carnot engine backwards as a refrigerator. The combination would move heat from cold to hot with no net work input β a perfect refrigerator β which violates the Second Law. Hence .
Example. A Carnot engine operates between reservoirs at and and absorbs from the hot reservoir each cycle. Find its efficiency, work output, and heat rejected.
The efficiency is
So the work per cycle is , and the heat dumped is .
As a check, equals : the entropy drawn from the hot reservoir exactly matches that given to the cold one, which is the hallmark of a reversible cycle.
Other reversible engines
Section titled βOther reversible enginesβThe Carnot formula applies only to reversible engines using exactly two reservoirs. The ideal Stirling engine replaces Carnotβs two adiabats with two constant-volume processes, so heat is exchanged in all four legs. Its efficiency is therefore lower than a Carnot engine between the same two temperatures.
Refrigerators and Heat Pumps
Section titled βRefrigerators and Heat PumpsβA refrigerator uses work to push heat from a cold reservoir to a hot one β the reverse of an engine. By the First Law,
Its performance is measured by the coefficient of performance , βwhat you want over what you pay forβ:
An air conditioner is a refrigerator whose cold reservoir is the room. A heat pump is the same machine run to heat a room β now the room is the hot reservoir, and the relevant quantity is .
For cooling (AC, refrigerator) the goal is :
For heating (warming a house) the goal is :
The two are related by
which follows directly from .
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.
Problem-solving strategy
Section titled βProblem-solving strategyβRead the process first, then pick the constraint that turns the first law into something solvable: