The gradient theorem (also the fundamental theorem of line integrals) says that for a curve beginning at a point and ending at a point , then:
where is the gradient vector field of . It’s more or less analogous to the fundamental theorem of calculus.
Note the orientation of the curve matters. If the curve is closed ( = ), then we get 0, i.e., the integral of over any closed curve is 0.
The fundamental theorem is not relevant in all cases . It only holds when for some vector field , i.e., the vector field is conservative.