8 Thermodynamic Potentials
8.1 Fundamental Equation of Thermodynamics
Let’s summarize some of the results from the first and second law of thermodynamics that we have seen so far. For reversible processes in closed systems:
\[\begin{equation} \begin{aligned} \text{From 1}^{\text{st}} \text{ Law:} \qquad \quad & dU = đQ_{\mathrm{REV}}-PdV \\ \text{From The Definition of Entropy:} \qquad \quad & dS = \frac{đQ_{\mathrm{REV}}}{T} \rightarrow đQ_{\mathrm{REV}} = TdS \\ \\ \Rightarrow \quad & dU = TdS - PdV. \end{aligned} \tag{8.1} \end{equation}\]
Eq. (8.1) is called the fundamental equation of thermodynamics since it combines the first and the second laws. Even though we started the derivation above by restricting to reversible transformations only, if we look carefully at eq. (8.1), we notice that it exclusively involves state functions. As such, it applies to both reversible and irreversible processes. The fundamental equation, however, remains constrained to closed systems. This fact restricts its utility for chemistry, since when a chemical reaction happens, the composition of the system will change, and the system is no longer closed.
At the end of the 19th century, Josiah Willard Gibbs (1839–1903) proposed an important addition to the fundamental equation to account for chemical reactions. Gibbs was able to do so by introducing a new quantity that he called the chemical potential:
Definition 8.1 The chemical potential is the amount of energy absorbed or released due to a change of the particle number of a given chemical species.
The chemical potential of species \(i\) is usually abbreviated as \(\mu_i\), and it enters the fundamental equation of thermodynamics as:
\[\begin{equation} dU = TdS-PdV+\sum_i\mu_i dn_i, \tag{8.2} \end{equation}\]
where \(dn_i\) is the differential change in the number of moles of substance \(i\), and the summation extends over all chemical species in the system.
According to the fundamental equation, the internal energy of a system is a function of the three variables entropy, \(S\), volume, \(V\), and the numbers of moles \(\{n_i\}\).32 Because of their importance in determining the internal energy, these three variables are crucial in thermodynamics. Under several circumstances, however, they might not be the most convenient variables to use.33 To emphasize the important connections given by the fundamental equation, we can use the notation \(U(S,V,\{n_i\})\) and we can term \(S\), \(V\), and \(\{n_i\}\) natural variables of the energy.
8.2 Thermodynamic Potentials
Starting from the fundamental equation, we can define new thermodynamic state functions that are more convenient to use under certain specific conditions. The new functions are determined by using a mathematical procedure called the Legendre transformation. A Legendre transformation is a linear change in variables that brings from an initial mathematical function to a new function obtained by subtracting one or more products of conjugate variables.34
Taking the internal energy as defined in eq. (8.1), we can perform such procedure by subtracting products of the following conjugate variables pairs: \(T \text{ and } S\) or \(-P \text{ and } V\). This procedure aims to define new state functions that depend on more convenient natural variables.35 The new functions are called “thermodynamic potential energies,” or simply thermodynamic potentials.36 An example of this procedure is given by the definition of enthalpy that we have already seen in section 3.1.4. If we take the internal energy and subtract the product of two conjugate variables (\(-P\) and \(V\)), we obtain a new state function called enthalpy, as we did in eq. (3.9)). Taking the differential of this definition, we obtain:
\[\begin{equation} dH = dU +VdP +PdV, \tag{8.3} \end{equation}\]
and using the fundamental equation, eq. (8.2), to replace \(dU\), we obtain:
\[\begin{equation} \begin{aligned} dH & = TdS -PdV +\sum_i\mu_i dn_i +VdP +PdV \\ & = TdS +VdP +\sum_i\mu_i dn_i. \end{aligned} \tag{8.4} \end{equation}\]
which is the fundamental equation for enthalpy. The natural variables of the enthalpy are \(S\), \(P\), and \(\{n_i\}\). The Legendre transformation has allowed us to go from \(U(S,V,\{n_i\})\) to \(H(S,P,\{n_i\})\) by replacing the dependence on the extensive variable, \(V\), with an intensive one, \(P\).
Following the same procedure, we can perform another Legendre transformation to replace the entropy with a more convenient intensive variable such as the temperature. This can be done by defining a new function called the Helmholtz energy, \(A\), as:
\[\begin{equation} A = U -TS \tag{8.5} \end{equation}\]
which, taking the differential and using the fundamental equation (eq. (8.2)) becomes:
\[\begin{equation} \begin{aligned} dA &= dU -SdT -TdS = TdS - PdV +\sum_i \mu_i dn_i -SdT -TdS \\ &= -SdT -PdV +\sum_i \mu_i dn_i. \end{aligned} \tag{8.6} \end{equation}\]
The Helmholtz energy is named after Hermann Ludwig Ferdinand von Helmholtz (1821—1894), and its natural variables are temperature, volume, and the number of moles.
Finally, suppose we perform a Legendre transformation on the internal energy to replace both the entropy and the volume with intensive variables. In that case, we can define a new function called the Gibbs energy, \(G\), as:
\[\begin{equation} G = U -TS +PV \tag{8.7} \end{equation}\]
which, taking again the differential and using eq. (8.2) becomes:
\[\begin{equation} \begin{aligned} dG &= dU -SdT -TdS +VdP +PdV \\ &= TdS - PdV +\sum_i\mu_i dn_i -SdT -TdS +VdP +PdV \\ &= VdP -SdT +\sum_i\mu_i dn_i. \end{aligned} \tag{8.8} \end{equation}\]
The Gibbs energy is named after Willard Gibbs himself, and its natural variables are temperature, pressure, and number of moles.
A summary of the four thermodynamic potentials is given in the following table.
Name | Symbol | Fundamental Equation | Natural Variables |
---|---|---|---|
Energy | \(U\) | \(dU=TdS-PdV+\sum_i\mu_i dn_i\) | \(S,V,\{n_i\}\) |
Enthalpy | \(H\) | \(dH=TdS+VdP+\sum_i\mu_i dn_i\) | \(S,P,\{n_i\}\) |
Helmholtz Energy | \(A\) | \(dA=-SdT-PdV+\sum_i\mu_i dn_i\) | \(T,V,\{n_i\}\) |
Gibbs Energy | \(G\) | \(dG=VdP-SdT+\sum_i\mu_i dn_i\) | \(T,P,\{n_i\}\) |
The thermodynamic potentials are the analog of the potential energy in classical mechanics. Since the potential energy is interpreted as the capacity to do work, the thermodynamic potentials assume the following interpretations:
- Internal energy (\(U\)) is the capacity to do work plus the capacity to release heat.
- Enthalpy (\(H\)) is the capacity to do non-mechanical work plus the capacity to release heat.
- Gibbs energy (\(G\)) is the capacity to do non-mechanical work.
- Helmholtz energy (\(A\)) is the capacity to do mechanical plus non-mechanical work.37
Where non-mechanical work is defined as any type of work that is not expansion or compression (\(PV\)–work). A typical example of non-mechanical work is electrical work.
8.3 Gibbs and Helmholtz Energies
The Legendre transformation procedure translates all information contained in the original function to the new one. Therefore, \(H(S,P,\{n_i\})\), \(A(T,V,\{n_i\})\), and \(G(T,P,\{n_i\})\) all contain the same information that is in \(U(S,V,\{n_i\})\). However, the new functions depend on different natural variables, and they are useful at different conditions. For example, when we want to study chemical changes, we are interested in studying the term \(\sum_i\mu_i dn_i\) that appears in each thermodynamic potential. To do so, we need to isolate the chemical term by keeping all other natural variables constant. For example, changes in the chemical term will correspond to changes in the internal energy at constant \(S\) and constant \(V\):
\[\begin{equation} dU(S,V,\{n_i\}) = \sum_i\mu_i dn_i \quad \text{if} \quad dS=dV=0. \tag{8.9} \end{equation}\]
Similarly:
\[\begin{equation} \begin{aligned} dH(S,P,\{n_i\}) = \sum_i\mu_i dn_i \quad \text{if} \quad dS=dP=0, \\ dA(T,V,\{n_i\}) = \sum_i\mu_i dn_i \quad \text{if} \quad dT=dV=0, \\ dG(T,P,\{n_i\}) = \sum_i\mu_i dn_i \quad \text{if} \quad dT=dP=0. \end{aligned} \tag{8.10} \end{equation}\]
The latter two cases are particularly interesting since most of chemistry happens at either constant volume,38 or constant pressure.39 Since \(dS=0\) is not a requirement for both energies to describe chemical changes, we can apply either of them to study non-isentropic processes. If a process is not isentropic, it either increases the entropy of the universe, or it decreases it. Therefore—according to the second law—it is either spontaneous or not. Using this concept in conjunction with Clausius theorem, we can devise new criteria for inferring the spontaneity of a process that depends exclusively on the potentials.
Recalling Clausius theorem:
\[\begin{equation} d S^{\mathrm{sys}} \geq \frac{đQ}{T_{\text{surr}}} \quad \longrightarrow \quad TdS \geq đQ, \tag{8.11} \end{equation}\]
we can consider the two cases: constant \(V\) (\(đQ_V=dU\), left), and constant \(P\) (\(đQ_P=dH\), right):
\[\begin{equation} \begin{aligned} \text{constant} & \; V: & \qquad \qquad & \qquad \qquad & \text{constant} & \; P: \\ \\ TdS & \geq dU & & & TdS & \geq dH \\ \\ TdS -dU & \geq 0 & & & TdS -dH & \geq 0 \\ \end{aligned} \tag{8.12} \end{equation}\]
we can then simplify the definition of each energy, eqs. (8.6) and (8.8):
\[\begin{equation} \begin{aligned} \text{constant} & \; T,V: & \qquad & \qquad & \text{constant} & \; T,P: \\ \\ (dA)_{T,V} &= dU -TdS & & & (dG)_{T,P} &= dH - TdS \\ \\ dU = (dA)_{T,V} &+TdS & & & dH = (dG)_{T,P} &+TdS \end{aligned} \tag{8.13} \end{equation}\]
and by merging \(dU\) and \(dH\) from eqs. (8.13) into Clausius theorem expressed using eqs. (8.12), we obtain:
\[\begin{equation} \begin{aligned} TdS -(dA)_{T,V} &- TdS \geq 0 & \qquad & \qquad & TdS -(dG)_{T,P} &- TdS \geq 0 \\ \\ (dA)_{T,V} & \leq 0 & \qquad & \qquad & (dG)_{T,P} & \leq 0. \\ \end{aligned} \tag{8.14} \end{equation}\]
These equations represent the conditions on \(dA\) and \(dG\) for inferring the spontaneity of a process, and can be summarized as follows:
Definition 8.2 \(\;\)
- During a spontaneous process at constant temperature and volume, the Helmholtz energy will decrease \((dA<0)\), until it reaches a stationary point at which the system will be at equilibrium \((dA=0)\).
- During a spontaneous process at constant temperature and pressure, the Gibbs energy will decrease \((dG<0)\), until it reaches a stationary point at which the system will be at equilibrium \((dG=0)\).
8.4 Maxwell Relations
Let’s consider the fundamental equations for the thermodynamic potentials that we have derived in section 8.1:
\[\begin{equation} \begin{aligned} dU(S,V,\{n_i\}) &= \enspace T dS -P dV + \sum_i \mu_i dn_i \\ dH(S,P,\{n_i\}) &= \enspace T dS + V dP + \sum_i \mu_i dn_i \\ dA(T,V,\{n_i\}) &= -S dT -P dV + \sum_i \mu_i dn_i \\ dG(T,P,\{n_i\}) &= -S dT + V dP + \sum_i \mu_i dn_i\;. \end{aligned} \tag{8.15} \end{equation}\]
From the knowledge of the natural variable of each potential, we could reconstruct these formulas by using the total differential formula:
\[\begin{equation} \begin{aligned} dU &= \underbrace{\left(\frac{\partial U}{\partial S} \right)_{V,\{n_i\}}}_{T} dS + \underbrace{\left(\frac{\partial U}{\partial V} \right)_{S,\{n_i\}}}_{-P} dV + \sum_i \underbrace{\left(\frac{\partial U}{\partial n_i} \right)_{S,V,\{n_{j \neq i}\}}}_{\mu_i} dn_i \\ dH &= \underbrace{\left(\frac{\partial H}{\partial S} \right)_{P,\{n_i\}}}_{T} dS + \underbrace{\left(\frac{\partial H}{\partial P} \right)_{S,\{n_i\}}}_{V} dP + \sum_i \underbrace{\left(\frac{\partial H}{\partial n_i} \right)_{S,P,\{n_{j \neq i}\}}}_{\mu_i} dn_i \\ dA &= \underbrace{\left(\frac{\partial A}{\partial T} \right)_{V,\{n_i\}}}_{-S} dT + \underbrace{\left(\frac{\partial A}{\partial V} \right)_{T,\{n_i\}}}_{-P} dV + \sum_i \underbrace{\left(\frac{\partial A}{\partial n_i} \right)_{T,V,\{n_{j \neq i}\}}}_{\mu_i} dn_i \\ dG &= \underbrace{\left(\frac{\partial G}{\partial T} \right)_{P,\{n_i\}}}_{-S} dT + \underbrace{\left(\frac{\partial G}{\partial P} \right)_{T,\{n_i\}}}_{V} dP + \sum_i \underbrace{\left(\frac{\partial G}{\partial n_i} \right)_{T,P,\{n_{j \neq i}\}}}_{\mu_i} dn_i\;, \end{aligned} \tag{8.16} \end{equation}\]
we can derive the following new definitions:
\[\begin{equation} \begin{aligned} T &= \left(\frac{\partial U}{\partial S} \right)_{V,\{n_i\}} = \left(\frac{\partial H}{\partial S} \right)_{P,\{n_i\}} \\ -P &= \left(\frac{\partial U}{\partial V} \right)_{S,\{n_i\}} = \left(\frac{\partial A}{\partial V} \right)_{T,\{n_i\}} \\ V &= \left(\frac{\partial H}{\partial P} \right)_{S,\{n_i\}} = \left(\frac{\partial G}{\partial P} \right)_{T,\{n_i\}} \\ -S &= \left(\frac{\partial A}{\partial T} \right)_{V,\{n_i\}} = \left(\frac{\partial G}{\partial T} \right)_{P,\{n_i\}} \\ \text{and:} \\ \mu_i &= \left(\frac{\partial U}{\partial n_i} \right)_{S,V,\{n_{j \neq i}\}} = \left(\frac{\partial H}{\partial n_i} \right)_{S,P,\{n_{j \neq i}\}} \\ &= \left(\frac{\partial A}{\partial n_i} \right)_{T,V,\{n_{j \neq i}\}} = \left(\frac{\partial G}{\partial n_i} \right)_{T,P,\{n_{j \neq i}\}}\;. \end{aligned} \tag{8.17} \end{equation}\]
Since \(T\), \(P\), \(V\), and \(S\) are now defined as partial first derivatives of a thermodynamic potential, we can now take a second partial derivation with respect to a separate variable, and rely on Schwartz’s theorem to derive the following relations:
\[\begin{equation} \begin{aligned} \frac{\partial^2 U }{\partial S \partial V} &=& +\left(\frac{\partial T}{\partial V}\right)_{S,\{n_{j \neq i}\}} &=& -\left(\frac{\partial P}{\partial S}\right)_{V,\{n_{j \neq i}\}} \\ \frac{\partial^2 H }{\partial S \partial P} &=& +\left(\frac{\partial T}{\partial P}\right)_{S,\{n_{j \neq i}\}} &=& +\left(\frac{\partial V}{\partial S}\right)_{P,\{n_{j \neq i}\}} \\ -\frac{\partial^2 A }{\partial T \partial V} &=& +\left(\frac{\partial S}{\partial V}\right)_{T,\{n_{j \neq i}\}} &=& +\left(\frac{\partial P}{\partial T}\right)_{V,\{n_{j \neq i}\}} \\ \frac{\partial^2 G }{\partial T \partial P} &=& -\left(\frac{\partial S}{\partial P}\right)_{T,\{n_{j \neq i}\}} &=& +\left(\frac{\partial V}{\partial T}\right)_{P,\{n_{j \neq i}\}} \end{aligned} \tag{8.18} \end{equation}\]
The relations in (8.18) are called Maxwell relations,40 and are useful in experimental settings to relate quantities that are hard to measure with others that are more intuitive.
Exercise 8.1 Derive the last Maxwell relation in eq. (8.18).
Solution: We can start our derivation from the definition of \(V\) and \(S\) as a partial derivative of \(G\):
\[\begin{equation} V = \left(\frac{\partial G}{\partial P} \right)_{T,\{n_i\}} \qquad \text{and:} \qquad -S = \left(\frac{\partial G}{\partial T} \right)_{P,\{n_i\}}, \end{equation}\]
and then take a second partial derivative of each quantity with respect to the second variable:
\[\begin{equation} \begin{aligned} \left(\frac{\partial V}{\partial T} \right)_{P,\{n_i\}} &=\frac{\partial}{\partial T}\left[ \left(\frac{\partial G}{\partial P} \right)_{T,\{n_i\}} \right]_{P,\{n_i\}} \\ \\ -\left(\frac{\partial S}{\partial P} \right)_{T,\{n_i\}} &=\frac{\partial}{\partial P}\left[ \left(\frac{\partial G}{\partial T} \right)_{P,\{n_i\}} \right]_{T,\{n_i\}} \;. \end{aligned} \end{equation}\]
These two derivatives are mixed partial second derivatives of \(G\) with respect to \(T\) and \(P\), and therefore, according to Schwartz’s theorem, they are equal to each other:
\[\begin{equation} \begin{aligned} \frac{\partial}{\partial T}\left[ \left(\frac{\partial G}{\partial P} \right)_{T,\{n_i\}} \right]_{P,\{n_i\}} &= \frac{\partial}{\partial P}\left[ \left(\frac{\partial G}{\partial T} \right)_{P,\{n_i\}} \right]_{T,\{n_i\}}, \\ \\ \text{hence:} \\ \\ \left(\frac{\partial V}{\partial T} \right)_{P,\{n_i\}} &= -\left(\frac{\partial S}{\partial P} \right)_{T,\{n_i\}}, \end{aligned} \end{equation}\]
which is the last of Maxwell relations, as defined in eq. (8.18). This relation is particularly useful because it connects the quantity \(\left(\frac{\partial S}{\partial P} \right)_{T,\{n_i\}}\)—which is impossible to measure in a lab—with the quantity \(\left(\frac{\partial V}{\partial T} \right)_{P,\{n_i\}}\)—which is easier to measure from an experiment that determines isobaric volumetric thermal expansion coefficients.
8.5 Chapter Review
8.5.1 Study Questions
1. Which of the following formulas is the fundamental equation of thermodynamics for closed systems?
- \(dU = Q_{REV} - PdV\).
- \(dU = TdS - PdV\).
- \(dU = TdS + PdV\).
- \(dU = Q_{REV} + PdV\).
- \(dU = TdS - VdP\).
3. Which of the following formulas is the fundamental equation for the Helmholtz energy?
- \(dA = TdS - PdV + \sum_i \mu_i dn_i\).
- \(dA = -SdT + VdP + \sum_i \mu_i dn_i\).
- \(dA = -SdT - PdV + \sum_i \mu_i dn_i\).
- \(dA = TdS + VdP + \sum_i \mu_i dn_i\).
- \(dA = -SdT - VdP + \sum_i \mu_i dn_i\).
4. Which statement about thermodynamic potentials is NOT correct?
- Internal energy is the capacity to do work plus the capacity to release heat.
- Enthalpy is the capacity to do non-mechanical work plus the capacity to release heat.
- Gibbs energy is the capacity to do mechanical work only.
- Helmholtz energy is the capacity to do mechanical plus non-mechanical work.
- Non-mechanical work includes types of work that are not expansion or compression.
4. Which of the following is NOT a thermodynamic potential?
- Internal energy.
- Enthalpy.
- Gibbs energy.
- Helmholtz energy.
- Chemical potential.
5. What are the natural variables of the Gibbs energy?
- \(T\), \(V\), \(\{n_i\}\).
- \(S\), \(P\), \(\{n_i\}\).
- \(T\), \(P\), \(\{n_i\}\).
- \(S\), \(V\), \(\{n_i\}\).
- \(U\), \(P\), \(\{n_i\}\).
6. Which thermodynamic potential represents the capacity to do mechanical plus non-mechanical work?
- Internal energy.
- Enthalpy.
- Gibbs energy.
- Helmholtz energy.
- Chemical potential.
7. What is the condition for a spontaneous process at constant temperature and pressure?
- \(dA > 0\).
- \(dG = 0\).
- \(dG < 0\).
- \(dS > 0\).
- \(dU < 0\).
8. Which of the following is a Maxwell relation?
- \(\left(\frac{\partial T}{\partial V}\right)_{S,\{n_i\}} = -\left(\frac{\partial P}{\partial S}\right)_{V,\{n_i\}}\).
- \(\left(\frac{\partial T}{\partial P}\right)_{S,\{n_i\}} = -\left(\frac{\partial V}{\partial S}\right)_{P,\{n_i\}}\).
- \(\left(\frac{\partial S}{\partial V}\right)_{T,\{n_i\}} = -\left(\frac{\partial P}{\partial T}\right)_{V,\{n_i\}}\).
- \(\left(\frac{\partial S}{\partial P}\right)_{T,\{n_i\}} = -\left(\frac{\partial V}{\partial T}\right)_{P,\{n_i\}}\).
- \(\left(\frac{\partial U}{\partial V}\right)_{S,\{n_i\}} = -\left(\frac{\partial P}{\partial S}\right)_{V,\{n_i\}}\).
9. What is the definition of the chemical potential?
- The amount of heat absorbed or released due to a change in particle number.
- The amount of work done due to a change in particle number.
- The amount of energy absorbed or released due to a change in particle number.
- The amount of entropy change due to a change in particle number.
- The amount of volume change due to a change in particle number.
10. Which of the following is true about the Legendre transformation?
- It changes the natural variables of a thermodynamic potential.
- It adds products of conjugate variables to define new functions.
- It only applies to the internal energy function.
- It removes all information from the original function.
- It can only be performed once on a given function.
Answers: Click to reveal
In the case of the numbers of moles we include them in curly brackets to indicate that there might be more than one, depending on how many species undergo chemical reactions.↩︎
For example, we don’t always have a simple way to calculate or to measure the entropy.↩︎
The mathematical condition that is fulfilled when performing a Legendre transformation is that the first derivatives of the original function and its transformation are inverse functions of each other.↩︎
The rigorous mathematical definition of conjugate variables is unimportant at this stage. However, we can relate the variables in a pair with basic physics by noticing how the first variable in a pair is always intensive (\(T\) and \(-P\)), while the second one is always extensive (\(S\) and \(V\)). The intensive variables represent thermodynamic driving forces (as compared with mechanical forces in classical mechanics), while the extensive ones are the thermodynamic displacements (as compared with spatial displacements in classical mechanics). Similarly to classical mechanics, the product of two conjugate variables in a pair yields an energy. The minus sign in front of \(P\) is explained by the fact that an increase in the force should always correspond to an increase in the displacement (while \(P\) and \(V\) are inversely related).↩︎
Even if we introduced both concepts in the same chapter, it is important to never confuse the thermodynamic potentials—which are potential energy functions—with the chemical potential—which have been introduced by Gibbs to study heat in chemical reactions.↩︎
For the mathematically inclined, an entertaining method to summarize the same thermodynamic potentials is the thermodynamic square.↩︎
for example, several industrial processes in chemical plants.↩︎
for example, most processes in a chemistry lab.↩︎
Maxwell relations should not be confused with the Maxwell equations of electromagnetism.↩︎