How to use Green’s theorem to evaluate a line integral

When a line integral follows a closed path, we can sometimes do the work over the region inside it instead. We’ll use Green’s theorem to make that switch and see what the result tells us about the path.

Check the curve and its orientation

Let C be a simple, closed, piecewise smooth curve that bounds a region R. Take C counterclockwise, so the interior stays on your left as you travel. If P and Q have continuous first partial derivatives on an open set containing R and its boundary, Green’s theorem gives

∮CPdx+Qdy=∬R(∂Q∂x-∂P∂y)dA

We differentiate Q with respect to x, subtract the partial derivative of P with respect to y, and integrate over R. For a clockwise curve, the line integral is the negative of the counterclockwise result.

Example: Find the circulation around a square

Take P(x,y)=2x2+4y and Q(x,y)=x2-5y3. The curve goes counterclockwise around the square with both coordinates between -1 and 1. The two functions are polynomials, so their first partial derivatives are continuous on and around the square.

Counterclockwise boundary of the square from −1 to 1The square has corners at negative one, negative one; one, negative one; one, one; and negative one, one. The arrows go right along the bottom, up the right edge, left along the top, and down the left edge.(−1, 1)(1, 1)(−1, −1)(1, −1)yxR
On the counterclockwise path, the shaded square stays on your left.
∂Q∂x=2x,∂P∂y=4

The new integrand is 2x-4. Since it’s constant with respect to y, integrating in y across an interval of length 2 gives 4x-8.

∬R(2x-4)dA=∫-11∫-11(2x-4)dydx=∫-11(4x-8)dx=-16

The integral of 4x is zero on the symmetric interval, and the constant -8 contributes -16. That’s the circulation for this vector field. For the opposite direction, the circulation is 16.

When does Green’s theorem give area?

To find area, the double integral needs integrand 1. We can choose P=0 and Q=x, so ∂Q∂x-∂P∂y=1. Then the counterclockwise integral ∮Cxdy gives the area of R. For this square, the area is 2·2=4 square units.