An ideal gas undergoes a four step cycle as shown in the P-V diagram below. During this cycle, positive work is done by the gas in
(1)
Heat and work depends on the path taken to reach a specific value. Hence, heat and work are path functions.