Heat engine 2026-10-14
A heat engine uses a repeating thermodynamic cycle to turn part of an incoming heat transfer into net outgoing work. In the two-thermal reservoir model, the hot thermal reservoir supplies heat at fixed temperature , and the cold thermal reservoir receives heat of magnitude at fixed temperature . A Stirling engine makes the repeated motion visible; the abstract energy budget applies independently of its particular mechanism.[ref]
Choose the entire cyclic device as a closed system, with no net change in bulk kinetic energy or potential energy. Count heat entering as positive and net work delivered as positive, as in the first law of thermodynamics. Thus enters with a plus sign and , although a positive magnitude, enters with a minus sign. Assume these two heat transfers and the net work are the only transfers across the boundary. Over one complete thermodynamic cycle, all stored energy, including internal energy , returns to its starting value:
The device does not accumulate heat from cycle to cycle. More precisely, heat is a transfer, while internal energy is what can be stored; even a component that temporarily stores internal energy must return to its initial state for this boundary to be cyclic.[ref]
For engine operation, and . Its thermal efficiency is
Use net work, after subtracting any work supplied during compression or required by auxiliaries included in the chosen device. For periodic operation, average power satisfies and , with the rates averaged over complete thermodynamic cycles.[ref]
For a stipulated model at and , let and per thermodynamic cycle. Then and . At two thermodynamic cycles per second, these become incoming heat transfer, outgoing heat transfer, and net power. These are constructed values, not measurements.
Figure 1.
Two-thermal reservoir heat engine: in, of net work, and rejected
. Illustrative transfers per complete thermodynamic cycle, with positive magnitudes labeled on the arrows. The closed system returns to its initial state. Arrow widths represent the energy split; the thermal reservoirs remain at and . Details.
Different signs describe different tasks. With the same directions of heat transfer, gives : a device transmitting heat without net work output. If , net work is supplied to that device. A refrigerator or heat pump instead extracts heat from the cold side and delivers heat to the hot side, using positive input work and the balance . Their useful output is heat transfer, measured by a coefficient of performance. Finally, a one-time isothermal expansion can have and while leaving the volume changed: it is not a complete thermodynamic cycle. A warming device also fails the cyclic assumption, and a fuel-consuming device requires an accounting of matter crossing its boundary.
For two fixed thermal reservoirs at positive thermodynamic temperatures, the Second law of thermodynamics strengthens the energy balance to
Equality requires the overall operation to be a reversible thermodynamic process, including its heat transfer to the thermal reservoirs. The Carnot cycle explains how the reversible benchmark is constructed, and Carnot's theorem explains its universality and the entropy production penalty. Use kelvin values, never ratios of degree Celsius readings. The example above lies below the bound: its total entropy production is per thermodynamic cycle.
Figure 2. . The upper curve is the reversible bound in Carnot's theorem. The lower curve is the stipulated model , not experimental data or a universal engine law. At , the curves give and , matching the energy budget above. The endpoint is a zero-output limit. Details.
This is useful before building a machine: warmer cooling surroundings reduce the possible thermal efficiency, even if the mechanism is unchanged. A small observed thermal efficiency does not by itself test the Second law of thermodynamics; heat leaks, friction, incomplete recovery of work, and the measurement boundary can all reduce the reported ratio. A meaningful comparison requires the actual thermal reservoir temperatures, matched heat and net work measurements, and the hypotheses of Carnot's theorem. Finite bodies whose temperatures change are treated separately there.
The practical question already appears in the 1824 Réflexions sur la puissance motrice du feu et sur les machines propres à développer cette puissance by Sadi Carnot: pp. 6–8 ask whether machines driven by heat have a fundamental limit and whether changing the working substance can improve their output. Pages 9–11 describe heating and cooling in real machines, but use the historical caloric theory, rather than the modern first law of thermodynamics balance. The historical discussion under Carnot's theorem explains that distinction.
Normalization of the reverse law gives an exact finite identity:
The sum notation describes discrete paths; the corresponding path integral has the same change-of-variable argument. Jensen's inequality for the exponential function then gives , hence . Equivalently this mean is the Kullback-Leibler divergence between the forward path law and the reverse path law pulled back by . Equality requires those two laws to agree. [ref]
Rare negative entropy production contributes disproportionately to this expectation through . Missing such events in a finite sample can spoil an estimate of the identity. Matching probability support is also essential: reverse paths absent from the forward law cannot be recovered by cancelling forward weights. This Second law of thermodynamics statement concerns an ensemble average; an individual negative value is compatible with it.
Jarzynski equality 2026-10-14
Integrating the Crooks fluctuation theorem over work and using normalization of the reverse probability distribution gives
Consequently Jensen's inequality gives . Some realizations may nevertheless have . This is a work relation with equilibrium endpoint preparations, while the integral fluctuation theorem for total entropy production uses the actual final forward distribution. [ref]
Kelvin-Planck statement of the second law Created 2026-09-24 Updated 2026-10-14
No cyclic device can have as its sole effect the extraction of heat from one thermal reservoir and its complete conversion into net work. A putative device absorbing and returning to its starting state with and no other transfer would conserve energy, yet violate the Second law of thermodynamics. Rejecting heat to colder surroundings is an essential part of the ordinary two-thermal reservoir heat engine budget.[ref]
The cyclic and sole-effect qualifications matter. A single isothermal expansion of an ideal gas can absorb heat and deliver equal work while leaving its volume changed; restoring the initial state must also be counted. Likewise, a device discharging stored internal energy or consuming fuel has another effect. Converting supplied electrical work completely to heat through Joule heating reverses the proposed conversion and is allowed. The statement also allows cyclic devices that exchange heat with one thermal reservoir while consuming net work; it forbids positive net work output with that single heat source as the only external change.
Conversely, a hypothetical complete-conversion device could take from the hot thermal reservoir and supply of work to an ideal refrigerator that extracts from the cold thermal reservoir and delivers to the hot one. At and , that refrigerator is itself admissible: its reservoir entropy changes cancel. The composite would consume no external work and move a net from cold to hot, violating the Clausius statement of the second law. Together with the construction there, this proves the equivalence of the two impossibility statements.[ref]
For the two fixed positive-temperature thermal reservoir hypotheses, Carnot's theorem gives the sharper restriction . A reversible thermodynamic process reaches that bound in the ideal Carnot cycle; an ordinary device's smaller thermal efficiency reflects its entropy production and measurement boundary. An inefficient observed engine is compatible with the Second law of thermodynamics, rather than evidence that the bound has been experimentally determined.
With the Seebeck coefficient convention at zero electric current, and the transported-heat convention of Peltier coefficient, the Kelvin thermoelectric relation is
is absolute temperature in kelvins; use consistent material references. This scalar linear response relation assumes local thermal equilibrium and reciprocal transport without time-reversal-breaking fields or order. Onsager reciprocal relations supply the symmetry; conservation of energy alone is insufficient. A magnetic field requires a reversed-field reciprocity comparison.[ref]
In particular, the A-minus-B thermocouple coefficient in Seebeck effect is , whereas absorbed junction heat for conventional current A to B uses . There is no contradiction: terminal voltage order and crossing direction are separate choices. Multiplying a measured voltage by an absolute temperature without specifying these choices does not determine junction heating.
A short reciprocity calculation makes the factor visible. At a common reference temperature, write the local linear response with electrical driving field and heat flux as
At , the Seebeck coefficient convention gives . At , the Peltier coefficient is . Thus gives . The chosen forces are conjugate to the fluxes in the local entropy production, ; arbitrary rescaling of just one force would spoil this argument.
The relation is local. Varying permits distributed Thomson effect heating, with ; the constant-coefficient model below omits it. Endpoint substitutions into a constant-property formula can therefore break its energy accounting.
Three distinct effects spoil indefinite cooling: extra entropy outside the spin subsystem, additional magnetic energy scales, and irreversible heat or work input. They can be distinguished with a thermodynamic derivative. For a smooth equilibrium Helmholtz free energy obeying , a Maxwell relation gives
Here is the total heat capacity participating in the stage's thermal equilibrium. The ideal model has . If its spins share temperature with a field-independent lattice and load of combined heat capacity , then
The positive slope still means cooling when , but its smaller magnitude gives less cooling per fractional field reduction. For example, a low-temperature Debye model gives a lattice entropy proportional to . As that lattice entropy falls, the spins take up the released entropy; can no longer remain constant. A weak enough coupling to neglect its equilibrium interaction energy can still be strong enough to exchange heat on the sweep timescale.
Interactions between magnetic moments, including exchange interaction and the fields of neighboring magnetic dipole moments, introduce energy scales that do not vanish with the applied . Once they compete with or , the independent-site partition function fails. Correlations and possible magnetic ordering alter the available magnetic entropy and the cooling curve. Simply setting the external magnetic field to zero does not eliminate those interactions. Different refrigerants therefore need their own measured equilibrium properties; there is no universal final temperature from the applied-field ratio alone.
Finally, a real open heat switch has residual thermal conductance; supports, wires and radiation carry incoming heat. Field changes may also dissipate energy. Locally near thermal equilibrium, with incoming heat rate and internal entropy production rate , the stage balance becomes
This uses a common stage temperature; a non-equilibrated load requires separate balances. The sweep must allow spin-lattice relaxation while remaining fast enough to limit accumulated parasitic heat. At fixed , the same balance explains warming and finite hold time. Useful refrigeration is the controlled absorption of a load's heat during that finite interval, followed by a renewed isothermal process of magnetization to export its entropy.
A single step has negative entropy production with probability , independent of how long an observation lasts. A whole window is negative only if negative steps outnumber positive ones:
For even , the tie has zero entropy production and is excluded. At , the negative-window probabilities for are approximately , , and . Longer windows still contain negative increments: their expected number is . Their total is usually positive because the expected number of positive increments is .
Figure 1.
Exact biased-step model: negative totals become rare with duration while negative increments remain frequent
. Details.
Only odd window lengths are plotted to avoid alternating tie effects. The left panel gives the exact negative-window probability and the upper bound ; the right gives expected counts and . For steps of fixed duration , physical duration is . These are counts and probabilities predicted by the model, not bead traces. The bound follows from . Since for , negative totals are exponentially suppressed even though the negative-step fraction stays .
Differentiate and use , with . Division by gives
This is homogeneous adiabatic expansion without entropy production or exchange across the comoving element.
Work in the shock frame, assume a calorically perfect gas with fixed specific-heat ratio , and neglect magnetic stresses and body forces across the thin shock. The internal energy per unit mass is , and the specific enthalpy is . Integrating the local conservation laws across a thin stationary control volume makes the mass flux , momentum flux , and energy flux continuous. Hence the Rankine-Hugoniot conditions for a perfect gas are
Multiplication of the last equality by gives continuity of the stated energy flux. These express that mass, momentum and energy cannot accumulate in an infinitesimally thin steady shock, although entropy production occurs on the physical compression branch. The same constant in the polytropic equation of state must therefore not be imposed on both sides. For flow from to , both signed velocities are negative; the flux equations and ratios remain valid.
In the Strong-shock Rankine-Hugoniot conditions, tends to zero. Put . The first two flux balances give and to leading order. The energy balance becomes
Discarding the unchanged-state root gives the compressive shock compression ratio and the required limits:
In the shock frame, integrate mass conservation, momentum conservation, and total-energy conservation across a thin interval containing the stationary normal shock wave. No mass, momentum, or energy is stored in the vanishingly thin interval, so each flux has the same value on both sides. For a perfect gas, the specific enthalpy is . The resulting Rankine-Hugoniot conditions for a perfect gas are
The momentum flux includes both transported momentum and pressure force. The energy flux includes kinetic energy and enthalpy, the latter accounting for internal energy and the work needed to push gas through the interval. Entropy production can occur inside the normal shock wave even though total energy is conserved.
For equal weak shocks, , hence
Adding the individual increases in specific entropy gives the entropy production in successive weak shocks
By contrast, a single normal shock wave with the same total pressure ratio gives
Thus a single strong shock produces more entropy than the chain of sufficiently small weak shocks. At fixed , the chain approaches zero entropy production as , while the single-shock result stays positive. The gradual compression approaches reversible isentropic flow.
The first part of is the change of the quadratic energy associated with the active Ornstein–Uhlenbeck force. The second is minus the change in the particle's potential energy, measured in thermal-noise units. The time integral is the work done by active propulsion, again divided by its noise scale; the full log ratio is the trajectory's time-reversal asymmetry or entropy production.
In a stationary confining state the two endpoint terms remain as and have zero mean, while the mean active work and the mean log ratio grow proportionally to . Endpoint-term distributions approach time-independent distributions with positive and negative fluctuations. Under mixing assumptions, the time-integrated work has a large-deviation distribution: its central part becomes approximately Gaussian with mean and variance proportional to , while its far tails scale exponentially in . The log-ratio distribution obeys the corresponding fluctuation theorem symmetry.
The first law of thermodynamics, with defined as heat lost by the particle to the bath, is
Thus , and part d becomes the local detailed balance identity
The logarithmic path-probability ratio is the bath's entropy production in units of .
An original deliberately local model makes the cooling quantitative. Fix a total amount of material, let be the mole fraction of solid, and stipulate molar entropies
The constants and have units of molar entropy per temperature and molar entropy, respectively. Ignore their pressure dependence and the cell's own heat capacity. This is a local thermodynamics model, not an extrapolation to zero temperature. A constant positive cannot remain valid once the solid's spins order.
For a reversible thermodynamic process with no heat exchange, total entropy is constant. Differentiating gives
when and . Define ; solving between two states gives
In particular, stipulate , and . Then
The last expression is the local reversible heat requirement per mole frozen at the final state, divided by ; it is not the heat exchanged during the isolated compression. That compression exchanges no heat. This distinction separates the latent-heat sign from the actual boundary heat budget.
Figure 1.
Why freezing can cool: an idealized Pomeranchuk cooling entropy balance
. Original model in arbitrary units, not data. Left: stipulated and . Right: the isolated reversible path from , to , , with fixed . Only the illustrated local regime is modeled. Details.
The utility of the model is its explicit condition: makes , while positive total heat capacity supplies a stable thermal response. More generally, for molar entropies depending only on temperature, let be the molar heat capacities. Then . Incoming heat or entropy production adds terms to the balance and can overwhelm the ideal cooling. Neither the numerical ratios above nor the straight entropy lines are measurements of helium-3.
Quasistatic process 2026-10-14
A quasistatic process is an ideal limit in which a changing thermodynamic system passes through a sequence of states arbitrarily close to thermodynamic equilibrium. Its intermediate pressure, temperature and volume are therefore well defined and obey its equation of state. Driving must be slow compared with the system's own equilibration, rather than merely taking a long time on a clock. A reversible thermodynamic process additionally allows both system and surroundings to be restored without net change; friction can produce entropy even in a quasistatic process.[ref]
For a computed example, take a fixed amount of substance of ideal gas in a sealed cylinder with a frictionless piston, in contact with a heat bath at absolute temperature . Reduce the external load in infinitesimal steps so that the piston expands from to . In the reversible limit, the gas pressure exceeds the external pressure by an infinitesimal amount during expansion, and the heat transfer occurs across an infinitesimal temperature difference. Exact mechanical equilibrium would give no driving force; the limiting imbalance supplies motion while preserving equilibrium intermediate states.[ref]
Along this reversible isothermal expansion, the ideal gas law gives
Here is the molar gas constant; specifying fixes an energy scale, without choosing and separately. The initial and final equilibrium states are and . Count work delivered to the surroundings as positive. The reversible work is the shaded area beneath the pressure-volume curve:
The integral of supplies the natural logarithm. Since internal energy of an ideal gas depends only on temperature, ; the first law of thermodynamics, , gives to the displayed precision. The heat bath replaces the energy delivered as work.[ref]
Figure 1.
Reversible isothermal expansion: work is the area beneath the equilibrium pressure curve
. Fixed amount of substance of ideal gas, with and . The blue curve gives every intermediate equilibrium state; its shaded area is . The arrow indicates expansion, without specifying a time dependence. Details.
Now start from the same initial state, but abruptly lower the external pressure to the constant value . There is a finite initial pressure imbalance, so this is an irreversible expansion rather than a quasistatic process. Assume the piston begins and ends at rest, has no net change in stored energy, and has no external friction; relaxation occurs within the gas and its heat bath. After motion has settled and the heat bath has restored temperature , mechanical equilibrium and the ideal gas law give . The work delivered to the constant load is
This work follows directly from load force times piston displacement, using for piston area . Intermediate gas states need not have a single equilibrium pressure or temperature. In particular, neither at the bath temperature nor describes the actual gas during this irreversible motion. The rectangle below plots the known external load; its upper edge is not an equilibrium gas path.
Figure 2.
The same equilibrium endpoints give different work for reversible and constant-load expansion
. The blue curve is the reversible ideal gas path. The dashed orange line is constant external pressure, whose rectangle gives of load work. The additional blue shading is available in the reversible case. Black points mark the common gas endpoints; the open orange point marks the initial external load, and the dotted gap indicates the initial imbalance. No irreversible internal gas path is drawn. Details.
The entropy accounting makes the difference precise. Because entropy is a state function, both expansions have the same gas entropy change, computed along the reversible isothermal expansion:
The thermal reservoir stays at and loses heat , so . Assume the ideal load stores work without an entropy change. The combined entropy production is therefore
No numerical entropy unit is implied by alone: or must also be specified. The lost work opportunity is for this comparison. This calculation uses equilibrium endpoints and the reservoir's temperature, without assigning equilibrium intermediate states to the irreversible gas. [ref]
For another boundary choice, let the same ideal gas expand into an initially evacuated compartment of volume inside a rigid, insulated vessel of total volume . Removing the partition causes free expansion: no load is moved and no heat crosses the outer boundary, so and . After equilibration the temperature is again , the pressure is , and the gas entropy has increased by . The outer vessel has fixed volume; the gas's accessible volume doubles. Restoring the initial gas state requires compression and removal of heat, changing the surroundings. Equal endpoints do not make free expansion reversible. [ref]
A slowly moving piston with dry friction supplies a different caution: its gas can remain arbitrarily close to thermodynamic equilibrium, yet rubbing still converts work into heat and produces entropy. If the frictional force has a nonzero slow-motion limit, its dissipated energy over a fixed travel does not vanish with speed. Reversing the motion reverses friction, so infinitesimally changing the external load cannot retrace the same operation and restore the surroundings. The heat capacity calculations additionally exclude friction and other dissipative work.[ref]
The usefulness of a quasistatic process is that it replaces detailed motion by a readable sequence of equilibrium states. An equation of state and an integral then turn a pressure-volume drawing into an energy budget. The beautiful distinction is that internal energy and entropy depend on the endpoints, while heat and work record how the change was performed. Reversible benchmarks expose how much work an irreversible device sacrifices, while entropy production explains why simply making it slower need not recover that opportunity.
A steady state does not by itself give every fluctuating observable an entropy production symmetry. If the dimensionless total entropy production has the same-law finite relation and a large deviation principle with rate function for , then, on its common domain,
The first expression denotes leading exponential scaling; the second follows by taking the scaled logarithm of the probability ratio. A finite-state, autonomous Markov process with time-even states, positive bidirectional rates and a positive stationary distribution supplies a standard setting for a finite total-entropy production relation. The stochastic system entropy is then bounded, so its endpoint contribution does not change the long-time rate function of bath entropy production. [ref]
Unbounded state spaces can have endpoint fluctuations on the scale relevant to a large deviation principle. Dropping system entropy, changing the measured observable to heat, or changing the reverse preparation therefore requires a fresh argument. The exact finite integral fluctuation theorem, a same-law finite relation, and an asymptotic rate function symmetry are distinct claims.