Lessons · thermo
Work by an expanding gas: area under the P–V curve
Regime 3 — an algebra-only domain, but the calculus underpinning is clean and worth seeing: the work is the area under the curve, ∫P dV. SymPy proves that area is exactly the memorized result — and that the constant-pressure case collapses to the rectangle.
One mole of an ideal gas at K expands isothermally from m³ to m³. How much work does it do — and why is the answer a logarithm, not simply pressure times volume change? Watch the work accumulate as the area under the P–V curve.
Work done by the gas is the integral of pressure over volume — the area under the – curve. At constant pressure the area is a rectangle (); when the pressure varies, it is the area under a curve.
check ; check ; recover ; collapse the constant-pressure case to
- ✓ The work's slope is the pressure: — the area's rate of growth is the curve's height. [structural]
- ✓ The accumulated work is the area: . [structural]
- ✓ The memorized isothermal result is exactly the area at . [structural]
- ✓ At constant pressure the integral collapses to — the area is a rectangle (the quadrature). [structural]
Dimensional homogeneity: checked by SymPy (holds).
That is only true at constant pressure (a rectangle). In an isothermal expansion the pressure falls as the gas expands — — so the work is the area under a curved hyperbola, , which is less than . Drag the cursor: the shaded area under the curve, not a rectangle, is the work.
Modeling assumptions — author-asserted, disclosed not discharged
- Ideal gas: holds exactly (no intermolecular forces, point particles).
- Isothermal, reversible, quasi-static expansion — the temperature is held constant by a reservoir.
- Work is the area under the P–V curve, , with no friction or dissipation.
The P–V graph, fully annotated
A static rendering (Matplotlib): the shaded area under P is the accumulated integral W, and the slope of W is P. The interactive version with a draggable cursor is in the Graph tab above.
Formulas used
Hover a formula to preview its reference entry; click to open it in the reference (or the concept graph):
- Ideal-gas law (pressure form)
Valid when: ideal gas (no intermolecular forces, point particles)
Open in reference →
- Isothermal work (ideal gas)
Valid when: ideal gas at constant temperature (isothermal, reversible expansion); work is the area under the P–V curve, W = ∫P dV
Open in reference →