4.3 Green’s Theorem

We will now see a way of evaluating the line integral of a smooth vector field around a simple closed curve. A vector field \(\textbf{f}(x,y) = P(x,y)\,\textbf{i} + Q(x,y)\,\textbf{j}\) is smooth if its component functions \(P(x,y)\) and \(Q(x,y)\) are smooth. We will use Green’s Theorem (sometimes called Green’s Theorem in the plane) to relate the line integral around a closed curve with a double integral over the region inside the curve:

Theorem 4.7

(Green’s Theorem) Let \(R\) be a region in \(\Real{2}\) whose boundary is a simple closed curve \(C\) which is piecewise smooth. Let \(\textbf{f}(x,y) = P(x,y)\,\textbf{i} + Q(x,y)\,\textbf{j}\) be a smooth vector field defined on both \(R\) and \(C\). Then

\begin{equation} \olineintvec{C}{f}{r} ~=~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) \,dA ~, \tag{4.21}\end{equation}

where \(C\) is traversed so that \(R\) is always on the left side of \(C\).

proof[Proof:] We will prove the theorem in the case for a simple region \(R\), that is, where the boundary curve \(C\) can be written as \(C = \ssub{C}1 \cup \ssub{C}{2}\) in two distinct ways:

\begin{align} \ssub{C}{1} &= \text{the curve $y = \ssub{y}{1}(x)$ from the point $\ssub{X}{1}$ to the point $\ssub{X}{2}$}\tag{4.22}\\ \ssub{C}{2} &= \text{the curve $y = \ssub{y}{2}(x)$ from the point $\ssub{X}{2}$ to the point $\ssub{X}{1}$,} \tag{4.23}\end{align}

where \(\ssub{X}{1}\) and \(\ssub{X}{2}\) are the points on \(C\) farthest to the left and right, respectively; and

\begin{align} \ssub{C}{1} &= \text{the curve $x = \ssub{x}{1}(y)$ from the point $\ssub{Y}{2}$ to the point $\ssub{Y}{1}$}\tag{4.24}\\ \ssub{C}{2} &= \text{the curve $x = \ssub{x}{2}(y)$ from the point $\ssub{Y}{1}$ to the point $\ssub{Y}{2}$,} \tag{4.25}\end{align}

where \(\ssub{Y}{1}\) and \(\ssub{Y}{2}\) are the lowest and highest points, respectively, on \(C\). See Figure 4.3.1.

tikzpicture arrows [black!60,line width=0.3pt,-latex,anchor=base] (0,0) -- (5,0) node[black,shift=(0,-0.4)] at (1,0) a node[black,shift=(0,-0.4)] at (4.2,0) b; [black!60,line width=0.3pt,-latex] (0,0) -- (0,5); 4.90.20 [center,center]x 0.24.90 [center,center]y [black,line width=1.2pt,fill=black!10] (1,2.5) to[out=90,in=180] node [sloped] (2.5,4) to[out=0,in=90] (4.2,3) to[out=270,in=0] node [sloped] (2,1) to[out=180,in=270] (1,2.5); [above] at (3,4) y = y2(x); [below] at (2.5,1) y = y1(x); [right] at (4.2,3) x = x2(y); [left] at (1,2.5) x = x1(y); [below] at (2.5,4) Y2; [above] at (2,1) Y1; [left] at (4.2,3) X2; [right] at (1,2.5) X1; [right] at (2.5,2.5) R; [left] at (4,1.5) C; [dashed] (1,0) -- (1,4); [dashed] (4.2,0) -- (4.2,4); [dashed] (0,4) -- (4.2,4); [dashed] (0,1) -- (4.2,1); [left] at (0,4) d; [left] at (0,1) c; (1,2.5) circle (2pt); (2.5,4) circle (2pt); (4.2,3) circle (2pt); (2,1) circle (2pt); tikzpicture

inside


Integrate \(P(x,y)\) around \(C\) using the representation \(C = \ssub{C}{1} \cup \ssub{C}{2}\) given by (4.22) and (4.23). Since \(y = \ssub{y}{1}(x)\) along \(\ssub{C}{1}\) (as \(x\) goes from \(a\) to \(b\)) and \(y = \ssub{y}{2}(x)\) along \(\ssub{C}{2}\) (as \(x\) goes from \(b\) to \(a\)), as we see from Figure 4.3.1, then we have

\begin{align*} \oint_C P(x,y)\,dx ~&=~ \int_{\ssub{C}{1}} P(x,y)\,dx ~+~ \int_{\ssub{C}{2}} P(x,y)\,dx\\ &=~ \int_a^b P(x,\ssub{y}{1}(x))\,dx ~+~ \int_b^a P(x,\ssub{y}{2}(x))\,dx\\ &=~ \int_a^b P(x,\ssub{y}{1}(x))\,dx ~-~ \int_a^b P(x,\ssub{y}{2}(x))\,dx\\[6pt] &=~ -\int_a^b \left( P(x,\ssub{y}{2}(x)) ~-~ P(x,\ssub{y}{1}(x)) \right)\,dx\\[6pt] &=~ -\int_a^b \left( P(x,y) \,\Big|_{y = \ssub{y}{1}(x)}^{y = \ssub{y}{2}(x)} \,\right)\,dx\\[6pt] &=~ -\int_a^b \int_{\ssub{y}{1}(x)}^{\ssub{y}{2}(x)} \frac{\partial P(x,y)}{\partial y}\,dy\,dx ~~\text{(by the Fundamental Theorem of Calculus)}\\[6pt] &=~ -\iint\limits_{R} \frac{\partial P}{\partial y}\,dA ~. \end{align*}

Likewise, integrate \(Q(x,y)\) around \(C\) using the representation \(C = \ssub{C}{1} \cup \ssub{C}{2}\) given by (4.24) and (4.25). Since \(x = \ssub{x}{1}(y)\) along \(\ssub{C}{1}\) (as \(y\) goes from \(d\) to \(c\)) and \(x = \ssub{x}{2}(y)\) along \(\ssub{C}{2}\) (as \(y\) goes from \(c\) to \(d\)), as we see from Figure 4.3.1, then we have

\begin{align*} \oint_C Q(x,y)\,dy ~&=~ \int_{\ssub{C}{1}} Q(x,y)\,dy ~+~ \int_{\ssub{C}{2}} Q(x,y)\,dy\\ &=~ \int_d^c Q(\ssub{x}{1}(y),y)\,dy ~+~ \int_c^d Q(\ssub{x}{2}(y),y)\,dy\\ &=~ -\int_c^d Q(\ssub{x}{1}(y),y)\,dy ~+~ \int_c^d Q(\ssub{x}{2}(y),y)\,dy\\[6pt] &=~ \int_c^d \left( Q(\ssub{x}{2}(y),y) ~-~ Q(\ssub{x}{1}(y),y) \right)\,dy\\[6pt] &=~ \int_c^d \left( Q(x,y) \,\Big|_{x = \ssub{x}{1}(y)}^{x = \ssub{x}{2}(y)} \,\right)\,dy\\[6pt] &=~ \int_c^d \int_{\ssub{x}{1}(y)}^{\ssub{x}{2}(y)} \frac{\partial Q(x,y)}{\partial x}\,dx\,dy ~~\text{(by the Fundamental Theorem of Calculus)}\\[6pt] &=~ \iint\limits_{R} \frac{\partial Q}{\partial x}\,dA ~,~\text{and so} \end{align*}

\begin{align*} \olineintvec{C}{f}{r} ~&=~ \oint_C P(x,y)\,dx + \oint_C Q(x,y)\,dy\\[6pt] &=~ -\iint\limits_{R} \frac{\partial P}{\partial y}\,dA + \iint\limits_{R} \frac{\partial Q}{\partial x}\,dA\\[6pt] &=~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~. \end{align*}

Though we proved Green’s Theorem only for a simple region \(R\), the theorem can also be proved for more general regions (say, a union of simple regions).[1]


width height 0.5pt

Example 4.7

Evaluate \(\oint_{C} (x^2 + y^2 )\,dx + 2xy\,dy\), where \(C\) is the boundary (traversed counterclockwise) of the region \(R = \lbrace\,(x,y): 0 \le x \le 1,~2x^2 \le y \le 2x \,\rbrace\).

tikzpicture arrows [fill=black!10] (0,0) parabola (1,2) -- (0,0); [black!60,line width=0.3pt,-latex] (-0.5,0) -- (2,0); [black!60,line width=0.3pt,-latex] (0,-0.5) -- (0,2.5); 1.90.20 [center,center]x 0.22.40 [center,center]y -0.2-0.20 [center,center]0 [line width=1pt] (0,0) parabola (1,2); [line width=1pt,-latex] (0,0) parabola (0.5,0.5); [line width=1pt] (0,0) -- (1,2); [line width=1pt,-latex] (1,2) -- (0.5,1); [right,above] at (1,2) (1,2); [left] at (0,2) 2; [below] at (1,0) 1; at (1,1) C; (0,0) circle (1.7pt); (1,2) circle (1.7pt); tikzpicture

Solution: \(R\) is the shaded region in Figure 4.3.2. By Green’s Theorem, for \(P(x,y)=x^2 + y^2\) and \(Q(x,y)=2xy\), we have

\begin{align*} \oint_C (x^2 + y^2 )\,dx + 2xy\,dy ~&=~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA\\ &=~ \iint\limits_{R} (2y - 2y)\,dA ~=~ \iint\limits_{R} 0\,dA ~=~ 0 ~. \end{align*}

We actually already knew that the answer was zero. Recall from Example 4.5 in Section 4.2 that the vector field \(\textbf{f}(x,y) = ( x^2 + y^2 )\,\textbf{i} + 2xy\,\textbf{j}\) has a potential function \(F(x,y)=\frac{1}{3}x^3 + xy^2\), and so \(\olineintvec{C}{f}{r} = 0\) by Corollary 4.6.


width height 0.5pt

Example 4.8

Let \(\textbf{f}(x,y) = P(x,y)\,\textbf{i} + Q(x,y)\,\textbf{j}\), where

\[P(x,y) = \frac{-y}{x^2 + y^2} \quad\text{and}\quad Q(x,y) = \frac{x}{x^2 + y^2} ~,\]

and let \(R =\lbrace\,(x,y): 0 < x^2 + y^2 \le 1\,\rbrace\). For the boundary curve \(C:x^2 + y^2 = 1\), traversed counterclockwise, it was shown in Exercise 9(b) in Section 4.2 that \(\olineintvec{C}{f}{r} = 2\pi\). But

\[\frac{\partial Q}{\partial x} ~=~ \frac{y^2 - x^2}{(x^2 + y^2 )^2} ~=~ \frac{\partial P}{\partial y} ~ \Rightarrow ~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~=~ \iint\limits_{R} 0 \,dA = 0~.\]

This would seem to contradict Green’s Theorem. However, note that \(R\) is not the entire region enclosed by \(C\), since the point \((0,0)\) is not contained in \(R\). That is, \(R\) has a “hole” at the origin, so Green’s Theorem does not apply.

tikzpicture arrows [black,line width=1.2pt,fill=black!10] (0:0) circle (2); [black,line width=1.2pt,fill=white] (0:0) circle (0.5); [black!60,line width=0.3pt,-latex] (-3,0) -- (3,0,0); [black!60,line width=0.3pt,-latex] (0,-2.5) -- (0,3,0); 2.90.20 [center,center]x; 0.22.90 [center,center]y; 0.15-0.20 [center,center]0; [above right] at (1.5,1.5) C1; [right] at (0.35,0.35) C2; [above left] at (0,2) 1; [below right] at (2,0) 1; [above left] at (0,0.5) 1/2; [below right] at (0.5,0) 1/2; at (1.05,1.05) R; [rotate=45] at (-0.3536,0.3536) ; [rotate=-45] at (1.4142,1.4142) ; tikzpicture

If we modify the region \(R\) to be the annulus \(R =\lbrace\,(x,y): 1/4 \le x^2 + y^2 \le 1\,\rbrace\) (see Figure 4.3.3), and take the “boundary” \(C\) of \(R\) to be \(C = \ssub{C}{1} \cup \ssub{C}{2}\), where \(\ssub{C}{1}\) is the unit circle \(x^2 + y^2 = 1\) traversed counterclockwise and \(\ssub{C}{2}\) is the circle \(x^2 + y^2 = 1/4\) traversed clockwise, then it can be shown (see Exercise 8) that

\[\olineintvec{C}{f}{r} ~=~ 0 ~.\]

We would still have \(\iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA = 0\), so for this \(R\) we would have

\[\olineintvec{C}{f}{r} ~=~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~,\]

which shows that Green’s Theorem holds for the annular region \(R\).


width height 0.5pt

It turns out that Green’s Theorem can be extended to multiply connected regions, that is, regions like the annulus in Example 4.8, which have one or more regions cut out from the interior, as opposed to discrete points being cut out. For such regions, the “outer” boundary and the “inner” boundaries are traversed so that \(R\) is always on the left side.

tikzpicture arrows [black,line width=1.2pt,fill=black!10] (0:0) circle (2); [black,line width=1.2pt,fill=white] (0:0) circle (0.5); [above right] at (1.5,1.5) C1; [above] at (0,0.5) C2; at (0,1.35) R1; at (0,-1.35) R2; [rotate=45] at (-0.3536,0.3536) ; [rotate=45] at (0.3536,-0.3536) ; [rotate=-45] at (1.4142,1.4142) ; [rotate=-45] at (-1.4142,-1.4142) ; [dashed] (0.5,0) -- (2,0); [dashed] (-0.5,0) -- (-2,0); [-latex] (1.05,0.15) -- (1.45,0.15); [latex-] (1.05,-0.15) -- (1.45,-0.15); [-latex] (-1.45,0.15) -- (-1.05,0.15); [latex-] (-1.45,-0.15) -- (-1.05,-0.15); tikzpicture

(a) Region \(R\) with one hole

tikzpicture arrows [black,line width=1.2pt,fill=black!10] (0,0) ellipse (2.5 and 2); [black,line width=1.2pt,fill=white] (-1,0) circle (0.5); [black,line width=1.2pt,fill=white] (1,0) circle (0.5); [above right] at (1.5,1.6) C1; [above] at (1,0.5) C2; [above] at (-1,0.5) C3; at (0,1.35) R1; at (0,-1.35) R2; [rotate=45] at (-1.3536,0.3536) ; [rotate=45] at (0.6464,0.3536) ; [rotate=45] at (-0.6464,-0.3536) ; [rotate=45] at (1.3536,-0.3536) ; [rotate=-31] at (1.5,1.6) ; [rotate=-31] at (-1.5,-1.6) ; [dashed] (2.5,0) -- (1.5,0); [dashed] (0.5,0) -- (-0.5,0); [dashed] (-1.5,0) -- (-2.5,0); [-latex] (1.8,0.15) -- (2.2,0.15); [latex-] (1.8,-0.15) -- (2.2,-0.15); [-latex] (-0.2,0.15) -- (0.2,0.15); [latex-] (-0.2,-0.15) -- (0.2,-0.15); [-latex] (-2.2,0.15) -- (-1.8,0.15); [latex-] (-2.2,-0.15) -- (-1.8,-0.15); tikzpicture

(b) Region \(R\) with two holes
Figure 4.3.1Multiply connected regions

The intuitive idea for why Green’s Theorem holds for multiply connected regions is shown in Figure 4.3.1 above. The idea is to cut “slits” between the boundaries of a multiply connected region \(R\) so that \(R\) is divided into subregions which do not have any “holes”. For example, in Figure 4.3.1(a) the region \(R\) is the union of the regions \(\ssub{R}{1}\) and \(\ssub{R}{2}\), which are divided by the slits indicated by the dashed lines. Those slits are part of the boundary of both \(\ssub{R}{1}\) and \(\ssub{R}{2}\), and we traverse then in the manner indicated by the arrows. Notice that along each slit the boundary of \(\ssub{R}{1}\) is traversed in the opposite direction as that of \(\ssub{R}{2}\), which means that the line integrals of f along those slits cancel each other out. Since \(\ssub{R}{1}\) and \(\ssub{R}{2}\) do not have holes in them, then Green’s Theorem holds in each subregion, so that

\[\olineintvec{\substack{\text{bdy}\\\text{of}~\ssub{R}{1}}}{f}{r} ~=~ \iint\limits_{\ssub{R}{1}} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA \quad\text{and}\quad \olineintvec{\substack{\text{bdy}\\\text{of}~\ssub{R}{2}}}{f}{r} ~=~ \iint\limits_{\ssub{R}{2}} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~.\]

But since the line integrals along the slits cancel out, we have

\[\olineintvec{\ssub{C}{1} \cup \ssub{C}{2}}{f}{r} ~=~ \olineintvec{\substack{\text{bdy}\\\text{of}~\ssub{R}{1}}}{f}{r} ~+~ \olineintvec{\substack{\text{bdy}\\\text{of}~\ssub{R}{2}}}{f}{r} ~,\]

and so

\[\olineintvec{\ssub{C}{1} \cup \ssub{C}{2}}{f}{r} ~=~ \iint\limits_{\ssub{R}{1}} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~+~ \iint\limits_{\ssub{R}{2}} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~=~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~,\]

which shows that Green’s Theorem holds in the region \(R\). A similar argument shows that the theorem holds in the region with two holes shown in Figure 4.3.1(b).

We know from Corollary 4.6 that when a smooth vector field \(\textbf{f}(x,y) = P(x,y)\,\textbf{i} + Q(x,y)\,\textbf{j}\) on a region \(R\) (whose boundary is a piecewise smooth, simple closed curve \(C\)) has a potential in \(R\), then \(\olineintvec{C}{f}{r} = 0\). And if the potential \(F(x,y)\) is smooth in \(R\), then \(\frac{\partial F}{\partial x} = P\) and \(\frac{\partial F}{\partial y} = Q\), and so we know that

\[\frac{\partial^2 F}{\partial y \,\partial x} = \frac{\partial^2 F}{\partial x \,\partial y} ~\Rightarrow~ \frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} ~~\text{in $R$.}\]

Conversely, if \(\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}\) in \(R\) then

\[\olineintvec{C}{f}{r} ~=~ \iint\limits_{R} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right)\,dA ~=~ \iint\limits_{R} 0\,dA ~=~ 0 ~.\]

For a simply connected region \(R\) (i.e. a region with no holes), the following can be shown:

The following statements are equivalent for a simply connected region \(R\) in \(\Real{2}\):

  1. \(\textbf{f}(x,y) ~=~ P(x,y)\,\textbf{i} + Q(x,y)\,\textbf{j}\) has a smooth potential \(F(x,y)\) in \(R\)

  2. \(\displaystyle{\lineintvec{C}{f}{r}}\) is independent of the path for any curve \(C\) in \(R\)

  3. \(\displaystyle{\olineintvec{C}{f}{r}} ~=~ 0\) for every simple closed curve \(C\) in \(R\)

  4. \(\dfrac{\partial P}{\partial y} = \dfrac{\partial Q}{\partial x}\) in \(R\) (in this case, the differential form \(P\,dx + Q\,dy\) is exact)

Exercises

A

For Exercises 1-4, use Green’s Theorem to evaluate the given line integral around the curve \(C\), traversed counterclockwise.

  1. \(\displaystyle\oint_C (x^2 - y^2 )\,dx + 2xy\,dy\); \(C\) is the boundary of \(R = \lbrace\,(x,y): 0 \le x \le 1,~2x^2 \le y \le 2x \,\rbrace\)

  2. \(\displaystyle\oint_C x^2 y\,dx + 2xy\,dy\); \(C\) is the boundary of \(R = \lbrace\,(x,y): 0 \le x \le 1,~x^2 \le y \le x \,\rbrace\)

  3. \(\displaystyle\oint_C 2y\,dx - 3x\,dy\); \(C\) is the circle \(x^2 + y^2 = 1\)

  4. \(\displaystyle\oint_C (e^{x^2} + y^2 )\,dx + (e^{y^2} + x^2 )\,dy\); \(C\) is the boundary of the triangle with vertices \((0,0)\), \((4,0)\) and \((0,4)\)

  5. Is there a potential \(F(x,y)\) for \(\textbf{f}(x,y) = (y^2 + 3x^2 )\,\textbf{i} + 2xy\,\textbf{j}\)? If so, find one.

  6. Is there a potential \(F(x,y)\) for \(\textbf{f}(x,y) = (x^3 \cos (xy) + 2x \sin (xy))\,\textbf{i} + x^2 y \cos (xy)\,\textbf{j}\)? If so, find one.

  7. Is there a potential \(F(x,y)\) for \(\textbf{f}(x,y) = (8xy+3)\,\textbf{i} + 4(x^2 + y)\,\textbf{j}\)? If so, find one.

  8. Show that for any constants \(a\), \(b\) and any closed simple curve \(C\), \(\displaystyle\oint_C a\,dx + b\,dy = 0\).

B

  1. For the vector field f as in Example 4.8, show directly that \(\olineintvec{C}{f}{r} = 0\), where \(C\) is the boundary of the annulus \(R =\lbrace\,(x,y): 1/4 \le x^2 + y^2 \le 1\,\rbrace\) traversed so that \(R\) is always on the left.

  2. Evaluate \(\displaystyle\oint_C e^x \,\sin y\,dx + (y^3 + e^x \,\cos y)\,dy\), where \(C\) is the boundary of the rectangle with vertices \((1,-1)\), \((1,1)\), \((-1,1)\) and \((-1,-1)\), traversed counterclockwise.

C

  1. For a region \(R\) bounded by a simple closed curve \(C\), show that the area \(A\) of \(R\) is

    \[A ~=~ -\oint_C y\,dx ~=~ \oint_C x\,dy ~=~ \frac{1}{2}\oint_C x\,dy - y\,dx ~,\]

    where \(C\) is traversed so that \(R\) is always on the left. (Hint: Use Green’s Theorem and the fact that \(A = \iint\limits_{R} 1\,dA\).)


  1. See [§ 15.31]tm for a discussion of some of the difficulties involved when the boundary curve is “complicated”.