2.3. Manipulating partial derivatives#
2.3.1. Derivatives as functions#
The first law of thermodynamics for a pure substance is:
where U is the molar internal energy, T is the temperature, S is the molar entropy, P is the pressure, and V is the molar volume. This is an exact differential for \(U(S,V)\). Mathematically, we also have the total differential:
By comparing the two, we see that
This shows that T and P are functions of S and V! Their derivatives can be computed and manipulated using rules of multivariable calculus in order to relate measurable quantities like T and P to the derivatives of an unmeasurable quantities like U! For example, the change in internal energy for an adiabatic process (constant S) is:
We can also relate quantities as mixed derivatives. For example, the entropy derivative of the pressure cannot be measured easily, but it is related to the temperature change during adiabatic compression:
2.3.2. Swapping variables and derivatives#
We say U has S and V as “natural” variables because they are what appears in the differential first law. But, we do not like S as a variable because we cannot measure it. We would love to use T instead. Can we swap the two?
Yes, if we define the Helmholtz free energy:
where S is now a function of T and V and so is U as a result. The total differential for A confirms this:
As a result,
Other quantities can be defined to use different sets of natural variables.
Enthalpy H
(2.22)#\[\begin{align} H &= U + P V \\ \d{H} &= T \d{S} + V \d{P} \end{align}\]Gibbs free energy G
(2.23)#\[\begin{align} G &= A + P V = U - T S + P V \\ \d{G} &= - S \d{T} + V \d{P} \end{align}\]
The reasons for making these definitions are based on a concept called a Legendre transformation and this has important implications in thermodynamics (e.g., why \(\Delta G < 0\) for a spontaneous process at constant T and P).
Example: Change in internal energy
We want to compute the change in molar internal energy \(\Delta U\) of a substance as we vary the temperature T and pressure P in terms of quantities we can measure. In addition to T and P, these quantities are the molar volume V, the thermal expansion coefficient \(\alpha_V\), the isothermal compressibility \(\kappa_T\), and the constant-pressure heat capacity \(c_P\):
where \(H\) is the molar enthalpy. The following total differentials are known from thermodynamics:
where S is the molar entropy and \(G\) is the molar Gibbs free energy.
First, we express the total differential for U as a function of T and P:
Next, we form the derivatives using the given total differential for U:
Then, we go about replacing what we don’t like because we can’t measure it with things that we can. For \((\partial S/ \partial T)_P\), use the chain rule followed by the inversion rule:
where the last step used the total differential for \(H\) to replace the derivative in the denominator. Additionally using the definition of \(\alpha_V\) gives
For \((\partial S/\partial P)_T\), use the total differential for \(G\) and equate its mixed second derivatives:
Additionally using the definition of \(\kappa_T\) gives
Putting it all together:
This total differential is now suitable for integration with respect to T and P using only measurable quantities!