Entropy measurement
The thermodynamic state of a uniform closed system is determined by its temperature T and pressure P. A change in entropy can be written as
d
S
=
(
∂
S
∂
T
)
P
d
T
+
(
∂
S
∂
P
)
T
d
P
.
{\displaystyle \mathrm {d} S=\left({\frac {\partial S}{\partial T}}\right)_{P}\mathrm {d} T+\left({\frac {\partial S}{\partial P}}\right)_{T}\mathrm {d} P.}
The first contribution depends on the heat capacity at constant pressure CP through
(
∂
S
∂
T
)
P
=
C
P
T
.
{\displaystyle \left({\frac {\partial S}{\partial T}}\right)_{P}={\frac {C_{P}}{T}}.}
This is the result of the definition of the heat capacity by δQ = CP dT and T dS = δQ. The second term may be rewritten with one of the Maxwell relations
(
∂
S
∂
P
)
T
=
−
(
∂
V
∂
T
)
P
{\displaystyle \left({\frac {\partial S}{\partial P}}\right)_{T}=-\left({\frac {\partial V}{\partial T}}\right)_{P}}
and the definition of the volumetric thermal-expansion coefficient
α
V
=
1
V
(
∂
V
∂
T
)
P
{\displaystyle \alpha _{V}={\frac {1}{V}}\left({\frac {\partial V}{\partial T}}\right)_{P}}
so that
d
S
=
C
P
T
d
T
−
α
V
V
d
P
.
{\displaystyle \mathrm {d} S={\frac {C_{P}}{T}}\mathrm {d} T-\alpha _{V}V\mathrm {d} P.}
With this expression the entropy S at arbitrary P and T can be related to the entropy S0 at some reference state at P0 and T0 according to
S
(
P
,
T
)
=
S
(
P
0
,
T
0
)
+
∫
T
0
T
C
P
(
P
0
,
T
′
)
T
′
d
T
′
−
∫
P
0
P
α
V
(
P
′
,
T
)
V
(
P
′
,
T
)
d
P
′
.
{\displaystyle S(P,T)=S(P_{0},T_{0})+\int _{T_{0}}^{T}{\frac {C_{P}(P_{0},T^{\prime })}{T^{\prime }}}\mathrm {d} T^{\prime }-\int _{P_{0}}^{P}\alpha _{V}(P^{\prime },T)V(P^{\prime },T)\mathrm {d} P^{\prime }.}
In classical thermodynamics, the entropy of the reference state can be put equal to zero at any convenient temperature and pressure. For example, for pure substances, one can take the entropy of the solid at the melting point at 1 bar equal to zero. From a more fundamental point of view, the third law of thermodynamics suggests that there is a preference to take S = 0 at T = 0 (absolute zero) for perfectly ordered materials such as crystals.
S(P, T) is determined by followed a specific path in the P-T diagram: integration over T at constant pressure P0, so that dP = 0, and in the second integral one integrates over P at constant temperature T, so that dT = 0. As the entropy is a function of state the result is independent of the path.
The above relation shows that the determination of the entropy requires knowledge of the heat capacity and the equation of state (which is the relation between P,V, and T of the substance involved). Normally these are complicated functions and numerical integration is needed. In simple cases it is possible to get analytical expressions for the entropy. In the case of an ideal gas, the heat capacity is constant and the ideal gas law PV = nRT gives that αVV = V/T = nR/p, with n the number of moles and R the molar ideal-gas constant. So, the molar entropy of an ideal gas is given by
S
m
(
P
,
T
)
=
S
m
(
P
0
,
T
0
)
+
C
P
ln
T
T
0
−
R
ln
P
P
0
.
{\displaystyle S_{m}(P,T)=S_{m}(P_{0},T_{0})+C_{P}\ln {\frac {T}{T_{0}}}-R\ln {\frac {P}{P_{0}}}.}
In this expression CP now is the molar heat capacity.
The entropy of inhomogeneous systems is the sum of the entropies of the various subsystems. The laws of thermodynamics hold rigorously for inhomogeneous systems even though they may be far from internal equilibrium. The only condition is that the thermodynamic parameters of the composing subsystems are (reasonably) well-defined.