Multivariable CalculusLine Integrals and Green's Theorem6 of 7
Line Integrals and Green's Theorem · 6
Green's Theorem
Suppose we want to find the circulation ∮C(Pdx+Qdy) of a vector field ⟨P,Q⟩ around a closed loop C. Walking the boundary directly can be hard if the path has corners we have to split into pieces, or if the functions have no simple antiderivative.
1
Why Interior Edges Cancel
To find the total circulation around a closed loop C (the circle on ∮C just marks that the path closes back on itself), we don't actually have to walk the boundary. Instead, we can chop the region inside the loop into tiny counter-clockwise squares and add up the circulation around all of them.
Why Interior Edges Cancel
No matter how the outer loop is shaped, every interior edge is shared by two neighboring squares and walked twice in opposite directions, so the inside edges cancel out and leave only the unshared arrows along the outer perimeter.
When you add up the counter-clockwise loops around the squares inside a shape, all the shared inner edges cancel out, leaving only the circulation around the outside boundary.
2
The Microscopic Paddlewheel and 2D Curl
To add up the circulation of all the tiny squares across the interior region R, we first need a way to measure the counter-clockwise swirl inside a single microscopic square of width dx and height dy.
The Microscopic Paddlewheel and 2D Curl
A paddlewheel at the center of the square only spins when opposite edges feel different pushes: counter-clockwise when upward flow Q is stronger on the right, and clockwise when rightward flow P is stronger on the top.
The paddlewheel doesn't care how fast the water moves overall, and only spins when opposite sides of its square feel different pushes.
Multiplying that swirl per unit area by the tiny square's area dA and adding up all the squares across the interior region R gives Green's Theorem:
∮C(Pdx+Qdy)=∬R2D curl (swirl per unit area)(∂x∂Q−∂y∂P)dA
This also shows why ∂x∂Q=∂y∂P tells you a vector field is conservative: when those derivatives match, the curl ∂x∂Q−∂y∂P is zero at every tiny paddlewheel inside, so the circulation around any closed loop wrapping a solid region is zero.
3
Constant Curl on a Polygon
Let's evaluate a closed line integral around a triangle where walking the three sides directly would force us to set up three separate integrals and integrate esinx and ln(y2+1):
∮C[(2y+esinx)dx+(5x+ln(y2+1))dy]
where C is the boundary of the triangle with vertices (0,0),(2,0), and (2,4), oriented counter-clockwise.
Example: Constant Curl on a Triangle
Text solution
Drop terms that push equally on opposite edges to find the 2D curlBecause esinx in P does not change with y and ln(y2+1) in Q does not change with x, both drop out when we take the partial derivatives:
Factor out the constant curl and multiply by the triangle's areaBecause every point inside the triangle has the same swirl of 3 per unit area, the double integral is 3 times the area of the right triangle with base 2 and height 4:
So the circulation around the triangle is 12, without parameterizing a single side or integrating esinx and ln(y2+1).
4
Variable Curl Between Two Curves
When the curl still contains x or y, the swirl is different at different points in the region, so we have to set up and evaluate the double integral over R. Here we want to find the circulation
∮C(y2dx+3xydy)
where C follows the parabola y=x2 from (0,0) to (1,1) and returns to (0,0) along the line y=x.
Example: Variable Curl Between Two Curves
Text solution
Subtract the partial derivatives to find the variable curlSubtracting the rate of change of P=y2 with respect to y from the rate of change of Q=3xy with respect to x gives a curl that grows with y:
∂x∂Q−∂y∂P=∂x∂(3xy)−∂y∂(y2)=3y−2y=y
Slice the region vertically from y=x2 to y=x and integrateFor each x from 0 to 1, a vertical slice runs from the parabola y=x2 at the bottom to the line y=x at the top:
So the total circulation around the loop between the parabola and the line is 151.
If a region R is a disk or a ring and the curl has x2+y2 in it, switch the double integral into polar coordinates using x2+y2=r2 and dA=rdrdθ.
5
Clockwise Loops and Regions with Holes
Everything so far has walked a single outer boundary counter-clockwise around a solid region. Now we need to handle two changes to the boundary: walking a loop clockwise, or surrounding a region R that has an interior hole.
Clockwise Loops and Regions with Holes
Removing squares to open an interior hole exposes the inner edges of the surrounding squares, and their un-canceled arrows automatically link up into a clockwise loop around the hole.
When we walk every water square counter-clockwise, cutting a hole leaves the edges around it un-canceled so they point clockwise around the hole, keeping the water on your left.
Walking a loop clockwise reverses every step (dx→−dx and dy→−dy), which flips the sign of the line integral:
∮C,CW(Pdx+Qdy)=−∬R(∂x∂Q−∂y∂P)dA
When a region R has an outer boundary Couter and an inner hole Cinner, the un-canceled edges of the tiny squares trace the outer boundary counter-clockwise and the inner hole clockwise:
If a problem gives you the circulation around an inner hole oriented counter-clockwise, flip its sign first to get ∮Cinner,CW before adding the two boundary pieces together.
6
Finding Area by Walking the Boundary
Sometimes we want to find the area of a region R, which is ∬R1dA, when the inside is awkward to slice but the boundary curve C is easy to trace. By picking a simple vector field whose curl ∂x∂Q−∂y∂P equals 1 everywhere, we can run Green's Theorem in reverse and find the area of the inside by walking the perimeter counter-clockwise.
Finding Area by Walking the Boundary
As we trace counter-clockwise around the boundary, walking up the right side sweeps out horizontal strips of width x from the y-axis, and walking down the left side subtracts the exact strips outside the shape, leaving the exact area trapped inside.
Walking up the right edge adds the area all the way from the y-axis, and walking down the left edge subtracts the extra area outside the shape.
Any of these three counter-clockwise line integrals has a constant curl of 1 and measures the area enclosed by C:
Area(R)=∮Cxdy=∮C−ydx=21∮C(xdy−ydx)
Using the symmetric third formula lets us find the area inside the ellipse a2x2+b2y2=1 without solving for y=b1−x2/a2 or doing a trig substitution.
Text solution
Parameterize the ellipse counter-clockwise and find dx and dyStretching the unit circle by a horizontally and b vertically traces the boundary once as t runs from 0 to 2π:
xy=acost,=bsint,dxdy=−asintdt=bcostdt
Substitute into the symmetric area integral and simplify with cos2t+sin2t=1The symmetric form gives cos2t and sin2t the exact same factor ab:
So the area enclosed by an ellipse with semi-axes a and b is πab.
Key concepts
Picturing Green's Theorem
Whenever you see a line integral ∮C(Pdx+Qdy) around a closed loop C (if the path is not closed, Green's Theorem does not apply), start by computing the 2D curl∂x∂Q−∂y∂P using the paddlewheel picture: upward flow Q stronger on the right spins counter-clockwise (+∂x∂Q), and rightward flow P stronger on the top spins clockwise (−∂y∂P). Any term in P with no y or in Q with no x, like esinxdx or ln(y2+1)dy, pushes equally on opposite sides of every square and drops out right away.
What the curl simplifies to tells you what to do next:
Zero curl everywhere (∂x∂Q=∂y∂P)
Stop right there, because you don't need to set up bounds for the region. As long as C encloses a solid region without holes, the circulation ∮C[(2xy+x2)dx+(x2−siny)dy] is immediately 0.
Constant curl (∂x∂Q−∂y∂P=k)
Don't set up integral bounds if you already know the area of R; pull k out and multiply k⋅Area(R), as in ∬R3dA=3⋅21(2)(4)=12.
Variable curl
Set up the double integral ∬R(∂x∂Q−∂y∂P)dA over R, slicing vertically or horizontally for curves like y=x2 and y=x, or switching to polar coordinates (dA=rdrdθ) when R is a disk or ring and the curl involves x2+y2.
Orientation and holes
Positive orientation always keeps R on your left, counter-clockwise on the outer edge and clockwise around any interior hole. If a single loop is walked clockwise, put a minus sign in front of the double integral; if R has a hole, add ∮Couter,CCW+∮Cinner,CW=∬R(∂x∂Q−∂y∂P)dA.
Running it in reverse for area
When you want the area of a shape whose boundary C is already parameterized counter-clockwise, skip the double integral and walk the perimeter with Area=∮Cxdy=∮C−ydx=21∮C(xdy−ydx).
7
Practice
1
Evaluate ∮C[(4y+cos(x3))dx+(7x+ey2)dy], where C is the boundary of the triangle with vertices (0,0),(3,0), and (3,2), oriented counter-clockwise.
Watch the order of subtraction: taking ∂y∂P−∂x∂Q=4−7=−3 flips the sign and gives the wrong answer −9.Be careful not to forget the 21 in the triangle area 21(3)(2)=3, which would give 3×6=18.
Check which terms in P actually change with y and which terms in Q change with x. Once you have the curl, is it a constant or a variable?
The cos(x3) term in P has no y and the ey2 term in Q has no x, so both drop out when we compute the curl:
∂x∂Q−∂y∂P=7−4=3
(Watch the order of subtraction: taking ∂y∂P−∂x∂Q=4−7=−3 flips the sign and gives the wrong answer −9.) Because the curl is a constant 3 everywhere inside the counter-clockwise triangle, Green's Theorem multiplies 3 by the area of the right triangle with base 3 and height 2 (be careful not to forget the 21 in the triangle area 21(3)(2)=3, which would give 3×6=18):
∬R3dA=3⋅21(3)(2)=9
2
Evaluate ∮C[(2xy+x2)dx+(x2−siny)dy], where C is the five-sided polygon with vertices (0,0),(4,1),(5,4),(2,6), and (−1,3), oriented counter-clockwise.
Before splitting the five-sided polygon into pieces or parameterizing its five sides, compute the 2D curl ∂x∂Q−∂y∂P inside.
Taking the partial derivative of Q=x2−siny with respect to x gives ∂x∂Q=2x, and taking the partial derivative of P=2xy+x2 with respect to y gives ∂y∂P=2x (watch out for differentiating the +x2 term in P with respect to x instead of y, which would leave an extra 2x and give a non-zero curl of −2x). Subtracting the two gives the curl everywhere inside the polygon:
∂x∂Q−∂y∂P=2x−2x=0
Integrating 0 over the interior of the polygon gives:
∬R0dA=0
3
Evaluate ∮C(−y2dx+xydy), where C is the closed loop that follows the parabola y=x2 from (0,0) to (2,4) and then returns to (0,0) along the line y=2x.
Dropping the double negative and writing y−2y=−y is the most common mistake here and leads to −1532.Keep 2x on top so the sign doesn't flip to −532.
Find the curl ∂x∂Q−∂y∂P (watch the minus sign on P=−y2). Between x=0 and x=2, which curve is on top: y=2x or y=x2?
Here ∂x∂Q=y and ∂y∂P=−2y, so subtracting gives the curl:
∂x∂Q−∂y∂P=y−(−2y)=3y
(Dropping the double negative and writing y−2y=−y is the most common mistake here and leads to −1532.) Between the intersections (0,0) and (2,4), the line y=2x lies above the parabola y=x2 while x runs from 0 to 2 (be sure to use the x-coordinate 2 rather than the y-coordinate 4 as the outer upper bound, and keep 2x on top so the sign doesn't flip to −532):
Evaluate ∮C(−31y3dx+31x3dy), where C is the circle x2+y2=4 oriented clockwise.
Because C is walked clockwise, Green's Theorem puts a minus sign in front of the double integral (forgetting the clockwise minus sign gives +8π).Leaving off the extra r in dA integrates r2 instead of r3 and gives −316π.Using r=4 instead of r=2 gives −128π.
Notice the orientation of C, and check how the curl simplifies when converted to polar coordinates on a circle of radius r=?.
The curl inside the circle is:
∂x∂Q−∂y∂P=x2−(−y2)=x2+y2
Because C is walked clockwise, Green's Theorem puts a minus sign in front of the double integral (forgetting the clockwise minus sign gives +8π). Switching to polar coordinates on the disk x2+y2≤4 of radius r=2, we replace x2+y2 with r2 and dA with rdrdθ (leaving off the extra r in dA integrates r2 instead of r3 and gives −316π, while using r=4 instead of r=2 gives −128π):
A region R lies between an outer square Couter of side length 4 and an inner circular hole Cinner of radius 1 completely inside the square. Throughout R, the vector field ⟨P,Q⟩ has constant curl ∂x∂Q−∂y∂P=5. If the circulation around the inner circle oriented counter-clockwise is ∮Cinner,CCW(Pdx+Qdy)=7, find the circulation around the outer square oriented counter-clockwise, ∮Couter,CCW(Pdx+Qdy).
Plugging +7 directly into Green's Theorem without flipping its sign is an easy mistake and gives 73−5π.
To keep the region R on your left, which way must you walk around the inner hole, and what does that do to the given value of 7?
Keeping the region R on your left requires orienting the outer square counter-clockwise and the inner circular hole clockwise, which flips the given inner circulation from +7 to ∮Cinner,CW(Pdx+Qdy)=−7 (plugging +7 directly into Green's Theorem without flipping its sign is an easy mistake and gives 73−5π). The area of R is the square's area minus the circular hole's area, 42−π(1)2=16−π, so Green's Theorem gives:
Use a Green's Theorem area line integral to find the area enclosed by the loop C parameterized counter-clockwise by x=t−t2,y=t2−t3 for 0≤t≤1.
Pick one of the area line integrals, such as ∮Cxdy. How do you express dy in terms of t and dt?
Using Area=∮Cxdy, we differentiate y=t2−t3 to get dy=(2t−3t2)dt (be careful to use the derivative y′(t)dt=(2t−3t2)dt rather than plugging in y(t)dt=(t2−t3)dt, which would give the wrong answer 301):