Skip to content
All apps

Volume work — reversible vs. irreversible expansion (3D)

About this app

An ideal gas expands isothermally in a thermostat bath along three paths: reversibly, against constant external pressure and freely into a vacuum. The p–V diagram shows the work as the area under the external pressure; in the lecture example that is −2.68, −1.62 and 0 kJ. Compression and multistage expansion are included.

The thermodynamics

Expansion work is w = −∫p_ex dV, the work done on the gas. It depends on the path, not only on the initial and final states, so w is not a state function. In a reversible isothermal expansion of an ideal gas the external pressure always matches the gas pressure, giving w = −nRT ln(V_f/V_i). Against a constant external pressure p_f the work is w = −p_f (V_f − V_i), and free expansion into a vacuum gives w = 0. Because ΔU = 0 for an ideal gas at constant temperature, q = −w on every path.

What you see

A cylinder of argon sits in a thermostat bath. On the reversible path grains of sand are removed from the piston one at a time; on the irreversible path part of the load is removed at once; for free expansion a partition opens onto a vacuum. Next to it the p–V diagram draws the isotherm p = nRT/V and shades the area under the external pressure of the chosen path. In the lecture example the same two states give −2.68 kJ (reversible), −1.62 kJ (constant external pressure) and 0 kJ (free). A state panel lists n, T, volumes, pressures, w, q and ΔU.

Things to try

Play the three paths one after another, then overlay all three areas: the reversible path delivers the most work. On the constant-pressure path, raise the number of steps N and watch the staircase approach the isotherm. Switch the direction to compression: now the reversible path costs the least work and a single large step costs the most. Free expansion only runs one way, since you cannot compress against a vacuum.

Frequently asked questions

Why is expansion work not a state function?
The work w = −∫p_ex dV depends on the external pressure acting during the process. Between the same initial and final states, reversible expansion, expansion against constant pressure and free expansion give different amounts of work. That makes w a path quantity, unlike U, p, V or T.
How do you calculate work for a reversible isothermal expansion?
For an ideal gas w = −nRT ln(V_f/V_i). It is the area under the isotherm p = nRT/V in the p–V diagram, with a negative sign because the gas does work on the surroundings. This is the largest amount of work the gas can deliver between those two volumes.
Why does a gas do no work when it expands into a vacuum?
In a vacuum there is no external pressure for the gas to push against: p_ex = 0, so w = 0. For an ideal gas the temperature also stays the same, so ΔU = 0 and q = 0.
What can I compare in the app?
You choose the path (reversible, constant external pressure, free) and the direction (expansion or compression), set the number of steps for the multi-step path and play the process. One button overlays all three areas in the p–V diagram, another loads the lecture example.

Subject: Chemistry

More from Chemistry

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps