Skip to main content
Physics LibreTexts

1.2: The 2nd law of thermodynamics, entropy, and temperature

  • Page ID
    34688
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Thermodynamics accepts a phenomenological approach to the entropy \(S\), postulating that there is such a unique extensive measure of the aggregate disorder, and that in a closed system (defined as a system completely isolated from its environment, i.e. the system with its internal energy fixed) it may only grow in time, reaching its constant (maximum) value at equilibrium:15

    \(2^{nd}\) law of thermodynamics: \[\boxed{dS \geq 0.} \label{4}\]

    1.2.PNG
    Figure \(\PageIndex{1}\): A composite thermodynamic system.

    Neglecting the energy of interaction between the parts (which is always possible at \(N >> 1\), and in the absence of long-range interactions), we may use the extensive character of the variables \(E\) and \(S\) to write

    \[E = E_1 (S_1) + E_2 (S_2), \quad S = S_1 + S_2, \label{5}\]

    for the full energy and entropy of the system. Now let us use them to calculate the following derivative:

    \[\frac{d S}{d E_{1}}=\frac{d S_{1}}{d E_{1}}+\frac{d S_{2}}{d E_{1}} \equiv \frac{d S_{1}}{d E_{1}}+\frac{d S_{2}}{d E_{2}} \frac{d E_{2}}{d E_{1}}=\frac{d S_{1}}{d E_{1}}+\frac{d S_{2}}{d E_{2}} \frac{d\left(E-E_{1}\right)}{d E_{1}} . \label{6}\]

    Since the total energy \(E\) of the closed system is fixed and hence independent of its re-distribution between the subsystems, we have to take \(dE/dE_1 =0\), and Equation (\ref{6}) yields

    \[\frac{d S}{d E_{1}}=\frac{d S_{1}}{d E_{1}}+\frac{d S_{2}}{d E_{2}} \label{7}\]

    According to the \(2^{nd}\) law of thermodynamics, when the two parts have reached the thermodynamic equilibrium, the total entropy \(S\) reaches its maximum, so that \(dS/dE_1 = 0\), and Equation (\ref{7}) yields

    \[\frac{d S_{1}}{d E_{1}}=\frac{d S_{2}}{d E_{2}} \label{8}\]

    This equality shows that if a thermodynamic system may be partitioned into weakly interacting macroscopic parts, their derivatives \(dS/dE\) should be equal in the equilibrium. The reciprocal of this derivative is called temperature. Taking into account that our analysis pertains to the situation (Figure \(\PageIndex{1}\)) when both volumes \(V_{1,2}\) are fixed, we may write this definition as

    Definition of Temperature

    \[\boxed{ \left( \frac{\partial E}{\partial S} \right)_V \equiv T, } \label{9}\]

    the subscript \(V\) meaning that volume is kept constant at the differentiation. (Such notation is common and very useful in thermodynamics, with its broad range of variables.)

    In those units, the entropy becomes dimensional: \(S_K = k_BS\).

    1. according to Equation (\ref{9}), the temperature is an intensive variable (since both \(E\) and \(S\) are extensive), i.e., in a system of similar particles, it is independent of the particle number \(N\);
    2. temperatures of all parts of a system are equal at equilibrium – see Equation (\ref{8});
    3. in a closed system whose parts are not in equilibrium, thermal energy (heat) always flows from a warmer part (with higher \(T\)) to the colder part.

    In order to prove the last property, let us revisit the closed, composite system shown in Figure \(\PageIndex{1}\), and consider another derivative:

    \[\frac{d S}{d t}=\frac{d S_{1}}{d t}+\frac{d S_{2}}{d t} \equiv \frac{d S_{1}}{d E_{1}}+\frac{d E_{1}}{d t} +\frac{d S_{2}}{d E_{2}} \frac{d E_{2} }{d t} . \label{10}\]

    If the internal state of each part is very close to equilibrium (as was assumed from the very beginning) at each moment of time, we can use Equation (\ref{9}) to replace the derivatives \(dS_{1,2}/dE_{1,2}\) with \(1/T_{1,2}\), getting

    \[\frac{d S}{d t}=\frac{1 }{T_1} \frac{d E_{1}}{d t} + \frac{1 }{T_2} \frac{d E_{2}}{d t} \label{11}\]

    Since in a closed system \(E = E_1 + E_2 =\) const, these time derivatives are related as \(dE_2/dt = –dE_1/dt\), and Equation (\ref{11}) yields

    \[\frac{dS}{dt} - \left( \frac{1}{T_1}-\frac{1}{T_2}\right) \frac{dE_1}{dt} \label{12}\]

    But according to the \(2^{nd}\) law of thermodynamics, this derivative cannot be negative: \(dS/dt \geq 0\). Hence,

    \[\left( \frac{1}{T_1}-\frac{1}{T_2}\right) \frac{dE_1}{dt} \geq 0 \label{13}\]

    For example, if \(T_1 > T_2\), then \(dE_1/dt \leq 0\), i.e. the warmer part gives energy to its colder counterpart.

    Note also that at such a heat exchange, at fixed volumes \(V_{1,2}\), and \(T_1 \neq T_2\), increases the total system’s entropy, without performing any “useful” mechanical work – see Equation (\(1.1.1\)).


    This page titled 1.2: The 2nd law of thermodynamics, entropy, and temperature is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Konstantin K. Likharev via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.