In the following p- V diagram the equation of state along the curved path is given by where a is a constant. The total work done in the closed path is

Net work done in a cyclic process equals area enclosed by the loop.
Upper path CA is horizontal (constant pressure), and lower path is given by
Write pressure as
At points A and C,
Substitute into curve:
For V=1,
For V=3,
So upper straight line has pressure
Now work done over cycle equals area between straight line and curve:
Take common:
Put
x=V−2
Then limits become
V=1x=−1
V=3x=1
So
Integrating,
The arrows show process is
ABCA
During compression, pressure is higher than during expansion, so work done on the gas is greater than work done by the gas.
Therefore net work done by the gas is negative.
So,
W=−(enclosed area)
Tagged Work done in thermodynamic processes and P-V diagrams. Machine-assigned, so read it as a strong shortlist rather than a verdict.