Show that the line integral ∫CF⋅dr=∫C[(ycosx+2xey)dx+(sinx+x2ey+4)dy]
is independent of the path.
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 ∂P∂y=cosx+2xey=∂Q∂x
Since P, Q, ∂P∂y, and ∂Q∂x are continuous everywhere in the xy-plane, and since ∂P∂y=∂Q∂x, the vector field F=F(x,y)=(ycosx+2xey)i+(sinx+x2ey+4)j is conservative and ∫CF⋅dr 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=∂f∂xi+∂f∂yj, ∂f∂x=ycosx+2xeyand∂f∂y=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 ∂f∂x=ycosx+2xey+k′(x)
But ∂f∂x=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.