Skip to main content
Physics LibreTexts

3.6: The Thermodynamic Dance

  • Page ID
    6348
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    A more conventional name for this section would be “Changes of Variable in Thermodynamics”, but the changes of variable involved always remind me of an elaborate dance where partners are exchanged and where patterns seem to dissolve and then reappear, but in fact are always present, even if hidden.

    3.6.1 Description in terms of variables (S, V, N)

    We know that in many circumstances (e.g. pure, non-magnetic fluids) the thermodynamic state of a system is uniquely specified by giving the entropy S, the volume V, and the particle number N. The master function for this description is the energy

    \[E(S, V, N)\]

    whose total differential is

    \[dE = T dS − p dV + \mu dN.\]

    Remember that a “master function” is one from which all functions of interest can be obtained by simple differentiation. . . the equation above, for example, shows directly that

    \[ p(S, V, N)=-\frac{\partial E}{\partial V} )_{S, N}.\]

    Remember also that the variables V and N are just representative mechanical parameters. Other mechanical parameters such as particle mass m, particle radius rHS, or the numbers of two different species, NH2 and NHe, will be relevant in other circumstances.

    3.6.2 Description in terms of variables (T, V, N)

    For many purposes the description in terms of S, V, and N is awkward. (Entropy, for example, can be difficult to measure and to understand.) In these situations a more natural set of variables might be temperature T, volume V, and number N. We can change2 to this set through a Legendre transformation (a process sometimes called “trading in an S for a T”) obtaining the new master function

    \[F(T, V, N) = E − T S,\]

    which is called the “Helmholtz potential” (or the “Helmholtz free energy”3). and which has the associated master equation

    \[ dF = −S dT − p dV + \mu dN.\]

    (In some books, the Helmholtz potential is denoted by A rather than F.)

    Lots of information can be read directly from the master equation. For example, the entropy can be found through

    \[ S(T, V, N)=-\frac{\partial F}{\partial T} )_{V, N}.\]

    It is less obvious how to find the energy, but a little thought shows that

    \[E(T, V, N)=F+T S=F-T \frac{\partial F}{\partial T} )_{V, N}=\frac{\partial(F / T)}{\partial(1 / T)} )_{V, N}.\]

    This equation is frequently used and carries the name “Gibbs-Helmholtz equation”.

    One sometimes hears that “energy must be regarded as a function of (S, V, N) while Helmholtz potential must be regarded as a function of (T, V, N)”. This is false. The energy E(T, V, N) above is a perfectly good function but it is not a master function. The energy is the master function for the description in terms of (S, V, N) but not for the description in terms of (T, V, N). Similarly, one could find the Helmholtz potential as a function of (S, V, N), but it would not be a master function.

    Another immediate consequence of the master equation is that

    \[p(T, V, N)=-\frac{\partial F}{\partial V} )_{T, N}.\]

    This equation is extremely well know. . . it is just the “equation of state”, relating pressure, temperature, volume, and number. Examples are the famous ideal gas equation of state

    \[ p(T, V, N)=\frac{N k_{B} T}{V}\]

    and the only slightly less famous van der Waals equation of state for non-ideal gases

    \[ p(T, V, N)=\frac{k_{B} T}{V / N-v_{0}}-\frac{e_{0} v_{0}}{(V / N)^{2}},\]

    where v0 and e0 are positive empirical constants with the dimensions of volume and energy respectively.

    Notice that S(T, V, N), E(T, V, N), and p(T, V, N) are all interesting quantities, but none of them are master functions, that is, none of them contain all the thermodynamic information. It is a common misconception that the equation of state contains everything one could want to know about a substance. In fact, for example, helium and nitrogen are both nearly ideal gases at room temperature (so they obey nearly the same equation of state) but the specific heat of nitrogen is about 67% greater than that of helium (so they differ dramatically in some thermodynamic properties).

    Yet another immediate consequence of the master equation is the Maxwell relation

    \[ \frac{\partial S}{\partial V} )_{T, N}=\frac{\partial p}{\partial T} )_{V, N}.\]

    Each of the derivatives above is not only a mathematical expression, but also an invitation to perform an experiment. The derivative on the left is measured through an experiment like the following: A sample in a container of variable volume (such as a piston) is placed within a thermostatically controlled bath (so that the temperature doesn’t change) and is heated in a slow and carefully monitored way (so that the heat absorbed quasistatically can be divided by the temperature to find the entropy change). As the substance is heated at constant temperature, the volume of the piston must change. Dividing the heat absorbed by the temperature and the volume change gives (for small volume changes) the derivative on the left. This experiment is not impossible, but clearly it is difficult and expensive.

    Consider in turn the experiment on the right. The sample is in a “strong box” container of fixed volume and its pressure and temperature are measured as the temperature is changed. The change doesn’t need to be controlled carefully and the heat absorbed doesn’t need to be monitored: you can just blast your sample with a propane torch. Dividing the measured change in pressure by the measured change in temperature gives (for small temperature changes) the derivative on the right. It is remarkable that the results of these two very different experiments is always the same. . . and it shows how thermodynamics can save a lot of experimental labor! But it is still more remarkable—nearly unbelievable—that we know these two experiments give the same results because we know that the entropy function S(E, V, N) exists, even though we might not know what that function is.4 (This Maxwell relation is discussed further in problem 3.23.)

    3.6.3 Description in terms of variables (S, p, N)

    I don’t need to stop with this second description. Both of the descriptions above used volume as a variable. Most experiments executed here on Earth’s surface are actually performed with a constant pressure (namely one atmosphere) rather than with a constant volume, suggesting that pressure should be one of our variables. We may start with the description in terms of (S, V, N) and then trade in a V for a p, obtaining a master function

    \[ H(S, p, N) = E + pV,\]

    called the “enthalpy”, and the related master equation

    \[dH = T dS + V dp + µ dN.\]

    We could pause here to write down derivatives of H(S, p, N), Maxwell relations, and so forth, but this would merely be repetitive of what we did in the last section. Instead, we ask for yet another description with the advantages of using both temperature instead of entropy and pressure instead of volume.

    3.6.4 Description in terms of variables (T, p, N)

    In this description, the master function

    \[ G(T, p, N) = F + pV\]

    is called the “Gibbs potential” (or the “Gibbs free energy”5 ) and the master equation is

    \[ dG = −S dT + V dp + \mu dN.\]

    (It is most unfortunate that in some books the Gibbs potential is denoted F, the symbol that most books reserve for the Helmholtz potential.)

    It is immediately obvious that

    \[ \mu(T, p, N)=\frac{\partial G}{\partial N} )_{T, p}.\]

    It is also true that G is an extensive quantity, and that it is a function of only one extensive quantity, namely N. It follows that G must increase linearly with N, whence

    \[ \mu(T, p)=\frac{G(T, p, N)}{N}.\]

    Notice that µ, which appeared from equation (3.76) to depend upon N, is actually independent of N.

    The chemical potential has so far been a wallflower in the thermodynamic dance. But there is no reason why we cannot trade in an N for a µ in the same way that we traded in a V for a p.

    3.6.5 Description in terms of variables (T, V, µ)

    Here the master function is

    \[ \Pi (T, V, µ) = F − \mu N\]

    with master equation

    \[ d \Pi = −S dT − p dV − N d \mu.\]

    You might wonder why Π doesn’t have a name. This is because

    \[ \Pi = F − \mu N = F − G = −pV \]

    or, to put it more formally,

    \[ \Pi (T, V, \mu ) = −p(T, \mu )V,\]

    so Π already has the name of “negative pressure times volume”.

    3.6.6 Intensive description in terms of variables (T, µ)

    Putting equations (3.79) and (3.81) together gives

    \[ −p dV − V dp = −S dT − p dV − N d \mu \]

    whence

    \[ d p=\frac{S}{V} d T+\frac{N}{V} d \mu.\]

    In other words, we have produced a new master function, the pressure

    \[ p(T, \mu )\]

    with master equation

    \[ d p=\mathcal{S} d T+\rho d \mu\]

    where we have used the volume densities

    \[\mathcal{S}=S / V \quad \text { and } \quad \rho=N / V.\]

    The master function p(T, µ) differs in important ways from the others that we have seen. First, it is intensive rather than extensive. Second, it is a function of two rather than three variables, and the two variables are both intensive. It is clear that we cannot get any information about the system size out of p(T, µ). . . thus it fails the usual test of a master function, namely that it must provide all thermodynamic information. On the other hand, p(T, µ) provides all the information about intensive quantities. The problems in this chapter demonstrate that p(T, µ) is a surprisingly useful master function.

    This entire section is summarized in appendix J.

    Problems

    3.19 Stumbling in the thermodynamic dance

    a. From the thermodynamic assembly with variables T, p, and N, with master equation

    \[ dG = −S dT + V dp + \mu dN\]

    one is tempted to produce an assembly with variables T, p, and µ, using master function

    \[ \Phi = G − \mu N.\]

    Why does this fail?

    b. Show that what is really desired is an intensive-only description in terms of the variables T and p, for which the master equation is

    \[ d \mu = −s dT + v dp,\]

    where s = S/N and v = V/N. (This result is called the “Gibbs-Duhem equation”.)

    3.20 Not a master function

    The function E(S, V, N) is a master function: all thermodynamic quantities of interest can be obtained by taking suitable derivatives of E(S, V, N). For the variables (T, V, N) the master function is the Helmholtz potential F(T, V, N). While the energy E(T, V, N) of course remains a function, it is no longer a master function. Prove this to yourself by considering two different substances, A and B, with Helmholtz potentials FA(T, V, N) and FB(T, V, N) = FA(T, V, N) + aTV2/N. Show that these two substances have identical energies E(T, V, N) but different equations of state p(T, V, N).

    3.21 Thermodynamics of a new substance

    The entropy of a newly discovered gas is determined to be

    \[ S(E, V, N)=\left(\frac{k_{B}}{T_{0}}\right)^{1 / 2}\left(N E+\frac{k_{B} T_{0} V^{2}}{v_{0}^{2}}\right)^{1 / 2},\]

    where the constants T0 and v0 are positive, intensive quantities with the dimensions of temperature and volume, respectively.

    a. Verify that this equation is acceptable in its dimensions and in its extensivity.

    b. Find T(S, V, N) and p(S, V, N) for this gas.

    c. Find CV(T, V, N) for this gas.

    3.22 Energy from the Gibbs potential

    The text claims that “any thermodynamic function can be obtained from a master function by taking derivatives.” To back up this claim, show that

    \[ E(T, p, N) =G(T, p, N)-T \frac{\partial G}{\partial T} )_{p, N}-p \frac{\partial G}{\partial p} )_{T, N}\]

    \[=\frac{\partial(G / p)}{\partial(1 / p)} )_{T, N}-T \frac{\partial G}{\partial T} )_{p, N}\]

    \[=\frac{\partial(G / T)}{\partial(1 / T)} )_{p, N}-p \frac{\partial G}{\partial p} )_{T, N}\]

    Find an expression for F(T, p, N) in terms of G(T, p, N).

    3.23 A Maxwell relation: special cases

    a. Apply the Maxwell relation (3.71) to the the special case of an ideal gas (equation of state pV = NkBT) to show that

    \[ S(T, V, N) = N k_B ln(V /V_0(T)),\]

    where V0(T) is an undetermined function of integration that differs from one ideal gas to another. (The remarkable character of our Maxwell relation comes into sharp focus when applied to this special case: The “mechanical-type” experiments which uncover the equation of state enable us to determine much about the entropy function even in the absence of any “heat-type” experiments.)

    b. Another special case worth examination is two-phase coexistence of liquid and gas. Verify the Maxwell relation both for “typical” two-phase coexistence—in which the low-temperature phase has higher density than the high-temperature phase—and for the unusual cases—such as the coexistence of water and ice—where the low-temperature phase has a higher density.

    3.24 Chemical potential for mixtures

    If a system contains a mixture of two chemical substances, say NA molecules of substance A and NB molecules of substance B, then the list of mechanical parameters must be expanded, and the entropy is a function

    \[ S(E, V, N_A, N_B).\]

    In this case the chemical potential of substance A is

    \[ \mu_{A}\left(E, V, N_{A}, N_{B}\right)=-T\left(E, V, N_{A}, N_{B}\right) \frac{\partial S}{\partial N_{A}} )_{E, V, N_{B}}\]

    and similarly for B. Notice that the chemical potential of substance A depends upon the number of molecules of B present.

    a. Perform the thermodynamic dance down to the function F(T, V, NA, NB) to show that

    µA(T, V, NA, NB) = ∂F ∂NA T ,V,NB (3.96)

    and similarly for B.

    b. Argue that, because µA and µB are intensive, their functional dependence on V, NA, and NB, must be through the number densities ρA = NA/V and ρB = NB/V, i.e. that

    \[ \mu_{A}\left(T, V, N_{A}, N_{B}\right)=\mu_{A}\left(T, \rho_{A}, \rho_{B}\right).\]

    c. Consider the Gibbs potential G(T, p, NA, NB) and modify the extensivity argument that produced equation (3.77) to show that

    \[ G\left(T, p, N_{A}, N_{B}\right)=\mu_{A}\left(T, p, N_{A} / N_{B}\right) N_{A}+\mu_{B}\left(T, p, N_{A} / N_{B}\right) N_{B},\]

    where the chemical potentials are independent of the overall numbers NA and NB but may depend on their ratio.

    3.25 More parameters

    What is the generalization of

    \[dE = T dS − p dV + \mu dN\]

    for systems that can be lifted and tossed? (That is, for systems in which height h and velocity v are mechanical parameters.)

    3.26 Another mechanical parameter

    Recall expression (2.32) for the entropy of a monatomic ideal gas, and recall that \(E=\frac{3}{2} N k_{B} T\). Find expressions for the change in entropy and in volume if the masses of the particles are varied at constant p, T, and N. Suggest experiments that could verify these relations.

    3.27 Which variables to exchange?

    In carrying out the thermodynamic dance, we have exchanged the variable S for the function T(S, V, N), and we have exchanged the variable V for the function p(T, V, N), and more. Why would it never be appropriate to exchange the volume for the temperature? (Clue: Consider the volume of water at temperatures just above and below freezing.)

    2When we changed variable from (S, V, N) to (E, V, N) (equation 3.1), I argued that this inversion was mathematically legitimate. Here I will not be so formal and just assume that everything will come out all right. (See, however, problem 3.27.) Clifford Truesdell has called this “the principle of thoughtless invertibility”.

    3The term “free” in this name is of only historical significance. Its origin lies in the fact that F is related to the maximum amount of energy that is available (“free”) for conversion into work through an isothermal process.

    4If a material existed for which these two experiments did not give identical results, then we could use that substance to build a perpetual motion machine.

    5I prefer the name “Gibbs potential” because it is like electrostatic potential — the quantity itself is not of intrinsic interest, but one can find many interesting things by taking its derivatives. The name “free energy” is particularly inappropriate: What do you buy from a power company? You’ve been told “Turn off the lamps to conserve energy”, but this is silly: energy is conserved whether the lamps are on or off. There’s plenty of thermal energy in any room, but you can’t get work out of that energy because the room has uniform temperature. So you don’t buy energy from a power company, you in fact buy Gibbs potential. For this reason it should be called “Gibbs expensive energy”. I am trying to get the federal government to change the name of the Department of Energy to the Department of Gibbs Potential, but so far I’ve had no success.


    This page titled 3.6: The Thermodynamic Dance is shared under a CC BY-SA license and was authored, remixed, and/or curated by Daniel F. Styer.

    • Was this article helpful?