Thermodynamics: PV Diagrams & the First Law (AP Physics 2)
On the AP Physics 2 equation sheet, W = -PΔV is the work done ON the gas and the first law is ΔU = Q + W. On a PV diagram, the area under the curve gives the size of the work: compression makes W positive, expansion makes W negative, and a constant-volume step does zero work.
AP Physics: Unit 9 (topics 9.4 The First Law of Thermodynamics). This guide covers Topic 9.4 in AP Physics 2 Unit 9 (Thermodynamics), a unit weighted at 15 to 18 percent of the multiple-choice section. Every sign convention here matches the AP Physics 2 equation sheet: W = -PΔV is work done on the gas and ΔU = Q + W.
What a PV diagram shows
A PV diagram plots a gas's pressure on the vertical axis against its volume on the horizontal axis, and every point on it is a complete state of the gas. Pick a point and you know and , and the ideal gas law then fixes the temperature too. A process (heating the gas, compressing it, letting it expand against a piston) appears as a path from one point to another.
The path matters. Two processes can connect the same start and end states while transferring different amounts of heat and work along the way. That is the core skill of AP Physics 2 Unit 9: read the path, then turn it into numbers for work, heat, and internal energy using the first law of thermodynamics.
The first law of thermodynamics, AP style
The first law is energy conservation applied to a gas:
Here is the change in the gas's internal energy, is the heat added to the gas (positive in, negative out), and is the work done on the gas.
That last definition is the trap. The AP Physics 2 equation sheet prints , which is the work done ON the gas, and pairs it with . Many textbooks instead define work as the work done BY the gas and subtract it in the first law. Same physics, opposite bookkeeping. On the exam, commit to the sheet's convention and the signs stay consistent.
Quick logic check: compress a gas (push the piston in) and you add energy to it, so is positive. Let it expand and it spends energy pushing the piston outward, so is negative.
Work equals area under the curve
On a PV diagram, the area between the process path and the volume axis equals the magnitude of the work, . The sign comes from which way the path runs:
- Path moves right (expansion): the gas pushes its surroundings outward, so the work done by the gas is positive and the work done on the gas is negative.
- Path moves left (compression): the surroundings push the gas inward, so , the work done on the gas, is positive.
- Path runs straight up or down (constant volume): zero area, so .
The equation applies only when pressure is constant, because then the region under the path is a rectangle of height and width . When pressure changes, get the work from the area itself: count grid squares or split the shape into rectangles and triangles. And if a question asks for the work done by the gas, compute and flip the sign.
Isobaric, isochoric, and isothermal processes
Three process types cover most AP problems:
| Process | What is constant | Shape on the PV diagram | Work and first law |
|---|---|---|---|
| Isobaric | Pressure | Horizontal line | ; heat and work both flow |
| Isochoric | Volume | Vertical line | , so |
| Isothermal | Temperature | Curve with constant | (ideal gas), so |
Isochoric is also called isovolumetric. The isothermal result follows from kinetic theory: an ideal gas's internal energy depends only on its temperature, so constant temperature means constant internal energy. Compress a gas isothermally and the work you do on it () leaves as heat (). One more label worth knowing: an adiabatic process exchanges no heat, so and , which means the temperature changes even though no heat flows.
Cycles and net work
A thermodynamic cycle is a closed loop on the PV diagram: the gas ends in exactly the state where it began. Internal energy is a state function, meaning it depends only on the current state and not on the path taken, so over one full cycle and the first law reduces to .
The magnitude of the net work for a cycle equals the area enclosed by the loop. The direction of travel sets the sign. A clockwise loop expands at high pressure and gets compressed at low pressure, so the gas does more work than it receives: net work done on the gas is negative and the gas absorbs net heat. That is a heat engine. A counterclockwise loop reverses everything: net positive work is done on the gas and it expels net heat, which is how a refrigerator behaves.
A sign-convention checklist
Most lost points in Unit 9 are sign errors, not physics errors. Run this checklist on every problem:
- Decide up front whether the question wants work done on the gas or by the gas, and write down which one you are computing.
- Find before touching the work equation. Compression gives negative , which makes positive.
- Use only on constant-pressure segments. Everything else needs area.
- Translate wording into signs: "the gas absorbs 400 J of heat" means J, while "the gas loses 400 J" means J.
- On a full cycle, write first. It usually cracks the problem open.
The same energy bookkeeping runs through conservation of energy and the work-energy theorem, and pressure itself is built up in the fluids guide.
Isobaric compression: finding W and the change in internal energy
A piston compresses a gas at a constant pressure of from a volume of to . During the compression the gas loses 500 J of heat. Find the work done on the gas and the change in its internal energy.
Find the volume change: . Negative, as expected for a compression.
Apply the AP work equation: . The piston does positive work on the gas.
Assign the heat a sign. The gas loses 500 J, so .
Apply the first law: .
The work done on the gas is and . The internal energy (and therefore the temperature) rises even though the gas is losing heat, because the compression adds energy faster than the heat leaves.
A two-step process: isobaric expansion, then isochoric cooling
A gas expands at a constant pressure of from to (step 1), then cools at constant volume until its pressure drops to (step 2). The gas absorbs a net 650 J of heat across both steps. Find the total work done on the gas and the change in its internal energy.
Step 1 is isobaric: . The expanding gas does work on its surroundings, so the work done on it is negative.
Step 2 is isochoric: , so . On the PV diagram this segment is a vertical line with no area under it.
Total the work on the gas: .
Apply the first law with : .
The total work done on the gas is (equivalently, the gas does 450 J of work on its surroundings) and its internal energy increases by .
Net work around a rectangular cycle
A gas runs clockwise around a rectangular cycle: it expands from to at , drops to at constant volume, is compressed back to , then returns to the starting pressure at constant volume. Find the net work done on the gas and the net heat for one full cycle.
Top leg (expansion at high pressure): .
Bottom leg (compression at low pressure): .
Both vertical legs have , so each contributes .
Add the legs: . Check with the enclosed area: , which matches the magnitude.
Over a full cycle , so .
The net work done on the gas is and the net heat absorbed is . The gas turns net heat input into work output, so this clockwise cycle behaves as a heat engine.
Frequently asked questions
Why does the AP equation sheet write W = -PΔV with a minus sign?
Because on the AP Physics 2 sheet, W means the work done on the gas. When a gas expands, ΔV is positive and the gas pushes outward on its surroundings, so the surroundings do negative work on it: W = -PΔV correctly comes out negative. When the gas is compressed, ΔV is negative and W comes out positive. Pair it with ΔU = Q + W and the signs take care of themselves.
Is the area under a PV curve the work done on the gas or by the gas?
The area gives only the magnitude of the work; the two versions have the same size and opposite signs. Read the direction of the path to assign the sign: during expansion the work done on the gas is negative (and the work done by the gas is positive), and during compression it is the reverse.
My textbook writes the first law with a minus sign. Which version should I use on the AP exam?
Use the equation sheet's version: ΔU = Q + W, where W = -PΔV is the work done on the gas. Textbooks that define W as the work done by the gas subtract it instead. The physics is identical, but mixing the two conventions inside one problem guarantees a sign error, so commit to the sheet's form and stay with it.
What is the difference between isobaric, isochoric, and isothermal processes?
Isobaric means constant pressure: a horizontal line on the PV diagram, with W = -PΔV. Isochoric (or isovolumetric) means constant volume: a vertical line, W = 0, so ΔU = Q. Isothermal means constant temperature: a curve along which PV stays constant, and for an ideal gas ΔU = 0, so heat in is balanced by work done by the gas.
Why is the change in internal energy zero for a complete cycle?
Internal energy is a state function: it depends only on the gas's current state, not on how the gas got there. A cycle returns the gas to its starting state, so U returns to its starting value and ΔU = 0. Heat and work are not state functions, which is why net Q and net W around the cycle can each be nonzero; the first law just forces them to be equal and opposite.