I am extremely confused on the concept of a $pV$ diagram.
I understand that Pressure times (change in) Volume equals the Work done by a piston; however, I am confused on how volume and pressure can increase at the same time. According to Boyle's Law, PV=k under a constant temperature. If this is so, how would volume and pressure increase at the same time in a closed system? Is it because heat (Q) is being added or taken away?