Parametrize the smooth path by . The chain rule turns the line integral of the gradient into a one-variable derivative:
This is the fundamental theorem for line integrals; in particular the integral has path independence.
For a twice continuously differentiable potential of a conservative vector field, the curl of its gradient vanishes because mixed partial derivatives commute:
A smooth gradient field is necessarily curl-free.
A sufficient condition is that be an open simply connected domain, with continuously differentiable. Under this condition a curl-free vector field has a global potential of a conservative vector field and hence path independence by the fundamental theorem for line integrals. One way to see the global step is to deform the closed loop formed by two paths into a point inside : the integral is unchanged during the deformation because the curl is zero, as expressed by Stokes theorem. Therefore simple connectivity is a sufficient domain hypothesis. It is not a claim that every particular curl-free field needs such a domain; a given field can have a global potential on a domain with holes.