5 Thermodynamic Cycles

The first law of thermodynamics places no restrictions on the conversion of energy from one form to another. For example, let’s consider once again the Joule experiment (Figure 3.1). If we design a cycle that goes from the gas on the left chamber only to the gas equilibrated in both chambers and backward, as in Figure 5.1, there are no restrictions imposed on this hypothetical cycle by the first law.

Closing the Cycle in The Joule Expansion Experiment.

Figure 5.1: Closing the Cycle in The Joule Expansion Experiment.

As we saw in section 3.1.1, states 1 and 2 have exactly the same energy at constant temperature. Restricting the analysis to the information contained in the first law, the ideal gas could hypothetically go from state 1 (all gas in the left chamber) to state 2 (gas in both chambers), as well as spontaneously close the cycle back from state 2 to state 1, without external intervention. While the transformation from 1 \(\rightarrow\) 2 is intuitively spontaneous (it’s the same transformation that we considered in section 3.1.1), the backward transformation from 2 \(\rightarrow\) 1 is clearly not as intuitive. In this case, the gas should spontaneously compress back to the left side, leaving a vacuum on the right chambers, without interventions from the outside. This transformation is clearly never observed. A gas just does not spontaneously concentrate on one side of a room, leaving a vacuum on the other side. In fact, when we need to create a vacuum, a lot of energy must be spent. Suppose we use exclusively information contained in the first law. In this case, there is nothing that might suggest a system’s preference to perform the transformation 1 \(\rightarrow\) 2, while restricting the 2 \(\rightarrow\) 1 from happening spontaneously. Both states have the same energy, and

\[\begin{equation} \oint dU=0, \tag{5.1} \end{equation}\]

James Joule himself was indeed convinced that this must be the case and that we don’t observe the backward transformation in practice only because we cannot build ideal machines.15 Another scientist of that era was not convinced. William Thomson, the 1st Baron Kelvin (1824–1907), was unsure about this idea, and invested substantial resources to try to prove Joule’s wrong.16

A few years later, the controversy between Joule and Kelvin was redeemed in favor of the latter, thanks to the experiments of French military engineer Nicolas Léonard Sadi Carnot (1796–1832). The work of Carnot began in France several years before Joule and Kelvin’s time.17 At that time, the importance of steam engines was growing for industrial applications, but a theoretical perspective was lacking. Carnot was convinced that a scientific understanding of heat engines was necessary to improve their efficiency.

5.1 Carnot Cycle

The main contribution of Carnot to thermodynamics is his abstraction of the steam engine’s essential features into a more general and idealized heat engine. The definition of Carnot’s idealized cycle is as follows:

Definition 5.1 A Carnot cycle is an idealized process composed of two isothermal and two adiabatic transformations. Each transformation is either an expansion or a compression of an ideal gas. All transformations are assumed to be reversible, and no energy is lost to mechanical friction.

A Carnot cycle connects two “heat reservoirs” at temperatures \(T_h\) (hot) and \(T_l\) (low), respectively. The reservoirs have a large thermal capacity so that their temperatures are unaffected by the cycle. The system is composed exclusively by the ideal gas, which is the only substance that changes temperature throughout the cycle. If we report the four transformations of a Carnot cycle on a \(PV\) diagram, we obtain the following plot:

PV-Diagram of a Carnot Cycle.

Figure 5.2: PV-Diagram of a Carnot Cycle.

5.1.1 Stage 1: isothermal expansion \(A \rightarrow B\)

Starting the analysis of the cycle from point \(A\) in Figure 5.2,18 the first transformation we encounter is an isothermal expansion at \(T_h\). Since the transformation is isothermal:

\[\begin{equation} \Delta U_1 = \overbrace{W_1}^{<0} + \overbrace{Q_1}^{>0} = 0 \Rightarrow Q_1 = -W_1, \tag{5.2} \end{equation}\]

and heat and work can be calculated for this stage using eq. (2.19):

\[\begin{equation} \begin{aligned} Q_1 & = \left| Q_h \right| = nRT_h \overbrace{\ln \frac{V_B}{V_A}}^{>0 \text{ since } V_B>V_A} > 0, \\ W_1 & = -Q_1 = - nRT_h \ln \frac{V_B}{V_A} < 0, \end{aligned} \tag{5.3} \end{equation}\]

where we denoted \(\left| Q_h \right|\) the absolute value of the heat that gets into the system from the hot reservoir.

5.1.2 Stage 2: adiabatic expansion \(B \rightarrow C\)

The second transformation is an adiabatic expansion between \(T_h\) and \(T_l\). Since we are at adiabatic conditions:

\[\begin{equation} Q_2 = 0 \Rightarrow \Delta U_2 = W_2, \tag{5.4} \end{equation}\]

and the negative energy (expansion work) can be calculated using:

\[\begin{equation} \Delta U_2 = W_2 = n \underbrace{\int_{T_h}^{T_l} C_V dT}_{<0 \text{ since } T_\mathrm{l}<T_\mathrm{h}} < 0. \tag{5.5} \end{equation}\]

5.1.3 Stage 3: isothermal compression \(C \rightarrow D\)

The third transformation is an isothermal compression at \(T_l\). The formulas are the same as those used for stage 1, but they will results in heat and work with reversed signs (since this is a compression):

\[\begin{equation} \Delta U_3 = \overbrace{W_3}^{>0} + \overbrace{Q_3}^{<0} = 0 \Rightarrow Q_3 = -W_3, \tag{5.6} \end{equation}\]

and:

\[\begin{equation} \begin{aligned} Q_3 & = \left| Q_l \right| = nRT_l \overbrace{\ln \frac{V_D}{V_C}}^{<0 \text{ since } V_D<V_C} < 0 , \\ W_3 & = -Q_3 = - nRT_l \ln \frac{V_D}{V_C} > 0, \end{aligned} \tag{5.7} \end{equation}\]

where \(\left| Q_l \right|\) is the absolute value of the heat that gets out of the system to the cold reservoir (\(\left| Q_l \right|\) being the heat entering the system).

5.1.4 Stage 4: adiabatic compression \(D \rightarrow A\)

The fourth and final transformation is an adiabatic comprssion that restores the system to point \(A\), bringing it from \(T_l\) to \(T_h\). Similarly to stage 3:

\[\begin{equation} Q_4 = 0 \Rightarrow \Delta U_4 = W_4, \tag{5.8} \end{equation}\]

Since we are at adiabatic conditions. The energy associated with this process is now positive (compression work), and can be calculated using:

\[\begin{equation} \Delta U_4 = W_4 = n \underbrace{\int_{T_l}^{T_h} C_V dT}_{>0 \text{ since } T_\mathrm{h}>T_\mathrm{l}} > 0. \tag{5.9} \end{equation}\]

Notice how \(\Delta U_4 = - \Delta U_2\) because \(\int_x^y=-\int_y^x\).

5.2 Energy, Heat, and Work in the Carnot Cycle

Summarizing the results of the previous sections, the total amount of energy for a Carnot cycle is:

\[\begin{equation} \begin{aligned} \Delta U_{\text{TOT}} & = \Delta U_1+\Delta U_2+\Delta U_3+\Delta U_4 \\ & = 0 + n \int_{T_h}^{T_l} C_V dT + 0 + n \int_{T_l}^{T_h} C_V dT \\ & = n \int_{T_h}^{T_l} C_V dT - n \int_{T_h}^{T_l} C_V dT = 0 \\ \end{aligned} \tag{5.10} \end{equation}\]

which is obviously zero, since \(\oint dU=0\). The amounts of work and heat, however, are not zero, since \(Q\) and \(W\) are path functions. Therefore:

\[\begin{equation} \begin{aligned} W_{\text{TOT}} & = W_1+W_2+W_3+W_4 \\ & = - nRT_h \ln \frac{V_B}{V_A} + n \int_{T_h}^{T_l} C_V dT - nRT_l \ln \frac{V_D}{V_C} + n \int_{T_l}^{T_h} C_V dT \\ & = - nRT_h \ln \frac{V_B}{V_A} - nRT_l \ln \frac{V_D}{V_C}, \\ \end{aligned} \tag{5.11} \end{equation}\]

which, considering that \(V_C/V_D=V_B/V_A\), reduces to:

\[\begin{equation} W_{\text{TOT}} = - nR \left( T_h-T_l \right) \ln \frac{V_B}{V_A} < 0, \tag{5.12} \end{equation}\]

which is negative, because \(T_h>T_l\) and \(V_B>V_A\). Negative work means that the work is done by the system. In other words, the system is performing \(PV\)-work by transferring heat from a hot reservoir to a cold one via a Carnot cycle. On the other hand, for the heat:

\[\begin{equation} \begin{aligned} Q_{\text{TOT}} & = Q_1+Q_2+Q_3+Q_4 \\ & = Q_h + 0 + Q_l + 0 \\ & = nRT_h \ln \frac{V_B}{V_A} + nRT_l \ln \frac{V_D}{V_C} \\ & = nR \left( T_h-T_l \right) \ln \frac{V_B}{V_A} = -W_{\text{TOT}}, \end{aligned} \tag{5.13} \end{equation}\]

which, simplifies to:

\[\begin{equation} W_{\text{TOT}}=-(Q_1+Q_3), \tag{5.14} \end{equation}\]

and, replacing \(Q_1\) and \(Q_3\) with the absolute values of the heats drawn from the hot and cold reservoirs, \(\left| Q_h \right|\), and \(\left| Q_l \right|\) respectively:

\[\begin{equation} \left| W_{\text{TOT}} \right| = \left| Q_h \right| - \left| Q_l \right|, \tag{5.15} \end{equation}\]

or, in other words, more heat is extracted from the hot reservoir than it is put into the cold one. The difference between the absolute value of these amounts of heat gives the total work of the cycle. This process is depicted in Figure 5.3.

Carnot Cycle Diagram.

Figure 5.3: Carnot Cycle Diagram.

Exercise 5.1 Up to this point, we have discussed Carnot cycles working in the hot \(\rightarrow\) cold direction (\(A\) \(\rightarrow\) \(B\) \(\rightarrow\) \(C\) \(\rightarrow\) \(D\) \(\rightarrow\) \(A\)), since this is the primary mode of operation of heat engines that produce work. However, a heat engine could also—in principle—work in the reversed cold \(rightarrow\) hot direction (\(A\) \(\rightarrow\) \(D\) \(\rightarrow\) \(C\) \(\rightarrow\) \(B\) \(\rightarrow\) \(A\)). Write the equations for heat, work, and energy of each stage of a Carnot cycle going the opposite direction than the one discussed in sections 5.1 and 5.2.

Solution: When the heat engine works in reverse order, the formulas remain the same, but all the signs in front of \(Q\), \(W\), and \(U\) will be reversed. In this case, the total work would get into the systems, and heat would be transferred from the cold reservoir to the hot one. Figure 5.3 would be modified as:

This reversed mode of operation is the basic principle behind refrigerators and air conditioning.

5.3 Efficiency of a Carnot Cycle

The efficiency (\(\varepsilon\)) of a cycle is defined as the ratio between the absolute value of the work extracted from the cycle (\(\left| W_{\text{TOT}} \right|\)) and the heat that gets into the system (\(\left| Q_h \right|\)):

\[\begin{equation} \varepsilon = \frac{\left| W_{\text{TOT}} \right|}{\left| Q_h \right|} =\frac{-W_{\text{TOT}}}{Q_1} \tag{5.16} \end{equation}\]

where the minus sign in front of the work is necessary because the efficiency is defined as a positive number. Replacing eq. (5.14) into (5.16), we obtain:

\[\begin{equation} \varepsilon = \frac{Q_3+Q_1}{Q_1} = 1+\frac{Q_3}{Q_1}. \tag{5.17} \end{equation}\]

If we go back to eq. (5.16) and we replace eq. (5.12) for \(W_{\mathrm{TOT}}\) and eq. (5.3) for \(Q_1\), we obtain:

\[\begin{equation} \varepsilon = \frac{nR \left( T_h - T_l \right) \ln V_B/V_A}{nRT_h \ln V_B/V_A} = \frac{T_h-T_l}{T_h}=1-\frac{T_l}{T_h }<1, \tag{5.18} \end{equation}\]

which proves that the efficiency of a Carnot cycle is strictly smaller than 1.19 In other words, no cycle can convert 100% of the heat into work it extracts from a hot reservoir. This finding had remarkable consequences on the entire thermodynamics field and set the foundation for the introduction of entropy. We will use eqs. (5.16) and (5.18) for this purpose in the next chapter, but we conclude the discussion on Carnot cycles by returning back to Lord Kelvin. In 1851 he used this finding to state his statement “It is impossible for a self-acting machine, unaided by any external agency, to convey heat from one body to another at a higher temperature. It is impossible, by means of inanimate material agency, to derive mechanical effect from any portion of matter by cooling it below the temperature of the coldest of the surrounding objects.”20 This statement conclusively disproved Joule’s original theories and demonstrated that there is some fundamental principle to govern the flow of heat beyond the first law of thermodynamics.


  1. Either because we don’t really have ideal gases, or because we are unable to construct mechanical devices without loss, or in general because of other experimental factors↩︎

  2. Interestingly enough, both Joule and Lord Kelvin are now recognized as key figures in the development of thermodynamics and science in general. So much so, that the energy unit and the temperature unit in the SI system are named after them.↩︎

  3. Carnot’s lone book, the Réflexions sur la Puissance Motrice du Feu (“Reflections on the Motive Power of Fire”) was published in France in 1824, the same year Kelvin was born and just 6 years after Joule’s birth.↩︎

  4. The stages of a Carnot depicted at the beginning of each of this section and the following three ones are genetaken from Wikipedia, and have been generated and distributed by Author BlyumJ under CC-BY-SA license.↩︎

  5. Eq. (5.18) can be equal to 1 only if \(T_l=0 \; \text{K}\) or \(T_h=\infty\), two conditions that are both equally impossible.↩︎

  6. Thomson W. Transactions of the Royal Society of Edinburgh. 1851 XX 261–268, 289–298..↩︎