An ideal gas in a cylinder is compressed in a **single step** from volume Vᵢ to volume Vf (Vf < Vᵢ) by a constant external pressure pₑₓ. The shaded area in the figure represents the work done on the gas. Which expression correctly gives this work? 
A$w = -p_{ex}(V_f - V_i)$
B$w = -p_{ex}(V_i - V_f)$
C$w = -nRT \ln(V_f / V_i)$
D$w = 0$
Answer & Solution
Correct answer: A. $w = -p_{ex}(V_f - V_i)$
Force × distance gives $w = p_{ex} \cdot A \cdot l$, and the sign convention (work done on the gas is positive) requires $w = -p_{ex}\Delta V = -p_{ex}(V_f - V_i)$. Since Vf < Vᵢ here, (Vf − Vᵢ) is negative and the work comes out positive — consistent with the system gaining energy during compression. (B) flips the sign (gives negative work for compression — wrong). (C) is the **reversible** isothermal expression, not single-step. (D) holds only for free expansion into vacuum (pₑₓ = 0).
Related questions
Which of the following is a reversible process in the thermodynamic sense?A refrigerator extracts 600 J from the cold compartment and rejects 800 J to the room. ItsFor an ideal gas the adiabatic equation linking pressure and volume is:A Carnot engine operates between 400 K and 300 K. If it absorbs 800 J from the hot reservoThe change in internal energy of an ideal gas (γ = 1.4) when 2 moles are heated from 300 KThe second law of thermodynamics can be stated as: no engine can convert into work:The Carnot engine's efficiency between source temperature T₁ (hot) and sink T₂ (cold) is:An ideal gas at temperature T₁ is expanded adiabatically. Its final temperature T₂ is: