Skip to content

Green's Theorem

In this lesson you’ll learn Green’s Theorem, which connects a line integral around a closed curve to a double integral over the region inside. This is the first of the three big theorems of vector calculus (Green’s, Stokes’, and the Divergence Theorem), and it’s a game-changer for computing integrals.

Imagine a closed curve C in the plane that encloses a region D. You’re walking along C counterclockwise (this is called positive orientation). Green’s Theorem says that the line integral of a vector field around C equals a double integral over D.

If C is a positively oriented (counterclockwise), piecewise smooth, simple closed curve enclosing a region D, and F=P,Q\mathbf{F} = \langle P, Q \rangle has continuous partial derivatives on an open region containing D, then

CPdx+Qdy=D(QxPy)dA\oint_C P \, dx + Q \, dy = \iint_D \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) dA

The left side is a line integral around the boundary. The right side is a double integral over the interior. Green’s Theorem says they’re equal.

The power of Green’s Theorem is that it lets you choose whichever side is easier to compute. Often the double integral on the right is much simpler than parametrizing the boundary curve on the left. Sometimes it goes the other way. The theorem gives you options.

The expression QxPy\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} is the 2D version of curl. It measures how much the vector field “rotates” at each point. When you integrate this over the entire region D, you get the total circulation around the boundary C. Green’s Theorem is saying: the total rotation inside equals the total circulation around the edge.

Green’s Theorem needs:

  • C must be closed (starts and ends at the same point)
  • C must be positively oriented (counterclockwise)
  • C must be simple (doesn’t cross itself)
  • P and Q must have continuous partial derivatives on and inside C

Example 1: Line integral via Green’s Theorem

Evaluate C(x2+y)dx+(3xy)dy\oint_C (x^2 + y)\,dx + (3x - y)\,dy where C is the unit circle traversed counterclockwise.

Here P=x2+yP = x^2 + y and Q=3xyQ = 3x - y

Compute the partial derivatives:

Qx=3Py=1\frac{\partial Q}{\partial x} = 3 \qquad \frac{\partial P}{\partial y} = 1

The integrand for Green’s Theorem is

QxPy=31=2\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 3 - 1 = 2

Now the double integral over the unit disk D:

D2dA=2(area of unit disk)=2π\iint_D 2 \, dA = 2 \cdot \text{(area of unit disk)} = 2\pi

That’s it. Instead of parametrizing the unit circle and computing a messy line integral, Green’s Theorem turned it into multiplying a constant by the area of a circle.

Example 2: Computing area with Green’s Theorem

Green’s Theorem can compute the area of a region. If you choose P = -y and Q = x, then

QxPy=1(1)=2\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 1 - (-1) = 2

So Green’s Theorem gives

Cydx+xdy=D2dA=2Area(D)\oint_C -y\,dx + x\,dy = \iint_D 2\,dA = 2 \cdot \text{Area}(D)

Dividing both sides by 2:

Area(D)=12Cydx+xdy\text{Area}(D) = \frac{1}{2}\oint_C -y\,dx + x\,dy

This is the shoelace-style area formula. It computes the area enclosed by any closed curve using only a line integral around the boundary. Surveyors and computer graphics algorithms use this idea to compute areas of irregular polygons.

Example 3: Verifying Green’s Theorem on a square

Let F=y,  0\mathbf{F} = \langle y,\; 0 \rangle and let C be the boundary of the unit square with corners at (0,0), (1,0), (1,1), (0,1), traversed counterclockwise.

The green edges contribute zero to the line integral (either y = 0 on the bottom, or dx = 0 on the vertical sides). The orange top edge is the only one that contributes, giving -1. The labels show each edge’s contribution.

The double integral side: P=yP = y and Q=0,Q = 0, so

QxPy=01=1\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 0 - 1 = -1 D(1)dA=1(area of unit square)=1\iint_D (-1)\,dA = -1 \cdot \text{(area of unit square)} = -1

The line integral side: we need to compute Cydx+0dy=Cydx\oint_C y\,dx + 0\,dy = \oint_C y\,dx along the four edges.

  • Bottom edge (y = 0, x from 0 to 1): 010dx=0\int_0^1 0\,dx = 0
  • Right edge (x = 1, dx = 0): contributes 0
  • Top edge (y = 1, x from 1 to 0): 101dx=1\int_1^0 1\,dx = -1
  • Left edge (x = 0, dx = 0): contributes 0

Total line integral = 0 + 0 + (-1) + 0 = -1

Both sides give -1. Green’s Theorem checks out.

Green’s Theorem connects boundaries to interiors, which is useful whenever you can measure one more easily than the other:

  • Physics uses it to relate circulation of a fluid around a boundary to the total vorticity (rotation) inside the region
  • Computer graphics uses the area formula from Example 2 to compute areas of arbitrary polygons from their vertex coordinates
  • Engineering uses it to convert difficult boundary measurements into simpler area integrals for stress analysis and heat flow
  • Game development uses it for efficient area calculations of irregular shapes, flow field analysis, and determining whether points are inside closed boundaries
Green's Theorem relates
For $P = x^2 + y$ and $Q = 3x - y$, the Green's Theorem integrand $\partial Q/\partial x - \partial P/\partial y$ equals
Green's Theorem requires the curve C to be oriented
The area of a region D can be computed using Green's Theorem as
The expression $\partial Q/\partial x - \partial P/\partial y$ in Green's Theorem represents