In thermodynamic system, heat and work are not state variables because they depend on the path of connecting states, thus, heat and work are treated as a path functions in thermodynamics. According to first law of thermodynamics, Q=∆U+W ⇒Q−W=∆U Thus, heat Q and work W are modes of energy transfer to a system resulting in change in its internal energy.