thermodynamics
1. Introduction
1.1 Scope of Thermodynamics
Thermodynamics is the branch of physics that deals with heat, work, temperature, and their relation to energy, entropy, and the physical properties of matter. It provides a macroscopic description of systems without requiring detailed knowledge of microscopic constituents.
Unlike classical mechanics, which describes individual particle trajectories, thermodynamics operates on aggregate quantities — pressure, volume, temperature, and internal energy — that characterise bulk matter.
1.2 Macroscopic vs Microscopic Perspectives
Classical thermodynamics is purely macroscopic: it relates observable quantities through empirical laws (the four laws of thermodynamics) without reference to atoms or molecules.
Statistical mechanics provides the microscopic foundation: macroscopic thermodynamic quantities emerge as statistical averages over enormous numbers of microscopic states. The bridge between the two perspectives is given by Boltzmann”s entropy formula:
where is the number of accessible microstates.
1.3 Systems, Boundaries, and Processes
A thermodynamic system is the portion of the universe under study, separated from its surroundings by a boundary. Systems are classified by the nature of their boundary:
- Open: Exchange of both matter and energy.
- Closed: Exchange of energy but not matter.
- Isolated: No exchange of matter or energy.
A thermodynamic process is a change of state of a system. Key processes include:
- Isothermal: Constant temperature ().
- Adiabatic: No heat exchange ().
- Isobaric: Constant pressure ().
- Isochoric: Constant volume ().
2. Zeroth and First Laws
2.1 The Zeroth Law and Temperature
Zeroth Law of Thermodynamics. If system is in thermal equilibrium with system , and system is in thermal equilibrium with system , then is in thermal equilibrium with .
This law establishes temperature as a well-defined property: all systems in mutual thermal equilibrium share the same temperature. It motivates the existence of temperature scales and thermometers.
The ideal gas temperature scale is defined by the ideal gas law, which experiments show is approached by all real gases in the low-density limit:
where is the molar gas constant. The temperature in Kelvin is defined such that the triple point of water is exactly .
2.2 The First Law and Internal Energy
First Law of Thermodynamics. The change in internal energy of a system equals the heat added to the system minus the work done by the system:
or equivalently (sign convention: work done on the system):
where depends only on the initial and final states (it is a state function), while and depend on the path taken.
2.3 Work and Heat
For a quasi-static process, the work done by an ideal gas expanding against an external pressure is:
Other forms of work include:
Heat capacity relates heat input to temperature change:
For ideal gases:
- At constant volume: where is the number of degrees of freedom.
- At constant pressure: (Mayer’s relation).
- The ratio: .
2.4 Ideal Gas Processes
Isothermal expansion (): From and (ideal gas internal energy depends only on ):
Adiabatic expansion (): From the first law, . For an ideal gas this yields the adiabatic relation:
Isobaric expansion ():
Worked Example 2.1: Adiabatic Compression of a Monatomic Gas
A monatomic ideal gas () is compressed adiabatically from , to .
For : (negative = work done on the gas).
3. Second Law and Entropy
3.1 The Second Law: Statements
Clausius statement. Heat cannot spontaneously flow from a colder body to a hotter body.
Kelvin–Planck statement. No process is possible whose sole result is the complete conversion of heat into work.
Both statements are equivalent — a violation of one implies a violation of the other.
3.2 The Carnot Cycle
The Carnot cycle is the most efficient heat engine operating between two temperatures. It consists of four reversible stages:
- Isothermal expansion at : absorb heat from the hot reservoir.
- Adiabatic expansion: temperature drops from to .
- Isothermal compression at : reject heat to the cold reservoir.
- Adiabatic compression: temperature rises from to .
The Carnot efficiency is:
This is the maximum possible efficiency for any heat engine operating between and .
3.3 Entropy
Definition (Clausius entropy). For a reversible process:
Entropy is a state function: its change depends only on initial and final states.
Second Law (entropy form). For any process, the total entropy of an isolated system never decreases:
with equality if and only if the process is reversible.
For an ideal gas undergoing a reversible process:
3.4 Entropy of Mixing
When moles of ideal gas and moles of ideal gas , initially separated, are allowed to mix at the same and :
where is the mole fraction. This is always positive (since ), reflecting the irreversibility of spontaneous mixing.
3.5 The Clausius Inequality
For any cyclic process:
with equality for reversible cycles. This generalises the second law: is a perfect differential () only for reversible processes; for irreversible processes, .
4. Thermodynamic Potentials
4.1 Motivation
The first law involves the path-dependent quantities and . Thermodynamic potentials are state functions that replace and with combinations of state variables, making analysis of equilibrium and spontaneity purely in terms of state variables.
4.2 The Four Potentials
| Potential | Symbol | Natural Variables | Differential |
|---|---|---|---|
| Internal energy | |||
| Enthalpy | |||
| Helmholtz free energy | |||
| Gibbs free energy |
Physical meaning:
- : Total heat content at constant pressure; enthalpy change equals heat at constant .
- : Maximum work extractable at constant . Equilibrium at constant : .
- : Maximum non-expansion work at constant . Equilibrium at constant : .
4.3 Legendre Transforms
The potentials are related by Legendre transforms, which replace one natural variable with its conjugate:
This structure is systematic: starting from the fundamental relation , each Legendre transform swaps one variable for its conjugate to obtain a potential that is natural for different experimental conditions.
4.4 Equilibrium Conditions
At equilibrium, the relevant thermodynamic potential is minimised:
- Constant : minimise (isolated system).
- Constant : minimise (isobaric, adiabatic system).
- Constant : minimise (isothermal, closed rigid system).
- Constant : minimise (isothermal, isobaric system — most common).
Worked Example 4.1: Gibbs Free Energy of a Phase Transition
Consider melting of ice at , . At the melting point, both phases coexist in equilibrium, so .
Above , for melting (spontaneous). Below , (melting is non-spontaneous; freezing is).
5. Maxwell Relations
5.1 Derivation from Exact Differentials
Since , , , are state functions, their differentials are exact. For an exact differential , the cross-partial derivatives are equal: .
Applying this to the four thermodynamic potentials:
From :
From :
From :
From :
These are the four Maxwell relations.
5.2 Applications
Example (Relation between and ): Using Maxwell relations and the chain rule, this can be shown:
For an ideal gas, and , giving .
Example (Internal energy of an ideal gas): Using the Maxwell relation and integrating:
This proves that for an ideal gas, depends only on (Joule’s law).
6. Phase Transitions
6.1 Classification
Phase transitions are classified by the behaviour of thermodynamic quantities and their derivatives:
First-order transitions involve a discontinuity in a first derivative of the Gibbs free energy (e.g., or ). There is latent heat:
Examples: melting, boiling, sublimation.
Second-order (continuous) transitions involve a discontinuity in a second derivative of (e.g., , compressibility, thermal expansion coefficient). There is no latent heat.
Examples: superconducting transition, ferromagnetic Curie point, superfluid transition of He.
6.2 The Clausius–Clapeyron Equation
For a first-order phase transition along the coexistence curve:
where is the latent heat and is the volume change.
Application (liquid–vapour): If (vapour treated as ideal gas, liquid volume neglected):
This is the approximate form of the vapour pressure curve.
6.3 Critical Phenomena
At a critical point, the distinction between phases vanishes. For the liquid–vapour transition in a van der Waals gas, the critical point is at:
Near the critical point, thermodynamic quantities exhibit power-law behaviour characterised by critical exponents. For example, the order parameter (e.g., density difference between liquid and gas) vanishes as where (the 3D Ising universality class).
6.4 Order Parameters
An order parameter is a thermodynamic quantity that is zero in one phase and nonzero in another:
- Liquid–gas: density difference .
- Ferromagnet: magnetisation .
- Superconductor: energy gap or superfluid density .
Landau theory provides a phenomenological framework: the free energy is expanded as a power series in the order parameter, with coefficients depending on temperature. Symmetry of the free energy determines which terms appear.
7. Statistical Mechanics Foundations
7.1 Microstates and Macrostates
A microstate is a complete specification of the state of a system (positions and momenta of all particles). A macrostate is specified by macroscopic variables ().
The fundamental postulate of statistical mechanics (postulate of equal a priori probabilities): an isolated system in equilibrium is equally likely to be found in any of its accessible microstates.
7.2 The Boltzmann Distribution
For a system in thermal equilibrium at temperature with a heat bath, the probability of the system being in microstate with energy is:
where and is the partition function.
7.3 The Partition Function
The canonical partition function for a system with discrete energy levels is:
For a classical ideal gas (continuous energies):
The partition function encodes all thermodynamic information:
Worked Example 7.1: Partition Function of a Classical Ideal Gas
For non-interacting particles in a 3D box of volume :
where is the thermal de Broglie wavelength.
Using Stirling’s approximation :
7.4 Connection to Thermodynamics
The statistical definition of entropy is:
For the canonical ensemble:
This connects the microscopic counting of states to the macroscopic entropy defined by the Clausius relation .
8. Heat Engines and Refrigerators
8.1 Heat Engines
A heat engine converts heat into work by operating between a hot reservoir at and a cold reservoir at .
Efficiency:
Carnot efficiency (maximum possible):
8.2 Refrigerators and Heat Pumps
A refrigerator uses work to transfer heat from a cold reservoir to a hot reservoir.
Coefficient of Performance (refrigerator):
Carnot COP (refrigerator):
For a heat pump (heating mode):
8.3 The Otto Cycle
The Otto cycle models a petrol engine:
- Adiabatic compression ().
- Isochoric combustion (, heat added).
- Adiabatic expansion / power stroke ().
- Isochoric rejection (, heat expelled).
where is the compression ratio. Higher gives higher efficiency, but in practice is limited by engine knock.
8.4 The Diesel Cycle
The Diesel cycle models a diesel engine:
- Adiabatic compression ().
- Isobaric combustion (, heat added).
- Adiabatic expansion ().
- Isochoric rejection (, heat expelled).
where is the compression ratio and is the cut-off ratio.
Worked Example 8.1: Otto Cycle Efficiency
A petrol engine with compression ratio uses air ():
That is, 60.2% efficiency in the ideal Otto cycle. Real engines achieve roughly 25–35% due to friction, heat losses, incomplete combustion, and finite combustion speed.
9. Common Pitfalls
“Heat and internal energy are the same thing.” Heat is energy in transit due to a temperature difference; it is a path-dependent process quantity. Internal energy is a state function depending only on the current state. Adding heat does not “increase the heat” in a body — it increases the internal energy.
” only for reversible processes.” False. Entropy is a state function, so between two equilibrium states is the same regardless of path (reversible or irreversible). To calculate , you imagine a reversible path between the same states, but the result is path-independent. What is path-dependent is the total entropy generation: .
“The Carnot efficiency applies to all heat engines.” The Carnot efficiency is an upper bound achievable only by a reversible engine operating between two thermal reservoirs. Real engines (Otto, Diesel) operate between varying temperatures and are irreversible.
“Free energy minimisation determines equilibrium in all conditions.” Different potentials are minimised under different constraints. At constant and , minimise . At constant and , minimise . At constant and , minimise . Applying the wrong potential leads to incorrect predictions.
“The Maxwell relations are independent identities to be memorised.” All four follow from the exactness of the differential of one of the four thermodynamic potentials. They are systematically generated, not independent. If you remember the four differentials, you can derive all four relations on the spot using .
“At the critical point, the first-order phase transition becomes continuous.” The distinction between first-order and continuous is meaningful only away from the critical point. At the critical point itself, the transition is characterised by diverging correlation lengths and universal critical exponents, described by renormalisation group theory rather than classical thermodynamics alone.
“The Boltzmann factor applies to isolated systems.” The Boltzmann distribution applies to a system in contact with a heat bath (canonical ensemble). For an isolated system with fixed total energy , the correct description is the microcanonical ensemble, where all accessible microstates at energy are equally probable.
10. Summary
- Zeroth law establishes temperature as a transitive, well-defined equilibrium property.
- First law () is energy conservation; is a state function while and are path-dependent.
- Second law () dictates the direction of spontaneous processes and limits engine efficiency to .
- Entropy () measures irreversibility; Boltzmann’s formula connects it to microscopic state counting.
- Thermodynamic potentials (, , , ) replace path-dependent and with state functions; each is natural for specific experimental conditions.
- Maxwell relations follow from exact differentials and allow rewriting hard-to-measure partial derivatives in terms of accessible quantities.
- Phase transitions are classified by discontinuities in derivatives of ; the Clausius–Clapeyron equation governs coexistence curves; critical phenomena exhibit universal power laws.
- Statistical mechanics provides the microscopic foundation via the partition function, which encodes all thermodynamic quantities through its logarithm and derivatives.
- Heat engines (Carnot, Otto, Diesel) are limited by the second law; efficiency increases with compression ratio and temperature differential.
Cross-References
| Topic | Link |
|---|---|
| Classical Mechanics | View |
| Quantum Mechanics I | View |
| Solid State Physics | View |
| Electromagnetism | View |
| MIT 5.60 Thermodynamics | View |
| Stanford Statistical Mechanics | View |
Worked Examples
Example 1: Carnot Efficiency Calculation
Problem: A Carnot engine operates between a hot reservoir at 600 K and a cold reservoir at 300 K. If the engine absorbs 1000 J of heat per cycle, how much work is done and how much heat is rejected? Solution: Efficiency eta = 1 - T_c/T_h = 1 - 300/600 = 0.50 (50%). Work = eta _ Q_h = 0.50 _ 1000 = 500 J. Q_c = Q_h - W = 1000 - 500 = 500 J. The engine rejects 500 J of heat to the cold reservoir per cycle.
Example 2: Entropy Change of Phase Transition
Problem: Calculate the entropy change when 1 mol of ice melts at 0 degrees C. Delta H_fusion = 6.01 kJ/mol. Solution: Delta S = q_rev/T = Delta H_fusion / T = 6010 J / 273.15 K = 22.0 J K^-1 mol^-1. The entropy increases because the solid (ordered) becomes liquid (more disordered).
Cross-References
| Topic | Link |
|---|---|
| Quantum Mechanics II | View |
| Kinetic Theory | View |