How will you calculate work done on an ideal gas in a compression, when change in pressure is carried out in infinite steps?
When a process can be reversed by bringing an extremely small change in it, we call it a reversible process. The pressure-volume graph can be used to calculate the work done. The pressure is not constant, and changes in infinitesimal amounts as compression happens from initial volume Vi to the final volume Vf. The below graph depicts the work done with the shaded area.