# Green's theorem

In mathematics, Green's theorem gives the relationship between a line integral around a simple closed curve C and a double integral over the plane region D bounded by C. It is named after George Green, though its first proof is due to Bernhard Riemann[1] and is the two-dimensional special case of the more general Kelvin–Stokes theorem.

## Theorem

Let C be a positively oriented, piecewise smooth, simple closed curve in a plane, and let D be the region bounded by C. If L and M are functions of (x, y) defined on an open region containing D and having continuous partial derivatives there, then

${\displaystyle {\scriptstyle C}}$ ${\displaystyle (L\,dx+M\,dy)=\iint _\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\,dx\,dy}$

where the path of integration along C is anticlockwise.[2][3]

In physics, Green's theorem finds many applications. One is solving two-dimensional flow integrals, stating that the sum of fluid outflowing from a volume is equal to the total outflow summed about an enclosing area. In plane geometry, and in particular, area surveying, Green's theorem can be used to determine the area and centroid of plane figures solely by integrating over the perimeter.

## Proof when D is a simple region

If D is a simple type I region with its boundary consisting of the curves C1, C2, C3, C4, half of Green's theorem can be demonstrated.

The following is a proof of half of the theorem for the simplified area D, a type I region where C1 and C3 are curves connected by vertical lines (possibly of zero length). A similar proof exists for the other half of the theorem when D is a type II region where C2 and C4 are curves connected by horizontal lines (again, possibly of zero length). Putting these two parts together, the theorem is thus proven for regions of type III (defined as regions which are both type I and type II). The general case can then be deduced from this special case by decomposing D into a set of type III regions.

If it can be shown that if

${\displaystyle \oint \limits _L\,dx=\iint _\left(-{\frac {\partial L}{\partial y}}\right)\,dA\qquad \mathrm {(1)} }$

and

${\displaystyle \oint \limits _M\,dy=\iint _\left({\frac {\partial M}{\partial x}}\right)\,dA\qquad \mathrm {(2)} }$

are true, then Green's theorem follows immediately for the region D. We can prove (1) easily for regions of type I, and (2) for regions of type II. Green's theorem then follows for regions of type III.

Assume region D is a type I region and can thus be characterized, as pictured on the right, by

${\displaystyle D=\{(x,y)\mid a\leq x\leq b,g_(x)\leq y\leq g_(x)\}}$

where g1 and g2 are continuous functions on [a, b]. Compute the double integral in (1):

${\displaystyle {\begin\iint _{\frac {\partial L}{\partial y}}\,dA&=\int _^\,\int _(x)}^(x)}{\frac {\partial L}{\partial y}}(x,y)\,dy\,dx\\&=\int _^{\Big \{}L(x,g_(x))-L(x,g_(x)){\Big \}}\,dx.\qquad \mathrm {(3)} \end}}$

Now compute the line integral in (1). C can be rewritten as the union of four curves: C1, C2, C3, C4.

With C1, use the parametric equations: x = x, y = g1(x), axb. Then

${\displaystyle \int _}L(x,y)\,dx=\int _^L(x,g_(x))\,dx.}$

With C3, use the parametric equations: x = x, y = g2(x), axb. Then

${\displaystyle \int _}L(x,y)\,dx=-\int _{-C_}L(x,y)\,dx=-\int _^L(x,g_(x))\,dx.}$

The integral over C3 is negated because it goes in the negative direction from b to a, as C is oriented positively (anticlockwise). On C2 and C4, x remains constant, meaning

${\displaystyle \int _}L(x,y)\,dx=\int _}L(x,y)\,dx=0.}$

Therefore,

${\displaystyle {\begin\int _L\,dx&=\int _}L(x,y)\,dx+\int _}L(x,y)\,dx+\int _}L(x,y)\,dx+\int _}L(x,y)\,dx\\&=\int _^L(x,g_(x))\,dx-\int _^L(x,g_(x))\,dx.\qquad \mathrm {(4)} \end}}$

Combining (3) with (4), we get (1) for regions of type I. A similar treatment yields (2) for regions of type II. Putting the two together, we get the result for regions of type III.

## Proof for rectifiable Jordan curves

We are going to prove the following

Theorem. Let ${\displaystyle \Gamma }$ be a rectifiable, positively oriented Jordan curve in ${\displaystyle \mathbf ^}$ and let ${\displaystyle R}$ denote its inner region. Suppose that ${\displaystyle A,B:{\overline }\longrightarrow \mathbf }$ are continuous functions with the property that ${\displaystyle A}$ has second partial derivative at every point of ${\displaystyle R}$, ${\displaystyle B}$ has first partial derivative at every point of ${\displaystyle R}$ and that the functions ${\displaystyle D_B}$, ${\displaystyle D_A:R\longrightarrow \mathbf }$ are Riemann-integrable over ${\displaystyle R}$. Then

${\displaystyle \int _{\Gamma }A\,dx+B\,dy=\int _\,\,\left(D_B(x,y)-D_A(x,y)\right)\,d(x,y).}$

We need the following lemmas:

Lemma 1 (Decomposition Lemma). Assume ${\displaystyle \Gamma }$ is a rectifiable, positively oriented Jordan curve in the plane and let ${\displaystyle R}$ be its inner region. For every positive real ${\displaystyle \delta }$, let ${\displaystyle {\mathcal }(\delta )}$ denote the collection of squares in the plane bounded by the lines ${\displaystyle x=m\delta ,y=m\delta }$, where ${\displaystyle m}$ runs through the set of integers. Then, for this ${\displaystyle \delta }$, there exists a decomposition of ${\displaystyle {\overline }}$ into a finite number of non-overlapping subregions in such a manner that

(i) Each one of the subregions contained in ${\displaystyle R}$, say ${\displaystyle R_,R_,\ldots ,R_}$, is a square from ${\displaystyle {\mathcal }(\delta )}$.

(ii) Each one of the remaining subregions, say ${\displaystyle R_,\ldots ,R_}$, has as boundary a rectifiable Jordan curve formed by a finite number of arcs of ${\displaystyle \Gamma }$ and parts of the sides of some square from ${\displaystyle {\mathcal }(\delta )}$.

(iii) Each one of the border regions ${\displaystyle R_,\ldots ,R_}$ can be enclosed in a square of edge-length ${\displaystyle 2\delta }$.

(iv) If ${\displaystyle \Gamma _}$ is the positively oriented boundary curve of ${\displaystyle R_}$, then ${\displaystyle \Gamma =\Gamma _+\Gamma _+\cdots +\Gamma _.}$

(v) The number ${\displaystyle s-k}$ of border regions is no greater than ${\displaystyle 4\!\left({\frac {\Lambda }{\delta }}+1\right)}$, where ${\displaystyle \Lambda }$ is the length of ${\displaystyle \Gamma }$.

Lemma 2. Let ${\displaystyle \Gamma }$ be a rectifiable curve in the plane and let ${\displaystyle \Delta _{\Gamma }(h)}$ be the set of points in the plane whose distance from (the range of) ${\displaystyle \Gamma }$ is at most ${\displaystyle h}$. The outer Jordan content of this set satisfies ${\displaystyle {\overline }\,\,\Delta _{\Gamma }(h)\leq 2h\Lambda +\pi h^}$.

Lemma 3. Let ${\displaystyle \Gamma }$ be a rectifiable curve in ${\displaystyle \mathbf ^}$ and let ${\displaystyle f:{\text}\Gamma \longrightarrow \mathbf }$ be a continuous function. Then

${\displaystyle \left\vert \int _{\Gamma }f(x,y)\,dy\right\vert }$ and
${\displaystyle \left\vert \int _{\Gamma }f(x,y)\,dx\right\vert }$ are ${\displaystyle \leq {\frac }\Lambda \Omega _,}$where ${\displaystyle \Omega _}$ is the oscillation of ${\displaystyle f}$ on the range of ${\displaystyle \Gamma }$.

Now we are in position to prove the Theorem:

Proof of Theorem. Let ${\displaystyle \varepsilon }$ be an arbitrary positive real number. By continuity of ${\displaystyle A}$, ${\displaystyle B}$ and compactness of ${\displaystyle {\overline }}$, given ${\displaystyle \varepsilon >0}$, there exists ${\displaystyle 0<\delta <1}$ such that whenever two points of ${\displaystyle {\overline }}$ are less than ${\displaystyle 2{\sqrt }\,\delta }$ apart, their images under ${\displaystyle A,B}$ are less than ${\displaystyle \varepsilon }$ apart. For this ${\displaystyle \delta }$, consider the decomposition given by the previous Lemma. We have

${\displaystyle \int _{\Gamma }A\,dx+B\,dy=\sum _^\int _{\Gamma _}A\,dx+B\,dy\quad +\sum _^\int _{\Gamma _}A\,dx+B\,dy.}$

Put ${\displaystyle \varphi :=D_B-D_A}$.

For each ${\displaystyle i\in \}$, the curve ${\displaystyle \Gamma _}$ is a positively oriented square, for which Green's formula holds. Hence

${\displaystyle \sum _^\int _{\Gamma _}A\,dx+B\,dy=\sum _^\int _}\,\,\varphi =\int _{\bigcup _^R_}\,\varphi .}$

Every point of a border region is at a distance no greater than ${\displaystyle 2{\sqrt }\,\delta }$ from ${\displaystyle \Gamma }$. Thus, if ${\displaystyle K}$ is the union of all border regions, then ${\displaystyle K\subset \Delta _{\Gamma }(2{\sqrt }\,\delta )}$; hence ${\displaystyle c(K)\leq {\overline }\,\Delta _{\Gamma }(2{\sqrt }\,\delta )\leq 4{\sqrt }\,\delta +8\pi \delta ^}$, by Lemma 2. Notice that

${\displaystyle \int _\varphi \,\,-\int _{\bigcup _^R_}\varphi =\int _\varphi .}$ This yields
${\displaystyle \left\vert \sum _^\int _{\Gamma _}A\,dx+B\,dy\quad -\int _\varphi \right\vert \leq M\delta (1+\pi {\sqrt }\,\delta ){\text{ for some }}M>0.}$

We may as well choose ${\displaystyle \delta }$ so that the RHS of the last inequality is ${\displaystyle <\varepsilon .}$

The remark in the beginning of this proof implies that the oscillations of ${\displaystyle A}$ and ${\displaystyle B}$ on every border region is at most ${\displaystyle \varepsilon }$. We have

${\displaystyle \left\vert \sum _^\int _{\Gamma _}A\,dx+B\,dy\right\vert \leq {\frac }\varepsilon \sum _^\Lambda _.}$

By Lemma 1(iii),

${\displaystyle \sum _^\Lambda _\leq \Lambda +(4\delta )\,4\!\left({\frac {\Lambda }{\delta }}+1\right)\leq 17\Lambda +16.}$

Combining these, we finally get

${\displaystyle \left\vert \int _{\Gamma }A\,dx+B\,dy\quad -\int _\varphi \right\vert

for some ${\displaystyle C>0}$. Since this is true for every ${\displaystyle \varepsilon >0}$, we are done.

## Validity under different hypotheses

The hypothesis of the last theorem are not the only ones under which Green's formula is true. Another common set of conditions is the following:

The functions ${\displaystyle A,B:{\overline }\longrightarrow \mathbf }$ are still assumed to be continuous. However, we now require them to be Fréchet-differentiable at every point of ${\displaystyle R}$. This implies the existence of all directional derivatives, in particular ${\displaystyle D_}A=:D_A,D_}B=:D_B,\,i=1,2}$, where, as usual, ${\displaystyle (e_,e_)}$ is the canonical ordered basis of ${\displaystyle \mathbf ^}$. In addition, we require the function ${\displaystyle D_B-D_A}$ to be Riemann-integrable over ${\displaystyle R}$.

As a corollary of this, we get the Cauchy Integral Theorem for rectifiable Jordan curves:

Theorem (Cauchy). If ${\displaystyle \Gamma }$ is a rectifiable Jordan curve in ${\displaystyle \mathbf }$ and if ${\displaystyle f:{\text}\Gamma \longrightarrow \mathbf }$ is a continuous mapping holomorphic throughout the inner region of ${\displaystyle \Gamma }$, then

${\displaystyle \int _{\Gamma }f=0,}$

the integral being a complex contour integral.

Proof. We regard the complex plane as ${\displaystyle \mathbf ^}$. Now, define ${\displaystyle u,v:{\overline }\longrightarrow \mathbf }$ to be such that ${\displaystyle f(x+iy)=u(x,y)+iv(x,y).}$ These functions are clearly continuous. It is well known that ${\displaystyle u}$ and ${\displaystyle v}$ are Fréchet-differentiable and that they satisfy the Cauchy-Riemann equations: ${\displaystyle D_v+D_u=D_u-D_v={\text}}$.

Now, analysing the sums used to define the complex contour integral in question, it is easy to realize that

${\displaystyle \int _{\Gamma }f=\int _{\Gamma }u\,dx-v\,dy\quad +i\int _{\Gamma }v\,dx+u\,dy,}$

the integrals on the RHS being usual line integrals. These remarks allow us to apply Green's Theorem to each one of these line integrals, finishing the proof.

### Measure-theoretic assumptions

Green's formula also holds when, besides continuity assumptions,

(i) The functions ${\displaystyle D_A,D_B,\,i=1,2}$, are defined at every point of ${\displaystyle R}$, with the exception of a countable subset.

(ii) The function ${\displaystyle D_B-D_A}$ is Lebesgue-integrable over ${\displaystyle R}$.

## Multiply-connected regions

Theorem. Let ${\displaystyle \Gamma _,\Gamma _,\ldots ,\Gamma _}$ be positively oriented rectifiable Jordan curves in ${\displaystyle \mathbf ^}$ satisfying

${\displaystyle {\begin\Gamma _\subset R_,&&{\text}1\leq i\leq n\\\Gamma _\subset \mathbf ^\smallsetminus {\overline }_,&&{\text}1\leq i,j\leq n{\text{ and }}i\neq j,\end}}$

where ${\displaystyle R_}$ is the inner region of ${\displaystyle \Gamma _}$. Let

${\displaystyle D=R_\smallsetminus ({\overline }_\cup {\overline }_\cup \cdots \cup {\overline }_).}$

Suppose ${\displaystyle p:{\overline }\longrightarrow \mathbf }$ and ${\displaystyle q:{\overline }\longrightarrow \mathbf }$ are continuous functions whose restriction to ${\displaystyle D}$ is Fréchet-differentiable. If the function

${\displaystyle (x,y)\longmapsto {\frac {\partial q}{\partial e_}}(x,y)-{\frac {\partial p}{\partial e_}}(x,y)}$

is Riemann-integrable over ${\displaystyle D}$, then

${\displaystyle {\begin&\int _{\Gamma _}p(x,y)\,dx+q(x,y)\,dy-\sum _^\int _{\Gamma _}p(x,y)\,dx+q(x,y)\,dy\\[5pt]={}&\int _\left\{{\frac {\partial q}{\partial e_}}(x,y)-{\frac {\partial p}{\partial e_}}(x,y)\right\}\,d(x,y).\end}}$

## Relationship to Stokes' theorem

Green's theorem is a special case of the Kelvin–Stokes theorem, when applied to a region in the ${\displaystyle xy}$-plane.

We can augment the two-dimensional field into a three-dimensional field with a z component that is always 0. Write F for the vector-valued function ${\displaystyle \mathbf =(L,M,0)}$. Start with the left side of Green's theorem:

${\displaystyle \oint _(L\,dx+M\,dy)=\oint _(L,M,0)\cdot (dx,dy,dz)=\oint _\mathbf \cdot d\mathbf .}$

The Kelvin–Stokes theorem:

${\displaystyle \oint _\mathbf \cdot d\mathbf =\iint _\nabla \times \mathbf \cdot \mathbf {\hat } \,dS.}$

The surface ${\displaystyle S}$ is just the region in the plane ${\displaystyle D}$, with the unit normal ${\displaystyle \mathbf {\hat } }$ pointing up (in the positive ${\displaystyle z}$ direction) to match the "positive orientation" definitions for both theorems.

The expression inside the integral becomes

${\displaystyle \nabla \times \mathbf \cdot \mathbf {\hat } =\left[\left({\frac {\partial 0}{\partial y}}-{\frac {\partial M}{\partial z}}\right)\mathbf +\left({\frac {\partial L}{\partial z}}-{\frac {\partial 0}{\partial x}}\right)\mathbf +\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\mathbf \right]\cdot \mathbf =\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right).}$

Thus we get the right side of Green's theorem

${\displaystyle \iint _\nabla \times \mathbf \cdot \mathbf {\hat } \,dS=\iint _\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\,dA.}$

Green's theorem is also a straightforward result of the general Stokes' theorem using differential forms and exterior derivatives:

${\displaystyle {\begin&\oint _L\,dx+M\,dy=\oint _{\partial D}\omega =\int _\,d\omega \\[5pt]={}&\int _{\frac {\partial L}{\partial y}}\,dy\wedge \,dx+{\frac {\partial M}{\partial x}}\,dx\wedge \,dy=\iint _\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\,dx\,dy.\end}}$

## Relationship to the divergence theorem

Considering only two-dimensional vector fields, Green's theorem is equivalent to the two-dimensional version of the divergence theorem:

${\displaystyle \iiint _\left(\mathbf {\nabla } \cdot \mathbf \right)\,dV=}$ ${\displaystyle \partial \scriptstyle V}$ ${\displaystyle (\mathbf \cdot \mathbf {\hat } )\,dS.}$

where ${\displaystyle \nabla \cdot \mathbf }$ is the divergence on the two-dimensional vector field ${\displaystyle \mathbf }$, and ${\displaystyle \mathbf {\hat } }$ is the outward-pointing unit normal vector on the boundary.

To see this, consider the unit normal ${\displaystyle \mathbf {\hat } }$ in the right side of the equation. Since in Green's theorem ${\displaystyle d\mathbf =(dx,dy)}$ is a vector pointing tangential along the curve, and the curve C is the positively oriented (i.e. anticlockwise) curve along the boundary, an outward normal would be a vector which points 90° to the right of this; one choice would be ${\displaystyle (dy,-dx)}$. The length of this vector is ${\displaystyle {\sqrt +dy^}}=ds.}$ So ${\displaystyle (dy,-dx)=\mathbf {\hat } \,ds.}$

${\displaystyle \oint _(L\,dx+M\,dy)=\oint _(M,-L)\cdot (dy,-dx)=\oint _(M,-L)\cdot \mathbf {\hat } \,ds.}$

Applying the two-dimensional divergence theorem with ${\displaystyle \mathbf =(M,-L)}$, we get the right side of Green's theorem:

${\displaystyle \oint _(M,-L)\cdot \mathbf {\hat } \,ds=\iint _\left(\nabla \cdot (M,-L)\right)\,dA=\iint _\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\,dA.}$

## Area calculation

Green's theorem can be used to compute area by line integral.[4] The area of a planar region ${\displaystyle D}$ is given by

${\displaystyle A=\iint _dA.}$

Choose ${\displaystyle L}$ and ${\displaystyle M}$ such that ${\displaystyle {\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}=1}$, the area is given by

${\displaystyle A=\oint _(L\,dx+M\,dy).}$

Possible formulas for the area of ${\displaystyle D}$ include[4]

${\displaystyle A=\oint _x\,dy=-\oint _y\,dx={\tfrac }\oint _(-y\,dx+x\,dy).}$