Gibbs: Internal Energy, Phase Rule, and Multivariable Functions#

Following Gibbs’ work, this section introduces concepts such as state variables and internal energy, as well as the Gibbs phase rule. Later, the first law of thermodynamics is reformulated using the formalism introduced by Gibbs, which allows identifying the state of a system with a limited number of independent state variables and expressing the other (dependent) state variables as functions of multiple variables.

State Variables#

Definition 1 (State Variable)

A state variable of a system is a physical property of the system that depends exclusively on the current state of the system.

Example 1 (State Variables and Non-State Variables)

State variables include temperature, pressure, internal energy, entropy, etc. Non-state variables include work or heat exchanged by the system. todo

Internal Energy#

Definition 2 (Internal Energy)

The internal energy of a system is defined as the difference between the total energy and the macroscopic kinetic energy of the system,

\[E = E^{tot} - K \ .\]

It is possible to derive a balance for the internal energy of a closed system by subtracting the balance of kinetic energy described by the kinetic energy theorem from the balance of total energy provided by the first law of thermodynamics,

\[\begin{split}\begin{aligned} d E^{tot} & = \delta L^{ext} + \delta Q^{ext} \\ d K & = \delta L^{ext} + \delta L^{int} \ , \end{aligned}\end{split}\]

The energy balance for the internal energy of a closed system then becomes

\[d E = \delta Q^{ext} - \delta L^{int} \ .\]

Gibbs Phase Rule#

Definition 3 (Phase)

A phase is defined as a portion of a chemical-physical system characterized by uniform chemical-physical (macroscopic) properties.

todo

  • Discussion of properties

  • Examples: a mixture of miscible gases constitutes a single phase, in which the individual components cannot be macroscopically distinguished; immiscible liquids remain macroscopically separated and thus constitute multiple phases, in which distinct chemical compositions can be macroscopically identified;…

Proposition 1 (Gibbs Phase Rule)

The thermodynamic (equilibrium) state of a system is identified by a number \(F\) of independent intensive state variables, determined by the Gibbs phase rule,

\[F = C - P + 1 + W \ ,\]

i.e., the number of independent intensive variables (or degrees of freedom), \(F\), of a system is a function of the number of independent components \(C\), the number of phases \(P\), and the number \(W\) of ways the system can manifest internal work, such as:

  • internal mechanical stresses

  • contribution of surface tension

  • bond energy of the molecules of the components

  • contribution of the electromagnetic field

Discussion of the Gibbs Phase Rule

The equilibrium state of a system is defined by the values of the state variables, which for a non-electrically charged gas system are: temperature \(T\), pressure \(p\), and concentrations \(C_{c,\phi}\) of the individual components \(c=1:C\) in the individual phases \(\phi = 1:P\) within the system.

The state of the system is thus determined by the values of the \(1+W\) intensive thermodynamic variables, here \(W+1=2\) (\(T\), \(p\)), and the \(C \, P\) molar or mass fractions \(n_{c,\phi}\), for a total of \(N \, P + W + 1\) variables. In general, these variables are constrained by some conditions:

  • \(C \, (P-1)\) phase equilibrium conditions for each component, described by the equality of chemical potentials

    \[\mu_{c,\phi_1}(T,p) = \mu_{c,\phi_2}(T,p) = \dots = \mu_{c,\phi_P}(T,p)\]
  • \(P\) unitarity conditions of the fractions

    \[\sum_{c} n_{c,\phi} = 1\]

Thus, with \(C \, P + W + 1\) variables and \(P + C\, (P-1) = C \, P - C + P\) equations, we find that the problem can be determined by

\[C \, P + W + 1 - C \, P + C - P = C - P + W + 1 = F \ ,\]

independent variables.

todo

  • Provide examples that clarify the definition of phase (e.g., pure solids or liquids represent phases on their own), and of independent component (e.g., chemical reactions, with no excess components, create constraints that reduce the number of independent substances, thanks to stoichiometric relationships between substances)

  • Discuss the role of phase fractions of a single component and the fact that they are not state variables; example phase transition from liquid to vapor: equilibrium is determined by the value of \(P\) (or \(T\)), and the vapor fraction is a result of other extensive variables of the system.

First Law in terms of state variables#

Internal energy is an extensive variable of a thermodynamic system. In general, it can be written as a function of extensive variables that represent the ways the system manifests its internal energy (todo due to work done on it, heat transferred to the system, and its chemical composition, thus the energy contained in bonds).

\[E(S, X_k)\]

where \( X_k \) are the state variables whose variations are associated with reversible internal work, and \( S \) is the state variable whose variation is associated with heat exchange with the external environment and internal dissipative actions. todo referring to the chapter on functions and multivariable calculus

Assuming the function \( E \) is continuous and differentiable, at least piecewise, the exact differential of internal energy can be written as a function of the increments of the independent variables:

\[ dE = \left. \dfrac{\partial E}{\partial S} \right|_{\mathbf{X}} d S + \left. \dfrac{\partial E}{\partial X_k} \right|_{S} d X_k = T \, d S + \sum_k F_k \, d X_k \]

where \( F_k \) are the generalized forces associated with changes in the generalized coordinates \( X_k \), and \( T \) and \( S \) correspond to temperature and entropy as discussed further below. todo.

Note

As shown later, with this formalism, it is straightforward to express the second and third laws of thermodynamics as:

  • \( dS \ge \dfrac{\delta Q^{ext}}{T} \)

  • \( T \ge 0 \)

The expression for the differential of internal energy can be compared with the energy balance written in terms of heat transferred to the system and internal work:

\[ dE = \delta Q^{ext} - \delta L^{int} = \delta Q^{ext} + \delta^+ D - \delta L^{int,rev} \]

where the internal work \( \delta L^{int} \) is recognized as the sum of a reversible contribution and a dissipative contribution, which is never negative: \( \delta L^{int} = \delta L^{int,rev} - \delta^+ D \).

Since \( dE \) is an exact differential and \( \delta L^{int,rev} \) is a reversible contribution, it follows that the sum of the two non-reversible contributions, \( \delta U := \delta Q^{ext} + \delta^+ D \), is a reversible contribution. Comparing the two expressions for the differential of internal energy, we can associate reversible internal work with the sum of works formed as the product of generalized forces \( F_k \) and changes in the state variables \( X_k \), and the term \( \delta U \) with the product \( T \, dS \):

\[\begin{split} \begin{cases} -\delta L^{int,rev} &= \sum_k F_k \, d X_k \\ \delta U &= T \, dS \end{cases} \end{split}\]
Temperature, \( T \), and entropy, \( S \)

In the absence of external work done on the system, and in the absence of dissipation \( \delta^+ D = 0 \), we get:

\[ dE^{tot} = dE = \delta Q^{ext} \]
\[ dS = \frac{\delta Q^{ext}}{T} \]

Consider a closed and isolated system made of two subsystems in equilibrium, which can exchange heat but not work.

The total energy of the system is constant, \( E = E_1 + E_2 \). If the two subsystems are not initially at the same temperature, we observe a heat flow from the hotter system to the colder one, which satisfies the inequality:

\[ \frac{\delta Q_{12}}{T_1} + \frac{\delta Q_{21}}{T_2} \ge 0 \quad \rightarrow \quad dS_1 + dS_2 \ge 0 \]

The quantity \( S = S_1 + S_2 \) is non-decreasing.

Second and Third Laws of Thermodynamics#

The formalism introduced in this section allows for a rather natural formulation of the second law and a version of the third law of thermodynamics.

This formulation of the third law of thermodynamics states that the thermodynamic temperature is always positive:

\[ T := \left.\frac{\partial E}{\partial S}\right|_{\mathbf{X}} > 0 \]

todo Add some words about the significance, in terms of molecular agitation and probability

In cases where this form or consequence of the third law of thermodynamics holds, the second law of thermodynamics is a consequence of the non-negativity of dissipation and the heat transfer mechanism, as will be discussed in more detail in the discussion of composite systems.

In the general case of a simple system, using the definition \( dS = \frac{\delta U}{T} = \frac{\delta Q^{ext} + \delta^+ D}{T} \), the non-negativity of dissipation, \( \delta^+ D \ge 0 \), implies:

\[ dS \ge \frac{\delta Q^{ext}}{T} \]

This is an expression of the Clausius statement of the second law of thermodynamics.

todo oss The third law of thermodynamics: 1. It seems not to be a fundamental principle; 2. For some systems with limited energy, the definition of temperature \( T := \left( \frac{\partial E}{\partial S} \right) \) produces a negative temperature todo add a section on statistical mechanics?


From L.E. Reichl, A Modern Course in Statistical Physics, with some inconsistencies todo check!

\[ \delta W = - P dV + J dL + \sigma d A + V \left( \vec{e} \cdot d \vec{p} + \vec{h} \cdot d \vec{m}\right) + \phi d q \]
  • where \( J \), \( \sigma \) are tensions per unit length and area, \( d L \), \( d A \) are changes in length or area,

  • where \( \vec{e} \), \( \vec{h} \) are the electric and magnetic fields, \( \vec{p} \), \( \vec{m} \) are polarization and magnetization,

  • \( \phi \) is the electric potential, and \( q \) is electric charge (for open systems, otherwise \( dq \equiv 0 \) or net charge would be created!)