6 Second Law of Thermodynamics

In chapter 5, we have discussed heat engines as a means of understanding how some processes are spontaneous while others are not. Carnot’s findings did not just simply inspire Lord Kelvin on this subject, but they also motivated Rudolf Clausius (1822–1888) to introduce the concept of entropy.

6.1 Entropy

Let’s return to the definition of efficiency of a Carnot cycle and bring together eqs. (5.17) and (5.18):

\[\begin{equation} \varepsilon = 1+\frac{Q_3}{Q_1} = 1-\frac{T_l}{T_h}. \tag{6.1} \end{equation}\]

Simplifying this equality, we obtain:

\[\begin{equation} \frac{Q_3}{T_l} = -\frac{Q_1}{T_h}, \tag{6.2} \end{equation}\]

or alternatively:

\[\begin{equation} \frac{Q_3}{T_l} + \frac{Q_1}{T_h} = 0. \tag{6.3} \end{equation}\]

The left hand side of eq. (6.3) contains the sum of two quantities around the Carnot cycle, each calculated as \(\frac{Q_{\mathrm{REV}}}{T}\), with \(Q_{\mathrm{REV}}\) being the heat exchanged at reversible conditions (recall that according to Definition 5.1 each transformation in a Carnot cycle is reversible). Eq. (6.2) can be generalized to a sequence of connected Carnot cycles joining more than two isotherms by taking the summation across different temperatures:

\[\begin{equation} \sum_i \frac{Q_{\mathrm{REV}}}{T_i} = 0, \tag{6.4} \end{equation}\]

where the summation happens across a sequence of Carnot cycles that connects different temperatures. Eqs. (6.3) and (6.4) show that for a Carnot cycle—or a series of connected Carnot cycles—there exists a conserved quantity obtained by dividing the heat associated with each reversible stage and the temperature at which such heat is exchanged. If a quantity is conserved around a cycle, it must be independent on the path, and therefore it is a state function. Looking at similar equations, Clausius introduced in 1865 a new state function in thermodynamics, which he decided to call entropy and indicate with the letter \(S\):

Definition 6.1 Entropy: \[\begin{equation} S = \frac{Q_{\mathrm{REV}}}{T}. \end{equation}\]

We can use the new state function to generalize eq. (6.4) to any reversible cycle in a \(PV\)-diagram by using the rules of calculus. First, we will slice \(S\) into an infinitesimal quantity:

\[\begin{equation} dS = \frac{đQ_{\mathrm{REV}}}{T}, \tag{6.5} \end{equation}\]

then we can extend the summation across temperatures of eq. (6.4) to a sum over infinitesimal quantities—that is the integral—around the cycle:

\[\begin{equation} \oint dS = \oint \frac{đQ_{\mathrm{REV}}}{T} = 0. \tag{6.6} \end{equation}\]

6.2 Irreversible Cycles

Up to this point, we have discussed reversible cycles only. Notice that the heat that enters the definition of entropy (Definition 6.1) is the heat exchanged at reversible conditions since it is only at those conditions that the right-hand side of eq. (6.5) becomes a state function. What happens when we face an irreversible cycle? The efficiency of a Carnot cycle in eq. (5.18) is the maximum efficiency that an idealized thermodynamic cycle can reach. As such, any irreversible cycle will incontrovertibly have an efficiency smaller than the maximum efficiency of the idealized Carnot cycle. Therefore, eq. (6.1) for an irreversible cycle will not hold anymore and must be rewritten as:

\[\begin{equation} \overbrace{1+\frac{Q_3}{Q_1}}^{\varepsilon_{\mathrm{IRR}}} < \overbrace{1-\frac{T_l}{T_h}}^{\varepsilon_{\mathrm{REV}}}, \tag{6.7} \end{equation}\]

and, following the same procedure used in section 6.1, we can rewrite eq. (6.7) as:

\[\begin{equation} \frac{Q^{\text{IRR}}_3}{Q^{\text{IRR}}_1} < - \frac{T_l}{T_h} \longrightarrow \frac{Q^{\text{IRR}}_3}{T_l} + \frac{Q^{\text{IRR}}_1}{T_h} < 0 \longrightarrow \sum_i \frac{Q_{\text{IRR}}}{T_i} < 0, \tag{6.8} \end{equation}\]

which can be generalized using calculus to:

\[\begin{equation} \oint \frac{đQ_{\mathrm{IRR}}}{T} < 0. \tag{6.9} \end{equation}\]

Putting eqs. (6.6) and (6.9) together, we obtain:

\[\begin{equation} \oint \frac{đQ}{T} \leq 0, \tag{6.10} \end{equation}\]

where the equal sign holds for reversible transformations exclusively, while the inequality sign holds for irreversible ones. Eq. (6.10) is known as Clausius inequality.

6.3 The Second Law of Thermodynamics

Now we can consider an isolated system undergoing a cycle composed of an irreversible forward transformation (1 \(\rightarrow\) 2) and a reversible backward transformation (2 \(\rightarrow\) 1), as in Figure 6.1.

Spontaneous and Non-Spontaneous Transformations in a Cycle.

Figure 6.1: Spontaneous and Non-Spontaneous Transformations in a Cycle.

This cycle is similar to the cycle depicted in Figure 5.1 for the Joule’s expansion experiment. In this case, we have an intuitive understanding of the spontaneity of the irreversible expansion process, while the non-spontaneity of the backward compression. Since the cycle has at least one irreversible step, it is overall irreversible, and we can calculate:

\[\begin{equation} \oint \frac{đQ_{\mathrm{IRR}}}{T} = \int_1^2 \frac{đQ_{\mathrm{IRR}}}{T} + \int_2^1 \frac{đQ_{\mathrm{REV}}}{T}. \tag{6.11} \end{equation}\]

We can then use Clausius inequality (eq. (6.10)) to write:

\[\begin{equation} \begin{aligned} \int_1^2 \frac{đQ_{\mathrm{IRR}}}{T} + \int_2^1 \frac{đQ_{\mathrm{REV}}}{T} < 0, \end{aligned} \tag{6.12} \end{equation}\]

which can be rearranged as:

\[\begin{equation} \underbrace{\int_1^2 \frac{đQ_{\mathrm{REV}}}{T}}_{\int_1^2 dS = \Delta S} > \underbrace{\int_1^2 \frac{đQ_{\mathrm{IRR}}}{T}}_{=0}, \tag{6.13} \end{equation}\]

where we have used the fact that, for an isolated system (the universe), \(đQ_{\mathrm{IRR}}=0\). Eq. (6.13) can be rewritten as:

\[\begin{equation} \Delta S > 0, \tag{6.14} \end{equation}\]

which proves that for any irreversible process in an isolated system, the entropy is increasing. Using eq. (6.14) and considering that the only system that is truly isolated is the universe, we can write a concise statement for a new fundamental law of thermodynamics:

Definition 6.2 Second Law of Thermodynamics: for any spontaneous process, the entropy of the universe is increasing.