FIGURE 19.7b shows an isobaric process in which the volume changes from to . The rectangular area under the curve is , so the work done during this process is
where . is positive if the gas expands , so is negative. is negative if the gas is compressed , making positive.