The previous lesson introduced entropy and the second law. We will now derive the fundamental relation from them, and then see what it tells us about the variables that describe a thermodynamic system and how they depend on one another. Here we consider a simple system: a pure substance (a single chemical component) that is homogeneous (the same local macroscopic properties at every point), with pressure work as its only form of work. Throughout the lesson, we will also show how this description extends to mixtures, which contain several chemical species.
1. The fundamental relation of a closed system
Consider a simple, closed system of fixed composition subject only to pressure work. The number of particles therefore remains constant. Along a quasi-static process, the first law reads
If the process is also locally reversible, we obtain
or
This equation is called the fundamental relation. Although obtained for a locally reversible process, it holds for any elementary process connecting two equilibrium states, since and are state functions. We will study it in detail in the rest of this lesson. For now, the properties of differentials give
The reciprocal temperature therefore measures the change of entropy with internal energy, at fixed volume and amount of substance. In this lesson, we consider states with absolute temperature . The preceding relation then shows that entropy is an increasing function of .
2. Understanding the fundamental relation
Before interpreting this relation, let us extend it to open systems so that we can deal directly with cases in which the amount of matter can vary.
2.1. Extension to open systems
In this case, the fundamental relation contains an additional term:
where the coefficient is called the chemical potential.
As in Lesson 3, is treated here as a continuous variable.
Despite its name, the coefficient plays a role even in the absence of chemical reactions. To understand what it measures, let us hold and fixed: this leaves . The chemical potential therefore measures the change in internal energy per particle added, at constant entropy and volume. It has the dimensions of energy.
We can build an intuition by analogy with temperature: just as heat flows spontaneously from a hot medium to a cold one, particles of a species tend, at a common temperature, to move from the medium where their chemical potential is higher to the one where it is lower, provided the wall allows them to pass. Equality of chemical potentials is therefore a condition for equilibrium with respect to matter exchange, just as equality of temperatures is a condition for thermal equilibrium. We will prove this explicitly in the next lesson.
2.2. Fundamental variables and equations of state
We now have many thermodynamic variables: , , , , , and . This proliferation often confuses students. A natural question arises: can these variables be chosen independently? If not, which ones must be specified to determine the others? We have already seen that some are linked by an equation of state, as in the case of an ideal gas. But how many equations of state does a simple system have, and how many genuinely independent variables remain?
The fundamental relation answers this crucial question. Recall the definition of the differential of a function :
Comparing this with the relation leads to two consequences.
These three relations are the equations of state: they give , and as functions of , and .
It is essential to understand the role of the different variables in . The presence of , and does not mean that they must be added to , and as three further independent variables. They are the coefficients of the differential, and are themselves functions of , and : , and similarly for and . The nontrivial content of the fundamental relation is that these three functions are derivatives of the same function . For a given simple system, the three extensive parameters , and therefore suffice to determine the equilibrium state.
We must therefore distinguish specifying the parameters , which fixes the state of the system, from specifying the function , which describes the system itself. This function is called the system's fundamental equation in the energy representation. The differential relation (1) is satisfied by all simple systems, but the function differs from one system to another: it does not have the same expression for an ideal gas, a real gas, a liquid or a solid.
Each species thus has its own chemical potential. The fundamental function is then written , with
The derivative is taken at constant entropy, volume and particle numbers of all other species.
2.3. Example of a monatomic ideal gas
Consider a monatomic ideal gas, for which we already know the expression
This gives as a function of and . To write it in the form , we still need to express as a function of , and . Until this dependence is known, we cannot directly calculate the last two equations of state using the derivatives of above. In particular, it would be a mistake to conclude that the pressure is zero because does not appear explicitly in the expression for : at fixed and , depends on volume. Similarly, calculating requires accounting for the dependence of on at fixed and . The equations of state actually give
We will calculate these partial derivatives in Section 6: the first recovers the equation of state , while the second gives the chemical potential of the ideal gas.
2.4. The Maxwell relations
The Maxwell relations are thermodynamic identities, valid regardless of the substance under consideration. They follow from the equality of mixed partial derivatives: if the second derivatives of are continuous, Schwarz's theorem allows the order of differentiation to be interchanged.
Let us apply it to the variables and , at fixed :
The left-hand side means that we first differentiate with respect to , at constant and , then differentiate the resulting function with respect to , at constant and . According to the equations of state (2), . This side therefore equals
On the right, we first differentiate with respect to , at constant and , then differentiate the resulting function with respect to , at constant and . Since , we obtain
Equating the two sides thus gives the first Maxwell relation:
Proceeding in the same way with the pairs and yields two further relations. The three Maxwell relations in the energy representation are therefore
These relations follow directly from the fundamental relation when is at least twice continuously differentiable. They therefore constitute a strong, model-independent prediction of thermodynamic theory: any substance described by such a fundamental function must satisfy them (under these regularity assumptions on ).
Conversely, if the functions , and satisfy the Maxwell relations (and are at least ), then a function exists locally such that . We can therefore reconstruct the fundamental function from the equations of state by integration, up to an additive constant.
This reverse approach is useful in practice: when studying a substance in the laboratory, we do not initially know its fundamental function . Measuring entropy itself is not straightforward; we will return to this in Lesson 9. What experiments provide are rather relations between measurable quantities, such as pressure, volume and temperature. As we saw in the historical lesson, the ideal gas equation was first established experimentally. From there, these relations must be integrated to reconstruct the fundamental equation of the substance under study.
3. The entropy representation
In the energy representation, is the dependent variable: we express it as a function of , and . We can also choose entropy as the dependent variable, provided can be inverted to give at fixed and . In what follows, we will work in domains where this inversion is possible, without repeating the assumption each time.
Solving the fundamental relation for , with , gives
This is the fundamental relation in the entropy representation. By the same reasoning as before, the natural variables of are therefore , and :
Identifying the coefficients of the differential again gives three equations of state:
They express the same information as those of the energy representation, using a different choice of variables. The function is called the fundamental equation in the entropy representation.
Equality of the mixed derivatives of gives the Maxwell relations associated with this representation:
4. The role of extensivity
For the ideal gas, we still know only two explicit equations of state. This is not enough to reconstruct the entire fundamental equation by integration, as proposed in Section 2.4. However, we can make use of an additional property: extensivity. It allows us to apply Euler's theorem to or and derive a new nontrivial relation, the Gibbs-Duhem relation.
We study it here in general, before applying it to the ideal gas.
4.1. Extensivity and Euler's theorem
for every .
If is differentiable, Euler's theorem then states that
Proof.
Then set .
We assume that entropy is extensive, in the sense of Lesson 3: multiplying the size of the system by , in the same intensive state, multiplies its entropy by :
For systems with long-range interactions, additivity and extensivity are no longer guaranteed. We will return to these subtle issues in the more advanced part of this book.
We discussed the extensivity of in Lesson 4. This property applies to macroscopic systems in which surface effects and long-range interactions can be neglected. We assume this is the case here. We then have:
that is, and are homogeneous functions of degree one. Applying Euler's theorem to with then gives:
and substituting the equations of state (2) gives the Euler relation:
4.2. The Gibbs-Duhem relation
The Euler relation leads to an important thermodynamic identity for extensive systems. Differentiating it gives
Let us regroup terms on the left as follows:
The fundamental relation then shows that the left-hand side vanishes. This leaves the relation
called the Gibbs-Duhem relation. It shows that the three intensive variables , and cannot vary independently in a homogeneous phase consisting of a single species.
Differentiating it and using the fundamental relation (3) similarly gives
and the Gibbs-Duhem relation becomes
5. Intensive degrees of freedom
We have described a simple system using three extensive variables, , and . When the system is extensive, these three variables reduce to two intensive variables for describing its intensive state. Indeed, extensivity immediately gives
so the energy per particle is a function of only two intensive variables, and .
Note that describing the complete state of the system also requires specifying its size, for example by giving , or another suitable extensive quantity. The two intensive degrees of freedom must therefore not be confused with the three extensive variables needed to describe the complete state.
We will extend this count to systems with several components and several phases in Lesson 11, where we will establish Gibbs' phase rule.
6. The fundamental equation of the ideal gas
6.1. The Sackur-Tetrode equation
The equations for a monatomic ideal gas are and , where is Boltzmann's constant, related to the ideal gas constant by , where is Avogadro's number. These two equations and the Gibbs-Duhem relation allow us to find the fundamental equation of the ideal gas.
It is easier to find than . We therefore start from the first equation of state in the entropy representation:
Integrating with respect to at fixed and , using an arbitrary reference energy , gives
where is an as yet unknown function. The argument of the logarithm is thus dimensionless; will be combined with the other constants at the end. The second equation of state then gives
Substituting (10) and integrating with respect to gives
where is likewise an arbitrary reference volume, and therefore
It remains to determine using the Gibbs-Duhem relation. The calculation is given in the proof below. Up to a constant , we obtain
where is a dimensional constant, independent of , and . Up to the value of , this is the Sackur-Tetrode formula, derived independently by Otto Sackur and Hugo Tetrode in 19121.
Proof.
Meanwhile, the Gibbs-Duhem relation in the entropy representation, equation (9), reads
This expression integrates directly to
where is a constant still to be determined. Comparing with equation (12) gives
Integrating once more:
where is a second integration constant. Substituting this into the expression for entropy and combining the logarithms, we find
All terms except are extensive. For to hold, we therefore need . Combining , and into the constant , we recover equation (11).
6.2. Recovering the equations of state
Let us check that the fundamental equation given in (11) recovers the two equations of state from which we started. Differentiating with respect to and , we find
and
We do indeed recover and . All that remains is to calculate the chemical potential . Evaluating the derivative gives (verify this):