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
However, this relation is not sufficient to calculate , 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
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:
where is a constant to which we will return and 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 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 . Moreover, the walls of the system are thermally insulated, so as well. The first law then requires
Let us assume for the moment that the internal energy can be written as ; this choice of variables will be justified after the second law has been established. Since the system is closed, is fixed. Repeated for different initial and final volumes, the experiment shows that at fixed temperature (since ), the internal energy does not change when the volume changes (). It follows that
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 .
1.2. Internal energy of an ideal gas
To determine the form of , 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 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
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, is approximately constant. Taking it to be strictly constant, the preceding relation can be integrated, giving
For a fixed amount of substance, integration therefore gives
where the reference term is independent of temperature. For a fixed amount of substance, the origin of internal energy may be chosen so that , since only changes in are involved. This recovers . At ordinary temperatures, measurements give for a monatomic gas such as dilute helium, and for many diatomic gases, with the ideal gas constant. We will return later to the values of .
which describes the relations between , , and , and
which gives its internal energy. The values of will generally be provided in a problem statement; otherwise, take for a monatomic gas and 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
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 can be identified with the gas pressure . This assumption is crucial: during an abrupt transformation, the gas pressure need not be uniform, and replacing with 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, . The work done by pressure forces is therefore zero: . The first law then gives
When the gas receives heat (), 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, , then because depends only on . Hence . With , the work received is
which gives:
During an expansion, and hence : the gas supplies work and receives the same amount of energy as heat (). 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 , the work received is
Alternatively, the equation of state gives , and hence also . Since , we obtain
This expression naturally leads us to introduce the molar heat capacity at constant pressure, denoted , through during an isobaric transformation. For an ideal gas,
a relation to which we will return later (Mayer's relation). We also introduce the ratio
called the adiabatic index of the gas. Mayer's relation shows that . For a monatomic gas, with , we find and . For a diatomic gas, with , we obtain and . Since , these relations can be inverted to give
which are often very useful in calculations.
We will return more systematically in Lesson 8 to the heat capacities and , 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 . Unlike the preceding cases, obtaining expressions for and between the initial and final states is not immediate, because , while the work is written
and the way in which the pressure 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 , , and 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 , the first law gives
For the ideal gas considered here, however, . We therefore have . Using , that is, , and cancelling , we obtain the differential equation
It can be integrated immediately:
Dividing by and noting that
we obtain
that is,
Substituting into this relation once again gives two other equivalent forms. The three Laplace relations, which are equivalent to one another, are therefore
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 , we have , and hence
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 allows us to write, along the transformation, , where . It follows that
This expression is useful when the initial and final volumes are known. We also note that and , which gives
All these expressions are equivalent. During an adiabatic expansion, the gas supplies work: . 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 plane, where each point corresponds to an equilibrium state, located by its volume on the horizontal axis and its pressure on the vertical axis. This representation is called a Clapeyron diagram.
At each point, the temperature is determined by the equation of state . Since we always consider a closed system, is constant and is generally given in the problem statement. An important point is that is proportional to the product : 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 to the final state . 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 plane.
An isochoric transformation, , is represented by a vertical segment, while an isobaric transformation, , is represented by a horizontal segment.
For an isothermal transformation, the equation of state gives : the curve is therefore a branch of a hyperbola.
Finally, an adiabatic transformation obeys the Laplace relation , that is, . Since , 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
The adiabat is therefore “steeper” than the isotherm.

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: is a state function, whereas and depend on the particular transformation.
Consider, for example, the two states
The ideal gas equation gives , with . Since the internal energy of an ideal gas depends only on its temperature,
for any transformation connecting to . Let us now compare the two paths shown in Figure 2.

For the first path , which is a direct isothermal expansion, we have
Since , it follows that .
For the second path , the isobaric transformation is performed first, followed by the isochoric transformation . The work received on the first branch is , while . Thus,
We finally obtain
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
The integral 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.

Here it is crucial to remember that the order of the limits determines the sign of the integral. During an expansion from to , with , we have
the gas supplies work to its surroundings. During the reverse compression, the limits are interchanged and
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 is a state function, . The first law therefore requires . Moreover,
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 traversed from to , with , followed by a lower branch traversed in the opposite direction, as in Figure 4. We have
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.
where is the area enclosed by the curve in the diagram. With the banker's convention:
- a cycle traversed clockwise satisfies : overall, the system supplies work to its surroundings; it is a power cycle;
- a cycle traversed counterclockwise satisfies : overall, the system receives work; it is a refrigeration cycle.

For a power cycle, the first law requires : over the complete cycle, the gas receives a net amount of heat equal to the work it supplies to its surroundings.