# What are PV diagrams?

Learn what PV diagrams are and how to use them to find the change in internal energy, work done, and heat.

## What are PV diagrams?

Consider a gas sealed in a container with a tightly fitting yet movable piston as seen below. We can do work on the gas by pressing the piston downward, and we can heat up the gas by placing the container over a flame or submerging it in a bath of boiling water. When we subject the gas to these thermodynamics processes, the pressure and volume of the gas can change.

A convenient way to visualize these changes in the pressure and volume is by using a Pressure Volume diagram or

**PV diagram**for short. Each point on a PV diagram corresponds to a different state of the gas. The pressure is given on the vertical axis and the volume is given on the horizontal axis, as seen below.Every point on a PV diagram represents a different state for the gas (one for every possible volume and pressure). As a gas goes through a thermodynamics process, the state of the gas will shift around in the PV diagram, tracing out a path as it moves (as shown in the diagram below).

Being able to decode the information shown in a PV diagram allows us to make statements about the change in internal energy , heat transferred , and work done on a gas. In the sections below, we'll explain how to decipher the hidden information contained in a PV diagram.

*Note: Unless otherwise specified, we will assume that the work refers to the work done on the gas.*

## How do we determine the sign of the work done from a PV diagram?

Let's say our gas starts out in the state shown in the PV diagram below.

If we

**press the piston downward**, the volume of the gas will decrease, so the**state must shift to the left**toward smaller volumes (as seen in the diagram below). Since the gas is being compressed we can also say for sure that**positive work is being done on the gas**.Similarly, if we let the gas expand,

**pushing the piston upward**, the volume of the gas will increase, so the**state must shift to the right**toward larger volumes (as seen in the diagram below). Since the gas is expanding we can also say for sure that**negative work is being done on the gas.**So if we ever see a state shifting to the left on a PV diagram we can say for sure that the work done on the gas was positive. Similarly, if we ever see a state shifting to the right on a PV diagram we can say for sure that the work done on the gas was negative.

## How do we determine the magnitude of the work done from a PV diagram?

The

**work done**during a thermodynamic process is equal to the**area under the curve**as seen in the diagram below.The reason why work is equal to the area under the curve is that,

And since is just the of the rectangle shown above, the work is equal to the area. If we use pressure units of and volume units of then the energy we find will be in units of .

We have to be really careful with signs though. If the path on a PV diagram is directed to the left, the volume is decreasing, and positive work is being done on the gas. If the path on a PV diagram is directed to the right (as in the diagram above), the volume is increasing, and negative work is being done on the gas since .

It doesn't matter what shape the path takes, the area under the curve will still represent the work done. For any curved path we can imagine breaking the area into an infinite amount of infinitesimally thin rectangles.

The area of each rectangle would represent the work done during each infinitesimal step, and the sum of the areas would represent the total work done for the entire process.

It should be said that we are always going to assume these processes are taking place slowly enough that the entire gas can be at thermodynamic equilibrium at every moment (i.e. the same temperature throughout the gas). If this seems dubious to you, you're right to question it. However, even though basically no real world processes will exactly satisfy this requirement, our ability to model many thermodynamic processes are not fatally jeopardized by this lack of adherence to ideal circumstances.

## How do we determine the sign of from a PV diagram?

Remember that internal energy and temperature are proportional $U \propto T$. So if the temperature increases, the internal energy must also increase.

Now, if the gas we're considering is an ideal gas we also know that,

And if no gas is allowed to escape (so the number of molecules is constant) we can say that $PV \propto T$. All of this means that,

So if the quantity of pressure times volume increases, the temperature and internal energy must also increase (which makes positive). This idea is represented in the diagram shown below.

This means that anytime the state in a PV diagram ends up further up and right than where it started, is a positive number. Similarly, anytime the state in a PV diagram ends up further down and left than where it started, is a negative number.

Now if the state in the PV diagram moves up and left (pressure increases and volume decreases), or down and right (pressure decreases and volume increases), it is a little ambiguous whether the quantity actually increased or decreased (since one variable increased and the other variable decreased). To be sure, one would have to check the exact values of the initial and final and on the axes of the graph to tell if the quantity actually increased or decreased.

It is also good to note that if the quantity does not change, then the temperature and internal energy do not change either. For instance, if the pressure doubles, and the volume is cut in half, remains the same value (since ). the temperature and internal energy will end the process with the same values they started with.

## How do we determine the sign of from a PV diagram?

Given a PV diagram, we typically have to rely on the first law of thermodynamics to determine the sign of the net heat that enters or exits a gas. If we solve this equation for the heat we get,

Now that we know this, we can use what we know about finding the sign of and to find the sign of in many cases. So for instance, if the change in internal energy is positive and the work done is negative,

...the net heat must be positive.

Which makes sense, since if the internal energy increased even though work was done by the gas, that implies that more heat must have entered the gas than energy lost due to the work done by the gas.

Or for example, if the internal energy decreases and the work is positive,

...the net heat must be negative.

Which makes sense, since if the internal energy decreased even though work was done on the gas, that implies that more heat must have left the gas than energy gained by the gas from work being done on it.

## What do solved examples involving PV diagrams look like?

### Example 1: Finding signs

An ideal gas in a sealed container is taken through the process shown in the PV diagram below.

### Example 2: Finding area

An ideal gas in a sealed container is taken through the process shown in the PV diagram below. The initial volume of the gas is and the final volume of the gas is . The initial pressure of the gas is and the final pressure of the gas is .

**What is the work done on the gas during the process shown?**

Solution:

We can find the work done by determining the total area under the curve on a PV diagram. We have to make sure we use the

**total**area, all the way down to the volume axis. For instance, we can imagine viewing the area under the curve in the example shown above as a triangle and a rectangle (as seen below).Now we just find the sum of the areas of the triangle and rectangle. The height of the rectangle is the pressure and the width of the rectangle is the change in volume . So,

(area of the rectangle)

(height is and width is )

(plug in values)

(calculate)

We can find the area of a triangle by using .

(area of the triangle)

(the height of the triangle is the difference in pressures )

(the base of the triangle is the difference in volumes )

(calculate)

So the total area under the curve is

This area represents the absolute value of the total work done during the process. To determine the sign of the work done on the gas we notice that the process moves the state to the right, causing the gas to expand. When gas expands the

**work done on the gas is negative**. So, (celebrate)