Math Core

Lesson 5.4 · Vector Calculus

Green's theorem

The Fundamental Theorem for Line Integrals handles conservative fields. Green's theorem handles every field in the plane, as long as the curve is closed: it converts a line integral around a closed curve into a double integral over the region inside. Often one side is much easier than the other, and the theorem also gives a neat way to compute areas.

Orientation and the statement

A simple closed curve is a closed curve that doesn't cross itself, like a circle or the outline of a triangle. It is positively oriented if you traverse it counterclockwise, so the enclosed region DD is always on your left. The notation ∮C\oint_C signals that CC is closed.

Green's theorem

Let CC be a positively oriented, piecewise-smooth, simple closed curve in the plane, and let DD be the region it encloses. If PP and QQ have continuous partial derivatives on an open region containing DD, then

∮CP dx+Q dy=∬D(∂Q∂x−∂P∂y)dA.\oint_C P\,dx + Q\,dy = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dA.

The integrand Qx−PyQ_x - P_y measures how much F=⟨P,Q⟩\mathbf{F} = \langle P, Q\rangle circulates around each point. Green's theorem says the circulation around the boundary is the total of all the little circulations inside: neighboring little loops cancel along their shared edges, and only the outer boundary survives.

A special case is worth noticing. If Qx=PyQ_x = P_y everywhere in DD, the right side is 00, which matches what you learned for conservative fields.

Worked example: A square

Evaluate ∮Cxy dx+x2 dy\displaystyle\oint_C xy\,dx + x^2\,dy, where CC is the boundary of the square 0≤x≤10 \le x \le 1, 0≤y≤10 \le y \le 1, oriented counterclockwise.

Doing this directly would take four line integrals, one per side. With Green's theorem, P=xyP = xy and Q=x2Q = x^2, so Qx−Py=2x−x=xQ_x - P_y = 2x - x = x:

∮Cxy dx+x2 dy=∫01 ⁣ ⁣∫01x dy dx=12.\oint_C xy\,dx + x^2\,dy = \int_0^1\!\!\int_0^1 x\,dy\,dx = \frac{1}{2}.

Worked example: When the line integral is hopeless

Evaluate ∮C(sin⁡(x2)−y)dx+(3x+ey2)dy\displaystyle\oint_C \left(\sin(x^2) - y\right)dx + \left(3x + e^{y^2}\right)dy, where CC is the circle x2+y2=4x^2 + y^2 = 4, counterclockwise.

The functions sin⁡(x2)\sin(x^2) and ey2e^{y^2} have no elementary antiderivatives, so a direct parametrization gets stuck. But Qx−Py=3−(−1)=4Q_x - P_y = 3 - (-1) = 4, a constant. So

∮C=∬D4 dA=4⋅area(D)=4⋅4π=16π.\oint_C = \iint_D 4\,dA = 4\cdot\text{area}(D) = 4\cdot 4\pi = 16\pi.
The triangle with vertices (0, 0), (2, 0) and (0, 2). Traversed C₁ → C₂ → C₃, it is positively oriented.Open in grapher →

Worked example: A triangle

Evaluate ∮Cy2 dx+3xy dy\displaystyle\oint_C y^2\,dx + 3xy\,dy, where CC is the triangle with vertices (0,0)(0, 0), (2,0)(2, 0), (0,2)(0, 2), oriented counterclockwise.

Qx−Py=3y−2y=yQ_x - P_y = 3y - 2y = y. The region is 0≤y≤20 \le y \le 2, 0≤x≤2−y0 \le x \le 2 - y:

∬Dy dA=∫02y(2−y) dy=4−83=43.\iint_D y\,dA = \int_0^2 y(2 - y)\,dy = 4 - \frac{8}{3} = \frac{4}{3}.

Computing area with a line integral

Run Green's theorem backwards. If you choose PP and QQ with Qx−Py=1Q_x - P_y = 1, the double integral is just the area of DD. Three convenient choices:

Area formulas

For a positively oriented simple closed curve CC enclosing DD,

Area(D)=∮Cx dy=−∮Cy dx=12∮Cx dy−y dx.\text{Area}(D) = \oint_C x\,dy = -\oint_C y\,dx = \frac{1}{2}\oint_C x\,dy - y\,dx.

Worked example: Area of an ellipse

Find the area enclosed by x2a2+y2b2=1\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} = 1.

Parametrize: x=acos⁡tx = a\cos t, y=bsin⁡ty = b\sin t, 0≤t≤2π0 \le t \le 2\pi. Then dx=−asin⁡t dtdx = -a\sin t\,dt and dy=bcos⁡t dtdy = b\cos t\,dt, so

x dy−y dx=abcos⁡2t dt+absin⁡2t dt=ab dt.x\,dy - y\,dx = ab\cos^2 t\,dt + ab\sin^2 t\,dt = ab\,dt.

The area is 12∫02πab dt=πab\dfrac{1}{2}\displaystyle\int_0^{2\pi} ab\,dt = \pi ab. With a=b=ra = b = r this is the familiar πr2\pi r^2.

Regions with holes

Green's theorem extends to regions with holes, such as an annulus. The boundary then has several pieces, and "positively oriented" still means the region stays on your left: the outer curve goes counterclockwise and each inner curve goes clockwise. Add the line integrals over all the pieces.

Common mistake

Green's theorem assumes counterclockwise orientation. If a problem traverses CC clockwise, the line integral is the negative of ∬D(Qx−Py) dA\iint_D (Q_x - P_y)\,dA. Also check that PP and QQ are defined and smooth on all of DD; a field that blows up inside CC needs the holes version.

Tip

The order in the integrand is "QxQ_x minus PyP_y": the xx-derivative of the dydy coefficient minus the yy-derivative of the dxdx coefficient.

Practice

Practice 1

Evaluate ∮Cx dy\displaystyle\oint_C x\,dy, where CC is the boundary of the rectangle 0≤x≤30 \le x \le 3, 0≤y≤20 \le y \le 2, oriented counterclockwise.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Evaluate ∮C(y+ex) dx+(2x+cos⁡y) dy\displaystyle\oint_C (y + e^x)\,dx + (2x + \cos y)\,dy, where CC is the unit circle, counterclockwise.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Evaluate ∮Cxy dx+x2y dy\displaystyle\oint_C xy\,dx + x^2y\,dy, where CC is the boundary of the square 0≤x≤20 \le x \le 2, 0≤y≤20 \le y \le 2, counterclockwise.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Evaluate ∮C−y dx+x dy\displaystyle\oint_C -y\,dx + x\,dy, where CC is the circle x2+y2=9x^2 + y^2 = 9 traversed clockwise.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Evaluate ∮Cxy dy\displaystyle\oint_C xy\,dy, where CC is the triangle with vertices (0,0)(0, 0), (1,0)(1, 0), (1,2)(1, 2), oriented counterclockwise.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

CC is a positively oriented simple closed curve enclosing a region DD. Which line integral equals the area of DD?

Practice 7

Let DD be the annulus 1≤x2+y2≤41 \le x^2 + y^2 \le 4, with its boundary positively oriented. Evaluate ∮∂D−y3 dx+x3 dy\displaystyle\oint_{\partial D} -y^3\,dx + x^3\,dy.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.