Multivariable CalculusLine Integrals and Green's Theorem4 of 7
Line Integrals and Green's Theorem · 4
The Fundamental Theorem for Line Integrals
Evaluating a line integral ∫CF⋅dr directly from a parameterization gets messy fast when the curve is complicated, so we want to know when we can skip the path in the middle and just use its two endpoints.
1
When the Path Doesn't Matter
Suppose we want to find the line integral ∫CF⋅dr along the curve
x(t)=t+sin(πt),y(t)=2t4−t3+t,0≤t≤1
Plugging these formulas into F, taking derivatives, and integrating with respect to t would be a lot of work, unless the total push along the walk depends only on where the path starts and where it stops.
When the Path Doesn't Matter
On a mountain trail, every step begins at the exact elevation where the previous step ended, so any uphill and downhill detours in the middle cancel out of the running total:
Δh1+Δh2+Δh3+⋯=hend−hstart
2
The Fundamental Theorem for Line Integrals
The Fundamental Theorem for Line Integrals says that if a vector field F is the gradient of a height surface f(x,y), then the line integral from A to B is simply the change in height f(B)−f(A).
In single-variable calculus, multiplying the slope f′(x) by a tiny step dx gives the tiny height change df=f′(x)dx, so adding them up from a to b gives the net change in height:
∫abf′(x)dx=f(b)−f(a)
On a surface f(x,y), the slopes in the x and y directions are put together in the gradient vector ∇f=⟨∂x∂f,∂y∂f⟩.
The Fundamental Theorem for Line Integrals
When F=∇f, dotting the field with a tiny step dr=⟨dx,dy⟩ gives the tiny height change df on the surface, and adding those height changes from A=r(a) to B=r(b) leaves the net change in height:
∇f⋅dr=height change in x∂x∂fdx+height change in y∂y∂fdy=df
∫C∇f⋅dr=f(B)−f(A)=f(r(b))−f(r(a))
At every point P along the flat curve C, the running line integral ∫APF⋅dr in the gradient field matches the elevation change f(P)−f(A) on the 3D surface f(x,y) directly above it.
In a gradient field, each step's push along the flat curve equals the tiny height change on the surface right above it, keeping the running line integral equal to the height change from the start.
3
Path Independence and Closed Loops
Path independence means that a line integral from A to B has the exact same value along every route between those two points. Because f(B)−f(A) depends only on the two endpoints, bending the curve between A and B does not change the integral at all, and walking around a closed loop that starts and ends at A always gives 0.
Path Independence and Closed Loops
Walking a path backwards from B to A flips the direction of every step dr, which flips the sign of the line integral. Going from A to B along C1 and returning from B to A along C2 forms a closed loop whose total integral is the difference between the two paths:
∫loopF⋅dr=∫C1F⋅dr−∫C2F⋅dr=0
For any path between A and B in a gradient field, extra uphill gain from detouring over a ridge is canceled by an equal downhill loss on the way back to B, keeping ∫CF⋅dr fixed at f(B)−f(A) and making it 0 when B is the same point as A.
In a gradient field, any extra climb on a detour is canceled by an equal drop on the way back, so the line integral depends only on the endpoints.
4
Conservative and Non-Conservative Vector Fields
We can only use the endpoint formula f(B)−f(A) when the vector field F actually comes from a height surface f(x,y).
Conservative and Non-Conservative Vector Fields
When a vector field is the gradient of a height function, the field is called a conservative vector field and the height function is called its potential function:
If a vector field swirls around like F=⟨−y,x⟩, walking counterclockwise around a circle goes with the arrows the entire way around. No height surface f(x,y) can go uphill the entire way around a circle and end up back at its starting elevation, so F=⟨−y,x⟩ is non-conservative and its line integrals still depend on the path.
In the swirling field F=⟨−y,x⟩, walking one way around the origin goes with the arrows while walking the other way goes against them, so ∫CF⋅dr changes as the path bends and does not cancel to zero around a closed loop.
In a swirling field, two paths between the same points A and B get pushed in opposite directions, so the total push depends on the path and never cancels around the origin.
5
Finding a Potential Function to Evaluate a Line Integral
Now let's evaluate the line integral of F(x,y)=⟨2xy,x2+3y2⟩ along the curve from the beginning:
To check whether F=⟨P,Q⟩ has a potential function f(x,y), we use the fact that mixed partial derivatives of a smooth surface match (fxy=fyx). If P=∂x∂f and Q=∂y∂f, then differentiating P with respect to y must match differentiating Q with respect to x:
∂y∂P=∂x∂Q
When ∂y∂P=∂x∂Q on the whole plane (or any region with no holes), a potential function f(x,y) is guaranteed to exist.
Finding a Potential Function to Evaluate a Line Integral
Check mixed partials for a potential functionTaking the y-derivative of P and the x-derivative of Q gives the same result everywhere on the plane, so F is conservative:
P=2xyQ=x2+3y2⟹∂y∂P=2x⟹∂x∂Q=2x
Undo both partial derivatives without double-countingIntegrating P with respect to x and Q with respect to y both give the shared term x2y, which we include once in f(x,y):
∂x∂f=2xy∂y∂f=x2+3y2f(x,y)⟹x2y⟹x2y+y3=x2y+y3
Find the start and end points of the curvePlugging the endpoints t=0 and t=1 into x(t) and y(t) gives the starting point A and ending point B:
So the total push along the curve from (0,0) to (1,2) is 10, the exact same value we would get along a straight line between those two points.
Once you write down f(x,y), take ∂x∂f and ∂y∂f in your head to check that they give back P and Q. Always write down ∂y∂P=∂x∂Q first to show why you can skip the middle of the path.
Key concepts
When you need to evaluate ∫CF⋅dr for F=⟨P,Q⟩, first check whether the field comes from a potential function f(x,y).
If the integral is already written as ∫C∇f⋅dr with f(x,y) given, you already have the potential function and can plug the endpoints A=r(a) and B=r(b) straight into the Fundamental Theorem for Line Integrals:
∫C∇f⋅dr=f(r(b))−f(r(a))
When you are given components F=⟨P,Q⟩ instead, test whether ∂y∂P=∂x∂Q on a region with no holes:
Open path in a conservative field
(∂y∂P=∂x∂Q and r(a)=r(b), like F=⟨2xy,x2+3y2⟩ where both mixed partials are 2x): integrate P with respect to x and Q with respect to y without double-counting shared terms to get f(x,y)=x2y+y3, then compute f(r(b))−f(r(a)).
Closed loop in a conservative field
(∂y∂P=∂x∂Q and r(b)=r(a)): you do not even need to find f(x,y), because starting and ending at the same point A immediately gives f(A)−f(A)=0.
Non-conservative field
(∂y∂P=∂x∂Q, like F=⟨−y,x⟩ where ∂y∂P=−1=1=∂x∂Q): no potential function f(x,y) exists, so you cannot just use the endpoints. You have to plug the parameterization r(t) directly into ∫CF⋅dr and integrate with respect to t.
6
Practice
1
Let f(x,y)=x3y−4y2. Evaluate ∫C∇f⋅dr along a curve C from A=(1,2) to B=(3,1).
Watch out: be careful to keep parentheses around −14 so you don't write 23−14=9.Watch out: make sure to do ending minus starting rather than f(1,2)−f(3,1)=−37.
Since the integrand is already ∇f⋅dr, do you need to take derivatives of f(x,y), or is f(x,y) already the height function?
The potential function f(x,y)=x3y−4y2 is already given, so we evaluate f at B=(3,1) and A=(1,2):
Subtract f(A) from f(B). Be careful to keep parentheses around −14 so you don't write 23−14=9, and make sure to do ending minus starting rather than f(1,2)−f(3,1)=−37:
∫C∇f⋅dr=f(3,1)−f(1,2)=23−(−14)=37
2
Suppose F is a conservative vector field, and C1 and C2 are two different paths from A to B with ∫C1F⋅dr=7. Find (a) ∫C2F⋅dr, (b) the line integral of F from B to A along C2 in reverse, and (c) the line integral of F around the closed loop that goes from A to B along C1 and returns from B to A along C2.
In a conservative field, how do two paths between the same endpoints compare, and what happens to every step vector dr when you walk from B to A instead of A to B?
(a) Because F is conservative, the integral depends only on the endpoints A and B, so ∫C2F⋅dr=7. (b) Reversing the direction from B to A flips every step dr and flips the sign of the integral (path independence still cares which point is the start and which is the end, so don't leave the answer as 7, which would also make the closed loop in part (c) equal 7+7=14): −7. (c) Adding the trip from A to B along C1 and the return trip from B to A along C2 gives 7+(−7)=0. (a) 7, (b) −7, (c) 0
3
Let F(x,y)=⟨3x2y2+2x,2x3y−4y⟩. Verify that F is conservative, find a potential function f(x,y), and evaluate ∫CF⋅dr along the curve r(t)=⟨t+cos(πt),t3+sin(πt)⟩ for 0≤t≤1.
Watch out: cos(0)=1 at t=0, because treating r(0) as (0,0) gives f(0,1)−f(0,0)=−2 instead of −3.
After checking ∂y∂P=∂x∂Q and integrating both partials, which values of t do you need to plug into r(t)?
First check the mixed partial derivatives on the whole plane:
∂y∂P=6x2y=∂x∂Q
They match everywhere on the plane, so F is conservative. Integrating P=3x2y2+2x with respect to x gives x3y2+x2, and integrating Q=2x3y−4y with respect to y gives x3y2−2y2. Combining them without double-counting the shared x3y2 term (which would give 2x3y2+x2−2y2) gives the potential function:
f(x,y)=x3y2+x2−2y2
Now find the endpoints at t=0 and t=1. Watch that cos(0)=1 at t=0, because treating r(0) as (0,0) gives f(0,1)−f(0,0)=−2 instead of −3:
Subtract the starting height from the ending height:
∫CF⋅dr=f(0,1)−f(1,0)=−2−1=−3
4
Evaluate ∫CF⋅dr for F(x,y)=⟨2xy3+y,3x2y2+x⟩ along the curve r(t)=⟨cos(t)+sin(2t),sin(t)+cos(3t)⟩ for 0≤t≤2π.
Watch out: don't miss cos(3⋅0)=1 in the y-component at t=0, which would make r(0) look like (1,0) instead of (1,1) and lead to f(1,1)−f(1,0)=2−0=2.
Check ∂y∂P and ∂x∂Q first, then compare r(0) and r(2π) before spending time finding f(x,y).
Check the mixed partial derivatives on the whole plane:
∂y∂P=6xy2+1=∂x∂Q
So F is conservative. Next check the endpoints at t=0 and t=2π. Don't miss cos(3⋅0)=1 in the y-component at t=0, which would make r(0) look like (1,0) instead of (1,1) and lead to f(1,1)−f(1,0)=2−0=2:
r(0)r(2π)=⟨1+0,0+1⟩=(1,1)=⟨1+0,0+1⟩=(1,1)
Since r(0)=r(2π)=(1,1), the curve is a closed loop in a conservative field, so the line integral is 0.
5
Let F(x,y)=⟨2xy,y2⟩. Show that F has no potential function on the plane, and verify that the path matters by computing ∫CF⋅dr from (0,0) to (1,1) along the line segment r1(t)=⟨t,t⟩ and along the parabola r2(t)=⟨t,t2⟩ for 0≤t≤1.
Once ∂y∂P and ∂x∂Q do not match, write out dr=⟨x′(t),y′(t)⟩dt for each path and integrate F(r(t))⋅r′(t)dt from t=0 to t=1.
Compare the mixed partial derivatives:
∂y∂P=2x=0=∂x∂Q
Since ∂y∂P=∂x∂Q, no potential function exists.
Along the line segment r1(t)=⟨t,t⟩, we have dr1=⟨1,1⟩dt and F(r1(t))=⟨2t2,t2⟩:
∫C1F⋅dr=∫01⟨2t2,t2⟩⋅⟨1,1⟩dt=∫013t2dt=1
Along the parabola r2(t)=⟨t,t2⟩, we have dr2=⟨1,2t⟩dt and F(r2(t))=⟨2t3,t4⟩. Remember to multiply the second component t4 by y′(t)=2t from dr2, because forgetting 2t gives ∫01(2t3+t4)dt=107: