Conservative Vector Fields

Learning Objectives

  • Explain how to find a potential function for a conservative vector field.
  • Use the Fundamental Theorem for Line Integrals to evaluate a line integral in a vector field.
  • Explain how to test a vector field to determine whether it is conservative.

Conservative Vector Fields and Potential Functions

As we have learned, the Fundamental Theorem for Line Integrals says that if F is conservative, then calculating CFdr has two steps: first, find a potential function f for F and, second, calculate f(p1)f(P0), where P1 is the endpoint of C and P0 is the starting point. To use this theorem for a conservative field F, we must be able to find a potential function f for F. Therefore, we must answer the following question: Given a conservative vector field F, how do we find a function f such that f=F? Before giving a general method for finding a potential function, let’s motivate the method with an example.

Example: finding a potential function

Find a potential function for F(x,y)=2xy3,3x2y2+cos(y), thereby showing that F is conservative.

try it

Find a potential function for F(x,y)=exy3+y,3exy2+x.

The logic of the previous example extends to finding the potential function for any conservative vector field in R2. Thus, we have the following problem-solving strategy for finding potential functions:

Problem solving strategy: finding a potential function for a conservative vector field F(X,Y)=<P(X,Y),Q(X,Y)>

  1. Integrate P with respect to x. This results in a function of the form g(x,y)+h(y), where h(y) is unknown.
  2. Take the partial derivative of g(x,y)+h(y) with respect to y, which results in the function gy(x,y)+h(y).
  3. Use the equation gy(x,y)+h(y)=Q(x,y) to find h(y).
  4. Integrate h(y) to find h(y).
  5. Any function of the form f(x,y)=g(x,y)+h(y)+C, where C is a constant, is a potential function for F.

We can adapt this strategy to find potential functions for vector fields in R3, as shown in the next example.

Example: finding a potential function in R3

Find a potential function for F(x,y,z)=2xy,x2+2yz3,3y2z2+2z, thereby showing that F is conservative.

try it

Find a potential function for F(x,y,z)=12x2,cosycosz,1sinysinz.

We can apply the process of finding a potential function to a gravitational force. Recall that, if an object has unit mass and is located at the origin, then the gravitational force in R2 that the object exerts on another object of unit mass at the point (x,y) is given by vector field

F(x,y)=Gx(x2+y2)3/2,y(x2+y2)3/2,

where G is the universal gravitational constant. In the next example, we build a potential function for F, thus confirming what we already know: that gravity is conservative.

Example: finding a potential function

Find a potential function f for F(x,y)=Gx(x2+y2)3/2,y(x2+y2)3/2.

try it

Find a potential function f for the three-dimensional gravitational force F(x,y,z)=Gx(x2+y2+z2)3/2,Gy(x2+y2+z2)3/2,Gz(x2+y2+z2)3/2.

Testing a Vector Field

Until now, we have worked with vector fields that we know are conservative, but if we are not told that a vector field is conservative, we need to be able to test whether it is conservative. Recall that, if F is conservative, then F has the cross-partial property (see The Cross-Partial Property of Conservative Vector Fields Theorem). That is, if F=P,Q,R is conservative, then Py=Qx, Pz=Rx, and Qz=Ry,  So, if F has the cross-partial property, then is F conservative? If the domain of F is open and simply connected, then the answer is yes.

theorem: the cross-partial test for conservative fields


If F=P,Q,R is a vector field on an open, simply connected region D and Py=Qx, Pz=Rx, and Qz=Ry throughout D, then F is conservative.

Although a proof of this theorem is beyond the scope of the text, we can discover its power with some examples. Later, we see why it is necessary for the region to be simply connected.

Combining this theorem with the cross-partial property, we can determine whether a given vector field is conservative:

theorem: the cross-partial property of conservative fields


Let F=P,Q,R be a vector field on an open, simply connected region D. Then Py=Qx, Pz=Rx, and Qz=Ry throughout D if and only if F is conservative.

The version of this theorem in R2 is also true. If F=P,Q is a vector field on an open, simply connected domain in R2, then F is conservative if and only if Py=Qx.

Example: determining whether a vector field is conservative

Determine whether vector field F(x,y,z)=xy2z,x2yz,z2 is conservative.

Example: determining whether a vector field is conservative

Determine vector field F(x,y)=xln(y),x22y is conservative.

try it

Determine whether F(x,y)=sinxcosy,cosxsiny is conservative.

When using Cross-Partial Property of Conservative Fields Theorem, it is important to remember that a theorem is a tool, and like any tool, it can be applied only under the right conditions. In the case of Cross-Partial Property of Conservative Fields Theorem, the theorem can be applied only if the domain of the vector field is simply connected.

To see what can go wrong when misapplying the theorem, consider the vector field:

F(x,y)=yx2+y2i+xx2+y2j.

This vector field satisfies the cross-partial property, since

y(yx2+y2)=(x2+y2)y(2y)(x2+y2)2=x2y2(x2+y2)2

and

x(xx2+y2)=(x2+y2)+x(2x)(x2+y2)2=x2y2(x2+y2)2.

Since F satisfies the cross-partial property, we might be tempted to conclude that F is conservative. However, F is not conservative. To see this, let

r(t)=cost,sint0tπ

be a parameterization of the upper half of a unit circle oriented counterclockwise (denote this C1) and let

s(t)=cost,sint0tπ

be a parameterization of the lower half of a unit circle oriented clockwise (denote this C2). Notice that C1 and C2 have the same starting point and endpoint. Since sin2t+cos2t=1,

F(r(t))r(t)=sin(t),cos(t)sin(t),=cos(t)=1

and

F(s(t))s(t)=sint,costsint,cost=sin2t+cos2t=1.

Therefore,

C1Fdr=0π1 dt=π and C2Fdr=0π1 dt=π.

Thus, C1 and C2 have the same starting point and endpoint, but C1FdrC2Fdr. Therefore, F is not independent of path and F is not conservative.

To summarize: F satisfies the cross-partial property and yet F is not conservative. What went wrong? Does this contradict Cross-Partial Property of Conservative Fields Theorem? The issue is that the domain of F is all of R2 except for the origin. In other words, the domain of F has a hole at the origin, and therefore the domain is not simply connected. Since the domain is not simply connected, Cross-Partial Property of Conservative Fields Theorem does not apply to F.

We close this section by looking at an example of the usefulness of the Fundamental Theorem for Line Integrals. Now that we can test whether a vector field is conservative, we can always decide whether the Fundamental Theorem for Line Integrals can be used to calculate a vector line integral. If we are asked to calculate an integral of the form CFdr, then our first question should be: Is F conservative? If the answer is yes, then we should find a potential function and use the Fundamental Theorem for Line Integrals to calculate the integral. If the answer is no, then the Fundamental Theorem for Line Integrals can’t help us and we have to use other methods, such as using the equation to compute vector line integral.

Example: using the fundamental theorem for line integrals

Calculate line integral CFdr, where F(x,y,z)=2xeyz+exz,x2eyz,x2ey+ex and C is any smooth curve that goes from the origin to (1,1,1).

try it

Calculate integral CFdr, where F(x,y)=sinxsiny,5cosxcosy and C is a semicircle with starting point (0,π) and endpoint (0,π).

Watch the following video to see the worked solution to the above Try It

Example: work done on a particle

Let F(x,y)=2xy2,2x2y be a force field. Suppose that a particle begins its motion at the origin and ends its movement at any point in a plane that is not on the x-axis or the y-axis. Furthermore, the particle’s motion can be modeled with a smooth parameterization. Show that F does positive work on the particle.

try it

Let F(x,y)=4x3y4,4x4y3, and suppose that a particle moves from point (4,4) to (1,1) along any smooth curve. Is the work done by F on the particle positive, negative, or zero?