Unit 02 · Lesson 05 of 09

What does a moving boundary do?

The shaded area is a process, not a property.

Explore the model. Derive the result. Check its limits.

What you’ll be able to do
  • Derive moving-boundary work.
  • Integrate a polytropic path.
  • The n=1n=1 path needs a logarithm.
Before you touch the controls

Does doubling final volume always double expansion work?

An experiment you can change

Shade the work beneath a polytropic path

Predict the direction of change, move one control, then explain the response using the equation.

Piston cylinder, volume 2 liters; 20 joules of heat in and 1.3862943611198906 joules of work by gasFixed mass; boundary may moveShade the work beneath a polytropic path. Volume (m³) versus Pressure (kPa). Selected result 1.3863 kJ. Expansion traverses the shaded area left to right, giving positive work.00.011000.0152000.02Pressure (kPa)Volume (m³)
Wb=2ln⁡(2)=1.3863 kJ,p2=100 kPaW_b=2\ln(2)=1.3863\,\mathrm{kJ},\quad p_2=100\,\mathrm{kPa}

Expansion traverses the shaded area left to right, giving positive work.

Model assumptions and units

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}
01

Derive moving-boundary work.

A pressure force on a piston is pApA. A small displacement changes volume by A dsA\,ds, so the incremental work is p dVp\,dV. Integrating requires the actual pressure path at the boundary; a quasi-equilibrium model lets you use the system pressure along that path.

δWb=pA ds=p dV,Wb=∫V1V2p dV\delta W_b=pA\,ds=p\,dV,\quad W_b=\int_{V_1}^{V_2}p\,dV
02

Integrate a polytropic path.

For pVn=CpV^n=C, substitute p=CV−np=CV^{-n}. The power-law integral is valid when n differs from one. Replace C using either endpoint to obtain the expression in terms of measured pressures and volumes.

Wb=C1−n(V21−n−V11−n)=p2V2−p1V11−nW_b=\frac{C}{1-n}(V_2^{1-n}-V_1^{1-n})=\frac{p_2V_2-p_1V_1}{1-n}
03

The n=1 path needs a logarithm.

At n=1n=1, pressure is C/V and the integral is logarithmic. Dividing by 1−n1-n would be undefined, so this case needs its own expression. For an ideal gas it is an isothermal path.

Wb=p1V1ln⁡ ⁣(V2V1)(n=1)W_b=p_1V_1\ln\!\left(\frac{V_2}{V_1}\right)\quad(n=1)
04

Interpret the direction.

Expansion increases volume and gives positive boundary work by the gas. Compression traverses the plot toward smaller volume and gives negative work. At constant volume the area is zero; at n=0n=0 the path is constant pressure.

A worked example

An isothermal ideal-gas expansion.

  1. Take p1=200 kPap_1=200\,\mathrm{kPa}, V1=0.010 m3V_1=0.010\,\mathrm{m^3}, and V2=0.020 m3V_2=0.020\,\mathrm{m^3}.
  2. With n=1n=1, p2=p1V1/V2=100 kPap_2=p_1V_1/V_2=100\,\mathrm{kPa}.
  3. Work is 200(0.010)ln⁡2=1.3863 kJ200(0.010)\ln2=1.3863\,\mathrm{kJ}. Ideal-gas internal energy is unchanged in this isothermal process, so heat input equals work output.
Make the idea your own

Calculate. Compare. Test the assumptions.

Work out your answer, check it, then explore the visual solution. The answer checker uses a 1.5% rounding tolerance; for model-limit questions it checks the displayed model result.

1 · Calculate

Integrate the logarithmic path

A quasi-equilibrium gas starts at 200 kPa and 0.010 m³. It doubles volume with n=1.n = 1. Find work by the gas.

Hint

Use the logarithmic branch rather than dividing by 1 − n.

Explore the visual solution
Piston cylinder, volume 2 liters; 20 joules of heat in and 1.3862943611198906 joules of work by gasFixed mass; boundary may moveShade the work beneath a polytropic path. Volume (m³) versus Pressure (kPa). Selected result 1.3863 kJ. Expansion traverses the shaded area left to right, giving positive work.00.011000.0152000.02Pressure (kPa)Volume (m³)
Wb=2ln⁡(2)=1.3863 kJ,p2=100 kPaW_b=2\ln(2)=1.3863\,\mathrm{kJ},\quad p_2=100\,\mathrm{kPa}

Expansion traverses the shaded area left to right, giving positive work.

Model assumptions and units

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}

Controls explore variations. The steps below retain the original question’s values.

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}
2 · Compare

Compress at constant pressure

Starting from the same state, halve volume with n=0.n = 0. Find signed boundary work.

Hint

At n = 0 pressure stays constant, so W = p(V2 − V1).

Explore the visual solution
Piston cylinder, volume 0.5 liters; 20 joules of heat in and -1 joules of work by gasFixed mass; boundary may moveShade the work beneath a polytropic path. Volume (m³) versus Pressure (kPa). Selected result -1 kJ. Compression traverses the shaded area right to left, giving negative work.00.0051000.0082000.01Pressure (kPa)Volume (m³)
Wb=2(0.51−0−1)1−0=−1 kJ,p2=200 kPaW_b=\frac{2\left(0.5^{1-0}-1\right)}{1-0}=-1\,\mathrm{kJ},\quad p_2=200\,\mathrm{kPa}

Compression traverses the shaded area right to left, giving negative work.

Model assumptions and units

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}

Controls explore variations. The steps below retain the original question’s values.

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}
3 · Challenge the model

A steeper expansion path

Triple initial volume with n=1.4.n = 1.4. Find work, then change n to 1 without changing endpoints in volume. Why does work differ?

Hint

Use p2 = p1/r^n, then the n ≠ 1 formula.

Explore the visual solution
Piston cylinder, volume 3 liters; 20 joules of heat in and 1.7780299251137286 joules of work by gasFixed mass; boundary may moveShade the work beneath a polytropic path. Volume (m³) versus Pressure (kPa). Selected result 1.778 kJ. Expansion traverses the shaded area left to right, giving positive work.00.011000.022000.03Pressure (kPa)Volume (m³)
Wb=2(31−1.4−1)1−1.4=1.778 kJ,p2=42.96 kPaW_b=\frac{2\left(3^{1-1.4}-1\right)}{1-1.4}=1.778\,\mathrm{kJ},\quad p_2=42.96\,\mathrm{kPa}

Expansion traverses the shaded area left to right, giving positive work.

Model assumptions and units

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}

Controls explore variations. The steps below retain the original question’s values.

Quasi-equilibrium ideal-gas path; p1 = 200 kPa, V1 = 0.01 m³. Work by the gas is positive. kPa m³ = kJ.

pVn=C,Wb=∫V1V2p dV={p2V2−p1V11−nn≠1p1V1ln⁡(V2/V1)n=1pV^n=C,\quad W_b=\int_{V_1}^{V_2}p\,dV=\begin{cases}\frac{p_2V_2-p_1V_1}{1-n}&n\ne1\\p_1V_1\ln(V_2/V_1)&n=1\end{cases}
Your learning path

Ready to carry this forward?

Mark this lesson complete when you can explain the main idea and work through its practice. Completion is your choice.

Completion is saved on this browser.