4.3.13. Maxwell Relations Applied#
4.3.13.1. Learning goals:#
After this section, student’s should be able to:
Identify the Maxwell relations
Utilize a Maxwell relation to calculate the change in internal energy of a non-ideal gas
Utilize a Maxwell relation to show enthalpy is independent of pressure for an ideal gas
Utilize a Maxwell relation to derive an expression for \(\Delta S\) of a van der Waals gas
Perform Legendre transforms and use Maxwell relations for a system with non-PV work
4.3.13.2. Coding concepts:#
The following coding concepts are used in this notebook
4.3.13.3. Maxwell Relations#
4.3.13.3.1. Summary of Maxwell Relations#
Energy Function |
Differential Form $\( \)$ |
Maxwell Relations $\( \)$ |
---|---|---|
U - Internal Energy |
\( dU = TdS - PdV \) |
\(\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial P}{\partial S}\right)_V\) |
H - Enthalpy |
\(dH = TdS + VdP\) |
\(\left(\frac{\partial T}{\partial P}\right)_S = \left(\frac{\partial V}{\partial S}\right)_P\) |
A - Helmholtz Free Energy |
\(dA = -SdT - PdV\) |
\(\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V\) |
G - Gibbs Free Energy |
\(dG = -SdT + VdP\) |
\(\left(\frac{\partial S}{\partial P}\right)_T = -\left(\frac{\partial V}{\partial T}\right)_P\) |
4.3.13.4. Example 1: Change in Internal Energy of a Non-Ideal Gas#
Compute the change in internal energy, \(\Delta U\), for the isothermal expansion from \(V_1\) to \(V_2\) of a finite volume gas that has the equation of state:
\(P(V-nb) = nRT\)
Recall that for an ideal gas we always used the relationship \(\Delta U_{ideal} = n\bar{C}_V\Delta T\) and thus the change in internal energy for an ideal gas is zero for an isothermal process. But what about this non-ideal gas?
In order to compute \(\Delta U\), we start with the differential form of the internal energy
Integrate both sides to yield
Notice that we can handle the second term, \(\int_{V_i}^{V_f}PdV\), by plugging in the equation of state for our finite volume gas but the first term, \(\int_{S_i}^{S_f} TdS\), is a bit harder to handle; while \(T\) is constant we do not know the change in entropy.
Solution: change the integration variable using a Maxwell relation. Given that we know initial and final volumes, and that the second integral is with resepct to volume, we would really like to change the \(dS\) to a \(dV\). For this, we look at the Maxwell Relations and pick the one that has \(\left(\frac{\partial S}{\partial V}\right)\) and ideally at contsant \(T\) since our process is isothermal:
Energy Function |
Differential Form $\( \)$ |
Maxwell Relations $\( \)$ |
---|---|---|
U - Internal Energy |
\( dU = TdS - PdV \) |
\(\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial P}{\partial S}\right)_V\) |
H - Enthalpy |
\(dH = TdS + VdP\) |
\(\left(\frac{\partial T}{\partial P}\right)_S = \left(\frac{\partial V}{\partial S}\right)_P\) |
A - Helmholtz Free Energy |
\(dA = -SdT - PdV\) |
\(\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V\) |
G - Gibbs Free Energy |
\(dG = -SdT + VdP\) |
\(\left(\frac{\partial S}{\partial P}\right)_T = -\left(\frac{\partial V}{\partial T}\right)_P\) |
We see that the Maxwell Relation from \(A\) is
\(\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V\)
The goal is now to rerrange this partial derivative to get \(dS\) as a function of \(dV\). To do this, we “cross multiply” by \(dV\):
Note that even though the derivative infront of \(dV\) is taken at constant \(V\), the resulting function could still be dependent on \(V\).
Now, let’s plug this into our \(\Delta U\) equation:
Now we need to determine \(\left(\frac{\partial P}{\partial T}\right)_V\), plug back into the integrand, and perform the integration.
Now plug back into integral:
So we did all of that to see that the change in internal energy of a finite volume gas for an isothermal process is zero, just like it is for an ideal gas (which you could also show using a very similar derivation).
4.3.13.5. Example 2: Enthalpy and Pressure for an ideal gas#
Show that the enthlapy of an ideal gas is independent of pressure under isothermal conditions.
We start with the differential form of enthalpy
Again, the second integral on the right-hand side of the equation is managable because we know the equation of state for an ideal gas. The first integral requires us to know entropy change which is not readily known. Thus, we would like to convert the integral with respect to \(S\) to and integral with respect to \(P\) (to match with the second integral).
Again, we consult our Maxwell relations look for a \(\frac{\partial S}{\partial P}\) term
Energy Function |
Differential Form $\( \)$ |
Maxwell Relations $\( \)$ |
---|---|---|
U - Internal Energy |
\( dU = TdS - PdV \) |
\(\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial P}{\partial S}\right)_V\) |
H - Enthalpy |
\(dH = TdS + VdP\) |
\(\left(\frac{\partial T}{\partial P}\right)_S = \left(\frac{\partial V}{\partial S}\right)_P\) |
A - Helmholtz Free Energy |
\(dA = -SdT - PdV\) |
\(\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial P}{\partial T}\right)_V\) |
G - Gibbs Free Energy |
\(dG = -SdT + VdP\) |
\(\left(\frac{\partial S}{\partial P}\right)_T = -\left(\frac{\partial V}{\partial T}\right)_P\) |
We choose the following Maxwell relation
from the Gibbs free energy row. Rearrange that equation to get
Plug back into the integral
Using the equation of state (\(PV=nRT\)), we will solve for \(\left(\frac{\partial V}{\partial T}\right)_P\):
Plug back into the integral and substitute \(V = \frac{nRT}{P}\) to see:
4.3.13.6. Example 3: Compute \(\Delta S\) a reversible isothermal expansion of a non-ideal gas#
Consider a van der Waals gas with the equation of state
Compute the change in entropy, \(\Delta S\), during a reversible isothermal expansion of this gas.
For this we start with the Maxwell relation
Which can be rearranged to yield
Integrating both sides will yield the desired solution. We start by computing the partial derivative of \(P\) w.r.t. \(T\) from the equation of state:
Now plug-in and do the integral w.r.t. V:
4.3.13.7. Example 4: System with non-PV work#
Consider a system composed of a stretchable/elastic solid. The energy associated with stretching the solid is given as
where \(F\) is the elastic coefficient of the system and \(L\) is the length of the material. In this case, the differential of internal energy, for example, is given as
(a) Derive an expression for \(dD\) where \(D = A-FL\) is a new thermodynamic energy function.
(b) Describe how you might measure the change in entropy w.r.t force for this system at constant \(V\) and \(T\).
Part (a) is essentially asking us to perform a Legendre transform of \(A\) to achieve a new function \(D\) that swaps natural variales \(F\) and \(L\).
From this expression we have the following Maxwell relation (among others)
This equation states that the change in entropy with respect to force (\(F\)) is equal to the change in length of the material with respect to temperature (at constant force). So you could measure the length of the material under constant volume and force conditions for various temperatures to estimate how entropy varies with respect to force.
import matplotlib.pyplot as plt
%matplotlib inline
import numpy as np
T = np.arange(250,350,5.0)
L = np.exp(T/60)
plt.plot(T,L,'o')
plt.xlabel("T")
plt.ylabel("L")
Text(0, 0.5, 'L')