Home/Lessons/Lesson 5

Application to the Ideal Gas

Application of the first law to ideal-gas transformations.

Ideal gasJoule-Gay-Lussac expansionJoule's lawIsothermal processesIsochoric processesIsobaric processesAdiabatic processesClapeyron diagramsPower cyclesRefrigeration cycles

Until now, the first law has been formulated without assuming any particular model for the system. For a closed system whose macroscopic kinetic and potential energies do not change, it reads

ΔU=Q+W.\Delta U=Q+W.

However, this relation is not sufficient to calculate ΔU\Delta U, just as Newton's second law does not predict the evolution of a system until the forces acting on it are known. We must therefore further characterize the system under study: we will now do so for the ideal gas.

1. The equations of state of an ideal gas

A first equation of state of the ideal gas is

PV=nRT.\boxed{PV=nRT}.
(1)

As we saw in Lesson 2, this relation is the result of a long history of experimental investigation. By itself, it tells us nothing about the internal energy of the gas. Other experiments are needed for that purpose. The following section, which may be skipped on a first reading, presents the experimental approach leading to the other key formula for an ideal gas:

U(T,n)=ncVT+U0(n)\boxed{U(T,n)=n c_V T+U_0(n)}
(2)

where cVc_V is a constant to which we will return and U0(n)U_0(n) is a reference term independent of temperature. Note at this stage that the thermodynamic formalism does not allow these equations of state to be derived. Statistical physics, however, will make it possible to recover them from a microscopic model.

1.1. Joule-Gay-Lussac expansion

The key experiment consists in observing the expansion of a gas into a vacuum. In practice, a sufficiently dilute gas is used to reduce interactions between molecules and thus approach the ideal-gas model. A rigid, thermally insulated vessel is divided into two compartments. The first contains the gas at equilibrium and the second is evacuated. The partition separating them is removed, a new equilibrium is allowed to establish itself, and the final state is then characterized experimentally.

Gay-Lussac was the first to perform this type of experiment at the beginning of the 19th century; Joule repeated it later, around 1845. The important experimental result is that no change in the temperature of the gas is observed between the initial and final states. In reality, for a real gas, a small change remains and may be positive or negative depending on the gas and the conditions; it tends to zero, however, as the density decreases. In the ideal model, we are therefore led to consider that TB=TAT_B=T_A exactly.

To interpret this result, let us examine what the first law says. The gas expands into a vacuum, so the external pressure is zero and therefore W=0W=0. Moreover, the walls of the system are thermally insulated, so Q=0Q=0 as well. The first law then requires

ΔU=0.\Delta U=0.

Let us assume for the moment that the internal energy can be written as U=U(T,V,n)U=U(T,V,n); this choice of variables will be justified after the second law has been established. Since the system is closed, nn is fixed. Repeated for different initial and final volumes, the experiment shows that at fixed temperature (since TB=TAT_B=T_A), the internal energy does not change when the volume changes (ΔU=0\Delta U=0). It follows that

(∂U∂V)T,n=0⟶U=U(T,n).\left(\frac{\partial U}{\partial V}\right)_{T,n}=0 \longrightarrow \boxed{U=U(T,n).}
(3)

This property constitutes Joule's law: the internal energy of an ideal gas does not depend on its volume. This experiment does not yet determine the form of the function U(T,n)U(T,n).

1.2. Internal energy of an ideal gas

To determine the form of UU, we consider a second experiment. A known amount of gas is heated in a rigid vessel. At constant volume, the work done by pressure forces is zero; the energy QQ supplied to the gas is therefore equal to the change in its internal energy. By supplying small amounts of energy and measuring the corresponding rise in temperature, one experimentally determines the value of the molar heat capacity at constant volume

cV(T)=1n(δQdT)V,n=1n(∂U∂T)V,n.c_V(T)= \frac{1}{n}\left(\frac{\delta Q}{dT}\right)_{V,n} = \frac{1}{n}\left(\frac{\partial U}{\partial T}\right)_{V,n}.
(4)

This heat capacity may in principle depend on temperature. Direct measurement is difficult because the heat capacity of the gas is small compared with that of the vessel and the calorimeter. It is nevertheless possible, and one can even show that for a dilute gas, cV(T)c_V(T) is approximately constant. Taking it to be strictly constant, the preceding relation can be integrated, giving

ΔU=ncV(TB−TA)\boxed{ \Delta U=n c_V (T_B-T_A) }
(5)

For a fixed amount of substance, integration therefore gives

U(T,n)=ncVT+U0(n),U(T,n)=n c_V T+U_0(n),

where the reference term U0(n)U_0(n) is independent of temperature. For a fixed amount of substance, the origin of internal energy may be chosen so that U0(n)=0U_0(n)=0, since only changes in UU are involved. This recovers U=ncVTU=n c_V T. At ordinary temperatures, measurements give cV≃3R/2c_V\simeq 3R/2 for a monatomic gas such as dilute helium, and cV≃5R/2c_V\simeq 5R/2 for many diatomic gases, with RR the ideal gas constant. We will return later to the values of cVc_V.

Key point (Two independent equations of state)
The ideal-gas model is described by two independent equations of state: PV=nRT,PV=nRT,

which describes the relations between PP, VV, and TT, and

U(T,n)=ncVT+U0(n),U(T,n)=n c_V T+U_0(n),

which gives its internal energy. The values of cVc_V will generally be provided in a problem statement; otherwise, take cV=3R/2c_V=3R/2 for a monatomic gas and cV=5R/2c_V=5R/2 for a diatomic gas.

2. The first law applied to an ideal gas

We can now determine changes in internal energy as well as the work and heat exchanged during the usual transformations of an ideal gas. We restrict ourselves to a closed system with no change in macroscopic kinetic or potential energy, and for which pressure forces are the only source of work. The results of Lesson 4 give

ΔU=Q+W,W=−∫ABPextdV.\Delta U=Q+W, \qquad W=-\int_A^B P_{\mathrm{ext}} dV.
(6)

In the calculations that follow, we also assume that the transformation is quasi-static: the system then follows a path on the surface of equilibrium states. In what follows, we will also assume that the external pressure PextP_{\mathrm{ext}} can be identified with the gas pressure PP. This assumption is crucial: during an abrupt transformation, the gas pressure need not be uniform, and replacing PextP_{\mathrm{ext}} with PP is incorrect. We will return to this assumption when studying the second law and transformations said to be reversible or irreversible.

2.1. Isochoric transformation

During an isochoric transformation, dV=0dV=0. The work done by pressure forces is therefore zero: W=0W=0. The first law then gives

Q=ΔU=ncV(TB−TA).\boxed{ Q=\Delta U=nc_V(T_B-T_A). }
(7)

When the gas receives heat (Q>0Q>0), its temperature rises, and conversely. This is essentially what happens when air is heated in an oven (assuming it is closed, which it is not quite).

2.2. Isothermal transformation

If the temperature is constant, T=T0T=T_0, then ΔU=0\Delta U=0 because UU depends only on TT. Hence Q=−WQ=-W. With P=nRT0VP=\frac{nRT_0}{V}, the work received is

W=−∫VAVBP dV=−∫VAVBnRT0V dVW =- \int_{V_A}^{V_B}P\,dV = - \int_{V_A}^{V_B}\frac{nRT_0}{V}\,dV

which gives:

W=−nRT0ln⁡ ⁣(VBVA),\boxed{ W=-nRT_0\ln\!\left(\frac{V_B}{V_A}\right), }
(8)

During an expansion, VB>VAV_B>V_A and hence W<0W<0: the gas supplies work and receives the same amount of energy as heat (Q=−W>0Q = - W >0). This isothermal expansion stage will often be used in ideal power cycles. During a compression, the signs are reversed.

2.3. Isobaric transformation

At constant pressure P=P0P=P_0, the work received is

W=−∫VAVBP dV=−P0(VB−VA)=−P0ΔV\boxed{W=-\int_{V_A}^{V_B}P\,dV=-P_0(V_B-V_A)=-P_0 \Delta V}

(9)

Alternatively, the equation of state PV=nRTPV=nRT gives P0(VB−VA)=nR(TB−TA)P_0(V_B-V_A)=nR(T_B-T_A), and hence also W=−nRΔTW=-nR\Delta T. Since Q=ΔU−WQ=\Delta U-W, we obtain

Q=n(cV+R)ΔT.\boxed{ Q=n(c_V+R)\Delta T. }
(10)

This expression naturally leads us to introduce the molar heat capacity at constant pressure, denoted cPc_P, through Q=ncPΔTQ=nc_P\Delta T during an isobaric transformation. For an ideal gas,

cP=cV+R\boxed{c_P=c_V+R}

(11)

a relation to which we will return later (Mayer's relation). We also introduce the ratio

γ=cPcV,\boxed{ \gamma=\frac{c_P}{c_V}, }
(12)

called the adiabatic index of the gas. Mayer's relation shows that γ>1\gamma >1. For a monatomic gas, with cV=3R/2c_V=3R/2, we find cP=5R/2c_P=5R/2 and γ=5/3\gamma=5/3. For a diatomic gas, with cV=5R/2c_V=5R/2, we obtain cP=7R/2c_P=7R/2 and γ=7/5\gamma=7/5. Since cP=cV+Rc_P=c_V+R, these relations can be inverted to give

cV=Rγ−1,cP=γRγ−1\boxed{ c_V=\frac{R}{\gamma-1}, \qquad c_P=\frac{\gamma R}{\gamma-1} }

which are often very useful in calculations.

We will return more systematically in Lesson 8 to the heat capacities cVc_V and cPc_P, their general definition, and their interpretation. For now, it is enough to remember that, for the same amount of gas, raising its temperature by the same amount at constant pressure requires more energy than at constant volume: in the first case, part of the energy received is returned to the surroundings as work during the inevitable expansion of the gas.

2.4. Adiabatic transformation

Let us now consider an adiabatic transformation, for which Q=0Q=0. Unlike the preceding cases, obtaining expressions for ΔU\Delta U and WW between the initial and final states is not immediate, because ΔU=W\Delta U=W, while the work is written

W=−∫ABP dV,W=-\int_A^B P\,dV,

and the way in which the pressure PP varies with volume has not yet been determined. To do so, we must return to the differential form of the first law, which relates the infinitesimal changes in UU, PP, and VV along the transformation. The following derivation is an extremely standard exercise, often set in the form “derive the Laplace relations for an ideal gas from the first law.” It is strongly recommended that you work through all of the following calculations yourself.

Since δQ=0\delta Q=0, the first law gives

dU=δW=−P dV.dU=\delta W=-P\,dV.

For the ideal gas considered here, however, dU=ncV dTdU=n c_V\,dT. We therefore have ncV dT=−P dVn c_V\,dT=-P\,dV. Using PV=nRTPV=nRT, that is, P=nRT/VP=nRT/V, and cancelling nn, we obtain the differential equation

cVdTT=−RdVV.c_V\frac{dT}{T}=-R\frac{dV}{V}.

It can be integrated immediately:

cVln⁡T+Rln⁡V=const.c_V\ln T+R\ln V=\mathrm{const}.

Dividing by cVc_V and noting that

RcV=cP−cVcV=γ−1.\frac{R}{c_V} = \frac{c_P-c_V}{c_V} = \gamma-1.

we obtain

ln⁡T+(γ−1)ln⁡V=const,\ln T+(\gamma-1)\ln V=\mathrm{const},

that is,

TVγ−1=const.\boxed{ TV^{\gamma-1}=\mathrm{const}. }
(13)

Substituting PV=nRTPV=nRT into this relation once again gives two other equivalent forms. The three Laplace relations, which are equivalent to one another, are therefore

PVγ=constTVγ−1=constTγP1−γ=const.\boxed{PV^\gamma=\mathrm{const}} \qquad \boxed{TV^{\gamma-1}=\mathrm{const}} \qquad \boxed{T^\gamma P^{1-\gamma}=\mathrm{const}.}
(14)

In practice, one form or another will be used depending on the data given in the problem. The work can then be calculated in several ways. The most direct is to use the first law: since Q=0Q=0, we have W=ΔUW=\Delta U, and hence

W=ncV(TB−TA).\boxed{ W=nc_V(T_B-T_A). }
(15)

This expression is useful when the initial and final temperatures are known. The work can also be recovered by directly integrating the pressure forces. Indeed, the Laplace relation PVγ=constPV^\gamma=\mathrm{const} allows us to write, along the transformation, P=K/VγP=K/V^\gamma, where K=PAVAγ=PBVBγK=P_AV_A^\gamma=P_BV_B^\gamma. It follows that

W=−∫VAVBP dV=−K∫VAVBV−γ dV=Kγ−1(VB1−γ−VA1−γ).W=-\int_{V_A}^{V_B}P\,dV =-K\int_{V_A}^{V_B}V^{-\gamma}\,dV =\frac{K}{\gamma-1} \left(V_B^{1-\gamma}-V_A^{1-\gamma}\right).

This expression is useful when the initial and final volumes are known. We also note that KVA1−γ=PAVAKV_A^{1-\gamma}=P_AV_A and KVB1−γ=PBVBKV_B^{1-\gamma}=P_BV_B, which gives

W=PBVB−PAVAγ−1.W= \frac{P_BV_B-P_AV_A}{\gamma-1}.
(16)

All these expressions are equivalent. During an adiabatic expansion, the gas supplies work: W<0W<0. Its internal energy decreases and its temperature falls. Conversely, adiabatic compression raises its temperature.

3. Clapeyron diagrams

To visualize gas transformations, it is extremely useful to work in the (P,V)(P,V) plane, where each point corresponds to an equilibrium state, located by its volume VV on the horizontal axis and its pressure PP on the vertical axis. This representation is called a Clapeyron diagram.

At each point, the temperature is determined by the equation of state PV=nRTPV=nRT. Since we always consider a closed system, nn is constant and is generally given in the problem statement. An important point is that TT is proportional to the product PVPV: it is therefore higher when the point lies in a region of the diagram where this product is large, generally toward the top right.

Under the assumptions stated above, a transformation of the gas is therefore represented by a curve connecting the initial state AA to the final state BB. The Clapeyron diagram thus provides a very useful geometric representation of the transformations studied above.

3.1. Representation of the usual transformations

The four transformations encountered above take particularly simple forms in the (P,V)(P,V) plane.

An isochoric transformation, V=V0V=V_0, is represented by a vertical segment, while an isobaric transformation, P=P0P=P_0, is represented by a horizontal segment.

For an isothermal transformation, the equation of state gives P(V)=nRT0/VP(V)=nRT_0/V: the curve is therefore a branch of a hyperbola.

Finally, an adiabatic transformation obeys the Laplace relation PVγ=constPV^\gamma=\mathrm{const}, that is, P=K/VγP=K/V^\gamma. Since γ>1\gamma>1, pressure decreases more rapidly with volume along an adiabat than along an isotherm. This can be seen directly by comparing, at the same point, the slopes

(dPdV)isoth=−PV,(dPdV)ad=−γPV.\left(\frac{dP}{dV}\right)_{\mathrm{isoth}} =-\frac{P}{V}, \qquad \left(\frac{dP}{dV}\right)_{\mathrm{ad}} =-\gamma\frac{P}{V}.

The adiabat is therefore “steeper” than the isotherm.

Schematic representation in a Clapeyron diagram of the usual transformations starting from the same state A. For an expansion, the adiabat decreases more rapidly than the isotherm because >1.
Figure 1. Schematic representation in a Clapeyron diagram of the usual transformations starting from the same state AA. For an expansion, the adiabat decreases more rapidly than the isotherm because γ>1\gamma>1.

3.2. Two paths between the same states

The Clapeyron diagram now makes it possible to visualize a fundamental property established in the previous lesson: UU is a state function, whereas QQ and WW depend on the particular transformation.

Consider, for example, the two states

A=(P0,V0),B=(P02,2V0).A=(P_0,V_0), \qquad B=\left(\frac{P_0}{2},2V_0\right).

The ideal gas equation gives TA=TB=T0T_A=T_B=T_0, with T0=P0V0/(nR)T_0=P_0V_0/(nR). Since the internal energy of an ideal gas depends only on its temperature,

ΔUA→B=0\boxed{\Delta U_{A\to B}=0}

for any transformation connecting AA to BB. Let us now compare the two paths shown in Figure 2.

Two different paths connecting the same states A and B. Path P_1 is isothermal. Path P_2 consists of an isobaric transformation A C, followed by an isochoric transformation C B.
Figure 2. Two different paths connecting the same states AA and BB. Path P1\mathcal P_1 is isothermal. Path P2\mathcal P_2 consists of an isobaric transformation A→CA\to C, followed by an isochoric transformation C→BC\to B.

For the first path P1\mathcal P_1, which is a direct isothermal expansion, we have

W1=−nRT0ln⁡2=−P0V0ln⁡2.W_1=-nRT_0\ln 2=-P_0V_0\ln 2.

Since ΔU=0\Delta U=0, it follows that Q1=−W1=P0V0ln⁡2Q_1=-W_1=P_0V_0\ln 2.

For the second path P2\mathcal P_2, the isobaric transformation A→CA\to C is performed first, followed by the isochoric transformation C→BC\to B. The work received on the first branch is WAC=−P0V0W_{AC}=-P_0V_0, while WCB=0W_{CB}=0. Thus,

W2=−P0V0,Q2=P0V0.W_2=-P_0V_0, \qquad Q_2=P_0V_0.

We finally obtain

ΔU1=ΔU2=0W1≠W2Q1≠Q2.\boxed{\Delta U_1=\Delta U_2=0} \qquad \boxed{W_1\neq W_2} \qquad \boxed{Q_1\neq Q_2.}
(17)

The two paths have the same endpoints and therefore the same change in internal energy, but they lead to different values of work and, by the first law, to different heat transfers.

3.3. Work as the area under the curve

The path dependence of work has an immediate geometric interpretation. For a quasi-static transformation represented in a Clapeyron diagram, the work received is

W[A→B]=−∫ABPdV.\boxed{ W[A\to B]=-\int_A^B P dV. }
(18)

The integral ∫ABP dV\int_A^B P\,dV represents the signed area under the curve describing the transformation. With our sign convention, the work received by the gas is the negative of this area.

In a Clapeyron diagram, the integral _A^B P dV represents the signed area under the curve. The work received by the gas is the negative of this area.
Figure 3. In a Clapeyron diagram, the integral ∫ABP dV\int_A^B P\,dV represents the signed area under the curve. The work received by the gas is the negative of this area.

Here it is crucial to remember that the order of the limits determines the sign of the integral. During an expansion from AA to BB, with VB>VAV_B>V_A, we have

W[A→B]=−∫VAVBP dV<0:W[A\to B]=-\int_{V_A}^{V_B}P\,dV<0 :

the gas supplies work to its surroundings. During the reverse compression, the limits are interchanged and

W[B→A]=−∫VBVAP dV=+∫VAVBP dV>0:W[B\to A] =-\int_{V_B}^{V_A}P\,dV =+\int_{V_A}^{V_B}P\,dV>0 :

the gas receives work. It is therefore essential to use an arrow to indicate the direction in which any curve plotted in a Clapeyron diagram is traversed.

This interpretation also provides a very simple explanation of why the two paths in Figure 2 lead to different values of work: the areas under the two curves are not the same.

3.4. Power cycles and refrigeration cycles

During a cyclic transformation, the system returns to its initial state. The cycle is therefore represented by a closed curve in the Clapeyron diagram.

Since UU is a state function, ΔUcycle=0\Delta U_{\mathrm{cycle}}=0. The first law therefore requires Qcycle=−WcycleQ_{\mathrm{cycle}}=-W_{\mathrm{cycle}}. Moreover,

Wcycle=−∮PdV.\boxed{ W_{\mathrm{cycle}}=-\oint P dV. }
(19)

The preceding geometric interpretation then takes a particularly simple form: the absolute value of the work is equal to the area enclosed by the cycle. To see this, consider a cycle consisting of an upper branch P+(V)P_+(V) traversed from V1V_1 to V2V_2, with V1<V2V_1<V_2, followed by a lower branch P−(V)P_-(V) traversed in the opposite direction, as in Figure 4. We have

∮P dV=∫V1V2P+(V) dV+∫V2V1P−(V) dV=∫V1V2[P+(V)−P−(V)] dV.\oint P\,dV = \int_{V_1}^{V_2}P_+(V)\,dV + \int_{V_2}^{V_1}P_-(V)\,dV = \int_{V_1}^{V_2} \bigl[P_+(V)-P_-(V)\bigr]\,dV.

This is the area under the upper branch minus the area under the lower branch, in other words the area enclosed by the cycle. For the clockwise path considered here, this integral is positive and the work received is therefore negative.

Property 1 (Work of a cycle in a Clapeyron diagram)
For any simple quasi-static cycle, ∣Wcycle∣=Acycle,\boxed{\left|W_{\mathrm{cycle}}\right|=\mathcal A_{\mathrm{cycle}}},

where Acycle\mathcal A_{\mathrm{cycle}} is the area enclosed by the curve in the (P,V)(P,V) diagram. With the banker's convention:

  • a cycle traversed clockwise satisfies Wcycle<0W_{\mathrm{cycle}}<0: overall, the system supplies work to its surroundings; it is a power cycle;
  • a cycle traversed counterclockwise satisfies Wcycle>0W_{\mathrm{cycle}}>0: overall, the system receives work; it is a refrigeration cycle.

A cycle traversed clockwise supplies net work to the surroundings: it is a power cycle. When traversed in the other direction, it receives work: it is a refrigeration cycle. In both cases, the absolute value of the work is the area enclosed by the cycle.
Figure 4. A cycle traversed clockwise supplies net work to the surroundings: it is a power cycle. When traversed in the other direction, it receives work: it is a refrigeration cycle. In both cases, the absolute value of the work is the area enclosed by the cycle.

For a power cycle, the first law requires Qcycle=−Wcycle>0Q_{\mathrm{cycle}}=-W_{\mathrm{cycle}}>0: over the complete cycle, the gas receives a net amount of heat equal to the work it supplies to its surroundings.