Abstract
This study is intended to give a brief overview of some of the mathematical concepts and techniques relevant to the study of thermodynamics, including the theory of homogeneous functions and partly homogeneous functions, Euler’s theorem, and Legendre transformation. The basic thermodynamic functions of an ideal monatomic gas (fundamental relations and thermodynamic potential functions) have been selected as illustrative examples.
Similar content being viewed by others
Introduction
An ideal gas is a theoretical gas composed of many randomly moving point particles. The essence of ideal gas behavior is that the molecules of the gas do not interact except when they collide elastically. A substance is said to be an ideal gas [1, 2, 3].
(a) if it satisfies the following equation (mechanical equation of state):
where n is the (chemical) amount, m is the mass, M is the molar mass of the substance, p is the pressure, V is the volume, T is the temperature, and R is the “universal” gas constant, respectively, (b) for a single-component ideal gas the molar internal energy (u) is a function only of the temperature (and inversely), i.e.,
(c) and the Helmholtz potential (or Helmholtz free energy) F(T, V, n 1, n 2,…,n m ) of a multicomponent ideal gas is additive over the components:
(The latter relationship is sometimes referred to as “Gibbs’s theorem”).
In the IUPAC Gold Book [4] the ideal gas is defined as follows:
“Ideal gas. Gas which obeys the equation of state pV = nRT (the ideal gas law; p is the pressure, V the volume, n the amount of molecules, R the gas constant and T the thermodynamic temperature). For an ideal gas the fugacity, f, of each constituent B is equal to its partial pressure, p B, f B = p B = x B·p, where x B is the amount fraction of B”.
In many textbooks the ideal gas is defined as a gas whose particles don’t have any volume of their own and as a gas where no interactions between the particles occur (that is, there are no intermolecular potential energies). On the other hand each of these particles has a mass, that is, the molecules are point particles.
A “simple ideal gas” is characterized by the two equations pV = nRT and U = cnRT where c is a constant and U is the internal energy [1].
Fundamental relations for the ideal gas
The compact form of the entropy fundamental relation (fundamental equation, fundamental function) of a “simple” ideal gas can be given as [see Ref. [1], p. 68, Eq. 3.34, or “Appendix 1”, Eq. (59)].
In Eq. (1) S is the entropy, U is the internal energy, V is the volume of the system, n is the chemical amount of substance of the gas (1 component), respectively, c is a constant (“monatomic ideal gases” have a value of c = 3/2), R is the “universal gas constant”, U 0, n 0 and V 0 are the parameters of a fixed reference state, and
In Eq. (2) (µ/T)0 is an undetermined integration constant (see “Appendix 1”). If the integration constant is known, then Eq. (1) contains all possible thermodynamic information about a simple ideal gas. Thus, for the special case of an ideal monatomic gas we can write:
or
The function U(S, V, n) given is Eq. (4) can be called the fundamental function of the internal energy of the ideal gas with the entropy S, the chemical amount n, and the volume V as the respective fundamental variables. This function is probably the simplest example of a fundamental function (fundamental relation) in thermodynamics which can be given in an explicit form. On the other hand, this function offers the opportunity to study and demonstrate the application of important mathematical concepts (e.g., the theory of homogeneous functions and partly homogeneous functions, Euler’s theorem, and the Legendre transformation [5, 6]) to real thermodynamic problems.
For instance multiplying all independent variables of the function U simultaneously by the same factor k > 0 we obtain:
This means that the internal energy function is a homogeneous function of degree one with respect to all extensive variables (see “Appendix 2”, [6]), i.e., the following equation must be valid as a mathematical consequence (see Euler’s theorem for homogeneous functions in “Appendix 3”, [5, 6]):
In Eq. (6) T is the temperature, p is the pressure and µ is called the chemical potential.
On the other hand:
The partial derivatives of U are:
It can be seen that p(S, V, n), T(S, V, n), and µ(S, V, n) are homogeneous functions of degree 0, since:
Using Eqs. (6), (8), (9) and (10) it can be shown explicitly that U is a homogeneous function of degree 1:
Equation (7) can also be written in the explicit form as:
Equations (8)–(10) enable one to construct the equations of state of the ideal gas, that is:
on the other hand
consequently,
By comparing Eqs. (4) and (9) we can clearly see that:
Similarly, in the reference state \( p_{0} = \frac{2}{3}\frac{{U_{0} }}{{V_{0} }} \), \( T_{0} = \frac{2}{3R}\frac{{U_{0} }}{{n_{0} }} \), therefore
and
Legendre transforms of the internal energy function
We consider now the Legendre transforms of U(S, V, n) with respect to some extensive variables. These new functions are called thermodynamic potential functions (or thermodynamic potentials): (a) the “free energy function”, “Helmholtz free energy function” or “Helmholtz potential”, F, is the Legendre transform of U with respect to S, it is defined as:
(b) the enthalpy function, H, is the Legendre transform of U with respect to V, it is similarly defined as:
(c) the “Gibbs free energy function”, “free enthalpy function”, or “Gibbs potential”, G, defined as the Legendre transform of the internal energy U with respect to the entropy S and the volume V:
(d) the “grand potential function”, “Landau free energy function”, “Kramers energy function” or “Landau potential”, Φ, defined as the Legendre transform of the internal energy U function with respect to the entropy S and the chemical amount n:
The Helmholtz free energy function of an ideal monatomic gas
The Helmholtz potential or the Helmholtz free energy, is the partial Legendre transform (see [5, 6], and “Appendix 4”) of U that replaces the entropy by the temperature as the independent variable. The internationally adopted symbol for the Helmholtz potential is F. The natural variables of the Helmholtz potential of the ideal gas are T, V, and n. That is, the functional relation F(T, V, n) constitutes a fundamental relation.
The Legendre transformation of U
(see Eq. 16a) can be carried out as follows: The T(S, V, n) function can be inverted, i.e., from Eq. (9):
By using Eqs. (4) and (16a), the Legendre transform of U with respect to S can be written as:
Thus
or by eliminating U 0 in Eq. (18) with the help of Eqs. (14a) and (15a):
It can be clearly seen that at constant temperature F(T, V, n) is a homogeneous function of degree one (see “Appendix 2”) in the variables V and n, since
More precisely: the function F(T, V, n) is partly homogeneous of degree one in terms of the variables V and n (“Appendix 2”).
We can note here that the chemical potential:
can also be expressed as:
The enthalpy function of an ideal monatomic gas
The enthalpy function is the partial Legendre transform (see [5, 6] and “Appendix 4”) of U that replaces the volume by the pressure as the independent variable. The internationally adopted symbol for enthalpy is H. The natural variables of the enthalpy are S, p, and n, that is, H = H(S, p, n). The Legendre transformation of U.
(see Eq. 16b) can be carried out as follows:
From Eq. (8):
By using Eqs. (4) and (19), the Legendre transform of U with respect to V can be written as:
Thus the enthalpy function the ideal monatomic gas can be given in the explicit form as.
On the other hand:
By comparing Eqs. (20) and (21) we get
It can be noted that at constant pressure H(S, p, n) is a partly homogeneous function, i.e., a homogeneous function of degree one (see “Appendix 2”) in the variables V and n, since at constant p
The Gibbs free energy of an ideal monatomic gas
The “Gibbs free energy”, or Gibbs potential, is the (double) Legendre transform of the internal energy U with respect to the entropy S and the volume V (see Eq. 16c)
and
Thus, by taking into account that V = V (T, p, n) and S = S (T, p, n):
that is
or by taking into account Eqs. (14a) and (15a):
Note, that there is apparently a small algebraic mistake in the relevant expression for G given in [7, p. 64].
Alternatively, the Gibbs free energy function can be obtained as:
or
In the first case, by using Eqs. (18), (23) and (24) we obtain that
and in the second case we can obtain Eq. (25) from Eqs. (20), (23) and (24).
We note here that
and µ is independent of n. The same conclusion also follows from the fact, that G (T, p, n) is a homogeneous function of degree one with respect to n (see “Appendix 2”, especially Eq. (60); in order to be more precise: the function G is partly homogeneous of degree one in terms of the variable n):
The grand potential function of an ideal monatomic gas
The “grand potential function” is the (double) Legendre transform of the internal energy U with respect to the entropy S and the volume chemical amount n (see Eq. 16d)
From Eqs. (9) and (10) we get:
and
The result of the double Legendre transformation of U (S, V, n) with respect to S and n is:
We can easily prove that Φ (T, V, µ) is a homogeneous function of degree one with respect to V.
On the other hand, by introducing n (T, V, µ) and S (T, V, µ) [see Eqs. (27) and (28)] into Eq. (8), we find that the pressure p can be expressed as follows:
From Eqs. (29) and (30) we can also see that p is independent of V, and
We note here that functions like Φ (T, V, µ) are sometimes called “mechanical work functions”. In statistical mechanics, it is often referred to as “grand canonical potential”.
Other Legendre transforms of the U(S, V, n) function
Other possible Legendre transforms of the internal energy function U(S, V, n), which are used only infrequently and which consequently are unnamed, are:
and
It is to be remarked here, however, that in these cases the equations for the inversions appear to involve the variables to be solved for in an essentially non-algebraic way.
The “complete” Legendre transform of U(S, V, n) is U(T, p, µ). The fact that U(S, V, n) is a homogeneous function of degree one with respect to all of its arguments causes this latter function to vanish identically. For:
which, by the Euler relation (see “Appendix 3”), is identically zero, i.e.,
It should be stressed, however, that the above identity is valid only for homogeneous functions of degree one. For example, with \( f_{x} = \frac{\partial f}{\partial x} = e^{y} \), \( f_{y} = \frac{\partial f}{\partial y} = xe^{y} \), \( x = \frac{{f_{y} }}{{f_{x} }} \), and y = ln f x , respectively, the (double) Legendre transform of the function.
can be expressed as:
Some notes concerning the derivatives of the thermodynamic potential functions
The temperature, pressure, and the chemical potential are partial derivatives of functions of S, V, and n and consequently are also functions of S, V and n. We thus have a set of functional relationships (see Eqs. 8–10):
The expressions for p, T and µ can be obtained from the other thermodynamic potential functions by partial derivation.
For example, the chemical potential functions can be derived from the thermodynamic potential functions by taking partial derivatives of the functions with respect to the chemical amount n, and can be written as:
that is the chemical potential functions are defined by “different equations”.
On the other hand, it follows from the properties of fundamental relations that for a given set of the extensive variables (S 1, V 1, n 1), i.e., in a given state, the value of µ is unambiguously determined (together with the values of the other intensive variables). Consequently
This can be easily proved by substituting the relevant expressions of T and p into Eqs. (39)–(41). (It is obvious that equivalent relationships exist for the relevant T and p functions as well).
The above example show that there is a difference in meaning between a function f (x) and the value of the function at the point x, that is the “function” and the “function value” are two distinct concepts. In classical mathematics there has been no need to introduce separate symbols for those concepts. In certain branches of mathematics and in physics, however, this distinction becomes absolutely necessary [8]. A rigorous distinction may seem subtle in thermodynamics, but it is quite fundamental, because confusing the two concepts can lead to a number of errors and misinterpretations [9].
Concluding remarks
The fundamental functions in thermodynamics (U(S, V, n 1,…, n m , …) or S(U, V, n 1 ,…, n m,…)) are probably the most fundamental but not the most practical relations of thermodynamics. In many situations, the variables used in these expressions are not the ones controlled or measured in practice. For instance, we cannot measure the entropy (or the internal energy) directly, so that it must be calculated in terms of “measurable” (“controllable” or “laboratory”) variables, which are, e.g., temperature, pressure, volume, chemical amount, density, etc. It is well known that with the help of Legendre transformations, fundamental equations can be transformed with conservation of their fundamental nature, i.e., the property that they contain all information about the thermodynamic properties of the system. Nevertheless, some familiarity with basic mathematical concepts is necessary for the calculations.
The internal energy function of a simple ideal gas is probably the simplest example of a fundamental function (fundamental relation) which can be given in an explicit form. Due to its properties, this function can be effectively used to study and demonstrate the application of important mathematical concepts (e.g., the theory of homogeneous functions and partly homogeneous functions, Euler’s theorem, and the Legendre transformation) to real thermodynamic problems.
References
Callen HB (1985) Thermodynamics and an introduction to thermostatistics, 2nd edn. Wiley, New York
Shell MS (2015) Thermodynamics and Statistical Mechanics, Cambridge University Press, University Printing House, Cambridge
Keszei E (2012) Chemical Thermodynamics. Springer Science & Business Media, Berlin Heidelberg
Compendium of chemical terminology gold book (2014) International Union of Pure and Applied Chemistry, Version 2.3.3, p. 707, http://goldbook.iupac.org/PDF/goldbook.pdf. Accessed 24 Feb 2014
Láng GG, Barbero C (2012) Laser techniques for the study of electrode processes. Springer Verlag, Heidelberg, London, New York
Láng GG (2015) ChemTexts16:1-16
Callen HB (1986) Solutions manual for Thermodynamics and an introduction to thermostatistics, 2nd edn. Wiley, New York
Mikusinski J (1983) Operational calculus, vol I. PWN-Polish Scientific Publishers Warszawa, Pergamon Press, Oxford
Láng GG, Heusler KE (1999) J Electroanal Chem 472:168–173
Annamalai K, Puri IK (2002) Advanced thermodynamics engineering. CRC Press, CRC Series in Computational Mechanics and Applied Analysis, Boca Raton
Courant R, Hilbert D (1966) Methods of mathematical physics, Vol. II, Partial differential equations. Interscience Pubs., Wiley, New York
Tykodi RJ (1982) J Chem Educ 59:557–559
Alberty RA (2001) Pure Appl Chem 73:1349–1380
Arnold VI (1989) Mathematical methods of classical mechanics, 2nd edn. Springer, New York
Acknowledgments
Financial support from the Hungarian Scientific Research Fund (Grant No. K 109036) is gratefully acknowledged.
Author information
Authors and Affiliations
Corresponding author
Appendices
Appendix 1
The derivation of the entropy fundamental equation of a simple ideal gas
A “simple” ideal gas is characterized by the equations:
and
where c is a constant (e.g., for a “monatomic ideal gas” c = 3/2), n is the (chemical) amount of the substance, p is the pressure, V is the volume, T is the temperature, and R is the “universal” gas constant, respectively.
We can rewrite the above equations as:
and
The differential form of the entropy based fundamental equation is
and the integrated form of Eq. (47) can be written as (see Euler’s theorem for homogeneous functions, Appendix 3)
The entropy-based Gibbs–Duhem equation follows immediately from Eq. (48):
and for a one-component system:
Dividing Eq. (50) by the amount of substance n and rearranging, we get
Since \( {\text{d}}\frac{1}{T} = \left( {\frac{{{\text{d}}\frac{ 1}{T}}}{{\text{d}}u}} \right){{\text{d}}u} \) and \( {\text{d}}\frac{p}{T} = \left( {\frac{{{\text{d}}\frac{p}{T}}}{\text{d}v}} \right){\text{d}v} \), with Eqs. (45), (46) we obtain:
The first term on the right hand side of (52) is a function of only u, the second term is a function of only v, therefore we can integrate the first term only with respect to u and the second one only with respect to v:
that is
In Eqs. (53) and (54) u 0 and v 0 are the parameters of a fixed reference state, and (μ/T)0 arises as an undetermined constant of integration.
By substituting 1/T = cR/u, p/T = R/v, and μ/T from Eqs. (45), (46) and (53), respectively, into Eq. (48) we have:
Since \( U/u = V/v = n,\,\frac{u}{{u_{0} }} = \frac{U}{n}\frac{{n_{0} }}{{U_{0} }} \), and \( \frac{v}{{v_{0} }} = \frac{V}{n}\frac{{n_{0} }}{{V_{0} }} \) Eq. (55) can be write in terms of extensive variables:
or by introducing
i.e., the entropy in the reference state, we arrive at the entropy fundamental equation of the simple ideal gas
or
Appendix 2
Homogeneous functions, partly homogeneous functions
Definition
A homogeneous function is a function of one or several variables that satisfies the following condition: when all independent variables of a function are simultaneously multiplied by the same (arbitrary) factor, the value of the function is multiplied by some power of this factor. That is, if:
for all k > 0, then f is said to be a homogeneous function of degree n. The degree n can take on any value (positive, negative, or zero). A function f is linearly homogenous if it is homogeneous of degree 1.
If for a function f the equation
is true then we say that this function is homogeneous of degree n in the variables x 1, x 2, …, x m . Such functions are called partly (or partially) homogeneous functions [5, 6, 10]. A function f is called “partly homogeneous” of degree 1 in terms of m among m + w variables if
i.e., the function f is homogeneous of degree one with respect to certain variables (x 1, x 2, …, x m ), but not homogeneous with respect to all of the variables. These functions are important as they are frequently encountered in thermodynamics. For more details see, e.g., [5, 6, 11]. Remark: It can be shown [6] that if f (x 1, x 2, …, x m ) is a homogeneous function of degree n, it can be represented by
with some function g. Since, conversely, every f function formed by means of an appropriate function g of m-1 variables satisfies the condition of homogeneity, the expression (63) represents the totality of homogeneous functions of degree n.
Appendix 3
Euler’s theorem
Euler’s theorem states that, the differentiable function f of m variables is homogeneous of degree n then the following identity holds
It can be shown that the converse theorem also holds, that is if the function f of the real variables x 1, x 2, …, x m satisfies the identity (64), then the function f is homogeneous of degree n. (see Refs. [6, 12] for more details).
Appendix 4
Legendre transformation
Let f (x 1, x 2,…,x m ) an arbitrary analytic function of variables x 1, x 2,…,x m . The differential of f is:
Consider a new function g of the variables p 1 and x 2, x 3,..., x m :
where \( p_{1} = \frac{{\partial {\kern 1pt} f}}{{\partial {\kern 1pt} x_{1} }} \). A necessary condition is the existence of a one to one relation between p 1 and x 1; that is, the function p 1(x 1, x 2,...,x m ) can be inverted to give x 1(p 1). (This means that p 1 is bijective). (Note, that the transformation (66) is often called the “negative Legendre transform”, and the Legendre transform is then defined as: g(p 1, x 2,…,x m ) = p 1 x 1(p 1) − f(x 1(p 1), x 2,…,x m ). For more details see Refs. [1, 2, 6, 13, 14]).
Rights and permissions
About this article
Cite this article
Láng, G.G. Some remarks concerning the thermodynamics of the simple ideal gas and related mathematical background. ChemTexts 2, 10 (2016). https://doi.org/10.1007/s40828-016-0028-2
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s40828-016-0028-2