Conservative fields

If $\mathbf{F} = \nabla f$, the work from $A$ to $B$ is $f(B) - f(A)$ along every path, and so zero round any loop; in the plane, $P_y = Q_x$ tests whether such an $f$ exists.

From Multivariable Calculus.