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, 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.
Reversing the Gradient
Given a vector field F, we want to know whether there is a function f whose partial derivatives give the slots of F:
When a potential function f exists, the Fundamental Theorem for Line Integrals turns any line integral from A to B into the height change on the surface z=f(x,y):
∫CF⋅dr=f(B)−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), we want a fast check to see whether the two slots of F(x,y)=⟨P,Q⟩ can come from the same function f.
The Mixed-Partial Test in 2D
F(x,y)=⟨y2,x⟩
f(x,y)=?
If the first slot P really is fx and the second slot Q really is fy, then differentiating each slot by the other variable must give the same mixed partial derivative fxy=fyx:
∂y∂P=∂x∂Q
For F(x,y)=⟨y2,x⟩, the y-derivative of the first slot is 2y while the x-derivative of the second slot is 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⟩.
Text solution
Differentiate the x-slot with respect to yHold x constant to find what fxy must be according to the first slot.
∂y∂(2xy+y3)=2x+3y2
Differentiate the y-slot with respect to xHold y constant so the pure y-term 2y becomes zero.
∂x∂(x2+3xy2+2y)=2x+3y2+0=2x+3y2
Because both mixed partials equal 2x+3y2, the two slots agree and F is conservative.
2
Finding a Potential Function in 2D
Once F(x,y)=⟨2xy+y3,x2+3xy2+2y⟩ passes the test, we want to build the potential function 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)=
⟨fx2xy+y3,fyx2+3xy2+2y⟩
f(x,y)=?
Text solution
Integrate the x-slot with respect to xTreat y as a constant and add an unknown function g(y) instead of +C to hold any pure y-terms that an x-derivative would have wiped out.
f(x,y)=∫(2xy+y3)dx=x2y+xy3+pure y-termsg(y)
Differentiate the draft with respect to y and match to the y-slotSet the y-derivative of the draft equal to the second slot of F so the matching terms x2+3xy2 cancel on both sides.
Integrate g′(y) with respect to y and substitute back into the draftIntegrate g′(y) with respect to y to find the missing pure y-term.
g(y)f(x,y)=∫2ydy=y2+C=x2y+xy3+y2+C
You can quickly check your answer by integrating each slot in its own variable (∫(2xy+y3)dx=x2y+xy3 and ∫(x2+3xy2+2y)dy=x2y+xy3+y2) and combining them while counting the shared terms x2y+xy3 only once, though a test usually expects the written g(y) steps.
On the surface z=x2y+xy3+g(y), changing g(y) shifts each constant-y slice up or down as a rigid curve. That adjusts the y-slopes fy across the surface without changing the x-slopes fx 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⟩ and build its potential function f(x,y,z). With three slots, there are three pairs of slots that must agree on their shared mixed partial derivative:
Let's test F(x,y,z)=⟨2xy+4,x2+z3,3yz2−2⟩ and find its potential function.
Testing and Finding a Potential Function in 3D
F(x,y,z)=
⟨fx2xy+4,fyx2+z3,fz3yz2−2⟩
f(x,y,z)=?
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)Slots 2 and 3 (y,z):∂z∂(x2+z3)Slots 1 and 3 (x,z):∂z∂(2xy+4)=2x=∂x∂(x2+z3)=3z2=∂y∂(3yz2−2)=0=∂x∂(3yz2−2)
Integrate the x-slot with respect to xAdd +g(y,z) because an x-derivative wipes out any expression made of only y and z.
f(x,y,z)=∫(2xy+4)dx=x2y+4x+only y and zg(y,z)
Differentiate with respect to y, match to the y-slot, and integrate in yCancel the shared x2 term, then add +h(z) when integrating in y for any remaining pure z-terms.
Differentiate with respect to z, match to the z-slot, and integrate in zCancel the shared 3yz2 term and integrate h′(z) to finish the potential function.
Just as in 2D, integrating the three slots separately gives x2y+4x (from x), x2y+yz3 (from y), and yz3−2z (from z), which combine without double-counting the repeated x2y and yz3 terms into the same result f(x,y,z)=x2y+4x+yz3−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⟩ along a complicated curve C:
∫CF⋅dralongr(t)=⟨t+cos(2πt),sin(2πt),3t3⟩,0≤t≤1
Evaluating a Line Integral with a Potential Function
Text solution
Find the starting and ending points on the curvePlug t=0 and t=1 into r(t) to find the endpoints in space instead of differentiating r(t).
So the line integral is 29, no matter how the path waves back and forth between (1,0,0) and (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)=⟨x2+y2−y,x2+y2x⟩
Domain Holes and Simply Connected Regions
∂y∂P=∂x∂Q
⟹Fconservative?
Everywhere away from (0,0), the two mixed partials match by the quotient rule:
Even though the mixed partials are equal, dividing by x2+y2 creates a hole at (0,0) where F does not exist. Walking counterclockwise around the unit circle x2+y2=1 goes around that hole, and the arrows push forward the entire way to give ∮CF⋅dr=2π instead of 0.
When a closed loop in F(x,y)=⟨x2+y2−y,x2+y2x⟩ 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 0. When the loop goes around the hole at (0,0), the path climbs one full turn up the spiral and ends 2π 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 or a line integral ∫CF⋅dr along a complicated curve, the first thing to check is whether F comes from a gradient ∇f. Differentiate each slot by the other variable: in 2D for F=⟨P,Q⟩, check ∂y∂P=∂x∂Q (as in ⟨2xy+y3,x2+3xy2+2y⟩, where both give 2x+3y2), and in 3D for F=⟨fx,fy,fz⟩, check all three pairs (x-y,y-z, and x-z). The moment any pair disagrees, like ⟨y2,x⟩ where ∂y∂(y2)=2y=1=∂x∂(x), stop trying to build 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 has a denominator that can equal zero, like ⟨x2+y2−y,x2+y2x⟩ at (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, integrate the first slot fx with respect to x and write +g(y) (or +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⟩, the shared x2y+xy3 combines with the pure y-term y2 from the second slot to give f(x,y)=x2y+xy3+y2+C). Once you have f, any line integral from t=a to t=b ignores the path and simplifies to ∫CF⋅dr=f(r(b))−f(r(a)).
6
Practice
1
Verify that F(x,y)=⟨3x2y2+4x,2x3y−5y4⟩ is conservative and find a potential function f(x,y).
Differentiate each slot by the other variable first; when you integrate the first slot with respect to x, what kind of terms could an x-derivative have wiped out?
Check the mixed partials by differentiating the first slot in y and the second slot in x:
∂y∂(3x2y2+4x)=6x2y=∂x∂(2x3y−5y4)
Since they match and F is a polynomial defined everywhere, F is conservative. Integrate the x-slot with respect to x:
f(x,y)=∫(3x2y2+4x)dx=x3y2+2x2+g(y)
(Watch out: Don't write +C right away instead of +g(y), because leaving out g(y) misses the pure y-term −y5 and gives the wrong answer x3y2+2x2+C. And if you integrate both slots separately, don't add the shared term x3y2 twice to get 2x3y2+2x2−y5+C.)
Differentiate the draft with respect to y and match it to the second slot:
Determine whether F(x,y,z)=⟨2xy+z2,x2+2yz,y2+2xz+x⟩ is conservative.
In 3D, how many pairs of slots must agree before F can be conservative?
Check the mixed-partial pairs across the three slots:
Slots 1 and 2 (x,y):∂y∂(2xy+z2)Slots 2 and 3 (y,z):∂z∂(x2+2yz)=2x=∂x∂(x2+2yz)=2y=∂y∂(y2+2xz+x)
(Watch out: Don't stop after the first two pairs match and answer "Conservative." All three pairs must agree, and the +x at the end of slot 3 only shows up when you check the x-z pair.)
Now check the third pair between slots 1 and 3 (x and z):
∂z∂(2xy+z2)=2z=2z+1=∂x∂(y2+2xz+x)
Because the x-z pair disagrees, F is not conservative.
3
Verify that F(x,y,z)=⟨2xy+z,x2+3y2z,x+y3−4z⟩ is conservative and find a potential function f(x,y,z).
After checking all three pairs, integrate the first slot in x with +g(y,z). Which variable could still have pure terms missing when you integrate gy(y,z) with respect to y?
Check all three mixed-partial pairs:
Slots 1 and 2 (x,y):∂y∂(2xy+z)Slots 2 and 3 (y,z):∂z∂(x2+3y2z)Slots 1 and 3 (x,z):∂z∂(2xy+z)=2x=∂x∂(x2+3y2z)=3y2=∂y∂(x+y3−4z)=1=∂x∂(x+y3−4z)
All three pairs match, so F is conservative. Integrate slot 1 with respect to x:
f(x,y,z)=∫(2xy+z)dx=x2y+xz+g(y,z)
Differentiate in y, match to slot 2, and integrate with respect to y:
(Watch out: Don't forget +h(z) when integrating gy(y,z) in y, because leaving it out misses the pure z-term from slot 3 and gives the wrong answer x2y+xz+y3z+C.)
Differentiate in z, match to slot 3, and integrate with respect to z:
Evaluate ∫CF⋅dr for F(x,y,z)=⟨2xyz+3x2,x2z+2y,x2y+1⟩ along the curve r(t)=⟨t+sin(πt),2t2−cos(πt),t3⟩ for 0≤t≤1.
Watch out: Don't treat cos(0) as 0 or cos(π) as 1 when finding the y-coordinates of the endpoints. That mistake gives endpoints (0,0,0) and (1,1,1) and leads to the wrong answer 4.
Look at the trig terms in r(t). Before differentiating the curve, what should you check about F?
All three mixed-partial pairs of F match (2xz=2xz,x2=x2, and 2xy=2xy). Integrating each slot in its own variable gives ∫(2xyz+3x2)dx=x2yz+x3,∫(x2z+2y)dy=x2yz+y2, and ∫(x2y+1)dz=x2yz+z, so a potential function is:
(Watch out: Don't treat cos(0) as 0 or cos(π) as 1 when finding the y-coordinates of the endpoints. That mistake gives endpoints (0,0,0) and (1,1,1) and leads to the wrong answer 4.)
For F(x,y)=⟨x2+y2−y,x2+y2x⟩, evaluate ∮CF⋅dr around the counterclockwise circle C:(x−2)2+(y−2)2=1, and explain why the answer differs from the integral around the unit circle x2+y2=1.
Watch out: Don't see ⟨x2+y2−y,x2+y2x⟩ around a circle of radius 1 and automatically write 2π without checking whether the circle actually goes around (0,0).
Where is the denominator x2+y2 equal to zero, and where does a circle of radius 1 centered at (2,2) sit relative to that point?
The vector field F has matching mixed partials everywhere except at the hole (0,0), where the denominator x2+y2 is zero. (Watch out: Don't see ⟨x2+y2−y,x2+y2x⟩ around a circle of radius 1 and automatically write 2π without checking whether the circle actually goes around (0,0).)
Unlike the unit circle x2+y2=1, which goes around (0,0), the circle (x−2)2+(y−2)2=1 is centered at (2,2) with radius 1, so the circle and its interior lie entirely in the first quadrant (1≤x≤3,1≤y≤3) and never enclose the hole at (0,0). Because C lies in a simply connected region where F has the potential function f(x,y)=arctan(y/x), the line integral around the closed loop is: