
We're computing the line integral

It looks like the circular part of

should be along the circle

starting at (4,0) and terminating at

.
Because integrating with respect to a parameterization seems like it would be a pain, let's check to see if

is a conservative vector field. For this to be the case, if

, then

is conservative iff

.
We have

and

. The corresponding partial derivatives are


and so the vector field is indeed conservative.
Now, we want to find a function

such that

. We have

Integrating with respect to

yields


Differentiating with respect to

gives
![\dfrac{\partial G(x,y)}{\partial y}=\dfrac{\partial}{\partial y}\left[e^{xy}+\sin(4x+y)+g(y)\right]](https://tex.z-dn.net/?f=%5Cdfrac%7B%5Cpartial%20G%28x%2Cy%29%7D%7B%5Cpartial%20y%7D%3D%5Cdfrac%7B%5Cpartial%7D%7B%5Cpartial%20y%7D%5Cleft%5Be%5E%7Bxy%7D%2B%5Csin%284x%2By%29%2Bg%28y%29%5Cright%5D)



and so

Because

is conservative, and a potential function exists, the line integral is path-independent and the fundamental theorem of calculus of line integrals applies, so we can evaluate the line integral by evaluating the potential function at the endpoints. We end up with