If two otherwise isolated systems freely exchange energy while remains fixed, their total entropy is
At an interior maximum, . Since thermodynamic temperature satisfies , the systems have equal temperatures at thermal equilibrium.
In the microcanonical ensemble, the microcanonical energy-shell entropy is the Boltzmann entropy
For a macroscopic system, changing the small energy resolution by a fixed factor changes only by a nonextensive additive term, while . Its relative effect therefore vanishes in the thermodynamic limit.
The thermodynamic temperature, pressure, and chemical potential are defined in the entropy representation by
Thus
or, equivalently, the first law of thermodynamics in fundamental form is
The Carnot theorem states that no engine between two fixed heat reservoirs can be more efficient than a reversible engine, and that all reversible engines between those reservoirs have the same efficiency. Thus the heat ratio of a reversible engine depends only on the two reservoirs. Its multiplicative consistency for three reservoirs permits a state variable , unique up to an overall scale, such that
Fixing one reference value defines the thermodynamic temperature scale, and the reversible efficiency is