First law of thermodynamics Created 2026-09-24 Updated 2026-10-18
The first law applies conservation of energy to a thermodynamic system. For a closed system with unchanged bulk kinetic energy and potential energy, write
Here is internal energy, is heat entering the system and is work done by the system on its surroundings. Compression therefore gives negative . Some references define work positive when done on the system; their plus sign represents the same balance with a different convention. If bulk kinetic energy or potential energy changes, include it in the total energy balance. [ref]
Supplying of heat while a gas does of work increases its internal energy by . Compressing it with of input work in an adiabatic process instead gives , and .
The distinction between and records state versus path: internal energy is a state function, whereas heat and work depend on the process. For an ideal gas expanding reversibly at constant temperature, and , since internal energy of an ideal gas depends only on temperature. Choose and : then . An insulated free expansion into vacuum between the same equilibrium endpoints has . Both have , yet their transfers differ. Their common entropy increase is . [ref]
For a simple compressible equilibrium system of fixed composition, combining the laws gives
Here is pressure and is volume. This identity relates neighboring equilibrium states. Identifying with actual heat and with actual work requires a suitable reversible thermodynamic process; an irreversible piston calculation uses the external resisting pressure for boundary work. This distinction prevents applying a reversible ideal-gas adiabat to an irreversible adiabatic piston compression.
Free expansion Created 2026-10-14 Updated 2026-10-14
Free expansion occurs when a gas spreads into an initially evacuated region without driving an external load. The standard idealization uses a rigid, insulated vessel: initially a partition confines the gas to volume , while the remaining compartment contains vacuum. Open a passage and wait for thermodynamic equilibrium; the same fixed amount of substance now occupies the larger accessible volume . The outer vessel never changes size. This simple release separates three questions: what energy is conserved, whether temperature changes, and why entropy increases. [ref]
Figure 1.
Free expansion changes the accessible volume; the apparatus affects the observed temperature
. Original schematic, with equal compartments chosen for illustration. The top row assumes an insulated gas with negligible wall heat capacity. The bottom left sketches the water-bath arrangement of Joule's free-expansion experiment, rather than a reconstruction to scale. The bottom right uses stipulated heat capacities and an illustrative energy demand to show signal suppression; it contains no measured data. Details.
Choose the gas as the closed system, neglect heat exchange with the walls, and assume negligible changes in bulk kinetic energy and potential energy between the equilibrium endpoints. Insulation gives ; no moving outer boundary or external load receives work, so . The first law of thermodynamics therefore gives
The gas can develop internal motion during the release; this does not supply external work. The intermediate state need not have one equilibrium pressure or temperature, so there is no actual quasistatic process curve to integrate. In particular, substituting the equilibrium ideal gas law into would describe a different process. [ref]
For an ideal gas, internal energy of an ideal gas depends only on temperature. With positive heat capacity at constant volume, implies , and the ideal gas law gives . Doubling the accessible volume thus halves the final pressure without changing the final temperature. This is an endpoint statement; it does not assert a spatially uniform, constant temperature during the rush. Insulation alone does not imply constant temperature: a reversible adiabatic expansion cools an ideal gas because it supplies work. [ref]
For a real gas, can depend on volume as well as temperature, so unchanged internal energy need not mean unchanged temperature. For a fixed-composition simple compressible system in a single thermodynamic phase, equilibrium identities using a Maxwell relation give
Here is the whole sample's heat capacity at constant volume. The sign depends on the equation of state; for an ideal gas the numerator vanishes. For a finite free expansion, solve , or integrate this slope along equilibrium states of equal internal energy; that mathematical curve does not describe the actual release. [ref]
Free expansion is useful because it tests how internal energy depends on number density while eliminating external expansion work. Its beautiful surprise is that an ideal gas can finish with the same temperature and internal energy but greater entropy: a thermometer alone cannot diagnose reversibility. See entropy change in free expansion for the calculation and temperature sensitivity of a free-expansion experiment for the experimental qualification. The continuous-flow throttling associated with the Joule-Thomson coefficient has a different balance: under its usual assumptions it preserves enthalpy, whereas the gas-only idealization here preserves internal energy. [ref]
Heat capacity Created 2026-09-24 Updated 2026-10-14
Heat capacity measures the heat supplied per small temperature increase along a specified process:
The subscript records the constraint, such as fixed volume or fixed pressure. The units are . The symbol emphasizes that heat is a transfer along a path, rather than a state function with a differential . Consequently, an unspecified heat capacity does not determine the required heat.
For a closed system of fixed composition undergoing a quasistatic process, assume that only pressure-volume work occurs, with no friction and no change in bulk kinetic energy or potential energy. The first law of thermodynamics and , where is internal energy and is enthalpy, then give
These partial derivatives define heat capacity at constant volume and heat capacity at constant pressure, with the amount and composition also held fixed. Integrating along the selected constraint gives within a single thermodynamic phase; requires constant . [ref]
For a computed example, take a monatomic gas in the classical ideal gas regime, with amount of substance and stipulated molar gas constant . The equipartition theorem gives , and the ideal gas law gives . Thus
For the same temperature increase , the two processes require
Here work done by the gas is positive. At fixed pressure, the extra heat supplies expansion work; the internal energy increase is the same because internal energy of an ideal gas depends only on temperature. Their final volume values differ. [ref]
Figure 1.
Required heat depends on the constraint and the amount of material
. Left: one mole of classical monatomic gas with the stipulated molar gas constant above; the shaded difference is expansion work at fixed pressure. Right: the illustrative fixed-volume body from specific heat capacity, with mass and . Each curve starts at zero accumulated heat, rather than zero absolute internal energy. Details.
The practical value of heat capacity is that a measured heat input and temperature response can determine it. Once its constraint and temperature dependence are known, it predicts heating requirements and supplies entropy changes through entropy from heat capacity. [ref]
Intensive and extensive thermodynamic quantities Created 2026-09-24 Updated 2026-10-14
An extensive quantity measures how much of a thermodynamic system there is; an intensive quantity describes its state independently of that amount. The clean comparison is replication: take independent identical systems at the same thermodynamic equilibrium, with the same substance, composition and thermodynamic phase. Combining their accounting boundaries multiplies internal energy , entropy , volume , mass and amount of substance , while leaving temperature , pressure and chemical potential unchanged.[ref]
For copies the ledger is
An integer counts actual copies; a positive real describes the corresponding bulk scaling law. Copies can remain separated: replication need not involve removing a partition, changing a container or performing any work. Distinguish , the amount of substance measured in moles, from , the dimensionless count of specified entities, where is the Avogadro constant in . For example, contains specified entities; tripling it gives and entities. This uses the exact Avogadro constant , which does not triple. In the differential , is a molar chemical potential in ; the coefficient of instead has units of energy per entity.
Figure 1.
Replication multiplies the extensive ledger while preserving the equilibrium state
. Details.
As a direct check, the ideal gas law gives
For a monatomic ideal gas with only translational degrees of freedom active, internal energy of an ideal gas gives , so at unchanged temperature. Here is the molar gas constant. The scaling distinction lets a small sample supply an equation of state for a much larger amount: material state and inventory become separate questions.
Replication does not mean multiplying every linear dimension by : a geometrically similar container then has times the volume. Nor does it mean combining samples at different states. Equal temperature establishes thermal equilibrium but does not imply equal pressure, composition or mass density. Density of a composite system makes this distinction concrete.
Internal energy Created 2026-09-24 Updated 2026-10-18
Internal energy is the energy stored in the microscopic degrees of freedom of a thermodynamic system: random molecular kinetic energy, internal molecular excitations, and interaction potential energy. Its value requires a specified system and an energy reference. In thermodynamic equilibrium, internal energy is a state function; it records the present state, without remembering whether a previous change came from stirring, compression or heat transfer. This makes internal energy the common accounting quantity connecting mechanical experiments to thermal ones.[ref]
Heat and work describe energy crossing the system boundary during a process. They are not separately stored contents of the system. For a closed system whose bulk kinetic energy and external potential energy have unchanged endpoint values, the first law of thermodynamics gives
Here is positive for incoming heat, and is positive for net work done on the system. Two routes between the same equilibrium states have the same , although their heat and work can differ. The infinitesimal notation distinguishes a state function change from path-dependent transfers.[ref]
For a calculated example, take one mole of a classical monatomic gas in the ideal gas regime, at fixed volume, from to . With stipulated molar gas constant , its internal energy change is . A purely thermal route supplies with . An ideal insulated stirring route supplies with , measured between equilibrium endpoints after the motion dies away. The same stored increment has two different transfer histories; neither history defines a separate kind of stored energy.
Figure 1.
Internal energy is stored; heat and work are ways to change it
. Original schematic and calculated ideal gas example with the stipulated parameters above; no experimental data. The two routes end at the same temperature and volume. Microscopic kinetic energy and interaction potential energy belong inside ; whole-body motion and external elevation are accounted for separately under the stated convention. Details.
The familiar internal energy of an ideal gas is a useful special case. Neglect intermolecular interactions, hold the amount of substance and composition fixed, and suppose that independent quadratic terms per particle obey the classical equipartition theorem. Choosing the constant reference contribution as zero gives
Here is absolute temperature, is the molar gas constant, and is the whole sample's heat capacity at constant volume. A monatomic gas has translational terms. A rigid diatomic molecule has when its two rotational terms are active and vibration is frozen; activating one harmonic oscillator vibration adds two terms, one kinetic energy and one potential energy, giving . The counting is of quadratic contributions, so a vibrational coordinate is not just one contribution.[ref]
This constant- formula applies only over a regime with those same active terms, classical translational statistics, nonrelativistic motion and unchanged composition. Quantum freezing, quantum degeneracy, chemical reactions or appreciable intermolecular interactions invalidate that simple counting. More generally, at fixed amount and composition an ideal gas can still have with varying heat capacity at constant volume, so use . A nonzero constant reference adds to without altering .
Internal energy of an ideal gas Created 2026-09-24 Updated 2026-10-14
For a fixed amount of substance and composition of classical ideal gas, internal energy depends only on temperature: , with no independent volume dependence. This does not require constant heat capacity at constant volume. Between equilibrium endpoints,
Here is total heat capacity at constant volume, is molar heat capacity, and for sample mass is specific internal energy, whose change is . These endpoint relations apply even when the intervening process is not at fixed volume; they do not say that transferred heat always equals . With constant , the safe statement is . Writing additionally chooses the reference energy; it does not prove that a physical gas remains classical and ideal down to zero temperature. [ref]
A thermodynamic proof outline uses the first law of thermodynamics in equilibrium form, , and the Maxwell relation :
The last step uses the ideal gas law and the molar gas constant , with fixed composition and amount of substance. Microscopically, separated ideal gas particles store no intermolecular interaction energy; their translational kinetic energy and any internal molecular energy are determined by temperature. Negligible intermolecular interactions still allow a molecule to have internal vibrational potential energy.
An original analytical model makes the distinction between an ideal gas and constant heat capacity concrete. Assume classical translation, two fully active rotational terms, and one independent quantum harmonic oscillator per diatomic molecule, with fixed angular frequency . Define the vibrational temperature scale , using the reduced Planck constant and Boltzmann constant . Summing its thermal occupations gives
The constant includes the chosen reference and zero-point energy, whose temperature derivative vanishes. When the vibrational contribution to heat capacity is exponentially small; when it tends to per mole. This model assumes rotations remain active throughout the interval and excludes dissociation, electronic excitation and real gas corrections. Its low- edge is not a model of rotational freezing or of an actual substance at absolute zero.[ref]
Figure 1. . Analytical illustration with active rotations and one quantum harmonic oscillator per molecule. Left: Mayer's relation keeps the capacity difference equal to . Middle: heat capacity ratio falls from toward . Right: the internal energy change from is an integral of varying heat capacity at constant volume; the dashed line suppresses the vibrational contribution. No measured gas curve or material-specific vibrational frequency is implied. Details.
For this stipulated model, heating from to gives . Holding the frozen-vibration value throughout would give , underestimating the required internal energy increase by about of the model's full value. The integral measures all thermal storage activated along the interval. At fixed volume with only heat input, this is also the supplied heat; at fixed pressure, expansion work must be added through Mayer's relation.
Joule's free-expansion experiment tests the independence from volume in a different way: an insulated rigid vessel allows gas into an evacuated compartment, so no external work is delivered and ideally no heat is exchanged. The first law of thermodynamics gives ; positive then predicts equal initial and final equilibrium temperatures for the ideal gas. The apparatus, thermal-capacity controls and limitations of this inference are described in Joule's free-expansion experiment and temperature sensitivity of a free-expansion experiment. This endpoint test differs from the reversible adiabatic expansion of a loaded piston, which delivers work and lowers internal energy.
Isothermal expansion Created 2026-10-05 Updated 2026-10-14
An isothermal expansion increases the volume of a thermodynamic system at fixed temperature. For a reversible ideal gas path, the gas delivers positive work and absorbs positive heat, with and . The heat bath supplies the expansion energy; without sufficient heat transfer, doing work instead lowers the temperature. This transfer is the hot step of a Carnot cycle, and it is why an expanding gas need not cool when its surroundings continuously replenish its internal energy.
An insulated free expansion into an evacuated compartment is different. In the idealization with no heat exchange, no external work and no container energy change, . Since internal energy of an ideal gas depends only on temperature, its final equilibrium temperature equals its initial value. The transient need not have a uniform temperature or pressure, so equal endpoint temperatures do not make it a reversible isotherm. Do not apply the logarithmic isothermal ideal-gas work formula to this irreversible process. Its entropy still increases by ; entropy change in free expansion evaluates this state function difference using a hypothetical reversible path.[ref]
For a real gas, even equal-temperature equilibrium endpoints need not have equal internal energy. An insulated free expansion can therefore change the temperature, while a controlled isothermal expansion must provide the heat needed for both its internal energy change and its delivered work. The internal energy at constant temperature article gives the Van der Waals equation example.[ref]
Isothermal ideal-gas work Created 2026-10-14 Updated 2026-10-18
For a reversible thermodynamic process that changes the volume of a fixed amount of ideal gas at absolute temperature , the work done by the gas is
Here is the amount of substance, the molar gas constant, the pressure, and the natural logarithm. The ideal gas law supplies ; the integral is the signed area under the pressure-volume curve. Isothermal expansion gives positive work; isothermal compression gives negative work. A convention counting work done on the gas instead has .[ref]
For a calculated example, let , and , . The pressure falls from approximately to , and
Traversing the same isothermal process backward changes both transfer signs: . Neither direction changes internal energy of an ideal gas. These stipulated values illustrate the energy balance; they are not experimental measurements.
Figure 1.
Signed work along an ideal-gas isotherm: expansion and compression
. Details.
The shaded geometric area is positive in both panels; the direction of the integral supplies the sign of work. Knowing only the two equilibrium endpoints does not justify shading this curve for an irreversible process. For an idealized piston moving against a specified external resisting pressure, boundary work is . Substitution of the equilibrium gas pressure requires the appropriate reversible limit. In free expansion into vacuum, and this boundary work is zero.
Isothermal process Created 2026-09-29 Updated 2026-10-20
An isothermal process changes a thermodynamic system while keeping its temperature constant. It need not keep its pressure, volume or internal energy constant, and it does not generally have zero heat transfer. An adiabatic process specifies zero heat transfer instead. For example, a slowly expanding ideal gas can absorb heat from a heat bath and deliver the same amount of work while its temperature stays fixed.
For a fixed amount of substance and composition, internal energy of an ideal gas depends only on temperature. With for heat entering and for work delivered to the surroundings, the first law of thermodynamics therefore gives
This equality does not determine either transfer until the path is specified. Isothermal ideal-gas work gives the reversible value; an insulated free expansion has a different value even when its equilibrium endpoints have the same temperature. The closed system convention here excludes changes in bulk kinetic energy and external potential energy.
A conducting cylinder in a large, stirred heat bath approximates an isothermal process when the piston moves slowly enough for thermal conduction to keep up. A quasistatic process keeps the gas close to internal thermodynamic equilibrium; a reversible thermodynamic process additionally requires negligible friction and vanishing driving differences in pressure and temperature. Exact equality of the gas and heat bath temperatures gives no finite heat transfer rate through a finite thermal resistance. The reversible description is a limit of arbitrarily small differences and arbitrarily slow motion, illustrated by the finite-rate isothermal piston model.[ref]
For a real gas, internal energy at constant temperature can change with volume because molecular interaction potential energy changes. In one smooth thermodynamic phase of a fixed-composition simple compressible system,
Thus an isothermal process generally has , with no reason to set . The right-hand side vanishes for the ideal gas law, but not generally for another equation of state.[ref]
Mayer's relation 2026-10-14
Mayer's relation states that the difference between heat capacity at constant pressure and heat capacity at constant volume for a fixed-composition ideal gas is
Here both capacities are total heat capacities in , is amount of substance, is the number of particles, is the molar gas constant and is the Boltzmann constant. In other normalizations the same statement is
The first is a difference of molar heat capacities, in ; the second uses specific heat capacities, in . Writing with total capacities would omit the sample's amount of substance. The relation holds pointwise even when the capacities depend on temperature. [ref]
The proof outline is short: enthalpy is , and internal energy of an ideal gas is independent of volume at fixed temperature. Differentiating at fixed composition and amount of substance therefore gives . It uses the ideal gas law, rather than assuming any particular number of molecular degrees of freedom. At fixed pressure, the additional heat supplies expansion work, . The two processes can have the same temperature endpoints and equal while requiring different heat inputs.
For one mole of the rigid-rotation diatomic ideal gas model, and . Heating by with gives in a rigid sealed vessel and under a frictionless piston at fixed pressure. Both gain of internal energy, while the piston delivers approximately of work. This is a calculated model budget. If the capacities vary with temperature, the corresponding finite statement is still
under the fixed-pressure and fixed-volume heating assumptions in heat capacity. Their final volume values generally differ. Combining Mayer's relation with heat capacity ratio also gives and locally; constant values cannot be extrapolated across intervals in which changes.
For a smooth stable single thermodynamic phase of a general simple compressible system, the broader Maxwell relation identity is
where is the coefficient of thermal expansion and the isothermal compressibility, with composition fixed throughout. Substituting the ideal gas law gives ; a real gas need not do so. This distinction matters near a phase transition or when interactions appreciably change the equation of state. It explains why Mayer's relation is useful: thermal measurements under different constraints become linked to a mechanical response, while the difference retains a particularly simple value for an ideal gas.[ref]
For an ideal gas with constant adiabatic index , let and be specific heat capacities and . The ideal gas law and the internal energy of an ideal gas give and specific internal energy . Since , the internal energy per unit volume is . Consequently a star with spherical symmetry has
The radial integral requires the volume measure : the first printed expression omits this factor if its differential is read literally as . The mass-coordinate expression confirms the required volume interpretation.
Define the enclosed mass , total mass and dimensionless shell label . Mass conservation gives , so the change of variables gives
Here labels a fixed material shell rather than its radial position. In a mass-preserving stellar homology, with . Both a shell's radius and thickness gain a factor , so its volume gains and its mass density becomes . An adiabatic process keeps fixed separately in each shell, even if that constant differs between shells. Thus and . Integration at fixed mass labels proves
The spherical shell theorem gives the Newtonian gravitational potential energy by assembling shells against the mass already inside them:
Every radius gains the same factor , while and remain fixed. Hence
This is the homologous adiabatic stellar stability test. The derivative with respect to the physical stellar radius is . Stationarity at therefore requires , or
After imposing this equilibrium relation, and
Since , a strict energy minimum under this homologous displacement requires
For , contraction sends to , expansion sends it to from below, and is the unique minimum, with . For , contraction sends to , expansion sends it to from above, and is the unique maximum. When , the equilibrium relation makes for every : the scale direction is marginal, not strictly stable. The plotted curves display these three possibilities. This checks homologous radial stability; stability against every stellar displacement needs a fuller perturbation analysis.
Figure 1.
Stellar energy under homologous adiabatic expansion: stable minimum, unstable maximum and marginal scaling
. Details.
A spatially uniform pressure is a useful leading approximation when the sound speed makes the acoustic crossing time much shorter than the radiative cooling and thermal conduction times. The motions must remain at low Mach number, and gravity and other stresses must be negligible. Sound then redistributes pressure before appreciable thermal evolution occurs. Small pressure corrections can still drive the slow motion; imposing exactly zero pressure gradient in the full momentum equation at every order would be a stronger assumption.
The equation of state gives the specific internal energy of an ideal gas as . With , the continuity equation is . Differentiating therefore yields
Insert this into the internal energy equation, whose compressional term is , and use spatially uniform pressure, so . The result is
For temporally constant pressure put , so the mass density is . The continuity equation now gives . Multiplication of the last equation by , with , gives
This is the isobaric conductive cooling in mass coordinates transformation before changing coordinates.
There is a boundary assumption implicit in the proposed Lagrangian coordinate. For a mass integral from a fixed origin, integration of the continuity equation gives
Thus is material when the base mass flux vanishes, as appropriate for the stationary cold reservoir below. If the origin permits mass flux, replace by ; this corrected label has zero material derivative. In a material mass coordinate, and . In particular
The conduction coefficient therefore becomes , with the same as the cooling coefficient. With , the equation is
In the hot gas there is no volumetric radiative cooling. The initial temperature is uniform and the cold boundary introduces no finite mass length. The remaining nonlinear diffusion equation is invariant under , with the same temperature scale. Its natural similarity solution is therefore
The far-field condition also recovers the initial temperature at every fixed as . Substitution gives the ordinary differential equation
For , this reduces to . Integrating first for gives . The two boundary conditions fix , hence the error-function isobaric cooling front is
Here the error function has normalization , as printed in the original PDF; the converted TeX's is incorrect. The following original sketch shows the temperature profiles. The cooling layer broadens as , and at fixed positive mass label the temperature falls as time increases, while the remote hot gas remains at .
Figure 1.
Isobaric conductive cooling profiles at increasing scaled times
. Details.
For , the magnitude of the heat flux into the cold reservoir is
Although the thermal conductivity tends to zero there, the physical temperature gradient diverges: their product has this finite limit. The stationary reservoir has no incoming advective energy flux and radiates the conducted energy immediately. Since , the radiated power per unit area is
Thus the requested exponent is . The initial divergence is the usual idealization of an instantaneous temperature discontinuity in a diffusion equation.
Let be the gravitational energy. Multiply the stellar hydrostatic equation by and integrate through the star. Integration by parts and zero surface pressure give
while its hydrostatic right-hand side is . Hence the stellar virial theorem is
There is a genuine reference-sheet error to resolve. A monatomic ideal gas with adiabatic exponent has specific internal energy of an ideal gas , not the printed on PDF page 2. The latter would give total internal energy and zero total energy, inconsistent with radiating contraction. The following derivation uses the consistent monatomic value.
A fully convective star is approximately isentropic and has an adiabatic stellar polytrope with index . The given polytropic gravitational-energy formula yields . The virial relation gives total internal energy , so total energy is . At constant mass with no nuclear heating, Kelvin-Helmholtz contraction obeys , whence
Here denotes physical time.
In the plane-parallel atmosphere, the inward optical depth satisfies , so hydrostatic equilibrium in optical depth gives . Neglecting radiation pressure, and the specified opacity becomes . Therefore
The grey atmosphere relation and the boundary integrate to
To apply the Schwarzschild criterion, put . Logarithmic differentiation gives
This increases inward, starting from zero. Marginal convection has , so . Since , the grey-atmosphere convection onset with seventeenth-power opacity is
The purely radiative atmosphere is used only up to this boundary.
The convective relation is spatially uniform in its entropy coefficient at each instant; can change as the star radiates and contracts. At the convection boundary is a fixed number, so at fixed composition and opacity normalization. Thus
On the other hand, the central scalings for the stellar polytrope give and . Hence, at fixed composition,
Equating the interior and atmosphere expressions yields . Applying the Stefan–Boltzmann law then proves the Hayashi contraction with seventeenth-power opacity relation
At fixed mass write , with constant and . The contraction equation is , where . Direct integration gives
Multiplying through by and substituting the current luminosity gives
For the stated very large initial radius, or after that initial-radius term becomes negligible,
This is the luminosity-age relation within the contraction model, rather than an assertion that a physical star begins at literally infinite radius.
For a fixed number of particles, the ideal gas equation of state is
Its internal energy depends only on temperature, and
When the heat capacity at constant volume is constant, a choice of the energy zero gives
For particles, the ideal gas equation of state is
The internal energy of an ideal gas depends only on temperature and obeys
For constant heat capacity and a convenient choice of energy zero,
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.
Take a closed system consisting of one mole of a classical monatomic gas, idealized as an ideal gas with constant heat capacity at constant volume . Stipulate amount of substance and molar gas constant for this calculation. Set initial temperature and volume , and define and . The specified equilibrium endpoints are
Thus has volume , temperature and pressure . The fixed material inventory and ideal gas law make these complete endpoint specifications for this model. All numbers below are calculated values, rather than measurements of a particular gas.
Use a frictionless piston, ignore bulk mechanical energy changes, and allow only pressure-volume work. Each step is the limit of a reversible thermodynamic process: adjust loads by infinitesimal pressure differences, and supply heat through infinitesimal temperature differences. Heating with changing temperature requires a succession of matching thermal reservoirs; contact with a single hotter heat bath would give an irreversible finite difference. On a fixed-volume leg the piston is locked. These assumptions justify using the actual equilibrium path's pressure in
An endpoint chord is not the path; substituting a guessed straight line would compute a different thermodynamic process.[ref]
The upper route heats at fixed volume from to , then undergoes isothermal expansion at to . The lower route undergoes isothermal expansion at from to , then heats at fixed volume to . The tuples use the same ordering as the endpoints. Vertical legs do zero expansion work, and the two curved legs have different pressures at every shared intermediate volume.
Figure 1.
Two reversible ideal gas paths connect the same equilibrium endpoints
. Original idealized pressure-volume diagram. The upper route is and the lower route is ; the shaded gap is the difference in work, not an experimental uncertainty. Both are reversible thermodynamic processes under the stated piston and thermal reservoir assumptions. Details.
The internal energy of an ideal gas gives the same endpoint difference for both routes:
On either fixed-volume heating leg, and . On each isothermal expansion, , so the first law of thermodynamics gives . The ideal gas law and the integral of then give
Here is the natural logarithm. Rounded to , the upper route has and the lower route has . Subtracting separately rounded entries can differ by ; the unrounded balances are exact in the stipulated model.
Figure 2.
Different heat and work transfers leave the same internal energy increment
. Original calculated energy ledger for the two reversible paths. Each incoming heat bar is divided into outgoing work and the common stored increment . Labels are rounded; bar lengths use unrounded values. These are process totals, not inventories of stored heat or stored work. Details.
The shaded area between the curves explains the entire difference:
Following the upper route forward and the lower route backward makes a thermodynamic cycle with this positive net work and matching net heat. Its internal energy change is zero. The two open routes themselves are reversible, so their different work outputs should not be mistaken for a loss caused by entropy production: they receive different heat transfers at different temperatures.
Two other state functions provide independent endpoint checks. With enthalpy in this model,
To obtain the entropy change along either route, integrate on its heating leg, giving , and on its isothermal expansion, giving . Reordering the legs changes their heat totals but leaves the sum of their entropy changes unchanged. In particular, neither route's total divided by its final temperature equals , and neither total equals : both routes include an isothermal expansion, rather than a single fixed-pressure heating step.