In thermodynamics, heat engines convert thermal energy into mechanical work repetitively.

The conversion process starts at a high operating temperature and ends up at a lower operating temperature . In the process, the input heat which is used to raise the temperature to is converted partially to work. Heat not converted to work is released as exhaust — . The engine’s temperature is then raised once more, starting the cycle all over again.

The change is thermal energy is 0 as the temperature always returns to the starting point, , thus according to first law of thermodynamics, .

In a heat engine, the net work (area enclosed by the cycle on PV diagram).