19.2 Work in Ideal-Gas Processes

We introduced the idea of work in Chapter 9. Work is the energy transferred between a system and the environment when a net force acts on the system over a distance. The process itself is a mechanical interaction, meaning that the system and the environment interact via macroscopic pushes and pulls. Loosely speaking, we say that the environment (or a particular force from the environment) “does work” on the system. A system is in mechanical equilibrium if there is no net force on the system.

FIGURE 19.3 reminds you that work can be either positive or negative. The sign of the work is not just an arbitrary convention, nor does it have anything to do with the choice of coordinate system. The sign of the work tells us which way energy is being transferred.

FIGURE 19.3 The sign of work.

The figure consists of two parts that illustrate the before and after positions of a square box on which work is done.
FIGURE 19.3 Full Alternative Text
A photo of pistons in a car engine.

The pistons in a car engine do work on the air-fuel mixture by compressing it.

In contrast to the mechanical energy or the thermal energy, work is not a state variable. That is, work is not a number characterizing the system. Instead, work is the amount of energy that moves between the system and the environment during a mechanical interaction. We can measure the change in a state variable, such as a temperature change ΔT=Tf−Ti, but it would make no sense to talk about a “change of work.” Consequently, work always appears as W, never as ΔW.

You learned in 《 SECTION 9.3 how to calculate work. The small amount of work dW done by force F⃗ as a system moves through the small displacement ds⃗ is dW=F⃗⋅ds⃗. If we restrict ourselves to situations where F⃗ is either parallel or opposite to ds⃗, then the total work done on the system as it moves from si to sf is

W=∫SiSfFsds (19.4)

Let’s apply this definition to calculate the work done when the volume of a gas changes. FIGURE 19.4a shows a gas of pressure p whose volume can be changed by a moving piston. The system is the gas in the cylinder, which exerts a force F⃗gas of magnitude pA on the left side of the piston. To prevent the pressure from blowing the piston out of the cylinder, there must be an equal but opposite external force F⃗ext pushing on the right side of the piston. In practice, this would likely be the force exerted by a piston rod. Using the coordinate system of Figure 19.4a, we have

(Fext)x=−(Fgas)x=−pA (19.5)

FIGURE 19.4 The external force does work on the gas as the piston moves.

The figure labeled ("a") illustrates a horizontally oriented rectangular box with a piston on the right side.
The figure labeled (b) illustrates a horizontally oriented rectangular box with a piston on the right side.
Full Alternative Text

Suppose the piston moves a small distance dx, as shown in FIGURE 19.4b. As it does so, the external force (i.e., the environment) does work

dW=(Fext)x dx=−pA dx (19.6)

If dx is positive (expanding gas), then dW is negative. This is to be expected because the force is opposite the displacement. dW is positive if the gas is slightly compressed (dx<0).

If the piston moves dx, the gas volume changes by dV=A dx. Thus the work is

dW=−p  dV (19.7)

If we allow the gas to change in a slow, quasi-static process from an initial volume Vi to a final volume Vf, the total work done by the environment is found by integrating Equation 19.7:

W=−∫ViVfp dV(work done on a gas) (19.8)

Equation 19.8 is a key result of thermodynamics. Although we used a cylinder to derive it, it turns out to be true for a container of any shape.

NOTE   The pressure of a gas usually changes as the gas expands or contracts. Consequently, p is not a constant that can be brought outside the integral. You need to know how the pressure changes with volume before you can carry out the integration.

What is this work done on? Not, as you might think, the piston. Work is an energy transfer, but the piston’s energy is not changing. It is in equilibrium, with equal forces exerted on both faces. Further, the motion of the piston is very slow—it’s a quasi-static process—so the piston has negligible kinetic energy. The piston is merely a movable boundary of the gas, so the work is done by the environment on the gas.

When a gas expands—for example, when the burning fuel in a cylinder of your car’s engine expands and, through a series of mechanical linkages, transfers energy to the wheels—it’s often said that “the gas does work on the environment.” But be careful! In any volume change, both the environment and the gas do work; it’s not one or the other. In fact, because F⃗gas=−F⃗env, the work done by the gas is simply the negative of the work done by the environment: Wgas=−Wext. In an expansion, where energy is transferred from the gas to the environment, Wext<0 means that Wgas>0. It thus makes sense to say “the gas does work.” The important point is that the work W that appears in the energy principle, and now in the laws of thermodynamics, is—by definition—the work done by the environment, not the work done by the system. To say that “the gas does work” in an expansion simply means that we need to use a negative value of W in the energy equations to show that energy is being transferred out of the system.

We can give the work done on a gas a nice geometric interpretation. You learned in Chapter 18 how to represent an ideal-gas process as a curve in the pV diagram. FIGURE 19.5 shows that the work done on a gas is the negative of the area under the pV curve as the volume changes from Vi to Vf. That is,

W=the negative of the area under the pV curve between Vi and Vf

FIGURE 19.5 The work done on a gas is the negative of the area under the curve.

The figure labeled ("a") illustrates a pressure versus volume graph.
The figure labeled (b) illustrates a pressure versus volume graph.
Full Alternative Text

Figure 19.5a shows a process in which a gas expands from Vi to a larger volume Vf. The area under the curve is positive, so the environment does a negative amount of work on an expanding gas. Figure 19.5b shows a process in which a gas is compressed to a smaller volume. This one is a little trickier because we have to integrate “backward” along the V-axis. You learned in calculus that integrating from a larger limit to a smaller limit gives a negative result, so the area in Figure 19.5b is a negative area. Consequently, as the minus sign in Equation 19.8 indicates, the environment does positive work on a gas to compress it.

EXAMPLE 19.1 The work done on an expanding gas

How much work is done in the ideal-gas process of FIGURE 19.6?

FIGURE 19.6 The ideal-gas process of Example 19.1.

The figure illustrates a pressure versus volume graph.

MODEL The work done on a gas is the negative of the area under the pV curve. The gas is expanding, so we expect the work to be negative.

SOLVE As Figure 19.6 shows, the area under the curve can be divided into two rectangles and a triangle. Volumes must be converted to SI units of m3. The total area under the curve is 250 J, so the work done on the gas as it expands is

W=−(area under the pV curve)=−250 J

REVIEW We noted previously that the product Pa m3 is equivalent to joules. The work is negative, as expected, because the external force pushing on the piston is opposite the direction of the piston’s displacement.

Equation 19.8 is the basis for a problem-solving strategy.

PROBLEM-SOLVING STRATEGY 19.1
Work in ideal-gas processes

MODEL Model the gas as ideal and the process as quasi-static.

VISUALIZE Show the process on a pV diagram. Note whether it happens to be one of the basic gas processes: isochoric, isobaric, or isothermal.

SOLVE Calculate the work as the area under the pV curve either geometrically or by carrying out the integration:

Work done on the gas W=−∫ViVfpdV=−(area under pV curve)

REVIEW Check your signs.

  • W>0 when the gas is compressed. Energy is transferred from the environment to the gas.

  • W<0 when the gas expands. Energy is transferred from the gas to the environment.

  • No work is done if the volume doesn’t change. W=0.

Workbook Exercise 4