Multivariable CalculusLine Integrals and Green's Theorem5 of 7
Line Integrals and Green's Theorem · 5

Conservative Fields and Potential Functions

When a vector field is the gradient of some function f\fn{f}, line integrals ignore the path completely and only depend on the endpoints, so we need a way to test whether a given vector field comes from a gradient, and a way to build that original function f\fn{f}.

Reversing the Gradient
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
f(x,y)=x2y\htmlClass{lc-blue}{f(x, y) = x^2y}
∇f=⟨2xy,  x2⟩\htmlClass{lc-pink}{\nabla} \htmlClass{lc-blue}{f} = \htmlClass{lc-pink}{\langle 2xy,\; x^2 \rangle}

Given a vector field F\fn{\mathbf{F}}, we want to know whether there is a function f\fn{f} whose partial derivatives give the slots of F\fn{\mathbf{F}}:

F(x,y)⏟conservative field\displaystyle \underbrace{\fn{\mathbf{F}(x, y)}}_{\text{conservative field}} =∇f(x,y)⏟potential function\displaystyle = \slope{\nabla} \underbrace{\fn{f(x, y)}}_{\text{potential function}} =⟨fx,fy⟩\displaystyle = \slope{\langle f_x, f_y \rangle}

When a potential function f\fn{f} exists, the Fundamental Theorem for Line Integrals turns any line integral from AA to BB into the height change on the surface z=f(x,y)z = \fn{f(x, y)}:

∫CF⋅dr\displaystyle \total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} =f(B)−f(A)\displaystyle = \fn{f(B)} - \fn{f(A)}
1

Testing Whether a 2D Vector Field Is Conservative

Integrating each slot on its own does not always work, because a term needed by the first slot can create unwanted terms when differentiated for the second slot. Before trying to build f(x,y)\fn{f(x, y)}, we want a fast check to see whether the two slots of F(x,y)=⟨P,Q⟩\fn{\mathbf{F}(x, y)} = \langle P, Q \rangle can come from the same function f\fn{f}.

The Mixed-Partial Test in 2D
F(x,y)\displaystyle \fn{\mathbf{F}(x, y)} =⟨y2,x⟩\displaystyle = \langle y^2, x \rangle
f(x,y)\displaystyle \fn{f(x, y)} =  ?\displaystyle = \;?

If the first slot PP really is fx\slope{f_x} and the second slot QQ really is fy\slope{f_y}, then differentiating each slot by the other variable must give the same mixed partial derivative fxy=fyx\mixed{f_{xy}} = \mixed{f_{yx}}:

∂P∂y\displaystyle \mixed{\frac{\partial P}{\partial y}} =∂Q∂x\displaystyle = \mixed{\frac{\partial Q}{\partial x}}
F(x,y)=⟨\htmlClass{lc-blue}{\mathbf{F}(x, y)} = \langle
PP
,,
QQ
⟩\rangle
fx\htmlClass{lc-pink}{f_x}
fy\htmlClass{lc-pink}{f_y}
∂∂y\htmlClass{lc-violet}{\dfrac{\partial}{\partial y}}
∂∂x\htmlClass{lc-violet}{\dfrac{\partial}{\partial x}}
fxy\htmlClass{lc-orange}{f_{xy}}
==
fyx\htmlClass{lc-orange}{f_{yx}}

For F(x,y)=⟨y2,x⟩\fn{\mathbf{F}(x, y)} = \langle y^2, x \rangle, the yy-derivative of the first slot is 2y\mixed{2y} while the xx-derivative of the second slot is 1\mixed{1}, so the two slots disagree and no potential function exists. Now let's run the test on F(x,y)=⟨2xy+y3,x2+3xy2+2y⟩\fn{\mathbf{F}(x, y)} = \langle 2xy + y^3, x^2 + 3xy^2 + 2y \rangle.

Text solution
Differentiate the xx-slot with respect to yyHold xx constant to find what fxy\mixed{f_{xy}} must be according to the first slot.
∂∂y(2xy+y3)\displaystyle \op{\frac{\partial}{\partial y}}(2xy + y^3) =2x+3y2\displaystyle = \mixed{2x + 3y^2}
Differentiate the yy-slot with respect to xxHold yy constant so the pure yy-term 2y2y becomes zero.
∂∂x(x2+3xy2+2y)\displaystyle \op{\frac{\partial}{\partial x}}(x^2 + 3xy^2 + 2y) =2x+3y2+0\displaystyle = \mixed{2x + 3y^2 + 0} =2x+3y2\displaystyle = \mixed{2x + 3y^2}

Because both mixed partials equal 2x+3y2\mixed{2x + 3y^2}, the two slots agree and F\fn{\mathbf{F}} is conservative.

2

Finding a Potential Function in 2D

Once F(x,y)=⟨2xy+y3,x2+3xy2+2y⟩\fn{\mathbf{F}(x, y)} = \langle 2xy + y^3, x^2 + 3xy^2 + 2y \rangle passes the test, we want to build the potential function f(x,y)\fn{f(x, y)} without missing the terms that get wiped out when we take each partial derivative.

Finding a Potential Function in 2D
F(x,y)\displaystyle \fn{\mathbf{F}(x, y)} =\displaystyle =
⟨2xy+y3fx,  x2+3xy2+2yfy⟩\displaystyle \langle \underset{\slope{f_x}}{2xy + y^3},\; \underset{\slope{f_y}}{x^2 + 3xy^2 + 2y} \rangle
f(x,y)\displaystyle \fn{f(x, y)} =  ?\displaystyle = \;?
Text solution
Integrate the xx-slot with respect to xxTreat yy as a constant and add an unknown function g(y)\fn{g(y)} instead of +C+ C to hold any pure yy-terms that an xx-derivative would have wiped out.
f(x,y)\displaystyle \fn{f(x, y)} =∫(2xy+y3) dx\displaystyle = \op{\int} (2xy + y^3)\,\op{dx} =x2y+xy3+g(y)⏟pure y-terms\displaystyle = x^2y + xy^3 + \underbrace{\fn{g(y)}}_{\text{pure } y\text{-terms}}
Differentiate the draft with respect to yy and match to the yy-slotSet the yy-derivative of the draft equal to the second slot of F\fn{\mathbf{F}} so the matching terms x2+3xy2x^2 + 3xy^2 cancel on both sides.
∂∂y(x2y+xy3+g(y))=x2+3xy2+2yx2+3xy2+g′(y)=x2+3xy2+2yg′(y)=2y\displaystyle \begin{aligned} \op{\frac{\partial}{\partial y}}\bigl(x^2y + xy^3 + \fn{g(y)}\bigr) &= x^2 + 3xy^2 + 2y \\ x^2 + 3xy^2 + \fn{g'(y)} &= x^2 + 3xy^2 + 2y \\ \fn{g'(y)} &= 2y \end{aligned}
Integrate g′(y)\fn{g'(y)} with respect to yy and substitute back into the draftIntegrate g′(y)\fn{g'(y)} with respect to yy to find the missing pure yy-term.
g(y)=∫2y dy=y2+Cf(x,y)=x2y+xy3+y2+C\displaystyle \begin{aligned} \fn{g(y)} &= \op{\int} 2y\,\op{dy} = y^2 + C \\ \fn{f(x, y)} &= x^2y + xy^3 + y^2 + C \end{aligned}

You can quickly check your answer by integrating each slot in its own variable (∫(2xy+y3) dx=x2y+xy3\op{\int} (2xy + y^3)\,\op{dx} = x^2y + xy^3 and ∫(x2+3xy2+2y) dy=x2y+xy3+y2\op{\int} (x^2 + 3xy^2 + 2y)\,\op{dy} = x^2y + xy^3 + y^2) and combining them while counting the shared terms x2y+xy3x^2y + xy^3 only once, though a test usually expects the written g(y)\fn{g(y)} steps.

On the surface z=x2y+xy3+g(y)z = x^2y + xy^3 + \fn{g(y)}, changing g(y)\fn{g(y)} shifts each constant-yy slice up or down as a rigid curve. That adjusts the yy-slopes fy\slope{f_y} across the surface without changing the xx-slopes fx\slope{f_x} along any slice.

Reshaping the curve at the back tilts the surface in the y-direction without changing any of its x-slopes.
3

Testing and Finding a Potential Function in 3D

Now we want to test a three-dimensional vector field F(x,y,z)=⟨fx,fy,fz⟩\fn{\mathbf{F}(x, y, z)} = \slope{\langle f_x, f_y, f_z \rangle} and build its potential function f(x,y,z)\fn{f(x, y, z)}. With three slots, there are three pairs of slots that must agree on their shared mixed partial derivative:

F(x,y,z)=⟨\htmlClass{lc-blue}{\mathbf{F}(x, y, z)} = \langle
fx\htmlClass{lc-pink}{f_x}
,,
fy\htmlClass{lc-pink}{f_y}
,,
fz\htmlClass{lc-pink}{f_z}
⟩\rangle
∂(slot 1)∂y=∂(slot 2)∂x\htmlClass{lc-orange}{\dfrac{\partial(\htmlClass{lc-ink}{\text{slot }1})}{\partial y}} = \htmlClass{lc-orange}{\dfrac{\partial(\htmlClass{lc-ink}{\text{slot }2})}{\partial x}}
∂(slot 2)∂z=∂(slot 3)∂y\htmlClass{lc-orange}{\dfrac{\partial(\htmlClass{lc-ink}{\text{slot }2})}{\partial z}} = \htmlClass{lc-orange}{\dfrac{\partial(\htmlClass{lc-ink}{\text{slot }3})}{\partial y}}
∂(slot 1)∂z=∂(slot 3)∂x\htmlClass{lc-orange}{\dfrac{\partial(\htmlClass{lc-ink}{\text{slot }1})}{\partial z}} = \htmlClass{lc-orange}{\dfrac{\partial(\htmlClass{lc-ink}{\text{slot }3})}{\partial x}}

Let's test F(x,y,z)=⟨2xy+4,x2+z3,3yz2−2⟩\fn{\mathbf{F}(x, y, z)} = \langle 2xy + 4, x^2 + z^3, 3yz^2 - 2 \rangle and find its potential function.

Testing and Finding a Potential Function in 3D
F(x,y,z)\displaystyle \fn{\mathbf{F}(x, y, z)} =\displaystyle =
⟨2xy+4fx,  x2+z3fy,  3yz2−2fz⟩\displaystyle \langle \underset{\slope{f_x}}{2xy + 4},\; \underset{\slope{f_y}}{x^2 + z^3},\; \underset{\slope{f_z}}{3yz^2 - 2} \rangle
f(x,y,z)\displaystyle \fn{f(x, y, z)} =  ?\displaystyle = \;?
Text solution
Check all three mixed-partial pairsDifferentiate each pair of slots by each other's variables to verify that every pair matches.
Slots 1 and 2 (x,y):∂∂y(2xy+4)=2x=∂∂x(x2+z3)Slots 2 and 3 (y,z):∂∂z(x2+z3)=3z2=∂∂y(3yz2−2)Slots 1 and 3 (x,z):∂∂z(2xy+4)=0=∂∂x(3yz2−2)\displaystyle \begin{aligned} \text{Slots 1 and 2 }(x, y)\text{:} \quad \op{\frac{\partial}{\partial y}}(2xy + 4) &= \mixed{2x} = \op{\frac{\partial}{\partial x}}(x^2 + z^3) \\ \text{Slots 2 and 3 }(y, z)\text{:} \quad \op{\frac{\partial}{\partial z}}(x^2 + z^3) &= \mixed{3z^2} = \op{\frac{\partial}{\partial y}}(3yz^2 - 2) \\ \text{Slots 1 and 3 }(x, z)\text{:} \quad \op{\frac{\partial}{\partial z}}(2xy + 4) &= \mixed{0} = \op{\frac{\partial}{\partial x}}(3yz^2 - 2) \end{aligned}
Integrate the xx-slot with respect to xxAdd +g(y,z)+ \fn{g(y, z)} because an xx-derivative wipes out any expression made of only yy and zz.
f(x,y,z)\displaystyle \fn{f(x, y, z)} =∫(2xy+4) dx\displaystyle = \op{\int} (2xy + 4)\,\op{dx} =x2y+4x+g(y,z)⏟only y and z\displaystyle = x^2y + 4x + \underbrace{\fn{g(y, z)}}_{\text{only } y \text{ and } z}
Differentiate with respect to yy, match to the yy-slot, and integrate in yyCancel the shared x2x^2 term, then add +h(z)+ \fn{h(z)} when integrating in yy for any remaining pure zz-terms.
∂∂y(x2y+4x+g(y,z))=x2+gy(y,z)=x2+z3gy(y,z)=z3g(y,z)=∫z3 dy=yz3+h(z)⏟only zf(x,y,z)=x2y+4x+yz3+h(z)\displaystyle \begin{aligned} \op{\frac{\partial}{\partial y}}\bigl(x^2y + 4x + \fn{g(y, z)}\bigr) &= x^2 + \fn{g_y(y, z)} = x^2 + z^3 \\ \fn{g_y(y, z)} &= z^3 \\ \fn{g(y, z)} &= \op{\int} z^3\,\op{dy} = yz^3 + \underbrace{\fn{h(z)}}_{\text{only } z} \\ \fn{f(x, y, z)} &= x^2y + 4x + yz^3 + \fn{h(z)} \end{aligned}
Differentiate with respect to zz, match to the zz-slot, and integrate in zzCancel the shared 3yz23yz^2 term and integrate h′(z)\fn{h'(z)} to finish the potential function.
∂∂z(x2y+4x+yz3+h(z))=3yz2+h′(z)=3yz2−2h′(z)=−2h(z)=∫(−2) dz=−2z+Cf(x,y,z)=x2y+4x+yz3−2z+C\displaystyle \begin{aligned} \op{\frac{\partial}{\partial z}}\bigl(x^2y + 4x + yz^3 + \fn{h(z)}\bigr) &= 3yz^2 + \fn{h'(z)} = 3yz^2 - 2 \\ \fn{h'(z)} &= -2 \\ \fn{h(z)} &= \op{\int} (-2)\,\op{dz} = -2z + C \\ \fn{f(x, y, z)} &= x^2y + 4x + yz^3 - 2z + C \end{aligned}

Just as in 2D, integrating the three slots separately gives x2y+4xx^2y + 4x (from xx), x2y+yz3x^2y + yz^3 (from yy), and yz3−2zyz^3 - 2z (from zz), which combine without double-counting the repeated x2yx^2y and yz3yz^3 terms into the same result f(x,y,z)=x2y+4x+yz3−2z+C\fn{f(x, y, z)} = x^2y + 4x + yz^3 - 2z + C.

4

Evaluating a Line Integral with a Potential Function

Now we want to evaluate the line integral of our 3D vector field F(x,y,z)=⟨2xy+4,x2+z3,3yz2−2⟩\fn{\mathbf{F}(x, y, z)} = \langle 2xy + 4, x^2 + z^3, 3yz^2 - 2 \rangle along a complicated curve CC:

∫CF⋅dralongr(t)\displaystyle \total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} \quad \text{along} \quad \mathbf{r}(t) =⟨t+cos⁡(2πt),  sin⁡ ⁣(π2t),  3t3⟩,0\displaystyle = \left\langle t + \cos(2\pi t),\; \sin\!\left(\tfrac{\pi}{2}t\right),\; 3t^3 \right\rangle, \quad 0 ≤t\displaystyle \le t ≤1\displaystyle \le 1
Evaluating a Line Integral with a Potential Function
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
CC
∫CF⋅dr=  ?\htmlClass{lc-green}{\int_C} \htmlClass{lc-blue}{\mathbf{F}} \cdot d\mathbf{r} = \;?
Text solution
Find the starting and ending points on the curvePlug t=0t = 0 and t=1t = 1 into r(t)\mathbf{r}(t) to find the endpoints in space instead of differentiating r(t)\mathbf{r}(t).
r(0)=⟨0+cos⁡(0),  sin⁡(0),  3(0)3⟩=(1,0,0)r(1)=⟨1+cos⁡(2π),  sin⁡ ⁣(π2),  3(1)3⟩=(2,1,3)\displaystyle \begin{aligned} \mathbf{r}(0) &= \langle 0 + \cos(0),\; \sin(0),\; 3(0)^3 \rangle = (1, 0, 0) \\ \mathbf{r}(1) &= \left\langle 1 + \cos(2\pi),\; \sin\!\left(\tfrac{\pi}{2}\right),\; 3(1)^3 \right\rangle = (2, 1, 3) \end{aligned}
Evaluate the potential function at the endpoints and subtractPlug (2,1,3)(2, 1, 3) and (1,0,0)(1, 0, 0) into f(x,y,z)=x2y+4x+yz3−2z\fn{f(x, y, z)} = x^2y + 4x + yz^3 - 2z.
∫CF⋅dr=f(2,1,3)−f(1,0,0)=(22(1)+4(2)+(1)(3)3−2(3))−(12(0)+4(1)+(0)(0)3−2(0))=(4+8+27−6)−4=33−4=29\displaystyle \begin{aligned} \total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} &= \fn{f(2, 1, 3)} - \fn{f(1, 0, 0)} \\ &= \bigl(2^2(1) + 4(2) + (1)(3)^3 - 2(3)\bigr) - \bigl(1^2(0) + 4(1) + (0)(0)^3 - 2(0)\bigr) \\ &= (4 + 8 + 27 - 6) - 4 \\ &= \fn{33} - \fn{4} = 29 \end{aligned}

So the line integral is 2929, no matter how the path waves back and forth between (1,0,0)(1, 0, 0) and (2,1,3)(2, 1, 3).

5

Domain Holes and Simply Connected Regions

Does passing the mixed-partial test guarantee a potential function on every path? We need to see what happens when the vector field has a point where it is undefined:

F(x,y)\displaystyle \fn{\mathbf{F}(x, y)} =⟨−yx2+y2,  xx2+y2⟩\displaystyle = \left\langle \frac{-y}{x^2 + y^2},\; \frac{x}{x^2 + y^2} \right\rangle
Domain Holes and Simply Connected Regions
∂P∂y\displaystyle \mixed{\frac{\partial P}{\partial y}} =∂Q∂x\displaystyle = \mixed{\frac{\partial Q}{\partial x}}
⟹  F conservative?\displaystyle \Longrightarrow\; \fn{\mathbf{F}}\ \text{conservative?}

Everywhere away from (0,0)(0, 0), the two mixed partials match by the quotient rule:

∂∂y(−yx2+y2)=−1(x2+y2)−(−y)(2y)(x2+y2)2=y2−x2(x2+y2)2∂∂x(xx2+y2)=1(x2+y2)−x(2x)(x2+y2)2=y2−x2(x2+y2)2\displaystyle \begin{aligned} \op{\frac{\partial}{\partial y}}\left(\frac{-y}{x^2 + y^2}\right) &= \frac{-1(x^2 + y^2) - (-y)(2y)}{(x^2 + y^2)^2} = \mixed{\frac{y^2 - x^2}{(x^2 + y^2)^2}} \\ \op{\frac{\partial}{\partial x}}\left(\frac{x}{x^2 + y^2}\right) &= \frac{1(x^2 + y^2) - x(2x)}{(x^2 + y^2)^2} = \mixed{\frac{y^2 - x^2}{(x^2 + y^2)^2}} \end{aligned}

Even though the mixed partials are equal, dividing by x2+y2x^2 + y^2 creates a hole at (0,0)(0, 0) where F\fn{\mathbf{F}} does not exist. Walking counterclockwise around the unit circle x2+y2=1x^2 + y^2 = 1 goes around that hole, and the arrows push forward the entire way to give ∮CF⋅dr=2π\total{\oint_C} \fn{\mathbf{F}} \cdot d\mathbf{r} = 2\pi instead of 00.

11
xx
yy
CC
∮CF⋅dr=2π\htmlClass{lc-green}{\oint_C} \htmlClass{lc-blue}{\mathbf{F}}\cdot d\mathbf{r} = 2\pi
11
xx
yy
CC
simply connected region (no holes)\text{simply connected region (no holes)}
f(x,y)=arctan⁡(yx)\htmlClass{lc-blue}{f(x, y) = \arctan\big(\tfrac{y}{x}\big)}
∮CF⋅dr=0\htmlClass{lc-green}{\oint_C} \htmlClass{lc-blue}{\mathbf{F}}\cdot d\mathbf{r} = 0

When a closed loop in F(x,y)=⟨−yx2+y2,xx2+y2⟩\fn{\mathbf{F}(x, y)} = \left\langle \frac{-y}{x^2 + y^2}, \frac{x}{x^2 + y^2} \right\rangle stays to one side of the origin, the path on the spiral surface stays on a single layer and returns to its starting height, for a net change of 00. When the loop goes around the hole at (0,0)(0, 0), the path climbs one full turn up the spiral and ends 2π2\pi higher than it started.

A closed loop returns to its starting height anywhere it misses the hole at the origin, and climbs one full turn of the spiral whenever it wraps around the hole.

Key concepts

When you are handed a vector field F\fn{\mathbf{F}} or a line integral ∫CF⋅dr\total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} along a complicated curve, the first thing to check is whether F\fn{\mathbf{F}} comes from a gradient ∇f\slope{\nabla f}. Differentiate each slot by the other variable: in 2D for F=⟨P,Q⟩\fn{\mathbf{F}} = \langle P, Q \rangle, check ∂P∂y=∂Q∂x\mixed{\frac{\partial P}{\partial y}} = \mixed{\frac{\partial Q}{\partial x}} (as in ⟨2xy+y3,x2+3xy2+2y⟩\langle 2xy + y^3, x^2 + 3xy^2 + 2y \rangle, where both give 2x+3y2\mixed{2x + 3y^2}), and in 3D for F=⟨fx,fy,fz⟩\fn{\mathbf{F}} = \slope{\langle f_x, f_y, f_z \rangle}, check all three pairs (xx-yy, yy-zz, and xx-zz). The moment any pair disagrees, like ⟨y2,x⟩\langle y^2, x \rangle where ∂∂y(y2)=2y≠1=∂∂x(x)\op{\frac{\partial}{\partial y}}(y^2) = \mixed{2y} \neq \mixed{1} = \op{\frac{\partial}{\partial x}}(x), stop trying to build f\fn{f}; no potential function exists, and any line integral must be done by parametrizing the curve directly.

If the mixed partials match, check the domain next. Polynomials, sines, cosines, and exponentials have no holes anywhere, so passing the derivative test automatically guarantees a potential function on the whole plane or space. If F\fn{\mathbf{F}} has a denominator that can equal zero, like ⟨−yx2+y2,xx2+y2⟩\left\langle \frac{-y}{x^2 + y^2}, \frac{x}{x^2 + y^2} \right\rangle at (0,0)(0, 0), matching mixed partials only guarantee a potential function on a simply connected region that does not go around the hole.

To build f\fn{f}, integrate the first slot fx\slope{f_x} with respect to xx and write +g(y)+ \fn{g(y)} (or +g(y,z)+ \fn{g(y, z)} in 3D) for the variables held constant, then differentiate your draft in the next variable and match it to the next slot to solve for the unknown function. Or you can integrate each slot in its own variable and combine the results while counting shared terms only once (in ⟨2xy+y3,x2+3xy2+2y⟩\langle 2xy + y^3, x^2 + 3xy^2 + 2y \rangle, the shared x2y+xy3x^2y + xy^3 combines with the pure yy-term y2y^2 from the second slot to give f(x,y)=x2y+xy3+y2+C\fn{f(x, y)} = x^2y + xy^3 + y^2 + C). Once you have f\fn{f}, any line integral from t=at = a to t=bt = b ignores the path and simplifies to ∫CF⋅dr=f(r(b))−f(r(a))\total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} = \fn{f(\mathbf{r}(b))} - \fn{f(\mathbf{r}(a))}.

6

Practice

1

Verify that F(x,y)=⟨3x2y2+4x,2x3y−5y4⟩\fn{\mathbf{F}(x, y)} = \langle 3x^2y^2 + 4x, 2x^3y - 5y^4 \rangle is conservative and find a potential function f(x,y)\fn{f(x, y)}.

Differentiate each slot by the other variable first; when you integrate the first slot with respect to xx, what kind of terms could an xx-derivative have wiped out?

Check the mixed partials by differentiating the first slot in yy and the second slot in xx:
∂∂y(3x2y2+4x)\displaystyle \op{\frac{\partial}{\partial y}}(3x^2y^2 + 4x) =6x2y\displaystyle = \mixed{6x^2y} =∂∂x(2x3y−5y4)\displaystyle = \op{\frac{\partial}{\partial x}}(2x^3y - 5y^4)
Since they match and F\fn{\mathbf{F}} is a polynomial defined everywhere, F\fn{\mathbf{F}} is conservative. Integrate the xx-slot with respect to xx:
f(x,y)\displaystyle \fn{f(x, y)} =∫(3x2y2+4x) dx\displaystyle = \op{\int} (3x^2y^2 + 4x)\,\op{dx} =x3y2+2x2+g(y)\displaystyle = x^3y^2 + 2x^2 + \fn{g(y)}
(Watch out: Don't write +C+ C right away instead of +g(y)+ \fn{g(y)}, because leaving out g(y)\fn{g(y)} misses the pure yy-term −y5-y^5 and gives the wrong answer x3y2+2x2+Cx^3y^2 + 2x^2 + C. And if you integrate both slots separately, don't add the shared term x3y2x^3y^2 twice to get 2x3y2+2x2−y5+C2x^3y^2 + 2x^2 - y^5 + C.)
Differentiate the draft with respect to yy and match it to the second slot:
∂∂y(x3y2+2x2+g(y))=2x3y+g′(y)=2x3y−5y4g′(y)=−5y4g(y)=∫(−5y4) dy=−y5+C\displaystyle \begin{aligned} \op{\frac{\partial}{\partial y}}\bigl(x^3y^2 + 2x^2 + \fn{g(y)}\bigr) &= 2x^3y + \fn{g'(y)} = 2x^3y - 5y^4 \\ \fn{g'(y)} &= -5y^4 \\ \fn{g(y)} &= \op{\int} (-5y^4)\,\op{dy} = -y^5 + C \end{aligned}
Substitute g(y)\fn{g(y)} back into the draft:
f(x,y)\displaystyle \fn{f(x, y)} =x3y2+2x2−y5+C\displaystyle = x^3y^2 + 2x^2 - y^5 + C
2

Determine whether F(x,y,z)=⟨2xy+z2,x2+2yz,y2+2xz+x⟩\fn{\mathbf{F}(x, y, z)} = \langle 2xy + z^2, x^2 + 2yz, y^2 + 2xz + x \rangle is conservative.

In 3D, how many pairs of slots must agree before F\fn{\mathbf{F}} can be conservative?

Check the mixed-partial pairs across the three slots:
Slots 1 and 2 (x,y):∂∂y(2xy+z2)=2x=∂∂x(x2+2yz)Slots 2 and 3 (y,z):∂∂z(x2+2yz)=2y=∂∂y(y2+2xz+x)\displaystyle \begin{aligned} \text{Slots 1 and 2 }(x, y)\text{:} \quad \op{\frac{\partial}{\partial y}}(2xy + z^2) &= \mixed{2x} = \op{\frac{\partial}{\partial x}}(x^2 + 2yz) \\ \text{Slots 2 and 3 }(y, z)\text{:} \quad \op{\frac{\partial}{\partial z}}(x^2 + 2yz) &= \mixed{2y} = \op{\frac{\partial}{\partial y}}(y^2 + 2xz + x) \end{aligned}
(Watch out: Don't stop after the first two pairs match and answer "Conservative." All three pairs must agree, and the +x+ x at the end of slot 3 only shows up when you check the xx-zz pair.)
Now check the third pair between slots 1 and 3 (xx and zz):
∂∂z(2xy+z2)\displaystyle \op{\frac{\partial}{\partial z}}(2xy + z^2) =2z≠2z+1\displaystyle = \mixed{2z} \neq \mixed{2z + 1} =∂∂x(y2+2xz+x)\displaystyle = \op{\frac{\partial}{\partial x}}(y^2 + 2xz + x)
Because the xx-zz pair disagrees, F\fn{\mathbf{F}} is not conservative.
3

Verify that F(x,y,z)=⟨2xy+z,x2+3y2z,x+y3−4z⟩\fn{\mathbf{F}(x, y, z)} = \langle 2xy + z, x^2 + 3y^2z, x + y^3 - 4z \rangle is conservative and find a potential function f(x,y,z)\fn{f(x, y, z)}.

After checking all three pairs, integrate the first slot in xx with +g(y,z)+ \fn{g(y, z)}. Which variable could still have pure terms missing when you integrate gy(y,z)\fn{g_y(y, z)} with respect to yy?

Check all three mixed-partial pairs:
Slots 1 and 2 (x,y):∂∂y(2xy+z)=2x=∂∂x(x2+3y2z)Slots 2 and 3 (y,z):∂∂z(x2+3y2z)=3y2=∂∂y(x+y3−4z)Slots 1 and 3 (x,z):∂∂z(2xy+z)=1=∂∂x(x+y3−4z)\displaystyle \begin{aligned} \text{Slots 1 and 2 }(x, y)\text{:} \quad \op{\frac{\partial}{\partial y}}(2xy + z) &= \mixed{2x} = \op{\frac{\partial}{\partial x}}(x^2 + 3y^2z) \\ \text{Slots 2 and 3 }(y, z)\text{:} \quad \op{\frac{\partial}{\partial z}}(x^2 + 3y^2z) &= \mixed{3y^2} = \op{\frac{\partial}{\partial y}}(x + y^3 - 4z) \\ \text{Slots 1 and 3 }(x, z)\text{:} \quad \op{\frac{\partial}{\partial z}}(2xy + z) &= \mixed{1} = \op{\frac{\partial}{\partial x}}(x + y^3 - 4z) \end{aligned}
All three pairs match, so F\fn{\mathbf{F}} is conservative. Integrate slot 1 with respect to xx:
f(x,y,z)\displaystyle \fn{f(x, y, z)} =∫(2xy+z) dx\displaystyle = \op{\int} (2xy + z)\,\op{dx} =x2y+xz+g(y,z)\displaystyle = x^2y + xz + \fn{g(y, z)}
Differentiate in yy, match to slot 2, and integrate with respect to yy:
∂∂y(x2y+xz+g(y,z))=x2+gy(y,z)=x2+3y2zgy(y,z)=3y2zg(y,z)=∫3y2z dy=y3z+h(z)f(x,y,z)=x2y+xz+y3z+h(z)\displaystyle \begin{aligned} \op{\frac{\partial}{\partial y}}\bigl(x^2y + xz + \fn{g(y, z)}\bigr) &= x^2 + \fn{g_y(y, z)} = x^2 + 3y^2z \\ \fn{g_y(y, z)} &= 3y^2z \\ \fn{g(y, z)} &= \op{\int} 3y^2z\,\op{dy} = y^3z + \fn{h(z)} \\ \fn{f(x, y, z)} &= x^2y + xz + y^3z + \fn{h(z)} \end{aligned}
(Watch out: Don't forget +h(z)+ \fn{h(z)} when integrating gy(y,z)\fn{g_y(y, z)} in yy, because leaving it out misses the pure zz-term from slot 3 and gives the wrong answer x2y+xz+y3z+Cx^2y + xz + y^3z + C.)
Differentiate in zz, match to slot 3, and integrate with respect to zz:
∂∂z(x2y+xz+y3z+h(z))=x+y3+h′(z)=x+y3−4zh′(z)=−4zh(z)=∫(−4z) dz=−2z2+Cf(x,y,z)=x2y+xz+y3z−2z2+C\displaystyle \begin{aligned} \op{\frac{\partial}{\partial z}}\bigl(x^2y + xz + y^3z + \fn{h(z)}\bigr) &= x + y^3 + \fn{h'(z)} = x + y^3 - 4z \\ \fn{h'(z)} &= -4z \\ \fn{h(z)} &= \op{\int} (-4z)\,\op{dz} = -2z^2 + C \\ \fn{f(x, y, z)} &= x^2y + xz + y^3z - 2z^2 + C \end{aligned}
4

Evaluate ∫CF⋅dr\total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} for F(x,y,z)=⟨2xyz+3x2,x2z+2y,x2y+1⟩\fn{\mathbf{F}(x, y, z)} = \langle 2xyz + 3x^2, x^2z + 2y, x^2y + 1 \rangle along the curve r(t)=⟨t+sin⁡(πt),2t2−cos⁡(πt),t3⟩\mathbf{r}(t) = \langle t + \sin(\pi t), 2t^2 - \cos(\pi t), t^3 \rangle for 0≤t≤10 \le t \le 1.

Look at the trig terms in r(t)\mathbf{r}(t). Before differentiating the curve, what should you check about F\fn{\mathbf{F}}?

All three mixed-partial pairs of F\fn{\mathbf{F}} match (2xz=2xz\mixed{2xz} = \mixed{2xz}, x2=x2\mixed{x^2} = \mixed{x^2}, and 2xy=2xy\mixed{2xy} = \mixed{2xy}). Integrating each slot in its own variable gives ∫(2xyz+3x2) dx=x2yz+x3\op{\int} (2xyz + 3x^2)\,\op{dx} = x^2yz + x^3, ∫(x2z+2y) dy=x2yz+y2\op{\int} (x^2z + 2y)\,\op{dy} = x^2yz + y^2, and ∫(x2y+1) dz=x2yz+z\op{\int} (x^2y + 1)\,\op{dz} = x^2yz + z, so a potential function is:
f(x,y,z)\displaystyle \fn{f(x, y, z)} =x2yz+x3+y2+z\displaystyle = x^2yz + x^3 + y^2 + z
Find the endpoints of the curve at t=0t = 0 and t=1t = 1:
r(0)=⟨0+sin⁡(0),  2(0)2−cos⁡(0),  03⟩=(0,−1,0)r(1)=⟨1+sin⁡(π),  2(1)2−cos⁡(π),  13⟩=(1,3,1)\displaystyle \begin{aligned} \mathbf{r}(0) &= \langle 0 + \sin(0),\; 2(0)^2 - \cos(0),\; 0^3 \rangle = (0, -1, 0) \\ \mathbf{r}(1) &= \langle 1 + \sin(\pi),\; 2(1)^2 - \cos(\pi),\; 1^3 \rangle = (1, 3, 1) \end{aligned}
(Watch out: Don't treat cos⁡(0)\cos(0) as 00 or cos⁡(π)\cos(\pi) as 11 when finding the yy-coordinates of the endpoints. That mistake gives endpoints (0,0,0)(0, 0, 0) and (1,1,1)(1, 1, 1) and leads to the wrong answer 44.)
Evaluate f\fn{f} at the endpoints and subtract:
∫CF⋅dr=f(1,3,1)−f(0,−1,0)=(12(3)(1)+13+32+1)−(0+0+(−1)2+0)=14−1=13\displaystyle \begin{aligned} \total{\int_C} \fn{\mathbf{F}} \cdot d\mathbf{r} &= \fn{f(1, 3, 1)} - \fn{f(0, -1, 0)} \\ &= \bigl(1^2(3)(1) + 1^3 + 3^2 + 1\bigr) - \bigl(0 + 0 + (-1)^2 + 0\bigr) \\ &= \fn{14} - \fn{1} = 13 \end{aligned}
5

For F(x,y)=⟨−yx2+y2,xx2+y2⟩\fn{\mathbf{F}(x, y)} = \left\langle \frac{-y}{x^2 + y^2}, \frac{x}{x^2 + y^2} \right\rangle, evaluate ∮CF⋅dr\total{\oint_C} \fn{\mathbf{F}} \cdot d\mathbf{r} around the counterclockwise circle C:(x−2)2+(y−2)2=1C: (x - 2)^2 + (y - 2)^2 = 1, and explain why the answer differs from the integral around the unit circle x2+y2=1x^2 + y^2 = 1.

Where is the denominator x2+y2x^2 + y^2 equal to zero, and where does a circle of radius 11 centered at (2,2)(2, 2) sit relative to that point?

The vector field F\fn{\mathbf{F}} has matching mixed partials everywhere except at the hole (0,0)(0, 0), where the denominator x2+y2x^2 + y^2 is zero. (Watch out: Don't see ⟨−yx2+y2,xx2+y2⟩\left\langle \frac{-y}{x^2 + y^2}, \frac{x}{x^2 + y^2} \right\rangle around a circle of radius 11 and automatically write 2π2\pi without checking whether the circle actually goes around (0,0)(0, 0).)
Unlike the unit circle x2+y2=1x^2 + y^2 = 1, which goes around (0,0)(0, 0), the circle (x−2)2+(y−2)2=1(x - 2)^2 + (y - 2)^2 = 1 is centered at (2,2)(2, 2) with radius 11, so the circle and its interior lie entirely in the first quadrant (1≤x≤31 \le x \le 3, 1≤y≤31 \le y \le 3) and never enclose the hole at (0,0)(0, 0). Because CC lies in a simply connected region where F\fn{\mathbf{F}} has the potential function f(x,y)=arctan⁡(y/x)\fn{f(x, y) = \arctan(y/x)}, the line integral around the closed loop is:
∮CF⋅dr\displaystyle \total{\oint_C} \fn{\mathbf{F}} \cdot d\mathbf{r} =0\displaystyle = 0