Work Done During Volume Change
In mechanics, work is done on an object when the force acting on it displaces the object. In thermodynamics, work done on a system can be estimated when the system's volume changes during any thermodynamic process.
Consider a gas confined to a cylinder fitted with a movable piston at one end. If the gas expands from volume V1 to volume V2, it exerts a force on the piston, such that the piston moves by a distance dr.
The work done by the gas on the piston can be expressed as