As seen in Equation 2.2.6, this expression has three independent variables: (S,V,ni). Consider the scenario where S and V are held constant, where dS=0 and dV=0. This means that in this system, the only change in the internal energy comes from the change in the chemical work,
The subscripted S and V after ∣∣ mean that those variables are held constant. Equation 2.3.1 can also be rearranged to provide a more explicit definition of chemical potential μi.
Legendre Transformation from U(S,V,ni) to G(T,P,ni)¶
In practice, it is often difficult to keep S and V constant during chemical processes since it’s almost impossible to obtain complete heat insulation, and materials wants to expand or shrink in volume during heat exchange. It is oftentimes more convenient to control a different set of variables, such as T and P. The temperature can be fixed by coupling the system to an external heat reservoir, and the pressured can be fixed by adjusting the volume of the container or adding/removing materials from the system. By changing the underlying control variable, we are effectively transforming into a new thermodynamic potential that is different from the initial thermodynamic potential (i.e., the internal energy in this case). To obtain the expression for this new thermodynamic potential, we follow a 3-step process to transform from the internal energy U that depends on (S,V,ni) to a new thermodynamic potential that depends on (T,P,ni).
Here, the variables that immediately follow the d operators are our independent/control variables, which are S, V, and ni, whereas T, P, μi and U are dependent variables.
For clarity, let’s change one control variable at a time. One can either choose to change from S to T first, or change from V to P first. Here, we choose to change from V to P first.
After such a change, the new potential should depend on (S,P,ni), with its differential form looking something like the following expression
where [?] is this new thermodynamic potential, [??] is the unknown variable in front of dP, and ± sign just means that for now, we don’t know if the sign before [??]dP term should be a + sign or a − sign.
For now, since we are only change one independent variable from V to P, while fixing the other two independent variables where dS=0 and dni=0, Equation 2.3.3 can be simplified as
which means that if we were to plot U(V) at constant S and ni, the U vs. V curve should be monotonically decreasing since P should be a positive number, and from Equation 2.3.4, the first-order partial derivative of U with respect to V at constant S and ni is thus negative. We can even learn about the second-order partial derivative of U with respect to V at constant S and ni as follows
We can use physical intuition to figure out the sign of this second-order partial derivative. At constant S and ni, we have an adiabatic system that also doesn’t allow exchange of matter (e.g., a thermally insulated piston). For an infinitesimal increase in volume, we would expect the infinitesimal change in pressure of this system to be a decrease. This means that (∂P/∂V)S,ni<0, and thus
We can see that the independent variables of H are indeed S, P and ni, with no V dependence. Here, we also note that
there is a new definition of chemical potential when S, P, and nj=i are held constant.
The left panel in the interactive figure below plots U(V) with (∂U/∂V)S,ni<0 and (∂2U/∂V2)S,ni>0,
as derived before. At constant S and ni, if one were to pick any point along this U vs. V curve, which we can denote as (V0,U0), the partial derivative of U
with respect to V, evaluated at V0, is the instantaneous tangent slope of U(V) at this specific point. If we extend a tangent line all the way to V=0, we will find that
the product between the partial derivative and V, evaluated at this specfic point, becomes (∂V∂U)S,ni∣∣V0⋅V0=ΔV0ΔU0⋅(V0−0)=ΔU0.
Then, H0=U0−ΔU0, where H0 is the intercept between the tangent line and the V=0 vertical axis, denoted by the green dot in the left panel of the interactive plot.
If one were to trace out the path traversed by H as a function of P, we obtained the line plotted in the right panel.
We’ve presented the Legendre transformation from U(S,V) to H(S,P), but it is equally valid to first change the
independent variable from S to T, as shown in the following animation. By convention, we name this new thermodynamic potential
as the Helmholtz free energy, denoted by F.
Legendre transformation from U(S,V) to F(T,V)
Here is an interactive version of the same transformation.
Now, all that’s left is to transform the remaining independent variable from S to T since not only is S hard to control,
but also difficult to measure/quantify in the first place.
Again by convention, we name this new thermodynamic potential as the Gibbs free energy, denoted by G.
Following the general recipe of the Legendre transformation, we subtract from H with the product between the initial indepdendent variable (S) and the partial derivative of H with respect to T, while holding all other independent variable constant.
The significance of Equation 2.3.20 will become apparent in the next section.
For now, let’s recap two important lessons that we’ve learned so far.
The chemical potential of species i can be defined as partial molar quantities of different thermodynamic potentials under different control variables,
but these definitions are all equivalent.
Some of you may wonder: why do we refer to these thermodyanmic potentials as “free” energies?
Here is a spoiler alert: with some simple mathematical derivations, we will see that “free” here actually mean available or usable.
Let’s consider a system, as shown in Figure 2.3.6, that consists of a piston filled with ideal gas in contact with a infinite heat and mechanical work reservoir. We label the piston system with the subscript sys, and the reservoir with the subscript res. Both T and P of the system and the reservoir remain constant. If we also fix ni, along with T and P, no change in the system’s volume can happen, leading to no expansion or compression work done. By allowing ni to vary, according to Equation 2.2.3,
Figure 2.3.6:An isolated system composed of a piston system, a heat reservoir and a work reservoir.
Since we assume the piston and the reservoir to make up a larger isolated system, due to the conservation of the internal energy, any change in the internal energy of the piston system must balance out the change in that of the reservoir.
where δW is the infinitesimal change in the work, and δ is used to denote an infinitesimal change for a non-state variable like work. For the reservoir, since we know there would be no reaction happening in the reservoir, there is no chemical work. In addition to mechanical/expansion work and chemical work, all forms of work (e.g., electrical, magnetic work) other than “PV” mechanical work are represented by δWother res. Plugging in terms and rearranging for δWother res, we have
If we assume all processes happens reversibly in this isolated system, there is no net entropy production dSiso=0=dSsys+dSres, and intuitively we know the total volume of an isolated system stays constant, dViso=0=dVsys+dVres. Then we have
In a nutshell, dG∣∣T,P is the maximum amount of non-PV work that is available to be extracted from the system, at constant T and P, when the system is coupled to other forms of external reservoirs. In a fuel cell, T and P can be controlled and maintained. As a result, dG∣∣T,P is used to determine the upper theoretical limit of non-PV work available to be used/extracted from the system.