The zeroth law of thermodynamics states the transitivity of thermal equilibrium: if two systems each equilibrate thermally with a third, they equilibrate with one another. A reproducible thermometric property can therefore label their temperature. Its empirical numerical scale is not itself the complete thermodynamic content; reversible heat-engine relations establish an absolute temperature scale.
The first law of thermodynamics expresses energy conservation. For a closed system, when is work done by the system. internal energy is a state function, while heat and work depend on the path. In reversible simple compressible motion, and ; an open system additionally needs the energies carried by transferred matter. An ideal gas can expand freely with and unchanged internal energy. The first law alone does not decide whether the reverse spontaneous process occurs.
The Second law of thermodynamics introduces entropy and restricts direction. For a reversible path, ; for an irreversible process the entropy balance includes nonnegative production. The entropy of an isolated system cannot decrease. In a cycle, the Clausius inequality is , using the appropriate boundary/reservoir temperatures. The Kelvin–Planck statement forbids a cyclic device whose sole effect is extracting heat from one reservoir and turning all of it into work; the Clausius statement forbids moving heat from cold to hot with no compensating effect. A refrigerator is allowed because it consumes work. A two-reservoir engine has , with equality in the reversible limit. Work may be fully dissipated as heat without contradicting this one-way restriction.
The third law of thermodynamics constrains low-temperature entropy. An equilibrium perfect crystal with a nondegenerate ground state approaches zero entropy as , fixing the conventional absolute entropy reference. Degenerate ground states or frozen nonequilibrium disorder require care when discussing residual entropy. Under regular equilibrium conditions the heat capacity must decrease sufficiently for to remain finite; a constant positive classical heat capacity cannot be extrapolated to zero temperature. The unattainability formulation states that absolute zero cannot be reached by a finite sequence of admissible cooling operations. These statements concern the limiting thermodynamic regime, rather than predicting that every substance stays in one classical phase during cooling.
The laws work together: conservation sets a device's energy budget, entropy production restricts the attainable budget, and constitutive equations give the properties of its working material. For fixed temperature and volume, Helmholtz free energy decreases toward equilibrium; at fixed temperature and pressure the corresponding potential is Gibbs free energy. Stable equilibrium, phase coexistence and Maxwell relations follow from these potentials with appropriate constraints. Calorimetry, mechanical-work measurements, thermometry and reversible-path comparisons test different parts of this framework. None of the laws by itself supplies a particular gas equation of state or microscopic heat capacity.
Suppose two distinct reversible adiabatic processes intersect at an equilibrium state . Choose an isothermal process that meets the two branches at distinct states and , forming a nonzero-area three-sided thermodynamic cycle. There is no heat exchange on or , so the only net heat comes from the one heat reservoir on . Since around a cycle, .
Choose the direction in which this nonzero cycle delivers positive work. It would then convert heat from a single reservoir entirely into work, violating the Kelvin-Planck statement of the second law. Distinct reversible adiabats cannot intersect. Equivalently, their constant entropy labels cannot differ at one equilibrium state. The argument concerns an ordinary equilibrium family of reversible adiabats, not arbitrary irreversible insulated paths. The usual local uniqueness of an equilibrium adiabat excludes coincident segments described as distinct curves.
Use for the heat capacities of the entire -mole sample. For a stable simple compressible gas, a Maxwell relation gives
where and . This heat-capacity difference and mechanical stability explains the sign without assuming the internal energy depends only on temperature. It is strictly positive for an ordinary expanding gas; the unrestricted word “always” needs the qualification that equality is possible when thermal expansion vanishes.
For an ideal gas, thermodynamic consistency gives
Consequently , while . Differentiating gives : at fixed pressure extra supplied heat permits expansion work in addition to the internal-energy increase.
Differentiate the supplied entropy at fixed :
Thus , consistently recovering , and
The coefficient in this entropy corresponds to five active quadratic thermal degrees of freedom per molecule. It should not be replaced by the monatomic value. Reference scales needed to make logarithms dimensionless are absorbed into the entropy constant and do not affect these derivatives.
With open windows the house equilibrates mechanically at approximately the same atmospheric pressure before and after heating. It is an open system: its mole number is not fixed. The isobaric ideal-gas internal-energy density is
At a fixed house volume, : fewer molecules occupy the house, each with greater mean energy. Heating energy can enter while enthalpy leaves with escaping air. Treating the room as a sealed fixed- gas would give the wrong energy-density comparison.
Keep the problem's one-mole convention throughout. The excluded-volume parameter represents the loss of available translational volume due to short-range repulsion; it is an effective covolume, not simply the literal molecular material volume. The attraction parameter reduces the pressure below its purely repulsive value. In a mean-field picture, interaction energy is proportional to pair density, so the attractive free-energy contribution scales as for one mole and the pressure correction as . Equivalently, molecular cohesive forces and the number striking a wall each supply a density factor. These parameters approximate microscopic correlations rather than measuring every pair potential exactly.
At fixed temperature, . Substituting and integrating gives the isothermal free-energy change of a Van der Waals gas
The arbitrary temperature-only term cancels. The internal-energy derivative is instead
Expansion raises the attractive internal energy toward zero. As a check, the entropy change is , so . Constant and a homogeneous branch with are assumed. If a subcritical equilibrium path crosses coexistence, a Maxwell construction replaces the unstable homogeneous continuation; the displayed integral is the direct equation-of-state result, not a claim that such a continuation is physically stable.
At the Van der Waals critical point, the critical isotherm has a stationary inflection:
Equating the resulting expressions for gives , hence
In reduced variables , the critical curve is : it decreases through with zero first and second derivative, rather than having separate liquid/gas turning points at the critical temperature.
Figure 1.
Critical Van der Waals isotherm
. Details.
In the Carnot cycle, let be reversible isothermal expansion at , reversible adiabatic expansion, isothermal compression at , and adiabatic compression. The pressure–volume curve is clockwise. The entropy–temperature figure below uses temperature on the horizontal axis and entropy on the vertical axis, literally an – plot: isotherms are vertical and adiabats horizontal. The hot isotherm increases entropy by and absorbs ; the cold one rejects . Thus and .
For the second engine, choose the working direction with heat addition during at and rejection during at . A reversible ideal-gas adiabat obeys . Define
The two constant-pressure heat transfers are and , where rejected heat is quoted positive. Therefore the Brayton cycle efficiency is
for . All heat-capacity amount conventions cancel in the ratio.
Since and , , the maximum is at B and the minimum at D. The Brayton-Carnot efficiency comparison is
The inequality is strict for a nondegenerate cycle with positive heat input. Although each process can be reversible, the isobaric heat transfer spans a range of temperatures; making the whole cycle reversible requires a succession of matched-temperature reservoirs, rather than just the hottest and coldest reservoirs.
For an ideal diatomic gas with active rotation and frozen vibration, and
Here . This comparison holds at the same pressure ratio and assumes temperature-independent heat capacities in the stated mode regime. Frozen rotation or excited vibration would require their actual heat capacities.
A microstate specifies the microscopic state: classically the positions and momenta of all particles, or quantum mechanically an allowed many-body state. A macrostate specifies a few coarse variables such as energy, volume and particle number. Many microstates can give the same macrostate. A statistical ensemble is a probability assignment over hypothetical copies prepared with the same macroscopic constraints; it does not require a sample to be literally divided into many physical copies. An observable's ensemble mean is , with an integral replacing the sum in classical phase space.
For an isolated system at fixed , the microcanonical ensemble assigns equal probability to accessible microstates in a narrow energy shell. If their number is , the Boltzmann entropy is . Thermal contact between two initially isolated systems allows energy to be shared while their sum stays fixed. The most probable division maximizes , so equilibrium requires equal . This gives the statistical temperature definition
For positive temperature, energy tends to flow from lower entropy slope to higher entropy slope until those slopes agree. The narrow energy-shell width represents macroscopic resolution; it must not exclude the physically accessible states.
For a small subsystem exchanging energy with a much larger bath, the bath has energy when subsystem microstate has energy . Expanding its entropy gives . Counting compatible bath states therefore yields the Boltzmann distribution and canonical ensemble:
The exponential weights individual microstates. An energy level of degeneracy has total probability ; a more degenerate excited level can outweigh one ground-state level even though each of its microstates is less probable. The Gibbs entropy gives . The equilibrium energy variance is , linking measurable fluctuations to a macroscopic response.
If particle exchange is also allowed, a reservoir fixes and chemical potential . The grand canonical ensemble weights a state by , with . Mean particle number is , while volume remains a constraint in this version. Thus the ensemble follows the physical exchange conditions: fixed energy, thermal contact, or thermal and particle contact.
In ordinary large short-range systems, relative fluctuations often decrease as and the ensembles give the same bulk thermodynamics away from singular limits. Finite systems, critical fluctuations and long-range interactions require care. Interpreting a time average as an ensemble average additionally requires appropriate sampling or mixing dynamics; it is not guaranteed solely by naming an ensemble. thermal equilibrium probability assignments do not describe every driven or relaxing state.
For the entropy balance of a thermostatted resistor, electrical work becomes heat . At fixed temperature the resistor has no net change of thermodynamic state; it exports this heat to its thermostat. Treating the electrical supply as a source of work,
Entropy is produced by Joule heating even though it does not accumulate in the resistor. Additional entropy production inside a nonideal power supply is outside the specified model.
At coexistence, the two phases have equal chemical potential. For a single component, , with entropy and volume measured on the same molar or mass basis. Equating the phase derivatives along coexistence gives . Reversible latent heat satisfies , hence
Here and are coexistence pressure and absolute temperature, is latent heat for transforming phase 1 to phase 2, and uses the same amount of material as .
For vaporization, neglect liquid molar volume compared with ideal-vapour volume . The ideal-vapour Clausius-Clapeyron approximation becomes
Using the normal boiling reference , and the supplied constant gives
This deliberately constant-latent-heat extrapolation does not reproduce the supplied triple-point pressure exactly. It predicts the liquid-vapour branch, metastable against ice below the triple-point temperature; it is not a precision sublimation-pressure prediction.
The phase diagram has solid, liquid and vapour regions meeting at the triple point. The sublimation and vaporization boundaries have positive slopes, whereas the ordinary ice–water boundary slopes negatively because ice has larger specific volume. The liquid–vapour line terminates at a critical point; the original schematic below emphasizes topology and marks the supplied triple point.
Figure 1.
Schematic pressure–temperature phase topology of ordinary water, with negative melting slope and the supplied triple point
. Details.
For the melting-pressure estimate, Archimedes' principle gives , so
Convert the molar evaporation heat using water molar mass , rounded from the tabulated value .[ref] An enthalpy cycle through vapour then gives
This uses the question's temperature-independent evaporation heat all the way to the triple point; no replacement experimental fusion heat is inserted. The melting pressure inferred from flotation and latent heats, on holding and constant, is
using and . Linearizing the logarithm about the triple point gives instead of . Both are estimates within the stated constant-property approximation; the negative melting slope makes a positive pressure necessary to lower the melting temperature.
For a simple compressible one-component equilibrium system, the fundamental thermodynamic relation is
The internal energy has natural variables : its derivatives give , and chemical potential . The natural variables of a thermodynamic potential identify the independent arguments whose conjugates appear directly in a potential's differential. A Legendre transform exchanges a variable for its conjugate, giving potentials suited to different controlled conditions:
potentialdefinitionnatural variablesdifferential
internal energy
enthalpy
Helmholtz free energy
Gibbs free energy
For fixed composition and the appropriate closed-system constraints, equilibrium minimizes at fixed , at fixed , at fixed , or at fixed , with other allowable internal variations understood. Enthalpy is useful for constant-pressure heat exchange with only pressure–volume work. Helmholtz free energy is suited to fixed-temperature, fixed-volume systems, and Gibbs free energy to fixed-temperature, fixed-pressure phase or chemical equilibrium. Coexisting phases of one substance have equal chemical potentials.
Where a potential is twice continuously differentiable, equality of mixed derivatives gives Maxwell relations. At fixed , the four usual forms are
The fixed subscripts and signs follow from the chosen natural variables. Derivatives through a nonsmooth phase boundary require separate phase descriptions rather than automatic use of the smooth single-phase formulas.
As an application, the Helmholtz relation turns pressure data into an isothermal entropy change. For an ideal gas, , giving
Combining the same relation with yields , which vanishes for an ideal gas and reveals attractive-energy effects for a van der Waals gas. Thermodynamic potentials organize equilibrium constraints, while Maxwell relations convert difficult entropy derivatives into measurable response derivatives.
With the standard liquid-water approximation , each portion has mass . The equal heat capacities give final temperature by energy conservation. For an insulated mixing process with no other changes,
The reversible integrals evaluate entropy differences between equilibrium states; the actual heat transfer is irreversible. These are two portions of the same substance, so there is no additional ideal-mixture compositional entropy.
Define , where counts particles in the level. Then , so
The binomial entropy of independent two-level particles follows from counting which of the independently labelled particles occupy each nondegenerate level. This is the usual distinguishable, or localized, two-level model; occupation constraints of a degenerate quantum gas would require different counting.
For large occupations, Stirling's approximation with gives
Allowed runs from to in steps of two. Entropy is largest near equal populations and is zero when all particles occupy one level; use at the endpoints.
Phase equilibrium minimizes Gibbs free energy at specified temperature, pressure and composition. Coexisting phases have equal temperature, pressure and chemical potential. For a pure substance, a first-order transition has continuous equilibrium Gibbs free energy but a jump in its first derivatives, such as entropy or volume; the latent heat is . Continuous transitions lack that latent heat and can instead have singular or discontinuous higher responses.
The van der Waals molar equation
combines an excluded-volume correction with attractive interactions. Its inflection conditions give
Below , the oscillatory isotherm contains a mechanically unstable segment with . Equilibrium instead replaces the loop by a constant-pressure coexistence line. Equality of chemical potentials gives the Maxwell construction,
On isothermal compression the gas reaches saturation, then converts progressively into liquid at fixed pressure. The mean molar volume obeys , where is the gas fraction. Metastable superheated or supercooled states can persist when nucleation is delayed; they are not the global equilibrium selected by this construction.
Figure 1.
Illustrative reduced van der Waals coexistence and a generic pure-substance phase diagram
. Details.
A pressure–temperature phase diagram contains coexistence curves separating solid, liquid and gas. Three phases meet at a triple point; the liquid–gas coexistence curve ends at a thermodynamic critical point, above which liquid and gas can be connected without crossing a first-order phase boundary. A generic solid–liquid line continues beyond the liquid–gas critical temperature. For one component the Gibbs phase rule is , so a three-phase equilibrium fixes both temperature and pressure.
Along a two-phase coexistence curve, for each phase gives
This is the Clapeyron equation, valid with consistent molar or specific quantities. For vaporization, neglecting the liquid volume and treating the vapour as ideal gives , hence . With approximately constant molar latent heat,
This Clausius–Clapeyron approximation explains the rapid rise of vapour pressure with temperature. It fails close to the thermodynamic critical point, where phase volumes converge, and is not a universal expression for melting. The sign of a melting-line slope depends on its volume change; water's denser liquid gives a familiar negative slope.
Suppose an engine were more efficient than a reversible Carnot engine between the same reservoirs. Couple it to a reversed Carnot engine, scaling the cycles to have equal work. With no net external work, their combined effect would be to transfer heat from the colder reservoir to the hotter one, contradicting the Second law of thermodynamics. No such engine can exceed . Equivalently, the cyclic entropy inequality gives , hence the same bound.
The reversible working substance changes entropy by on its hot isotherm and on its cold isotherm, with zero change on the two reversible adiabats. Closure requires . The substance has zero entropy change over a cycle, while the reservoirs have changes and . Thus for the complete Carnot cycle.
Put . For the specified ideal gas, , and . Isobaric expansion doubles temperature, so . Reversible adiabatic closure gives , hence
There is no heat input on that compression. The other stages give
Therefore and
The hot reservoir changes entropy by . The cold reservoir changes by . Since the gas completes a cycle,
Although the mechanical paths can be quasistatic, heat flows across finite temperature differences in both contacts. This entropy generation explains why the efficiency is well below the Carnot value between these reservoirs.
For an isothermal final compression at , the preceding constant-volume cooling must instead end at ; keeping the old state 3 would not close the cycle. Compression then requires work , while the heat input remains . Thus
which is lower: this isothermal compression occurs at a higher temperature throughout than the original adiabat and consumes more work. It also rejects heat during compression.
Figure 1.
Energy balance and entropy production in each stage of the three-stage engine
. Details.
Since , the Maxwell relation gives . Thus isothermal stretching increases the film's entropy.
At fixed area, . Therefore
For reversible adiabatic stretching, and
The film cools, assuming positive heat capacity. Adiabaticity alone would not ensure constant entropy if the deformation were irreversible.
Substitute the entropy differential into the given first law:
After the photon has thermalized, its energy belongs to the macroscopic body's internal energy. The body's heat capacity makes the resulting temperature change negligible. Its equilibrium entropy therefore increases by
The Boltzmann entropy then gives the microstate multiplier from photon absorption:
For scale, explicitly choosing a representative visible wavelength and room temperature gives , or , and a multiplier approximately . These are illustrative choices, not additional supplied data: the exact multiplier depends exponentially on the particular visible wavelength and temperature. The exact Planck constant, speed of light, and Boltzmann constant fix the conversion.[ref]
The Second law of thermodynamics restricts which energy-conserving processes can occur. In the Kelvin-Planck statement of the second law, no cyclic engine can have as its sole effect the extraction of heat from one reservoir and its complete conversion into work. In the Clausius statement of the second law, no process can have as its sole effect transferring heat from a colder reservoir to a hotter one. An engine or refrigerator combined with the reverse of a reversible device shows that a violation of either statement would violate the other.
A heat engine takes heat from a reservoir at , rejects to one at , and returns its working substance to the initial state. Energy conservation gives and efficiency . Carnot's theorem states that no engine between these reservoirs is more efficient than a reversible one, and that all reversible engines between them have the same efficiency. Otherwise, drive a reversible engine backwards with the work of a more efficient engine; the composite cycle transfers heat from cold to hot without external work, contradicting the Clausius statement.
A reversible Carnot cycle consists of two isotherms joined by two reversible adiabats. For an ideal gas, and . The adiabats give , so
Carnot's theorem makes this independent of the working substance and defines the thermodynamic absolute-temperature scale consistently with ideal-gas temperature.[ref]
For any reversible cycle, . This makes the integral between two equilibrium states independent of the reversible path, defining the state function entropy:
Heat itself is path dependent; entropy is not. An irreversible change can be evaluated using any imagined reversible path between its equilibrium endpoints. For example, a fixed amount of ideal gas with constant has .
For a general cycle the Clausius inequality is . The entropy balance for a process is , with equality for reversible heat exchange and no entropy production. The surroundings' entropy must be included, giving . A system's own entropy can decrease by exporting entropy; an isolated system's cannot.
The engine's reservoirs have net entropy change , so
with equality for a reversible engine. Friction, heat flow through a finite temperature difference and unrestrained expansion produce entropy and reduce usable work. Thus energy conservation fixes the balance of heat and work, while the second law fixes their direction and the attainable efficiency.[ref]