Fundamental theorem of line integrals