Sub topic 16
Work done by a gas and P-V diagrams
This chapter assumes you know the ideal gas equation PV = nRT, the first law ΔU = Q − W, and the sign convention that W is work done by the gas. It also assumes you can read the area under a curve as an integral. Here you learn how to compute the work a gas does and how to read it from a P-V diagram.
Work from pressure and volume change
Picture a gas in a cylinder with a frictionless piston of area A. The gas pushes the piston outward through a small distance dx. The force on the piston is F = PA, so the work done by the gas is:
dW = F dx = P A dx = P dV
Here A dx is the small change in volume dV. Adding up the small pieces from the initial volume V₁ to the final volume V₂ gives:
W = ∫ P dV (from V₁ to V₂)
The sign tells you the direction:
- Expansion (V₂ > V₁) gives W > 0. The gas does work on its surroundings.
- Compression (V₂ < V₁) gives W < 0. The surroundings do work on the gas.
- No volume change gives W = 0, whatever the pressure.
Work as area on a P-V diagram
A P-V diagram plots pressure on the vertical axis and volume on the horizontal axis. Each point is an equilibrium state of the gas, and a curve joining two points is a quasi-static process, one slow enough that the gas stays near equilibrium at every step. The integral ∫ P dV is the area between the curve and the volume axis.
- Moving to the right (expansion): the area counts as positive work.
- Moving to the left (compression): the area counts as negative work.
- The work depends on the path, not only on the end points. Two different curves between the same states enclose different areas, so they give different work.
Because work depends on the path, W is not a state function. The same is true of Q. Only the combination Q − W, which equals ΔU, depends only on the end states.
In the diagram, Path 1 expands at the high pressure, so it does more work than Path 2, which expands at the low pressure. Both paths end at B, so ΔU is the same. Path 1 must therefore take in more heat.
Work in standard processes
For an ideal gas, the equation of state P = nRT/V lets you evaluate the integral for each process.
| Process | Condition | Work done by the gas |
|---|---|---|
| Isochoric | V constant | W = 0 |
| Isobaric | P constant | W = P(V₂ − V₁) = nR(T₂ − T₁) |
| Isothermal (reversible) | T constant | W = nRT ln(V₂/V₁) |
| Adiabatic (reversible) | Q = 0 | W = (P₁V₁ − P₂V₂)/(γ − 1) |
The isothermal result comes from integrating P = nRT/V:
W = ∫ (nRT/V) dV = nRT ln(V₂/V₁)
You can write the same result as nRT ln(P₁/P₂), because P₁V₁ = P₂V₂ at constant T. The adiabatic result follows from PV^γ = constant, and it also equals nR(T₁ − T₂)/(γ − 1). This agrees with the first law, since Q = 0 gives W = −ΔU = nCv(T₁ − T₂).
import math
n = 1.0 # mol
R = 8.314 # J/(mol K)
T = 300.0 # K
V_ratio = 2.0 # V2 / V1
W = n * R * T * math.log(V_ratio)
print(round(W)) # about 1729 JFor an isothermal process ΔU = 0 for an ideal gas, so Q = W. The 1729 J of work done is matched by 1729 J of heat absorbed.
Comparing steepness on a P-V diagram
On the same diagram, an adiabatic curve is steeper than an isothermal curve through the same point. For the isotherm, dP/dV = −P/V. For the adiabat, dP/dV = −γP/V, and γ > 1. This is why an adiabatic expansion drops to a lower pressure than an isothermal one for the same volume increase, and so does less work. Its temperature also falls, because the gas spends its own internal energy.
Net work in a cycle
In a cyclic process the gas returns to its starting state. The net work is the area enclosed by the loop on the P-V diagram.
- A clockwise loop gives positive net work. The expansion happens at higher pressure than the compression.
- An anticlockwise loop gives negative net work. This is the direction of a refrigerator.
Over one full cycle ΔU = 0, so Qnet = Wnet. The enclosed area also equals the net heat absorbed.
For a rectangle with sides ΔP and ΔV, the enclosed area is ΔP × ΔV. For a triangle, it is half of base times height. Most NEET cycle questions reduce to one of these two shapes.
Common errors
- Using W = P ΔV for a process where P changes. This formula holds only at constant pressure.
- Applying W = nRT ln(V₂/V₁) to an adiabatic process. It holds only when T is constant.
- Using the natural logarithm incorrectly. If a question gives log₁₀, use ln x = 2.303 log₁₀ x.
- Forgetting the sign when the gas is compressed.
- Treating a P-V loop's direction as unimportant. Reversing the direction reverses the sign of net work.
- Working in mixed units. Use pascals and cubic metres to get joules. Convert litres with 1 L = 10⁻³ m³ and atmospheres with 1 atm ≈ 1.013 × 10⁵ Pa.
Exercise
One mole of an ideal gas at 300 K expands isobarically at 1.0 × 10⁵ Pa from 10 L to 25 L. Then it is held at the final volume and cooled until its pressure is 0.4 × 10⁵ Pa. Find the total work done by the gas, and say what the work would be if the gas had instead cooled first at 10 L and then expanded at the lower pressure.
Show answer
Isobaric step: W = P ΔV = 1.0 × 10⁵ × (25 − 10) × 10⁻³ = 1500 J. The cooling step is at constant volume, so its work is 0. Total work = 1500 J. In the reversed order the gas cools at constant volume (W = 0), then expands at the lower pressure 0.4 × 10⁵ Pa from 10 L to 25 L, so W = 0.4 × 10⁵ × 15 × 10⁻³ = 600 J. The two paths join the same states but give 1500 J and 600 J, which shows that work depends on the path.
Exercise
A gas goes around a clockwise rectangular cycle. Its pressure ranges from 2 × 10⁵ Pa to 4 × 10⁵ Pa and its volume from 3 × 10⁻³ m³ to 8 × 10⁻³ m³. Find the net work and the net heat absorbed over one cycle.
Show answer
Net work = enclosed area = ΔP × ΔV = (4 − 2) × 10⁵ × (8 − 3) × 10⁻³ = 1000 J. Over a complete cycle ΔU = 0, so the net heat absorbed is Q = W = 1000 J. Because the loop is clockwise, W is positive.