Skip to content

Chemistry · Ch 5 — Thermodynamics

Work

5.2.1

Work

The Meaning of Work in Thermodynamics

In thermodynamics, work is not just any kind of effort — it is a precisely defined mode of energy transfer between a system and its surroundings. The section focuses on one specific type: mechanical work, also called pressure-volume work (or pVpV-work). This is the work done when a system changes its volume against an external pressure.

Why only mechanical work? In chemistry, the most common way a system does work on its surroundings (or has work done on it) is through expansion or compression. A gas expanding in a cylinder pushes a piston; that is work. A gas being compressed by a piston has work done on it. All other forms of work (electrical, magnetic, etc.) are set aside for now.


Deriving the Expression for Pressure-Volume Work

Consider a cylinder fitted with a frictionless piston, containing one mole of an ideal gas. The gas has an initial volume ViV_i and an internal pressure pp. The piston has a cross-sectional area AA. An external pressure pexp_{ex} acts on the piston from the outside.

If pex>pp_{ex} > p, the piston is pushed inward, compressing the gas. The piston moves a distance ll. The change in volume is:

ΔV=Vf−Vi=−(l×A)\Delta V = V_f - V_i = - (l \times A)

The negative sign appears because compression reduces volume. The force exerted by the external pressure on the piston is:

Force=pex×A\text{Force} = p_{ex} \times A

Work done on the system (by the surroundings) is force times distance:

w=Force×distance=pex⋅A⋅lw = \text{Force} \times \text{distance} = p_{ex} \cdot A \cdot l

But A⋅l=−ΔVA \cdot l = -\Delta V (since ll is positive but ΔV\Delta V is negative for compression). Therefore:

w=pex⋅(−ΔV)=−pexΔVw = p_{ex} \cdot (-\Delta V) = - p_{ex} \Delta V

And since ΔV=Vf−Vi\Delta V = V_f - V_i, we get the general formula for work done in a single-step process at constant external pressure:

w=−pex(Vf−Vi)=−pexΔVw = - p_{ex} (V_f - V_i) = - p_{ex} \Delta V

Why the negative sign? It is a convention. In thermodynamics, work done on the system is taken as positive. For compression, Vf<ViV_f < V_i, so ΔV\Delta V is negative. The product −pexΔV- p_{ex} \Delta V then becomes positive — exactly what we want. For expansion (Vf>ViV_f > V_i, ΔV\Delta V positive), the same formula gives a negative value for ww, meaning work is done by the system (energy leaves it).

Watch out

The sign convention is the most common source of confusion. Always check: is the volume decreasing (compression, w>0w > 0) or increasing (expansion, w<0w < 0)? The formula w=−pexΔVw = -p_{ex}\Delta V handles both automatically.


Work When Pressure Changes in Finite Steps

If the external pressure is not constant but changes in a series of discrete steps, the total work is the sum of the work done in each step. For each small step where the external pressure is pexp_{ex} and the volume change is ΔV\Delta V, the work is −pexΔV-p_{ex} \Delta V. Summing over all steps:

w=−∑pexΔVw = - \sum p_{ex} \Delta V

This is a finite sum. Graphically, on a pp-VV plot, each term −pexΔV-p_{ex} \Delta V corresponds to the area of a rectangle of height pexp_{ex} and width ∣ΔV∣|\Delta V|. The total work is the total shaded area under the stepwise curve.


Reversible Work: The Continuous Limit

Now consider a process where the external pressure is changed infinitely slowly, so that at every instant the external pressure is only infinitesimally different from the internal pressure of the gas. For compression, we have pex=pin+dpp_{ex} = p_{in} + dp; for expansion, pex=pin−dpp_{ex} = p_{in} - dp. In either case, we can write pex=pin±dpp_{ex} = p_{in} \pm dp.

Such a process is called a reversible process. A reversible process is one that can be reversed at any moment by an infinitesimal change in a variable. It proceeds through a continuous series of equilibrium states, with the system and surroundings always nearly in equilibrium.

Note

Reversible processes are idealizations. No real process is perfectly reversible, but many can be approximated as such. The key point is that reversible work is the maximum work that can be obtained from a system during expansion, and the minimum work required to compress it.

For an infinitesimal volume change dVdV, the work done on the system is:

dw=−pex dVdw = - p_{ex} \, dV

Substituting pex=pin+dpp_{ex} = p_{in} + dp:

dw=−(pin+dp) dV=−pin dV−dp dVdw = - (p_{in} + dp) \, dV = - p_{in} \, dV - dp \, dV

The term dp dVdp \, dV is the product of two infinitesimals and is negligible. Therefore, for a reversible process:

dwrev=−pin dVdw_{rev} = - p_{in} \, dV

Since the system is always in equilibrium, pinp_{in} is simply the pressure of the gas, which we denote as pp. The total reversible work for a finite change from ViV_i to VfV_f is obtained by integration:

wrev=−∫ViVfp dVw_{rev} = - \int_{V_i}^{V_f} p \, dV

This is the central result. The integral is the area under the pp-VV curve for the reversible path.


Reversible Isothermal Work for an Ideal Gas

For an ideal gas, the pressure and volume are related by the ideal gas law: pV=nRTpV = nRT. At constant temperature (isothermal process), p=nRTVp = \frac{nRT}{V}. Substituting into the reversible work integral:

wrev=−∫ViVfnRTV dVw_{rev} = - \int_{V_i}^{V_f} \frac{nRT}{V} \, dV

Since nn, RR, and TT are constants:

wrev=−nRT∫ViVfdVV=−nRT[ln⁡V]ViVfw_{rev} = - nRT \int_{V_i}^{V_f} \frac{dV}{V} = - nRT \left[ \ln V \right]_{V_i}^{V_f}

wrev=−nRTln⁡VfViw_{rev} = - nRT \ln \frac{V_f}{V_i}

Using the conversion ln⁡x=2.303log⁡10x\ln x = 2.303 \log_{10} x, we also write:

wrev=−2.303 nRT log⁡VfViw_{rev} = - 2.303 \, nRT \, \log \frac{V_f}{V_i}

For expansion (Vf>ViV_f > V_i), the logarithm is positive, so wrevw_{rev} is negative — work is done by the system. For compression, the opposite holds.

Tip

The formula wrev=−nRTln⁡(Vf/Vi)w_{rev} = -nRT \ln(V_f/V_i) is one of the most frequently used equations in thermodynamics. Memorise it, but also understand where it comes from: the ideal gas law plus the definition of reversible work.


Free Expansion

Free expansion is expansion into a vacuum. The external pressure pex=0p_{ex} = 0. From the general formula w=−pexΔVw = -p_{ex} \Delta V, we immediately get:

w=0w = 0 …

Figure 5.5Work done on an ideal gas compressed by a constant external pressure p_ex (in a single step) equals the shaded area.
Fig. 5.5 — Work done on an ideal gas compressed by a constant external pressure p_ex (in a single step) equals the shaded area.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Fig. 5.5 is the conceptual bridge between the everyday idea of "pushing a piston" and the mathematical expression for pressure-volume work. The figure is split into three panels, each showing the same compression process but at different levels of realism.

Panel (a) — the simplest case — shows a P–V graph with volume on the horizontal axis and pressure on the vertical. A horizontal line runs at a constant pressure pexp_{\text{ex}}, the fixed external pressure applied to the piston. Two vertical lines mark the initial volume ViV_i and the final volume VfV_f, with VfV_f to the left of ViV_i because the gas is compressed. The rectangle bounded by these three lines and the volume axis is shaded. Its area is pex×(Vi−Vf)p_{\text{ex}} \times (V_i - V_f), which equals pex×(−ΔV)p_{\text{ex}} \times (-\Delta V) — the work done on the gas. Below the graph, a cylinder-and-piston sketch shows the piston moving inward a distance ll against the external pressure, making the physical meaning of the shaded area concrete.

Panel (b) shows a compression carried out in several finite steps. The P–V plot now has a staircase shape: the external pressure is raised in discrete jumps, and at each step the volume decreases by a finite amount ΔV\Delta V. The total work is the sum of the rectangular areas under each step, written as −∑pexΔV-\sum p_{\text{ex}} \Delta V. This is still an irreversible process because the gas is never in equilibrium with the surroundings during the jumps.

Panel (c) depicts the reversible limit. Here the external pressure is increased in infinitesimally small steps, so the P–V curve becomes a smooth, continuous line. The shaded area under this curve represents the work done on the gas, given by the integral w=−∫ViVfpex dVw = -\int_{V_i}^{V_f} p_{\text{ex}} \, dV. Under reversible conditions, pexp_{\text{ex}} differs from the gas pressure pp by only an infinitesimal dpdp, so we can replace pexp_{\text{ex}} with pp and write wrev=−∫ViVfp dVw_{\text{rev}} = -\int_{V_i}^{V_f} p \, dV.

Important

The central formula that emerges from this figure is the expression for reversible isothermal work on an ideal gas:

wrev=−nRTln⁡VfVi=−2.303 nRTlog⁡VfViw_{\text{rev}} = -nRT \ln\frac{V_f}{V_i} = -2.303\, nRT \log\frac{V_f}{V_i}

where nn is the number of moles, RR the gas constant, TT the absolute temperature, ViV_i the initial volume, and VfV_f the final volume. The negative sign ensures that work done on the system (compression, Vf<ViV_f < V_i) comes out positive.

The figure teaches a single, powerful idea: the work done on or by a gas is the area under the P–V curve, but the shape of that curve depends on how the process is carried out. A single-step compression gives a rectangle; a multi-step compression gives a staircase; a reversible compression gives a smooth curve whose area is smaller than the rectangle for the same volume change. This is why reversible work is the minimum work required to compress a gas — and the maximum work obtainable from an expansion. …