The first law imposes the conservation of energy; the second law specifies the direction of possible evolutions through the increase of the total entropy. Let us now use this balance to study the spontaneous direction of heat or mechanical transfer, and then equilibrium and its stability. We will restrict ourselves to closed systems, each time distinguishing the system under study from the isolated composite system to which the second law applies.
1. The irreversibility of heat transfer
Consider two closed systems and , of fixed volumes, brought into thermal contact. They need not be gases. The following argument is general. They exchange neither matter nor work, but can exchange heat. The composite system is assumed to be isolated. A weakly conducting wall makes the exchanges slow enough for each system to remain close to its internal equilibrium. Each one then evolves quasi-statically and has a temperature at every instant. We neglect the contributions of the wall to the energy and to the entropy.
At fixed volume and amount of matter, the fundamental relation gives, with ,
Let denote the algebraic heat received by system . Since no work is exchanged, , and since the composite system is isolated, the first law and the additivity of energy require . Writing for the heat transferred from 1 to 2, counted as positive in that direction, we therefore have
By the additivity of entropy, the second law applied to the isolated composite system gives
When , this inequality requires : the transfer therefore goes from hot to cold. If , its direction is reversed, and the transfer again goes from hot to cold. We thus see how the second law imposes the direction of the possible exchanges, in agreement with everyday experience.
When , any nonzero transfer in the allowed direction gives . The spontaneous transfer from hot to cold is therefore globally irreversible, even if each part evolves quasi-statically.
2. Entropy and equilibrium
Let us continue the previous example. Since the wall is conducting, the transfer continues as long as a temperature difference persists. Thermal equilibrium therefore requires .
We then observe that vanishes for any small redistribution of energy between the two bodies: the total entropy is stationary. This result motivates the general criterion that we will assume: at equilibrium, the entropy of an isolated composite system is stationary with respect to the small internal variations allowed by the constraints. In other words, its first-order variation vanishes. This criterion provides a necessary condition for equilibrium; it proves neither the uniqueness of the equilibrium nor the convergence of every evolution towards this state.
To illustrate it, consider a rigid, isolated cylinder containing two compartments of ideal gas separated by a movable, diathermal wall that is impermeable to matter. The wall moves without friction and is subject to no additional force. We neglect its own energy. Conservation of the total energy gives , while conservation of the total volume requires . The fundamental relation then gives
The wall allows both heat transfer and displacement: the redistributions of energy and of volume can therefore be varied independently to test stationarity. The aim here is to compare neighbouring states, not to describe the actual motion of the wall. At equilibrium, this variation must vanish for all such variations. Both coefficients vanish: we obtain , and then , that is,
These familiar conditions show the value of the stationarity criterion, but also the importance of the constraints. If the wall remains movable but becomes adiabatic, it forbids heat transfer while still allowing an exchange of work: and are then no longer independent variations. The two coefficients can therefore not be set to zero separately as before. Mechanical equilibrium still requires , through the balance of forces on the wall, but this condition is not sufficient to impose .
3. Equilibrium and stationarity of entropy
In the previous section, we assumed that the entropy of an isolated composite system is stationary at equilibrium: its first-order variation vanishes when the free parameters of the system are varied slightly while respecting the imposed constraints. Let us repeat this calculation for two subsystems that can also exchange particles. Each is assumed to be in internal equilibrium, and contributions from their interface are neglected. The composite system is isolated: its energy , volume and particle number are fixed. The constraints therefore read
The parameters of each subsystem may nevertheless vary, provided their changes compensate one another:
The wall may impose additional constraints: if it is fixed, ; if it is impermeable, . We must therefore specify the allowed exchanges to determine which parameters remain free.
Expressing the parameters of the second subsystem using the constraints makes the total entropy a function of , and :
The fundamental relation gives
If the three free parameters , and can vary independently in both directions near equilibrium, stationarity requires the coefficient of each variation , and to vanish. We obtain in turn:
Equality of chemical potentials thus complements the thermal and mechanical equilibrium conditions already encountered. Each equality corresponds to an allowed variation. If the wall is impermeable, : stationarity then imposes no equality between and .
For a permeable but fixed wall, note that at a common temperature, , we simply have
which shows that if , a transfer of particles from 2 to 1 () increases entropy and therefore occurs spontaneously. As announced in the previous lesson, at a uniform temperature, matter tends to move from regions of higher chemical potential to regions of lower chemical potential, until the chemical potentials are equal at equilibrium.
4. Stability and concavity of entropy
Stationarity of entropy has given us the equilibrium conditions of an isolated system. Let us return to the two subsystems of the previous section: , and are varied through the allowed exchanges, while the totals , and are kept fixed. Stationarity of the total entropy around the equilibrium partition means that these variations do not change to first order.
Two descriptions must be distinguished here. On the equilibrium surface , in the four-dimensional space , the fixed totals determine a single point: that of the equilibrium of the whole system. But these same totals allow many partitions between the two subsystems. To describe them, we need the additional parameters , those of the second subsystem being imposed by the totals. The total entropy depends on this partition and is not necessarily equal to . The constrained maximum is taken over this set of partitions; it does not consist in varying the totals on the equilibrium surface.
Let us now examine what the second order tells us. If the entropy decreases strictly to second order in all nonzero allowed directions, the partition corresponds to a local maximum of the entropy. It is then locally stable: any small allowed deviation would decrease the entropy and therefore cannot occur spontaneously in the isolated system.
If, on the other hand, the entropy can increase in some directions and decrease in others around a partition where it is stationary, its graph has a saddle point. The system may have evolved spontaneously towards this equilibrium state, but it may also very easily move away from it spontaneously by further increasing its entropy: it is therefore an unstable state.
Second derivatives thus provide information on the local stability of equilibrium. But even a local maximum (locally stable) can be globally unstable, or, as we also say, metastable. Another partition of the energy, volume and particles between the subsystems may yield a higher total entropy, with the same totals and the same constraints. This is the analogue, in classical mechanics, of a system trapped around a local minimum of potential energy that is not a global minimum.
Stable thermodynamic equilibrium, by contrast, corresponds to the global maximum among all these partitions. The second order, which describes only the neighbourhood of the state under consideration, is not sufficient to establish this property, even though it helps characterize its local aspect.
4.1. The maximum entropy principle
The characterization of stable equilibrium that we have just presented is called the maximum entropy principle. It appears in Callen's Postulate II [1], Section 1.10.
This principle characterizes stable equilibrium; it does not assert that every spontaneous evolution reaches it, since a metastable state can persist. We will return to metastability in the study of phase transitions.
4.2. Concavity of S
How can this maximum over internal partitions impose a property on the equilibrium surface itself? Take two portions of the same body, each in internal equilibrium, but not necessarily in equilibrium with each other. Let and ; the second portion then has the quantities .
Each portion is described by the same fundamental function : its quantities and its entropy define a point on the equilibrium surface of this body. Thus an internal partition of the whole system is described by two points on this surface, and . If the system is additive, neglecting interface effects, their entropies add up:
The semicolon is a reminder that is fixed. The maximum principle then gives
The left-hand side describes the equilibrium of the whole system; the right-hand side describes its two portions before they reach mutual equilibrium.
Extensivity now allows us to go from this sum to a weighted average. Choose two reference states and on the same surface, then take a portion of size of the first and a portion of size of the second. Their quantities are and , and their entropies are and . It is this construction that brings out concavity.
for and for all , in the domain of the variables (assumed to be convex). Geometrically, this means that the graph of lies above its chords.
Proof.
The constraints preventing exchanges between these portions are removed, while the composite system is kept isolated. The total quantities remain equal to . The entropy of the corresponding stable equilibrium is . Since the initial partition is one of the possible partitions with these same totals, the maximum principle guarantees that this equilibrium entropy is at least equal to the initial entropy. This is the announced concavity inequality. For or , it becomes an equality.

On this graph, the point on the chord and the point on the curve at correspond to the same totals. The first represents the entropy of the two separate portions, the second that of their common equilibrium. Since the reference states and the proportion are arbitrary, this comparison at fixed totals constrains the shape of the entire equilibrium surface.
We thus return to second derivatives, but their role has become clearer. At the beginning of the section, those of with respect to the internal parameters provided information on the local stability of a partition, at fixed totals. Thanks to additivity and extensivity, this requirement also translates into a condition on the second derivatives of the fundamental function . Imposed at every point and in every direction of a convex domain, this condition characterizes the concavity of over the whole domain. A local condition at a single point would not be sufficient.
Concavity is easy to visualize for functions of a single variable. For such a sufficiently smooth function, concavity is equivalent to a second derivative that is negative or zero at every point. In higher dimensions – here is a function of three variables – the geometric interpretation remains the same: the graph of the function lies above every chord joining two of its points. If the function is sufficiently differentiable, this means that its second derivative is negative or zero in every direction. Checking this condition separately for each variable, with the others held fixed, is therefore not sufficient: one must also consider the directions in which several variables vary together. The correct analytical criterion is in fact the following:
The function is concave if and only if, at every point,
for every variation . The Hessian is then said to be negative semidefinite. This is equivalent to saying that all its eigenvalues are negative or zero.
In practice, we will only need functions of two or three variables in the rest of this course. We assume here that, in this case, the preceding criterion translates into the following conditions, to be checked at every point.
In three variables (), is concave if and only if
and .
We will apply these criteria to entropy in Lesson 9, once the calorimetric and thermoelastic coefficients have been introduced.
4.3. The energy minimum
Since the temperature is positive, the equation of state of Lesson 7 implies
is therefore strictly increasing in at fixed and : we can invert to obtain . The concavity of then translates, conversely, into a convexity of the energy (on any convex domain on which it is defined).
5. Summary: the geometry of thermodynamics
Concavity therefore constrains the shape of the fundamental equation. Let us now look at the surface it defines. A function assigns an entropy to each admissible triple . Its graph is a three-dimensional object embedded in the four-dimensional space . It is therefore impossible to represent it entirely on a sheet of paper. If is fixed, what remains is a two-dimensional surface that can be represented in a three-dimensional space. Extensivity moreover gives this graph a cone structure: together with each point , it contains the ray , for . The surface described by fixes the shape of this cone; sets its scale.
This surface gathers the equilibrium states. What, then, does a transformation represent? A real, rapid transformation generally passes through states that are not equilibrium states. The temperature or the pressure may not be uniform, and a single point on the surface is no longer enough to describe the system. Equilibrium thermodynamics represents only the initial state and the final state.
A quasi-static transformation is an idealization in which the system remains, at every instant, arbitrarily close to an equilibrium state. In the ideal limit, it is represented by a curve drawn on the equilibrium surface. This is not, however, enough to make it reversible. A piston can move arbitrarily slowly while being subject to friction. The system then passes through a succession of well-defined states, but entropy is produced and it is impossible to restore the system, the surroundings and the devices without any other effect.
In the sense of Lesson 6, a locally reversible transformation passes through a succession of equilibrium states, each step of which, including the exchanges with the surroundings, can be reversed by an infinitesimal change in the constraints. It is quasi-static, produces no entropy and is also globally reversible. Global reversibility, for its part, is defined by the possibility of restoring the system and all of its surroundings, without requiring the initial path to be retraced.
The distinction between quasi-staticity and local reversibility can therefore not be read off by placing a curve slightly above or exactly on the equilibrium surface. In both cases, the idealized thermodynamic curve is drawn on this surface. Entropy production and the possibility of reversing each step, including its external effects, are additional information.
We now have two equivalent descriptions, and , together with the relations linking their derivatives. But the natural variables of these two functions are not always those that experiment holds constant. A thermal reservoir imposes , not . An atmosphere or a loaded piston imposes , not . It thus remains to understand how to change variables without losing the information contained in the fundamental relation. Lesson 9 will first relate its derivatives to measurable coefficients; its appendix gathers the rules of differential calculus that are useful from that lesson onwards. Lesson 10 will then construct the potentials suited to the experimental constraints.
6. Summary: the assumptions of the theory
With the fundamental relation, the structure of equilibrium thermodynamics is in place. The assumptions on which it rests were laid down over the course of the lessons, often at the precise moment they were needed. Here they are, gathered together.
- Macroscopic description. At equilibrium, the state of a macroscopic system is entirely determined by a small number of state variables (Lessons 1 and 3).
- State space. The set of equilibrium states is a finite-dimensional differentiable manifold, of which the independent state variables are coordinates (Lesson 3).
- First law. Every closed system has an internal energy , a state function that is at least twice differentiable, and the total energy of an isolated system is conserved (Lesson 4).
- Additivity, then extensivity, of . The energy of a composite system is the sum of the energies of its parts; that of a homogeneous system is proportional to its size (Lesson 4).
- Second law. This is the Clausius statement: no cyclic transformation can have as its sole effect the extraction of heat from a cold thermal reservoir and its delivery to a hot thermal reservoir (Lesson 6).
- Reversible connectedness. The states under study are connected pairwise by at least one locally reversible path, which defines entropy over this whole space up to a single additive constant (Lesson 6).
- Additivity, then extensivity, of . The entropy of a composite system is the sum of the entropies of its parts; that of a homogeneous system is proportional to its size (Lessons 6 and 7).
- Stationarity of entropy. At equilibrium, the entropy of an isolated composite system is stationary with respect to the internal variations allowed by the constraints (Lesson 8).
- Invertibility. At fixed and , the function can be inverted into (Lesson 7).
Only assumptions 3 and 5 are laws in the usual sense. The seven others, less often stated, are just as necessary to the construction.
This inventory allows us to clarify the remark “A law is not an axiom” in Lesson 2. Taken in isolation and in their usual form, the two laws are not axioms: they say neither what a state is, nor what structure the state space has, nor how systems combine. Supplemented by the seven other assumptions, however, they do play that role. This is how we treated them in Lessons 4 and 6: from the Clausius statement, we derived theorems (Carnot's theorems, the Clausius inequality, the increase of the entropy of an isolated system), not new laws.
The status of axiom moreover depends on the chosen starting point. Callen directly postulates the existence of entropy, its additivity, its increase with energy and the maximum entropy principle [1]. His postulates thus cover assumptions 1, 7, 8 and 9, the eighth in a stronger form. The Clausius statement then becomes a theorem: the spontaneous transfer of heat from hot to cold follows from the maximum entropy principle. Finally, our list is not an axiomatic system in the strict mathematical sense. Notions such as the “sole effect” in the Clausius statement, thermal reservoirs or locally reversible paths remain intuitive in it. The axiomatic formulations mentioned in Lesson 2 aim precisely to define them; we will return to them in the second part of the book.
7. Going further
7.1. Absolute zero and the third law
In the ordinary systems considered so far, the temperature is positive. The function is then increasing in , which allows us to pass from the energy representation to the entropy representation. This does not mean that absolute zero results from a mere choice of sign. The absolute temperature scale was constructed from the second law, and is a limit of it.
The third law specifies the behaviour of entropy as this limit is approached. In Nernst's formulation, the entropy changes associated with an isothermal transformation tend to zero as tends to zero. The entropy therefore tends to a constant independent of the continuous macroscopic parameters. In Planck's formulation, valid for a perfect crystal with a unique ground state, this constant is chosen equal to zero:
If the ground state is degenerate or if some disorder remains frozen in, a residual entropy may persist. The claim that the entropy of every system necessarily tends to zero would therefore be too strong.
Another formulation associated with the third law is the unattainability of absolute zero: no finite sequence of physical transformations makes it possible to reach exactly . A system can be cooled ever closer to this temperature, but the point remains a limit.
The Sackur-Tetrode formula seems to contradict this result. Using , it indeed gives
as tends to zero, and hence . The contradiction is only apparent. The Sackur-Tetrode formula describes the dilute classical regime. When the temperature becomes low enough, the quantum states occupied by the particles overlap and the classical approximation ceases to be valid. One must then use Bose-Einstein or Fermi-Dirac statistics.