210 The Second Law of Thermodynamics
equivalently, that the state of equilibrium in an isolated system is the one in which entropy
takes its maximum possible value for the (constant) total internal energy content of the
system (we will ignore forms of energy other than E). By definition, an isolated system
does not interact with anything else, so we see that the condition dE =0 (i.e constant inter-
nal energy) must be true of an isolated system. It must also be true that dV = 0, because
otherwise the system would exchange work with its environment. Moreover, an isolated
system must also be closed to the exchange of chemical components. If we call the mol
number (= number of mols) of the ith component n
i
, then for an isolated system it must be
dn
i
=0, for all i.
In the mathematical notation of thermodynamics, the maximum entropy statement of the
Second Law is often written as follows:
dS
E,V , n
i
=0 (4.71)
d
2
S
E,V , n
i
< 0. (4.72)
These are mangled versions of the conditions for the maximum of a function: the first
equation says that the first derivative vanishes at an extremum, whereas the second one says
that, if the second derivative is negative at the extremum, then the extremum is a maximum.
The problem is that equations (4.71) and (4.72) are not written in terms of derivatives, but
rather in terms of the total differentials of entropy. This notation is mathematically sloppy,
as loudly pointed out by Truesdell (1984), but, regrettably, the use of equations such as
(4.71) and (4.72) is so deeply ingrained in thermodynamics that it is difficult to get away
from it. It is important, however, to understand what these equations are actually saying.
In particular, if E, V and n
i
are all constant, exactly what variable are we differentiating
entropy relative to, so as to find an extremum for the function? Which begs the question:
what (else) is entropy a function of? Or, in physical terms, why is entropy changing in the
first place?
The way to think about this is by imagining that, initially, there are restrictions, or
constraints, that prevent the system from changing towards equilibrium. For instance,
a partition separating two different gases that can mix by diffusion, or two different
electrolyte solutions that will precipitate a solid when they mix, or a perfect thermal insula-
tor separating two bodies at different temperatures. When we remove the restriction the
system changes towards equilibrium, and as it does so entropy changes as a function
of some physical quantity that drives the displacement towards equilibrium. This could
be, for example, exchange of gas molecules between the two sides of the container in
Fig. 4.7, or exchange of ions between the electrolyte solutions, or exchange of internal
energy between two bodies at different temperatures. We will analyze the latter exam-
ple in formal mathematical language so as to clarify the meaning of equations (4.71)
and (4.72).
At constant E, V and n
i
, the entropy of the isolated system varies as a function of
the amount of internal energy exchanged between the two bodies. Let the internal energy,
entropy and temperature of body j be E
j
, S
j
and T
j
, respectively, and the corresponding
properties of the isolated system composed of the two bodies be E, S and T. We will assume
that there is no exchange of matter between the bodies, and that they are incompressible.
We then have:
E
1
+E
2
=E (4.73)