Home/Lessons/Lesson 7

Mathematical Structure: The Fundamental Relations

From the fundamental equation to equations of state and equilibrium conditions.

Open systemsFundamental relationsEnergy representationEntropy representationMaxwell relationsGibbs-Duhem relationEuler's theoremThird lawThermodynamic stabilityConvexity

The previous lesson introduced entropy and the second law, from which we derived the fundamental relation dU=T dS−P dVdU=T\,dS-P\,dV for a closed system. We will now explore what this relation 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. 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.

1.1. Extension to open systems

In Lesson 6, we considered a locally reversible path between two nearby equilibrium states of a closed system to obtain δQrev=T dS\delta Q_{\mathrm{rev}}=T\,dS and δWrev=−P dV\delta W_{\mathrm{rev}}=-P\,dV, and then

dU=T dS−P dV,dU=T\,dS-P\,dV,

using the first law. In an open system, the number of particles NN can vary. The differential of the energy then contains an additional term:

Definition 1 (Fundamental relation and chemical potential)
For an open system consisting of a single chemical species and subject only to pressure work, the fundamental relation between nearby equilibrium states is:

dU=TdS−PdV+μdN\boxed{dU=T dS-P dV+\mu dN}
(1)

where the coefficient μ\mu is called the chemical potential.

Notice that we treat NN as a continuous variable, although strictly speaking it is an integer. This approximation is appropriate for macroscopic systems, for which N≫1N\gg1.

Despite its name, the coefficient μ\mu plays a role even in the absence of chemical reactions. To understand what it measures, let us hold SS and VV fixed: this leaves dU=μ dNdU=\mu\,dN. 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 partition 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 Section 6.

1.2. Fundamental variables and equations of state

We now have many thermodynamic variables: UU, SS, VV, NN, TT, PP and μ\mu. 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 f(x,y,z)f(x,y,z):

df=(∂f∂x)y,zdx+(∂f∂y)x,zdy+(∂f∂z)x,ydz.df=\drp{f}{x}{y,z}dx+\drp{f}{y}{x,z}dy+\drp{f}{z}{x,y}dz.

Comparing this with the relation dU=T dS−P dV+μ dNdU=T\,dS-P\,dV+\mu\,dN leads to two consequences.

Property 1 (Natural variables and equations of state)
First, internal energy is a function of just three independent variables: SS, VV and NN. These are called the fundamental variables in this representation, known as the energy representation. They are also called the natural variables of UU, and we write U=U(S,V,N)U=U(S,V,N). Next, identifying the coefficients of dSdS, dVdV and dNdN gives three relations:

T(S,V,N)=(∂U∂S)V,N,P(S,V,N)=−(∂U∂V)S,N,μ(S,V,N)=(∂U∂N)S,V\boxed{ T(S,V,N)=\drp{U}{S}{V,N}, P(S,V,N)=-\drp{U}{V}{S,N}, \mu(S,V,N)=\drp{U}{N}{S,V} }
(2)

These three relations are the equations of state: they give TT, PP and μ\mu as functions of SS, VV and NN.

It is essential to understand the role of the different variables in dU=T dS−P dV+μ dNdU=T\,dS-P\,dV+\mu\,dN. The presence of TT, PP and μ\mu does not mean that they must be added to SS, VV and NN as three further independent variables. They are the coefficients of the differential, and are themselves functions of SS, VV and NN: T=T(S,V,N)T=T(S,V,N), and similarly for PP and μ\mu. The nontrivial content of the fundamental relation is that these three functions are derivatives of the same function U(S,V,N)U(S,V,N). Their variations are therefore already accounted for through those of SS, VV and NN; they do not add three independent variables to the description.

The above shows that the seven parameters we have introduced are not all independent. For a given simple system, three extensive parameters, SS, VV and NN, suffice to determine the equilibrium state: the function U(S,V,N)U(S,V,N) gives the internal energy, and its three derivatives give the temperature, pressure and chemical potential.

We must therefore distinguish specifying the parameters S,V,NS, V, N, which fixes the state of the system, from specifying the function U(S,V,N)U(S,V,N), 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 UU 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.

Remark 1 (Generalization to rr chemical species)
For a mixture of rr chemical species, the number of particles NiN_i of each species must be specified. The fundamental relation becomes dU=T dS−P dV+∑i=1rμi dNidU=T\,dS-P\,dV+\sum_{i=1}^{r}\mu_i\,dN_i

Each species thus has its own chemical potential. The fundamental function is then written U(S,V,N1,...,Nr)U(S,V,N_1,...,N_r), with

μi=(∂U∂Ni)S,V,Nj≠i.\mu_i=\drp{U}{N_i}{S,V,N_{j\ne i}}.

The derivative is taken at constant entropy, volume and particle numbers of all other species.

1.3. Example of a monatomic ideal gas

Consider a monatomic ideal gas, for which we already know the expression

U=32NkBT.U=\frac{3}{2}Nk_BT.

This gives UU as a function of TT and NN. To write it in the form U(S,V,N)U(S,V,N), we still need to express TT as a function of SS, VV and NN. Until this dependence is known, we cannot directly calculate the last two equations of state using the derivatives of UU above. In particular, it would be a mistake to conclude that the pressure is zero because VV does not appear explicitly in the expression for UU: at fixed SS and NN, TT depends on volume. Similarly, calculating μ\mu requires accounting for the dependence of TT on NN at fixed SS and VV. The equations of state actually give

P=−32NkB(∂T∂V)S,N,μ=32kBT+32NkB(∂T∂N)S,V.P=-\frac{3}{2}Nk_B\drp{T}{V}{S,N}, \qquad \mu=\frac{3}{2}k_BT+\frac{3}{2}Nk_B\drp{T}{N}{S,V}.

We will calculate these partial derivatives in Section 5: the first recovers the equation of state PV=NkBTPV=Nk_BT, while the second gives the chemical potential of the ideal gas.

1.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 UU are continuous, Schwarz's theorem allows the order of differentiation to be interchanged.

Let us apply it to the variables SS and VV, at fixed NN:

∂2U∂V∂S=∂2U∂S∂V.\frac{\partial^2U}{\partial V\partial S} =\frac{\partial^2U}{\partial S\partial V}.

The left-hand side means that we first differentiate UU with respect to SS, at constant VV and NN, then differentiate the resulting function with respect to VV, at constant SS and NN. According to the equations of state (2), (∂U∂S)V,N=T\drp{U}{S}{V,N}=T. This side therefore equals

∂2U∂V∂S=(∂∂V)S,N[(∂U∂S)V,N]=(∂T∂V)S,N.\frac{\partial^2U}{\partial V\partial S} =\left(\frac{\partial}{\partial V}\right)_{S,N} \left[\drp{U}{S}{V,N}\right] =\drp{T}{V}{S,N}.

On the right, we first differentiate UU with respect to VV, at constant SS and NN, then differentiate the resulting function with respect to SS, at constant VV and NN. Since (∂U∂V)S,N=−P\drp{U}{V}{S,N}=-P, we obtain

∂2U∂S∂V=(∂∂S)V,N[(∂U∂V)S,N]=−(∂P∂S)V,N.\frac{\partial^2U}{\partial S\partial V} =\left(\frac{\partial}{\partial S}\right)_{V,N} \left[\drp{U}{V}{S,N}\right] =-\drp{P}{S}{V,N}.

Equating the two sides thus gives the first Maxwell relation:

(∂T∂V)S,N=−(∂P∂S)V,N.\drp{T}{V}{S,N}=-\drp{P}{S}{V,N}.

Proceeding in the same way with the pairs (S,N)(S,N) and (V,N)(V,N) yields two further relations. The three Maxwell relations in the energy representation are therefore

(∂T∂V)S,N=−(∂P∂S)V,N,(∂T∂N)S,V=(∂μ∂S)V,N,(∂P∂N)S,V=−(∂μ∂V)S,N\boxed{\begin{aligned} \drp{T}{V}{S,N} &=-\drp{P}{S}{V,N},\\ \drp{T}{N}{S,V} &=\drp{\mu}{S}{V,N},\\ \drp{P}{N}{S,V} &=-\drp{\mu}{V}{S,N} \end{aligned}}

These relations follow directly from the fundamental relation when UU is at least twice continuously differentiable. They constitute a strong prediction of thermodynamics that is independent of the model: any substance described by such a fundamental function must satisfy them (under these regularity assumptions on UU).

Conversely, if the functions TT, PP and μ\mu satisfy the Maxwell relations (and are at least C1C^1), then a function UU exists locally such that dU=T dS−P dV+μ dNdU=T\,dS-P\,dV+\mu\,dN. 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 U(S,V,N)U(S,V,N). Measuring entropy itself is not straightforward; we will return to this in the next lesson. What experiments provide are usually relations between measurable quantities, such as pressure, volume and temperature. As we saw in the historical lesson, the ideal gas equation PV=NkBTPV=Nk_BT was first established experimentally. These relations must then be integrated to reconstruct the fundamental equation of the substance under study. We will carry out this reconstruction for the ideal gas in Section 5, thereby finding its fundamental equation U(S,V,N)U(S,V,N).

2. The entropy representation

In the energy representation, UU is the dependent variable: we express it as a function of SS, VV and NN. We can also choose entropy as the dependent variable, provided U(S,V,N)U(S,V,N) can be inverted to give S(U,V,N)S(U,V,N) at fixed VV and NN. In what follows, we will work in domains where this inversion is possible, without repeating the assumption each time.

Solving the fundamental relation for dSdS, with T≠0T\ne0, gives

dS=1TdU+PTdV−μTdN\boxed{dS=\frac{1}{T}dU+\frac{P}{T}dV-\frac{\mu}{T}dN}
(3)

This is the fundamental relation in the entropy representation. By the same reasoning as before, the natural variables of SS are therefore UU, VV and NN:

S=S(U,V,N)\boxed{ S=S(U,V,N) }

Identifying the coefficients of the differential again gives three equations of state

1T=(∂S∂U)V,NPT=(∂S∂V)U,N−μT=(∂S∂N)U,V\boxed{\frac{1}{T}=\drp{S}{U}{V,N}} \qquad \boxed{\frac{P}{T}=\drp{S}{V}{U,N}} \qquad \boxed{-\frac{\mu}{T}=\drp{S}{N}{U,V}}
(4)

Be careful: these are not three equations of state independent of those obtained in the energy representation. They express the same information, simply using a different choice of variables. The function S(U,V,N)S(U,V,N) is called the fundamental equation in the entropy representation. It contains the same information as U(S,V,N)U(S,V,N).

Equality of the mixed derivatives of SS gives the Maxwell relations associated with this representation:

(∂1/T∂V)U,N=(∂P/T∂U)V,N,(∂1/T∂N)U,V=−(∂μ/T∂U)V,N,(∂P/T∂N)U,V=−(∂μ/T∂V)U,N\boxed{\begin{aligned} \drp{1/T}{V}{U,N} &=\drp{P/T}{U}{V,N},\\ \drp{1/T}{N}{U,V} &=-\drp{\mu/T}{U}{V,N},\\ \drp{P/T}{N}{U,V} &=-\drp{\mu/T}{V}{U,N} \end{aligned}}

These relations are not independent of those obtained in the energy representation; they are simply the ones suited to this choice of variables.

Key point
Each of the functions U(S,V,N)U(S,V,N) and S(U,V,N)S(U,V,N) is a fundamental equation: knowing either one is enough to determine all the equilibrium thermodynamics of the system, including its intensive variables, equations of state and Maxwell relations. Geometrically, these two functions describe the same three-dimensional hypersurface in the space of extensive variables (U,S,V,N)(U,S,V,N). This equilibrium surface represents the space of equilibrium states E\mathcal E, introduced in Lesson 3 and revisited in Lesson 4. The latter used, for example, the graph of U(T,V,N)U(T,V,N) in the space (U,T,V,N)(U,T,V,N): the states represented are the same; only the choice of variables changes.

3. The role of extensivity

We still know only two explicit equations of state for the ideal gas. This is not enough to reconstruct the entire fundamental equation by integration, as proposed in Section 1.4. However, we can use an additional property: extensivity. It allows us to apply Euler's theorem to UU or SS and derive a new nontrivial relation, the Gibbs-Duhem relation.

We study it here in general before applying it to the ideal gas.

3.1. Extensivity and Euler's theorem

Definition 2 (Homogeneous function)
In mathematics, a function f(x1,...,xn)f(x_1,...,x_n) is said to be homogeneous of degree kk if it satisfies f(λx1,...,λxn)=λkf(x1,...,xn)f(\lambda x_1,...,\lambda x_n)=\lambda^k f(x_1,...,x_n)

for every λ>0\lambda>0.

If ff is differentiable, Euler's theorem states that

∑i=1nxi∂f∂xi=kf\boxed{\sum_{i=1}^{n}x_i\frac{\partial f}{\partial x_i}=k f}

(5)

Proof.
Simply differentiate the homogeneity relation with respect to λ\lambda, holding the xix_i fixed: ∑i=1nxi∂f∂xi(λx1,...,λxn)=kλk−1f(x1,...,xn).\sum_{i=1}^{n}x_i\frac{\partial f}{\partial x_i} (\lambda x_1,...,\lambda x_n) =k\lambda^{k-1}f(x_1,...,x_n).

Then set λ=1\lambda=1.

We discussed the extensivity of UU and SS in Lessons 4 and 6. 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:

U(λS,λV,λN)=λU(S,V,N),S(λU,λV,λN)=λS(U,V,N),\begin{aligned} U(\lambda S,\lambda V,\lambda N)&=\lambda U(S,V,N),\\ S(\lambda U,\lambda V,\lambda N)&=\lambda S(U,V,N), \end{aligned}

That is, UU and SS are homogeneous functions of degree one. Applying Euler's theorem to U(S,V,N)U(S,V,N) with k=1k=1 therefore gives:

U=S(∂U∂S)V,N+V(∂U∂V)S,N+N(∂U∂N)S,V,U=S\drp{U}{S}{V,N} +V\drp{U}{V}{S,N} +N\drp{U}{N}{S,V},

Substituting the equations of state (2) then gives the Euler relation:

U=TS−PV+μN\boxed{U=TS-PV+\mu N}
(6)

Remark 2
The differential fundamental relation does not assume extensivity. This integrated form, however, does depend on it. A similar calculation in the entropy representation gives the same equation (exercise: verify this).

3.2. The Gibbs-Duhem relation

The Euler relation leads to an important thermodynamic identity for extensive systems. Differentiating it gives

dU=T dS+S dT−P dV−V dP+μ dN+N dμ.dU=T\,dS+S\,dT-P\,dV-V\,dP+\mu\,dN+N\,d\mu.

Regrouping terms on the left, we obtain:

dU−T dS+P dV−μ dN=S dT−V dP+N dμ.dU-T\,dS+P\,dV-\mu\,dN=S\,dT-V\,dP+N\,d\mu.

The fundamental relation shows that the left-hand side vanishes. This leaves the relation

SdT−VdP+Ndμ=0\boxed{S dT-V dP+N d\mu=0}
(7)

called the Gibbs-Duhem relation. It shows that the three intensive variables TT, PP and μ\mu cannot vary independently in a homogeneous phase consisting of a single species.

Remark 3 (In the entropy representation)
In the entropy representation, the Euler relation reads S=UT+PTV−μTN.S=\frac{U}{T}+\frac{P}{T}V-\frac{\mu}{T}N.

Differentiating it and using the fundamental relation (3) similarly gives

Ud(1T)+Vd(PT)−Nd(μT)=0\boxed{U d\left(\frac{1}{T}\right) +V d\left(\frac{P}{T}\right) -N d\left(\frac{\mu}{T}\right)=0}
(8)

Remark 4 (Generalization to several species)
The same calculation, starting from the fundamental relation for a mixture of rr chemical species, gives U=TS−PV+∑i=1rμiNi,U=TS-PV+\sum_{i=1}^{r}\mu_iN_i,

and the Gibbs-Duhem relation becomes

S dT−V dP+∑i=1rNi dμi=0\boxed{ S\,dT-V\,dP+\sum_{i=1}^{r}N_i\,d\mu_i=0 }

4. Intensive degrees of freedom

We have described a simple system using three extensive variables, SS, VV and NN. When the system is extensive, these three variables reduce to two intensive variables for describing its intensive state. Indeed, extensivity immediately gives

U(S,V,N)=Nu(s,v),U(S,V,N)=N u(s,v),

so the energy per particle u=U/Nu=U/N is a function of only two intensive variables, s=S/Ns=S/N and v=V/Nv=V/N.

Definition 3 (Intensive degrees of freedom)
The number of degrees of freedom of a thermodynamic system is the number of independent intensive variables that can be chosen to determine its intensive equilibrium state. It is two for a pure substance in a single phase.

Remember that describing the complete state of the system also requires specifying its size, for example by giving NN, 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 10, where we will establish Gibbs' phase rule.

5. The fundamental equation of the ideal gas

5.1. The Sackur-Tetrode equation

The equations for a monatomic ideal gas are PV=NkBTPV=Nk_BT and U=32NkBTU=\frac{3}{2}Nk_BT, where kBk_B is Boltzmann's constant, related to the ideal gas constant RR by kB=R/NAk_B=R/N_A, with NAN_A being 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 SS than UU. We therefore start from the first equation of state in the entropy representation:

(∂S∂U)V,N=1T=3NkB2U.\drp{S}{U}{V,N} =\frac{1}{T} =\frac{3Nk_B}{2U}.

Integrating with respect to UU at fixed VV and NN, using an arbitrary reference energy U0>0U_0>0, gives

S(U,V,N)=32NkBln⁡(UU0)+F(V,N),S(U,V,N)=\frac{3}{2}Nk_B\ln\left(\frac{U}{U_0}\right)+F(V,N),
(9)

where FF is an as yet unknown function. The argument of the logarithm is thus dimensionless; U0U_0 will be combined with the other constants at the end. The second equation of state then gives

(∂S∂V)U,N=PT=NkBV.\drp{S}{V}{U,N} =\frac{P}{T} =\frac{Nk_B}{V}.

Substituting (9) and integrating with respect to VV gives

F(V,N)=NkBln⁡(VV0)+Z(N),F(V,N)=Nk_B\ln\left(\frac{V}{V_0}\right)+Z(N),

where V0>0V_0>0 is likewise an arbitrary reference volume, and therefore

S(U,V,N)=32NkBln⁡(UU0)+NkBln⁡(VV0)+Z(N).S(U,V,N) =\frac{3}{2}Nk_B\ln\left(\frac{U}{U_0}\right) +Nk_B\ln\left(\frac{V}{V_0}\right) +Z(N).

It remains to determine Z(N)Z(N) using the Gibbs-Duhem relation. The calculation is given in the proof below. Up to a constant AA, we obtain

S=NkB[ln⁡(AVN(UN)3/2)+52]\boxed{ S =Nk_B\left[ \ln\left( A\frac{V}{N}\left(\frac{U}{N}\right)^{3/2} \right) +\frac{5}{2} \right] }
(10)

where AA is a dimensional constant, independent of UU, VV and NN. Up to the value of AA, this is the Sackur-Tetrode formula, derived independently by Otto Sackur and Hugo Tetrode in 19121.

Note 1 : Thermodynamics determines the dependence of SS on UU, VV and NN, but cannot fix AA. This is precisely Sackur and Tetrode's contribution: by dividing phase space into cells of volume h3h^3 per particle, they obtained, for a monatomic ideal gas of indistinguishable particles of mass mm with no internal degeneracy, A=(4πm3h2)3/2.A=\left(\frac{4\pi m}{3h^2}\right)^{3/2}. The presence of Planck's constant hh shows that this value belongs to quantum physics, not to thermodynamics alone.
Proof.
The third equation of state gives

μT=−(∂S∂N)U,V=−32kBln⁡(UU0)−kBln⁡(VV0)−Z′(N).\frac{\mu}{T} =-\drp{S}{N}{U,V} =-\frac{3}{2}k_B\ln\left(\frac{U}{U_0}\right) -k_B\ln\left(\frac{V}{V_0}\right)-Z'(N).
(11)

Meanwhile, the Gibbs-Duhem relation in the entropy representation, equation (8), reads

d(μT)=UN d(1T)+VN d(PT)=UN d(3NkB2U)+VN d(NkBV)=3kB2(dNN−dUU)+kB(dNN−dVV)=5kB2dNN−3kB2dUU−kBdVV.\begin{aligned} d\left(\frac{\mu}{T}\right) &=\frac{U}{N}\,d\left(\frac{1}{T}\right) +\frac{V}{N}\,d\left(\frac{P}{T}\right)\\ &=\frac{U}{N}\,d\left(\frac{3Nk_B}{2U}\right) +\frac{V}{N}\,d\left(\frac{Nk_B}{V}\right)\\ &=\frac{3k_B}{2}\left(\frac{dN}{N}-\frac{dU}{U}\right) +k_B\left(\frac{dN}{N}-\frac{dV}{V}\right)\\ &=\frac{5k_B}{2}\frac{dN}{N} -\frac{3k_B}{2}\frac{dU}{U}-k_B\frac{dV}{V}. \end{aligned}

This expression integrates directly to

μT=−3kB2ln⁡(UU0)−kBln⁡(VV0)+5kB2ln⁡N−α,\frac{\mu}{T} =-\frac{3k_B}{2}\ln\left(\frac{U}{U_0}\right) -k_B\ln\left(\frac{V}{V_0}\right) +\frac{5k_B}{2}\ln N-\alpha,

where α\alpha is a constant still to be determined. Comparing with equation (11) gives

Z′(N)=−5kB2ln⁡N+α.Z'(N)=-\frac{5k_B}{2}\ln N+\alpha.

Integrating once more gives:

Z(N)=−5kB2Nln⁡N+5kB2N+αN+β,Z(N)=-\frac{5k_B}{2}N\ln N+\frac{5k_B}{2}N+\alpha N+\beta,

where β\beta is a second integration constant. Substituting this into the expression for entropy and combining the logarithms, we find

S(U,V,N)=NkBln⁡[(UNU0)3/2VNV0]+52NkB+αN+β.S(U,V,N) =Nk_B\ln\left[ \left(\frac{U}{NU_0}\right)^{3/2}\frac{V}{NV_0} \right] +\frac{5}{2}Nk_B+\alpha N+\beta.

All terms except β\beta are extensive. For S(λU,λV,λN)=λS(U,V,N)S(\lambda U,\lambda V,\lambda N)=\lambda S(U,V,N) to hold, we therefore need β=0\beta=0. Combining U0U_0, V0V_0 and α\alpha into the constant A=eα/kB/(U03/2V0)A=e^{\alpha/k_B}/(U_0^{3/2}V_0) gives

S(U,V,N)=NkB[ln⁡(AVN(UN)3/2)+52],S(U,V,N) =Nk_B\left[ \ln\left( A\frac{V}{N}\left(\frac{U}{N}\right)^{3/2} \right) +\frac{5}{2} \right],
(12)

where AA has the required dimensions.

Remark 5 (In the energy representation)
Inverting relation (10) gives the fundamental equation of the ideal gas in the energy representation: U(S,V,N)=N(NAV)2/3exp⁡(2S3NkB−53)\boxed{ U(S,V,N)=N\left(\frac{N}{AV}\right)^{2/3} \exp\left(\frac{2S}{3Nk_B}-\frac{5}{3}\right) }

5.2. Recovering the equations of state

Let us check that the fundamental equation S=S(U,V,N)S=S(U,V,N) given in (10) recovers the two equations of state from which we started. Differentiating with respect to UU and VV, we find

1T=(∂S∂U)V,N=3NkB2U,\frac{1}{T} = \drp{S}{U}{V,N}=\frac{3Nk_B}{2U},

and

PT=(∂S∂V)U,N=NkBV.\frac{P}{T} = \drp{S}{V}{U,N}=\frac{Nk_B}{V}.

We do indeed recover U=3NkBT/2U=3Nk_BT/2 and PV=NkBTPV=Nk_BT. All that remains is to calculate the chemical potential μ=−T(∂S∂N)U,V\mu=-T\drp{S}{N}{U,V}. Evaluating the derivative gives (verify this):

μ=−kBTln⁡[AVN(UN)3/2]\boxed{\mu=-k_BT\ln\left[A\frac{V}{N}\left(\frac{U}{N}\right)^{3/2}\right]}

(13)

Remark 6
We can now check the Maxwell relations explicitly for the ideal gas; see the exercise “Verifying the Maxwell relations for an ideal gas”.

6. Equilibrium and stationarity of entropy

In Lesson 6, in the paragraph “Entropy and equilibrium”, we assumed that the entropy of an isolated composite system is stationary at equilibrium: its first-order variation vanishes when the system's free parameters 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 UU, volume VV and particle number NN are fixed. The constraints therefore read

U1+U2=U,V1+V2=V,N1+N2=N.U_1+U_2=U,\qquad V_1+V_2=V,\qquad N_1+N_2=N.

The parameters of each subsystem may nevertheless vary, provided their changes compensate one another:

dU2=−dU1,dV2=−dV1,dN2=−dN1.dU_2=-dU_1,\qquad dV_2=-dV_1,\qquad dN_2=-dN_1.

The partition may impose additional constraints: if it is fixed, dV1=0dV_1=0; if it is impermeable, dN1=0dN_1=0. 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 U1U_1, V1V_1 and N1N_1:

Stot=S1(U1,V1,N1)+S2(U−U1,V−V1,N−N1).S_{\mathrm{tot}} =S_1(U_1,V_1,N_1)+S_2(U-U_1,V-V_1,N-N_1).

The fundamental relation gives

dStot=(1T1−1T2)dU1+(P1T1−P2T2)dV1−(μ1T1−μ2T2)dN1.\begin{aligned} dS_{\mathrm{tot}} ={}&\left(\frac{1}{T_1}-\frac{1}{T_2}\right)dU_1\\ &+\left(\frac{P_1}{T_1}-\frac{P_2}{T_2}\right)dV_1\\ &-\left(\frac{\mu_1}{T_1}-\frac{\mu_2}{T_2}\right)dN_1. \end{aligned}

If the three free parameters U1U_1, V1V_1 and N1N_1 can vary independently in both directions near equilibrium, stationarity requires the coefficient of each variation dU1dU_1, dV1dV_1 and dN1dN_1 to vanish. We obtain in turn:

T1=T2P1=P2μ1=μ2\boxed{T_1=T_2} \qquad \boxed{P_1=P_2} \qquad \boxed{\mu_1=\mu_2}

Equality of chemical potentials thus complements the thermal and mechanical equilibrium conditions already encountered. These conditions apply only to allowed exchanges: an impermeable partition, for example, imposes dN1=0dN_1=0 and therefore does not require the last condition at equilibrium.

For a permeable but fixed partition, note that at a common temperature, T1=T2=TT_1=T_2=T, we simply have

dStot=μ2−μ1T dN1,dS_{\mathrm{tot}}=\frac{\mu_2-\mu_1}{T}\,dN_1,

which shows that if μ2>μ1\mu_2>\mu_1, a transfer of particles from 2 to 1 (dN1>0dN_1>0) increases entropy and therefore occurs spontaneously. As stated earlier, 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.

7. References

  1. H. B. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., Wiley (1985)