Processing math: 100%

EXAMPLE 7Finding a Potential Function for a Conservative Vector Field

  1. (a)

    Show that the line integral CFdr=C[(ycosx+2xey)dx+(sinx+x2ey+4)dy]

    is independent of the path.

  2. (b)

    Find a potential function f for which  f=(ycosx+2xey)i+(sinx+x2ey+4)j

Solution (a) Let P(x,y)=ycosx+2xey and Q(x,y)=sinx+x2ey+4. Then Py=cosx+2xey=Qx

Since P,  Q,  Py, and Qx are continuous everywhere in the xy-plane, and since Py=Qx, the vector field F=F(x,y)=(ycosx+2xey)i+(sinx+x2ey+4)j is conservative and CFdr is independent of the path.

(b) Since F is a conservative vector field, there is a potential function f for F for which  f=F=(ycosx+2xey)i+(sinx+x2ey+4)j

Since  f=fxi+fyj, fx=ycosx+2xeyandfy=sinx+x2ey+4

We integrate the function on the right partially with respect to y. Then f(x,y)=(sinx+x2ey+4)dy=ysinx+x2ey+4y+k(x)

in which the “constant of integration,” k(x), is a function of x. Now we differentiate f with respect to x to get fx=ycosx+2xey+k(x)

But fx=ycosx+2xey. So, ycosx+2xey=ycosx+2xey+k(x)k(x)=0

1000

Then k(x)=Kwhere K is a constant

Therefore, f(x,y)=ysinx+x2ey+4y+K

is a potential function for F.