Thermodynamics Created 2026-09-24 Updated 2026-10-13
Thermodynamics studies energy transfers and the constraints on macroscopic changes. Its vocabulary connects internal energy, entropy, temperature, pressure and volume to heat and work. The first law of thermodynamics balances energy; the Second law of thermodynamics decides which changes can occur spontaneously and limits how much work a heat engine can deliver. These principles let us bound performance before choosing a material or a detailed machine design. Applications include power generation, propulsion and refrigerators. [ref]
Start by choosing a system boundary. A closed system can exchange energy but no matter; an isolated system exchanges neither. A state function, such as internal energy or entropy, depends on the equilibrium state. A process specifies how that state changes. Thus a body's temperature is a property it has, whereas heat records energy crossing its boundary during a process. A body contains internal energy, rather than a stored quantity of heat.
Two insulated bodies initially at different positive temperatures approach thermal equilibrium when brought into thermal contact. Their combined energy is conserved, but their combined entropy increases. They do not spontaneously separate again into a hotter body and a colder one. This familiar asymmetry makes thermodynamics interesting: conserving energy leaves many imaginable changes available, and entropy supplies a further constraint. The same distinction underlies both entropy maximization under thermal contact and the thermal efficiency limit in Carnot's theorem.
Thermodynamic system Created 2026-10-14 Updated 2026-10-14
A thermodynamic system is the part of the physical world selected for an energy and matter balance. Draw its boundary before classifying an interaction as heat, work or transported matter. The boundary may move: a sealed piston encloses a closed system even while its volume changes. An isolated system additionally excludes all external energy transfers.[ref]
Boundary choice changes the ledger. If an electrical heater warms water, choosing only the water counts incoming heat; including the heater counts electrical work entering through its leads. The combined internal energy records storage, without separate stored categories for the two transfer mechanisms.[ref]
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.