The following figure shows the cyclic process of gas. If an object returns to its initial position after one or more processes it went through.
\(A B C D A\) is the cycle. The pressure at the points both \(D\) and \(C\) remain the same, which is \(2 P\). The volume at the point \(D\) is \(V\) and at the point \(C\) is \(3 V\). So, the work done by the gas from point \(D\) to point \(C, W_{D C}=2 P(3 V-V)=4 P V\)
The pressures at the points \(C\) and \(B\) are \(2 P\) and \(P\) respectively. The volume at the points both \(C\) and \(B\) remain the same, which is \(3 V\). So, the work done by the gas from point \(C\) to point \(B, \)
\(W_{C B}=P(3 V-3 V)=0\)
The pressure at the points both \(B\) and \(A\) remain the same, which is \(P\). The volume at the point \(B\) is \(3 V\) and at the point \(A\) is \(V\),
So, the work done by the gas from point \(B\) to point \(A, W_{B A}=P(V-3 V)=-2 P V\)
The pressures at the points \(A\) and \(D\) are \(P\) and \(2 P\) respectively. The volume at the points both \(A\) and \(D\) remain the same, which is \(V\).
So, the work done by the gas from point \(A\) to the point \(D, W_{A D}=P(V-V)=0\)
Hence the total work done in the whole cycle,
\(W=4 P V-2 P V=2 P V\)
We know the heat rejected from the cycle is equal to the amount of total work done by the gas, so \(Q=W\)
\( Q=2 P V\)