Determining whether a vector field is conservative
Math Stack Exchange user user369262 asks (2017-04-25; CC BY-SA 3.0):
For a vector field \(\vec{F}(x,y,z) = \langle F_1(x,y,z), F_2(x,y,z), F_3(x,y,z) \rangle\) in \(\mathbb{R}^3\), how can I use mixed second-order partial derivatives of each of the components to determine whether it is conservative? Which partial derivatives should I compare?
Assume the derivatives of the components of \(\vec F\) are continuous functions. If \(\vec F = \left<P(x,y,z),Q(x,y,z),R(x,y,z)\right>\) were the gradient of a function \(f(x,y,z)\), then \[\frac{\partial f}{\partial x} = P \text{,}\qquad \frac{\partial f}{\partial y} = Q \text{,}\qquad\text{and}\qquad \frac{\partial f}{\partial z} = R\] Taking the derivative of both sides of the first equation with respect to \(y\), and the second equation with respect to \(x\), we get \[\frac{\partial^2 f}{\partial y\,\partial x} = \frac{\partial P}{\partial y} \qquad\text{and}\qquad \frac{\partial^2 f}{\partial x\,\partial y} = \frac{\partial Q}{\partial x}\] By Clairaut’s theorem the left-hand sides of the two equations are equal. Therefore \[\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}\] Similarly, it can be shown that \[\frac{\partial P}{\partial z} = \frac{\partial R}{\partial x} \qquad\text{and}\qquad \frac{\partial Q}{\partial z} = \frac{\partial R}{\partial y}\] These are all necessary conditions for \(\vec F\) to be conservative. They can be written in a form that doesn’t assume only three variables, or, in the case of three variables, in a vector form. If these equations do not hold, \(\vec F\) cannot be conservative.
The big question is when these conditions are sufficient as well. The answer is that as long as the domain of \(\vec F\) is connected and simply connected, they are sufficient. This follows from Stokes’s Theorem.
For what goes wrong when the domain is not simply connected, see Does zero curl imply a conservative field? and A vortex that doesn’t rotate.
Originally posted as an answer on Mathematics Stack Exchange, 2017-04-25. Licensed CC BY-SA 3.0.