In thermodynamics in first law: dU =δQ+δW, where Q is heat and W is work and both are functionals due to it is functions of path, which mean that we will have different answers if choose differents path for reaching point 2 from 1 point, while ΔU will remain the same and don’t depend on path which we choose to reach point.