Isothermal Expansion of an Ideal Gas
Picture a gas-filled cylinder sitting in a large water bath at constant temperature, with a piston free to move outward. As the gas expands, it pushes the piston and does work on the surroundings, yet a thermometer in the bath never budges. Where does the energy for that work come from, and why does the answer depend on exactly how you let the piston move? This question sits at the heart of the First Law of thermodynamics and explains why "reversible" and "irreversible" are not just jargon but numbers you can calculate. Isothermal expansion of an ideal gas is the cleanest system for seeing that work is path-dependent while internal energy is not. This article derives the work, heat, and internal-energy change for both reversible and single-stage (irreversible) isothermal expansions. You will see the key integral worked out in full. Then you will apply it to two numeric examples. Finally you will see how this result sets up heat capacities and adiabatic processes.
- For an ideal gas, in any isothermal process, because depends only on .
- The First Law then forces : all work done is exactly compensated by heat flow.
- Reversible isothermal work is , the maximum work extractable from expansion.
- Irreversible (single-stage, constant external pressure) expansion does less work in magnitude, since .
- The gap between and is "lost work," the thermodynamic cost of running a process too fast.
- Key idea: internal energy is a state function fixed by alone, but work and heat split the energy budget differently depending on the path taken between the same two states.
Because depends only on temperature for an ideal gas, any isothermal path between the same initial and final volumes gives , so all the work the gas does must be paid for, exactly and instantaneously, by heat absorbed from the surroundings; the size of that work (and heat) payment depends on the path, and the reversible path always extracts the maximum possible work.
The physical picture
Consider one mole of an ideal gas confined in a cylinder with a movable, frictionless piston, immersed in a huge thermal reservoir held at temperature . The gas starts at volume and pressure , and ends at volume 's corresponding volume — that is, the gas expands to . Because the reservoir is enormous, the gas temperature stays pinned at throughout, no matter how much heat flows. Two extreme ways to run this expansion give very different work outputs. In a reversible expansion, the external pressure is adjusted at every instant to be only infinitesimally less than the gas pressure, so the gas is always essentially in equilibrium. This requires an infinite sequence of tiny steps — in practice, an idealization approached by very slow expansion. In an irreversible (single-stage) expansion, the external pressure is dropped abruptly to its final value and held there; the gas rushes out against this constant, lower resistance until it reaches equilibrium. Both processes start and end at the same , , . Since is a state function of only for an ideal gas, for both paths. But the paths trace different curves on a - diagram, and the area under each curve — the work — is different.
The blue curve is the reversible isotherm, ; the dashed red path is the single abrupt drop to . The reversible curve always lies above the irreversible one between and , so the area under it — the reversible work — is always larger.
The core relations
where: depends on alone for an ideal gas, so any process with has zero internal-energy change.
where: = moles, = gas constant, = absolute temperature, = initial/final volumes, sign convention: is work done on the gas.
where: heat absorbed by the gas from the reservoir exactly balances the work it performs.
where: is the (constant) external pressure applied during a single-stage expansion, typically .
where: the reversible path always extracts the maximum work obtainable between the same two states, consistent with the Maximum Work Theorem.
Goal. Find , , and for one mole of ideal gas expanding reversibly and isothermally from to at temperature .
Step 1: Set up the differential work. For any process, the work done on the gas as it changes volume by against an external pressure is
In a reversible process the gas is never far from equilibrium, so equals the gas's own pressure at every instant:
Step 2: Insert the ideal-gas equation of state. Since , we have . At constant , this substitution is valid at every point along the path:
Step 3: Integrate from to . Because is constant, comes out of the integral:
For an expansion, , so and : the gas does work on the surroundings (energy leaves the gas as work).
Step 4: Use the ideal-gas law to rewrite in terms of pressure. Since at fixed , we have , giving the equivalent form
Step 5: Apply the First Law. The First Law states . For an ideal gas, only (a consequence of the equation of state and the vanishing of intermolecular forces — Joule's law). Since ,
Substituting into the First Law:
Step 6: Box the result.
This is the maximum work obtainable from the expansion between and : any faster, less-controlled path does less work in magnitude, as the next section shows numerically.
Worked examples
Example 1 — Foundational: reversible vs. irreversible expansion of an ideal gas. Suppose 2.00 mol of an ideal gas at expands isothermally and reversibly from to . Reversible work:
So (work done on the gas is negative — the gas does 5.44 kJ of work on the surroundings). Heat and ΔU:
The gas absorbs 5.44 kJ of heat from the reservoir and converts every joule of it into work, exactly maintaining . Now compare a single-stage irreversible expansion against a constant external pressure equal to the final pressure . First find :
Irreversible work:
So , confirming the reversible path extracts more work. Correspondingly — less heat is drawn from the reservoir, since less work needs paying for. Note for both paths: the difference between 5.44 kJ and 3.30 kJ of work is not stored in the gas; it is simply work that was never done, and heat that was never withdrawn from the bath.
Example 2 — Applied: comparing three expansions to find the "lost work." A chemical engineer wants to quantify the efficiency penalty of running an isothermal expansion irreversibly instead of reversibly. Take 1.00 mol of ideal gas at , expanding from to . Step A: reversible work. Using :
Step B: single-stage irreversible expansion against . First get volumes:
Step C: quantify the lost work. The "lost work" is the shortfall between the maximum (reversible) work and the actual work delivered:
This 2.35 kJ never left the reservoir as heat and never appeared as useful work — it simply represents energy that could have been extracted had the process been run reversibly (quasistatically, through a continuum of external pressures), but was squandered because the piston was allowed to fly out against a single fixed low pressure. In both cases ; the "lost work" shows up as unrecovered capacity to do work, a preview of entropy production and the Second Law, not as any change in the gas's internal energy. Sanity check: , a sensible value; both and are negative (gas doing work on surroundings, as expected for expansion); as required by the Maximum Work Theorem.
Limiting cases & common traps
| Situation | What happens | Common pitfall |
|---|---|---|
| (no volume change) | trivially | Forgetting that isothermal ≠ automatically zero work; work is zero only if too |
| Free expansion into vacuum () | , and since , also | Students assume heat must flow because gas expands; it need not, if no work is done |
| Multistage irreversible expansion (several pressure steps) | Work magnitude increases toward as steps | Treating any finite number of stages as equal to the reversible limit |
| Compression instead of expansion | Signs flip: (work done on gas), reversible work is now the minimum magnitude needed | Assuming "reversible always means more work in magnitude" regardless of direction |
| Real (non-ideal) gas | may depend on too (Joule–Thomson effects), so even isothermally | Applying blindly to non-ideal gases |
The chemist behind it
James Prescott Joule performed the free-expansion experiments in the 1840s that first suggested depends only on for a gas approaching ideal behavior — heat and work are interconvertible, but for a gas expanding into a vacuum with no external pressure to push against, no work is done and (to the accuracy of his measurements) no temperature change occurred either. This is the empirical seed of "Joule's law" for ideal gases, , that makes valid for any isothermal ideal-gas process, reversible or not — the very fact this entire article leans on.
Origins · 1 minJames Prescott Joule and how this was discovered
Ask the tutor: Want to see how this same isothermal expansion looks if the gas is instead expanded adiabatically, and why the adiabat drops below the isotherm on a P–V diagram?
Why is ΔU exactly zero for isothermal ideal-gas expansion but not for real gases?
For an ideal gas, molecules do not interact, so internal energy is purely kinetic and depends only on temperature — this is Joule's law, . Real gases have intermolecular attractions and repulsions whose potential energy changes as molecules move farther apart during expansion, so can depend on volume even at fixed . This produces a small but measurable Joule–Thomson-type effect absent in the ideal-gas limit used throughout this article.
Why does the reversible path always give the maximum work?
At every instant in a reversible expansion, the external pressure matches the gas pressure almost exactly, so no driving force is wasted overcoming a pressure mismatch. Any irreversible path applies a mismatched (usually smaller) external pressure, which does less work per unit volume change. Summed over the whole path, the reversible process always yields work whose magnitude is greater than or equal to any irreversible alternative between the same endpoints — the Maximum Work Theorem.
Does the ideal gas actually cool down during expansion before heat flows back in?
In the idealized reversible or single-stage irreversible descriptions here, we assume the gas remains in thermal contact with an infinite reservoir, so never actually drops — heat flows in continuously (or in the irreversible case, as needed) to compensate exactly. In a real, insulated system without a reservoir, expansion without heat input would indeed cool the gas; that scenario is instead the adiabatic process, covered separately.
How does this connect to the Maximum Work and Reversibility concept from prerequisite material?
The maximum-work theorem states that of all possible paths connecting two equilibrium states, the reversible path always delivers the greatest work output (or requires the least work input for compression). Isothermal ideal-gas expansion is the standard proving ground for that theorem: the reversible logarithmic work, , is provably always greater in magnitude than any single-stage or multistage irreversible alternative between the same and .
What comes next after mastering this topic?
The next natural steps are heat capacity at constant volume, , which quantifies how changes with for non-isothermal processes, and adiabatic processes, where instead of . Comparing isothermal and adiabatic expansions on the same - diagram is a classic way to see why adiabats are always steeper than isotherms.