Conservative vector field

A vector field F:RkRk\mathbf F : \R^k \to \R^k is considered conservative if it is the gradient of some other function ff. One of the important properties of a conservative vector field is path independence. Any line integral from point A\mathbf A to B\mathbf B across a conservative vector field is equal, regardless of the path taken.

Properties

If a vector field is conservative F=(P,Q)=f\mathbf F = (P, Q) = \nabla f. Then P=fxP=f_x and Q=fyQ=f_y. For a sufficiently nice function ff, this means that Py=QxP_y = Q_x. If this does not hold, then either F\mathbf F is not conservative or it is a gradient of a not-nice function. However, if Py=QxP_y = Q_x does hold, that’s not enough to conclude that F\mathbf F is conservative.

Checking if a field is conservative

We can check if a vector field F=(P,Q)\mathbf F = (P, Q) is conservative using the following steps. The same approach works for fields in arbitrary dimensions, but it’s simplest to explain in 2-space.

  1. We’re looking for ff such that f=F\nabla f = \mathbf F, so set fx=Pf_x = P and fy=Qf_y = Q.

  2. Integrate f=Pdx+C1(y)f = \int Pdx + C_1(y) and f=Qdy+C2(x)f = \int Qdy + C_2(x) to find two potential expressions for ff. Note the integration constants.

  3. Since when integrating Pdx\int Pdx we’re treating yy as a constant, the integration constant C1(y)C_1(y) might be a function of yy. Likewise, the integration constant for Qdy\int Qdy, C2(x)C_2(x) might be a function of xx.

  4. Compare the results for ff to see if there are some C1(y)C_1(y) and C2(x)C_2(x) that make the expressions equal.