Work done on or by a gas, in general depends upon the
Initial state only
Final state only
Both initial and final states only
Initial state, final state and the path
Work done =∫ 1 2 PdV, which is state dependent as well as path dependent.