Pressure Vs density graph of an ideal gas is shown in figure
During the process AB work done by the gas is +ve
During the process AB work done by the gas is -ve
During the process BC internal energy of the gas is increasing
During the process BC internal energy of the gas is constant
P=ρRTIn the process AB: density is constant. Hence, volume is constant.∴work is zero.In the process BC: P∝ρ∝1Vobeys Boyle's law, isothermal process. Internal energy constant.