A piston can freely move inside a horizontal cylinder closed from both ends. Initially, the piston separates the inside space of the cylinder into two equal parts each of volume V₀, in which an ideal gas is contained under the same pressure p₀ and at the same temperature. What work has to be performed in order to increase isothermally the volume of one part of gas η times compared to that of the other by slowly moving the piston?
A = p₀V₀ ln((η + 1)² / (4η)). With your sliders, .
Problem statement
Problem 2.36. A piston can freely move inside a horizontal cylinder closed from both ends. Initially, the piston separates the inside space of the cylinder into two equal parts each of volume V₀, in which an ideal gas is contained under the same pressure p₀ and at the same temperature. What work has to be performed in order to increase isothermally the volume of one part of gas η times compared to that of the other by slowly moving the piston?
Interpretation. The same gas fills both halves. An agent pushes the piston slowly to one side until the volume of the larger part is η times the volume of the smaller part. The temperature of both gases stays the same. We want the work of the agent.
We assume that the piston has no friction and the gases do not mix or leak. The problem gives no numbers, so p₀ = 101.3 kPa, V₀ = 20 L, T = 300 K and η = 3 are example values. All four are sliders.
Symbols: V₀ the start volume of each part, p₀ the start pressure, η the ratio of the volumes at the end, V the volume swept by the piston, p₁ and p₂ the pressures of the larger and the smaller gas, F the force of the agent, S the piston area.
The big idea in plain words
One gas grows and its pressure falls. The other gas shrinks and its pressure rises. The agent must hold up the difference, so the force grows as the piston moves. The work is the force added over the whole shift.
There is also a quicker route. Each gas follows an isotherm, so the work on a gas is simple. The agent work equals the work on the squeezed gas minus the work given back by the gas that grows.
The solution in each frame
Lab frame (at rest)
The cylinder is at rest and the piston moves so slowly that it has no kinetic energy at any time. The whole solution uses this frame.
Other frames
A moving frame adds the same motion of the whole cylinder at the start and at the end, so it changes nothing and is not needed.
The solution step by step
Step 1: The volumes
Let the piston sweep a volume V = S x. The larger part has V₀ + V and the smaller part has V₀ − V. The ratio is η:
Step 2: The pressures
Each gas is isothermal, so p V stays at p₀V₀:
At the end p₁ = kPa and p₂ = kPa.
Step 3: The force
The piston is in balance at every moment: p₁ S + F = p₂ S, so F = (p₂ − p₁) S. At the end F = N.
Step 4: The work in a small shift
dA = F dx = (p₂ − p₁) S dx = (p₂ − p₁) dV, with
Step 5: Add the work
From V = 0 to V:
Step 6: Put in V
With V / V₀ = (η − 1) / (η + 1):
Step 7: The number
p₀V₀ = J and the logarithm is , so A = J. For the defaults (101.3 kPa, 20 L, η = 3) this is 2026 × 0.2877 ≈ 583 J.
A separate calculation does not use the formula for A. It cuts the piston shift into 4000 slices. In each slice it finds p₁ and p₂ from p V = p₀V₀ and adds (p₂ − p₁) dV. The sum is A = J. The relative difference from the formula is , which is rounding only.
Other methods
Energy. Each gas stays at the same temperature, so the energies of both gases do not change. The agent supplies work to the squeezed gas, and the growing gas gives some work back to the piston. For the squeezed gas the work on it is p₀V₀ ln(V₀ / V_small) = p₀V₀ ln((η + 1) / 2) = J. The growing gas gives p₀V₀ ln(V_large / V₀) = p₀V₀ ln(2η / (η + 1)) = J. The difference is the work of the agent, and it equals the result above. This route needs no force and no integral over the difference of pressures.
The p–V diagram. Both gases move on the same isotherm. The orange area is the work on the squeezed gas and the blue area is the work given back. The difference is A.
Limit checks. If η = 1 the piston stays put and A = 0. For η close to 1, A is about p₀V₀ (η − 1)² / 4, which is small. For very large η, A grows slowly, like p₀V₀ ln(η / 4).
Units check. kPa × L = J.
What each slider changes
| Control | What it changes |
|---|---|
| Volume ratio η (header slider and Play) | The piston position, the volumes, the pressures, the force, the work A, the diagrams and the graphs. |
| Starting pressure p₀ (derivation slider too) | The pressures, the force and the work A. |
| Starting volume V₀ | The volumes, the piston travel, the force and the work A. |
| Temperature T | The moles in each part and the dot speed. The work A does not change because p₀V₀ is fixed. |
Parameters
| Quantity | Symbol | Value used |
|---|---|---|
| Start pressure | p₀ | kPa |
| Start volume of each part | V₀ | L |
| Temperature | T | K |
| Volume ratio | η | |
| Final pressures | p₁, p₂ | , kPa |
| Work of the agent | A | J |
Exam traps
- Using the pressure of only one gas. Both gases push on the piston, from opposite sides.
- Treating the force as constant. It grows from zero as the piston moves.
- Reading η as the ratio of a volume to V₀. It is the ratio of the two parts to each other.
- Using log base 10 instead of the natural logarithm.
- Counting only the work done on one gas. The other gas helps and gives work back.