The first law is a statement of energy conservation for a closed system. It tells us that any change in the internal energy of a system comes from heat added to the system or work done on it.
When a gas expands or compresses while the external pressure stays the same, the work done by the gas is simply the area under the pressure–volume curve, which is a rectangle. The formula is:
\$W = p\,\Delta V\$
• \$p\$ = external pressure (Pa)
• \$\Delta V = Vf - Vi\$ (m³)
If the gas expands (\$\Delta V>0\$), \$W\$ is positive: the gas does work on the surroundings.
If it compresses (\$\Delta V<0\$), \$W\$ is negative: work is done on the gas.
| Situation | Work Done By Gas (W) | Work Done On Gas (−W) |
|---|---|---|
| Expansion (\$\Delta V>0\$) | \$+p\Delta V\$ (positive) | \$-p\Delta V\$ (negative) |
| Compression (\$\Delta V<0\$) | \$-p\Delta V\$ (negative) | \$+p\Delta V\$ (positive) |
A piston contains 2.0 L of gas at 1.0 bar. The piston is pushed in until the volume is 1.0 L. Calculate the work done on the gas.
Solution:
Imagine blowing up a balloon. The air inside does work on the rubber as it expands. If you squeeze the balloon, the rubber does work on the air (work done on the gas). The sign of the work changes with the direction of the volume change.