Categories: Physics, Thermodynamics.

Fundamental relation of thermodynamics

In most areas of physics, we observe and analyze the behaviour of physical systems that have been “disturbed” some way, i.e. we try to understand what is happening. In thermodynamics, however, we start paying attention once the disturbance has ended, and the system has had some time to settle down: when nothing seems to be happening anymore.

Then a common observation is that the system “forgets” what happened earlier, and settles into a so-called equilibrium state that appears to be independent of its history. No matter in what way you stir your tea, once you finish, eventually the liquid stops moving, cools down, and just… sits there, doing nothing. But how does it “choose” this equilibrium state?

Thermodynamic equilibrium

This history-independence suggests that equilibrium is determined by only a few parameters of the system. Prime candidates are the mole numbers N1,N2,...,NnN_1, N_2, ..., N_n of each of the nn different types of particles in the system, and its volume VV. Furthermore, the microscopic dynamics are driven by energy differences between components, and obey the universal principle of energy conservation, so it also sounds reasonable to define a total internal energy UU.

Thanks to many decades of empirical confirmations, we now know that the above arguments can be combined into a postulate: the equilibrium state of a closed system with fixed UU, VV and NiN_i is completely determined by those parameters. The system then “finds” the equilibrium by varying its microscopic degrees of freedom such that the entropy SS is maximized subject to the given values of UU, VV and NiN_i. This statement serves as a definition of SS, and explains the second law of thermodynamics: the total entropy never decreases.

We do not care about those microscopic degrees of freedom, but we do care about how UU, VV and NiN_i influence the equilibrium. For a given system, we want a formula S(U,V,N1,...,Nn)S(U, V, N_1, ..., N_n), which contains all thermodynamic information about the system and is therefore known as its fundamental relation.

The next part of our definition of SS is that it must be invertible with respect to UU, meaning we can rearrange the fundamental relation to U(S,V,N1,...Nn)U(S, V, N_1, ... N_n) without losing any information. Specifically, this means that SS must be continuous, differentiable, and monotonically increasing with UU, such that S(U)S(U) can be inverted to U(S)U(S) and vice versa.

The idea here is that maximizing SS at fixed UU should be equivalent to minimizing UU for a given SS (we prove this later). Often it is mathematically more convenient to choose one over the other, but by definition both approaches are equally valid. And because SS is rather abstract, it may be preferable to treat it as a parameter for a more intuitive quantity like UU.

Next, we demand that SS is additive over subsystems, so S=S1+S2+...S = S_1 + S_2 + ..., with S1S_1 being the entropy of subsystem 1, etc. Consequently, SS is an extensive quantity of the system, just like UU (and VV and NiN_i), meaning they satisfy for any constant λ\lambda:

S(λU,λV,λN1,...,λNn)=λS(U,V,N1,...,Nn)U(λS,λV,λN1,...,λNn)=λU(S,V,N1,...,Nn)\begin{aligned} S(\lambda U, \lambda V, \lambda N_1, ..., \lambda N_n) &= \lambda S(U, V, N_1, ..., N_n) \\ U(\lambda S, \lambda V, \lambda N_1, ..., \lambda N_n) &= \lambda U(S, V, N_1, ..., N_n) \end{aligned}

For UU, this makes intuitive sense: the total energy in two identical systems is double the energy of a single of those systems. Actually, reality is a bit hazier than this: dynamics are governed by energy differences only, so an offset U0U_0 can be added without a consequence. We should choose an offset and a way to split the system into subsystems such that the above relation holds for our convenience. Fortunately, this choice often makes itself.

SS does not suffer from this ambiguity, since the third law of thermodynamics clearly defines where S=0S = 0 should occur: at a temperature of absolute zero. In this article we will not explore the reason for this requirement, which is also known as the Nernst postulate. Furthermore, in most situations this law can simply be ignored.

Since UU, SS, VV and NiN_i are all extensive, the partial derivatives of the fundamental relation are intensive quantities, meaning they do not depend on the size of the system. Those derivatives are very important, since they are usually the equilibrium properties we want to find.

Energy representation

When we have a fundamental relation of the form U(S,V,N1,...,Nn)U(S, V, N_1, ..., N_n), we say we are treating the system’s thermodynamics in the energy representation.

The following derivatives of UU are used as the thermodynamic definitions of the temperature TT, the pressure PP, and the chemical potential μk\mu_k of the kkth particle species:

T(US)V,NiP(UV)S,Niμk(UNk)S,V,Nik\begin{aligned} \boxed{ \begin{aligned} T &\equiv \bigg( \pdv{U}{S} \bigg)_{V, N_i} \\ P &\equiv - \bigg( \pdv{U}{V} \bigg)_{S, N_i} \\ \mu_k &\equiv \bigg( \pdv{U}{N_k} \bigg)_{S, V, N_{i \neq k}} \end{aligned} } \end{aligned}

The resulting expressions of the form T(S,V,N1,...,Nn)T(S, V, N_1, ..., N_n) etc. are known as the equations of state of the system. Unlike the fundamental relation, a single equation of state is not a complete thermodynamic description of the system. However, if all equations of state are known (for TT, PP, and all μk\mu_k), then the fundamental relation can be reconstructed.

As explained above, physical dynamics are driven by energy differences only, so we expand an infinitesimal difference dU\dd{U} as:

dU=(US)V,Ni ⁣dS+(UV)S,Ni ⁣dV+k(UNk)S,V,Nik ⁣dNk\begin{aligned} \dd{U} = \bigg( \pdv{U}{S} \bigg)_{V, N_i} \!\dd{S} \:\:+\:\: \bigg( \pdv{U}{V} \bigg)_{S, N_i} \!\dd{V} \:\:+\:\: \sum_{k}^{} \bigg( \pdv{U}{N_k} \bigg)_{S, V, N_{i \neq k}} \!\dd{N_k} \end{aligned}

Those partial derivatives look familiar. Substituting TT, PP and μk\mu_k gives a result that is also called the fundamental relation of thermodynamics (as opposed to the fundamental relation of the system only, just to make things confusing):

dU=TdSPdV+kμkdNk\begin{aligned} \boxed{ \dd{U} = T \dd{S} - P \dd{V} + \sum_{k}^{} \mu_k \dd{N_k} } \end{aligned}

Where the first term represents heating/cooling (also written as dQ\dd{Q}), and the second is physical work done on the system by compression/expansion (also written as dW\dd{W}). The third term is the energy change due to matter transfer and is often neglected. Hence this relation can be treated as a form of the first law of thermodynamics ΔU=ΔQ+ΔW\Delta U = \Delta Q + \Delta W.

Because TT, PP and μk\mu_k generally depend on SS, VV and NkN_k, integrating the fundamental relation can be tricky. Fortunately, the fact that UU is extensive offers a shortcut. Recall that:

λU(S,V,N1,...,Nn)=U(λS,λV,λN1,...,λNn)\begin{aligned} \lambda U(S, V, N_1, ..., N_n) &= U(\lambda S, \lambda V, \lambda N_1, ..., \lambda N_n) \end{aligned}

For any λ\lambda. Let us differentiate this equation with respect to λ\lambda, yielding:

U=λU(λS,λV,λN1,...,λNn)=U(λS)(λS)(λS)λ+U(λV)(λV)(λV)λ+kU(λNk)(λNk)(λNk)λ=U(S)SS+U(V)VV+kU(Nk)NkNk\begin{aligned} U &= \pdv{}{\lambda} U(\lambda S, \lambda V, \lambda N_1, ..., \lambda N_n) \\ &= \pdv{U(\lambda S)}{(\lambda S)} \pdv{(\lambda S)}{\lambda} + \pdv{U(\lambda V)}{(\lambda V)} \pdv{(\lambda V)}{\lambda} + \sum_{k} \pdv{U(\lambda N_k)}{(\lambda N_k)} \pdv{(\lambda N_k)}{\lambda} \\ &= \pdv{U(S)}{S} S + \pdv{U(V)}{V} V + \sum_{k} \pdv{U(N_k)}{N_k} N_k \end{aligned}

Where we once again recognize the derivatives. The resulting equation is known as the Euler form of the fundamental relation of thermodynamics:

U=TSPV+kμkNk\begin{aligned} \boxed{ U = T S - P V + \sum_{k} \mu_k N_k } \end{aligned}

Plus a constant U0U_0 of course, although U0=0U_0 = 0 is the most straightforward choice.

Entropy representation

If the system’s fundamental relation instead has the form S(U,V,N1,...,Ni)S(U, V, N_1, ..., N_i), we are treating it in the entropy representation. Isolating the above fundamental relation of thermodynamics for dS\dd{S} yields its equivalent form in this representation:

dS=1TdU+PTdVkμkTdNk\begin{aligned} \boxed{ \dd{S} = \frac{1}{T} \dd{U} + \frac{P}{T} \dd{V} - \sum_{k}^{} \frac{\mu_k}{T} \dd{N_k} } \end{aligned}

From which we can then read off the standard partial derivatives of S(U,V,N1,...,Nn)S(U, V, N_1, ..., N_n):

1T=(SU)V,NiPT=(SV)U,NiμkT=(SNk)U,V,Nik\begin{aligned} \boxed{ \begin{aligned} \frac{1}{T} &= \bigg( \pdv{S}{U} \bigg)_{V, N_i} \\ \frac{P}{T} &= \bigg( \pdv{S}{V} \bigg)_{U, N_i} \\ \frac{\mu_k}{T} &= - \bigg( \pdv{S}{N_k} \bigg)_{U, V, N_{i \neq k}} \end{aligned} } \end{aligned}

Note the signs: the parameters UU, VV and NiN_i are implicitly related by our requirement that SS is stationary at a maximum, so the triple product rule must be used, which brings some perhaps surprising sign changes. Reading them off in this way is easier.

And of course, since SS is defined to be an extensive quantity, it also has an Euler form:

S=1TU+PTVkμkTNk\begin{aligned} \boxed{ S = \frac{1}{T} U + \frac{P}{T} V - \sum_{k} \frac{\mu_k}{T} N_k } \end{aligned}

Finally, it is worth proving that minimizing UU is indeed equivalent to maximizing SS. For simplicity, we consider a system where only the volume VV can change in order to reach an equilibrium; the proof is analogous for all other parameters. Clearly, SS is stationary at its maximum:

0=(SV)U,Ni=(UV)S,Ni(US)V,Ni=1T(UV)S,Ni\begin{aligned} 0 &= \bigg( \pdv{S}{V} \bigg)_{U, N_i} = - \frac{ \bigg( \displaystyle\pdv{U}{V} \bigg)_{S, N_i} }{ \bigg( \displaystyle\pdv{U}{S} \bigg)_{V, N_i} } = - \frac{1}{T} \bigg( \pdv{U}{V} \bigg)_{S, N_i} \end{aligned}

Where we have used the triple product rule. This can only hold if (U/S)S,Ni=0(\ipdv{U}{S})_{S, N_i} = 0, meaning UU is also at an extremum. But SS is not just at any extremum: it is at a maximum, so:

0>(2SV2)U,Ni=(V(PT))U,Ni=(V(PT))S,Ni+(S(PT))V,Ni(SV)U,Ni=(V(PT))S,Ni+PT(S(PT))V,Ni=1T(PV)S,NiPT2(TV)S,Ni+PT(S(PT))V,Ni=1T(2UV2)S,Ni+PT[(S(PT))V,Ni1T(TV)S,Ni]\begin{aligned} 0 > \bigg( \pdvn{2}{S}{V} \bigg)_{U, N_i} &= \bigg( \pdv{}{V} \Big( \frac{P}{T} \Big) \bigg)_{U, N_i} \\ &= \bigg( \pdv{}{V} \Big( \frac{P}{T} \Big) \bigg)_{S, N_i} + \bigg( \pdv{}{S} \Big( \frac{P}{T} \Big) \bigg)_{V, N_i} \bigg( \pdv{S}{V} \bigg)_{U, N_i} \\ &= \bigg( \pdv{}{V} \Big( \frac{P}{T} \Big) \bigg)_{S, N_i} + \frac{P}{T} \bigg( \pdv{}{S} \Big( \frac{P}{T} \Big) \bigg)_{V, N_i} \\ &= \frac{1}{T} \bigg( \pdv{P}{V} \bigg)_{S, N_i} - \frac{P}{T^2} \bigg( \pdv{T}{V} \bigg)_{S, N_i} + \frac{P}{T} \bigg( \pdv{}{S} \Big( \frac{P}{T} \Big) \bigg)_{V, N_i} \\ &= - \frac{1}{T} \bigg( \pdvn{2}{U}{V} \bigg)_{S, N_i} + \frac{P}{T} \bigg[ \bigg( \pdv{}{S} \Big( \frac{P}{T} \Big) \bigg)_{V, N_i} - \frac{1}{T} \bigg( \pdv{T}{V} \bigg)_{S, N_i} \bigg] \end{aligned}

Because SS is at a maximum, we know that P/T=0P/T = 0, and TT is always above absolute zero (since we defined SS to be monotonically increasing with UU), which leaves (2U/V2)S,Ni>0(\ipdvn{2}{U}{V})_{S, N_i} > 0 as the only way to satisfy this inequality. In other words, UU is at a minimum, as expected.

References

  1. H.B. Callen, Thermodynamics and an introduction to thermostatistics, 2nd edition, Wiley.
  2. H. Gould, J. Tobochnik, Statistical and thermal physics, 2nd edition, Princeton.