# Green's theorem

Part of a series of articles about :
Calculus :
$\int _{a}^{b}f'(t)\,dt=f(b)-f(a)$ :
Fundamental theorem
Limits
Continuity
Rolle's theorem
Mean value theorem
Inverse function theorem :
Differential
Definitions
Derivative (generalizations)
Differential
infinitesimal
of a function
total
Concepts
Differentiation notation
Second derivative
Implicit differentiation
Logarithmic differentiation
Related rates
Taylor's theorem
Rules and identities
Sum
Product
Chain
Power
Quotient
L'Hôpital's rule
Inverse
General Leibniz
Faà di Bruno's formula
Reynolds :
Integral
Lists of integrals
Integral transform
Leibniz integral rule
Definitions
Antiderivative
Integral (improper)
Riemann integral
Lebesgue integration
Contour integration
Integral of inverse functions
Integration by
Parts
Discs
Cylindrical shells
Substitution (trigonometric, tangent half-angle, Euler)
Euler's formula
Partial fractions (Heaviside's method)
Changing order
Reduction formulae
Differentiating under the integral sign
Risch algorithm :
Series
Geometric (arithmetico-geometric)
Harmonic
Alternating
Power
Binomial
Taylor
Convergence tests
Summand limit (term test)
Ratio
Root
Integral
Direct comparison
Limit comparison
Alternating series
Cauchy condensation
Dirichlet
Abel :
Vector
Gradient
Divergence
Curl
Laplacian
Directional derivative
Identities
Theorems
Gradient
Green's
Stokes'
Divergence
generalized Stokes
Helmholtz decomposition :
Multivariable
Formalisms
Matrix
Tensor
Exterior
Geometric
Definitions
Partial derivative
Multiple integral
Line integral
Surface integral
Volume integral
Jacobian
Hessian :
Advanced
Calculus on Euclidean space
Generalized functions
Limit of distributions :
Specialized
Fractional
Malliavin
Stochastic
Variations :
Miscellanea
Precalculus
History
Glossary
List of topics
Integration Bee
Mathematical analysis
Nonstandard analysis :
vte :
In vector calculus, Green's theorem relates a line integral around a simple closed curve C to a double integral over the plane region D (surface in $\mathbb {R} ^{2}$) bounded by C. It is the two-dimensional special case of Stokes' theorem (surface in $\mathbb {R} ^{3}$). In one dimension, it is equivalent to the fundamental theorem of calculus. In three dimensions, it is equivalent to the divergence 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 have continuous partial derivatives there, then
$\oint _{C}(L\,dx+M\,dy)=\iint _{D}\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)dA$
where the path of integration along C is counterclockwise.

## Application

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

The following is a proof of half of the theorem for the simplified area D, a type I region where C$_1$ and C$_3$ 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 C$_2$ and C$_4$ 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
and
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 $D=\{(x,y)\mid a\leq x\leq b,g_{1}(x)\leq y\leq g_{2}(x)\}$ where g$_1$ and g$_2$ are continuous functions on [a, b]. Compute the double integral in (1):
Now compute the line integral in (1). C can be rewritten as the union of four curves: C$_1$, C$_2$, C$_3$, C$_4$.
With C$_1$, use the parametric equations: x = x, y = g$_1$(x), a ≤ x ≤ b. Then $\int _{C_{1}}L(x,y)\,dx=\int _{a}^{b}L(x,g_{1}(x))\,dx.$
With C$_3$, use the parametric equations: x = x, y = g$_2$(x), a ≤ x ≤ b. Then $\int _{C_{3}}L(x,y)\,dx=-\int _{-C_{3}}L(x,y)\,dx=-\int _{a}^{b}L(x,g_{2}(x))\,dx.$
The integral over C$_3$ is negated because it goes in the negative direction from b to a, as C is oriented positively (anticlockwise). On C$_2$ and C$_4$, x remains constant, meaning $\int _{C_{4}}L(x,y)\,dx=\int _{C_{2}}L(x,y)\,dx=0.$
Therefore,
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 $\Gamma$ be a rectifiable, positively oriented Jordan curve in $\mathbb {R} ^{2}$ and let $R$ denote its inner region. Suppose that $A,B:{\overline {R}}\to \mathbb {R}$ are continuous functions with the property that $A$ has second partial derivative at every point of $R$, $B$ has first partial derivative at every point of $R$ and that the functions $D_{1}B,D_{2}A:R\to \mathbb {R}$ are Riemann-integrable over $R$. Then $\int _{\Gamma }(A\,dx+B\,dy)=\int _{R}\left(D_{1}B(x,y)-D_{2}A(x,y)\right)\,d(x,y).$
We need the following lemmas whose proofs can be found in:
Lemma 1 (Decomposition Lemma) — Assume $\Gamma$ is a rectifiable, positively oriented Jordan curve in the plane and let $R$ be its inner region. For every positive real $\delta$, let ${\mathcal {F}}(\delta )$ denote the collection of squares in the plane bounded by the lines $x=m\delta ,y=m\delta$, where $m$ runs through the set of integers. Then, for this $\delta$, there exists a decomposition of ${\overline {R}}$ into a finite number of non-overlapping subregions in such a manner that
* Each one of the subregions contained in $R$, say $R_{1},R_{2},\ldots ,R_{k}$, is a square from ${\mathcal {F}}(\delta )$.
* Each one of the remaining subregions, say $R_{k+1},\ldots ,R_{s}$, has as boundary a rectifiable Jordan curve formed by a finite number of arcs of $\Gamma$ and parts of the sides of some square from ${\mathcal {F}}(\delta )$.
* Each one of the border regions $R_{k+1},\ldots ,R_{s}$ can be enclosed in a square of edge-length $2\delta$.
* If $\Gamma _{i}$ is the positively oriented boundary curve of $R_{i}$, then $\Gamma =\Gamma _{1}+\Gamma _{2}+\cdots +\Gamma _{s}.$
* The number $s-k$ of border regions is no greater than 4( Λ/δ+1){\textstyle 4\!\left({\frac {\Lambda }{\delta }}+1\right)}, where $\Lambda$ is the length of $\Gamma$.
Lemma 2 — Let $\Gamma$ be a rectifiable curve in the plane and let $\Delta _{\Gamma }(h)$ be the set of points in the plane whose distance from (the range of) $\Gamma$ is at most $h$. The outer Jordan content of this set satisfies ${\overline {c}}\,\,\Delta _{\Gamma }(h)\leq 2h\Lambda +\pi h^{2}$.
Lemma 3 — Let $\Gamma$ be a rectifiable curve in $\mathbb {R} ^{2}$ and let $f:{\text{range of }}\Gamma \to \mathbb {R}$ be a continuous function. Then $\left\vert \int _{\Gamma }f(x,y)\,dy\right\vert \leq {\frac {1}{2}}\Lambda \Omega _{f},$ and $\left\vert \int _{\Gamma }f(x,y)\,dx\right\vert \leq {\frac {1}{2}}\Lambda \Omega _{f},$ where $\Omega _{f}$ is the oscillation of $f$ on the range of $\Gamma$.
Now we are in position to prove the theorem:
Proof of Theorem. Let $\varepsilon$ be an arbitrary positive real number. By continuity of $A$, $B$ and compactness of ${\overline {R}}$, given $\varepsilon >0$, there exists $0<\delta <1$ such that whenever two points of ${\overline {R}}$ are less than $2{\sqrt {2}}\,\delta$ apart, their images under $A,B$ are less than $\varepsilon$ apart. For this $\delta$, consider the decomposition given by the previous Lemma. We have $\int _{\Gamma }A\,dx+B\,dy=\sum _{i=1}^{k}\int _{\Gamma _{i}}A\,dx+B\,dy\quad +\sum _{i=k+1}^{s}\int _{\Gamma _{i}}A\,dx+B\,dy.$
Put $\varphi :=D_{1}B-D_{2}A$.
For each $i\in \{1,\ldots ,k\}$, the curve $\Gamma _{i}$ is a positively oriented square, for which Green's formula holds. Hence $\sum _{i=1}^{k}\int _{\Gamma _{i}}A\,dx+B\,dy=\sum _{i=1}^{k}\int _{R_{i}}\varphi =\int _{\bigcup _{i=1}^{k}R_{i}}\,\varphi .$
Every point of a border region is at a distance no greater than $2{\sqrt {2}}\,\delta$ from $\Gamma$. Thus, if $K$ is the union of all border regions, then $K\subset \Delta _{\Gamma }(2{\sqrt {2}}\,\delta )$; hence $c(K)\leq {\overline {c}}\,\Delta _{\Gamma }(2{\sqrt {2}}\,\delta )\leq 4{\sqrt {2}}\,\delta +8\pi \delta ^{2}$, by Lemma 2. Notice that $\int _{R}\varphi \,\,-\int _{\bigcup _{i=1}^{k}R_{i}}\varphi =\int _{K}\varphi .$ This yields $\left\vert \sum _{i=1}^{k}\int _{\Gamma _{i}}A\,dx+B\,dy\quad -\int _{R}\varphi \right\vert \leq M\delta (1+\pi {\sqrt {2}}\,\delta ){\text{ for some }}M>0.$
We may as well choose $\delta$ so that the RHS of the last inequality is $<\varepsilon .$
The remark in the beginning of this proof implies that the oscillations of $A$ and $B$ on every border region is at most $\varepsilon$. We have $\left\vert \sum _{i=k+1}^{s}\int _{\Gamma _{i}}A\,dx+B\,dy\right\vert \leq {\frac {1}{2}}\varepsilon \sum _{i=k+1}^{s}\Lambda _{i}.$
By Lemma 1(iii), $\sum _{i=k+1}^{s}\Lambda _{i}\leq \Lambda +(4\delta )\,4\!\left({\frac {\Lambda }{\delta }}+1\right)\leq 17\Lambda +16.$
Combining these, we finally get $\left\vert \int _{\Gamma }A\,dx+B\,dy\quad -\int _{R}\varphi \right\vert <C\varepsilon ,$ for some $C>0$. Since this is true for every $\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 $A,B:{\overline {R}}\to \mathbb {R}$ are still assumed to be continuous. However, we now require them to be Fréchet-differentiable at every point of $R$. This implies the existence of all directional derivatives, in particular $D_{e_{i}}A=:D_{i}A,D_{e_{i}}B=:D_{i}B,\,i=1,2$, where, as usual, $(e_{1},e_{2})$ is the canonical ordered basis of $\mathbb {R} ^{2}$. In addition, we require the function $D_{1}B-D_{2}A$ to be Riemann-integrable over $R$.
As a corollary of this, we get the Cauchy Integral Theorem for rectifiable Jordan curves:
Theorem (Cauchy) — If $\Gamma$ is a rectifiable Jordan curve in $\mathbb {C}$ and if $f:{\text{closure of inner region of }}\Gamma \to \mathbb {C}$ is a continuous mapping holomorphic throughout the inner region of $\Gamma$, then $\int _{\Gamma }f=0,$ the integral being a complex contour integral.
We regard the complex plane as $\mathbb {R} ^{2}$. Now, define $u,v:{\overline {R}}\to \mathbb {R}$ to be such that $f(x+iy)=u(x,y)+iv(x,y).$ These functions are clearly continuous. It is well known that $u$ and $v$ are Fréchet-differentiable and that they satisfy the Cauchy-Riemann equations: $D_{1}v+D_{2}u=D_{1}u-D_{2}v={\text{zero function}}$.
Now, analyzing the sums used to define the complex contour integral in question, it is easy to realize that $\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.

## Multiply-connected regions

Theorem. Let $\Gamma _{0},\Gamma _{1},\ldots ,\Gamma _{n}$ be positively oriented rectifiable Jordan curves in $\mathbb {R} ^{2}$ satisfying ${\begin{aligned}\Gamma _{i}\subset R_{0},&&{\text{if }}1\leq i\leq n\\\Gamma _{i}\subset \mathbb {R} ^{2}\setminus {\overline {R}}_{j},&&{\text{if }}1\leq i,j\leq n{\text{ and }}i\neq j,\end{aligned}}$ where $R_{i}$ is the inner region of $\Gamma _{i}$. Let $D=R_{0}\setminus ({\overline {R}}_{1}\cup {\overline {R}}_{2}\cup \cdots \cup {\overline {R}}_{n}).$
Suppose $p:{\overline {D}}\to \mathbb {R}$ and $q:{\overline {D}}\to \mathbb {R}$ are continuous functions whose restriction to $D$ is Fréchet-differentiable. If the function $(x,y)\longmapsto {\frac {\partial q}{\partial e_{1}}}(x,y)-{\frac {\partial p}{\partial e_{2}}}(x,y)$ is Riemann-integrable over $D$, then ${\begin{aligned}&\int _{\Gamma _{0}}p(x,y)\,dx+q(x,y)\,dy-\sum _{i=1}^{n}\int _{\Gamma _{i}}p(x,y)\,dx+q(x,y)\,dy\\[5pt]=&\int _{D}\left\{{\frac {\partial q}{\partial e_{1}}}(x,y)-{\frac {\partial p}{\partial e_{2}}}(x,y)\right\}\,d(x,y).\end{aligned}}$

## Relationship to Stokes' theorem

Green's theorem is a special case of the Kelvin–Stokes theorem, when applied to a region in the $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 $\mathbf {F} =(L,M,0)$. Start with the left side of Green's theorem: $\oint _{C}(L\,dx+M\,dy)=\oint _{C}(L,M,0)\cdot (dx,dy,dz)=\oint _{C}\mathbf {F} \cdot d\mathbf {r} .$
The Kelvin–Stokes theorem: $\oint _{C}\mathbf {F} \cdot d\mathbf {r} =\iint _{S}\nabla \times \mathbf {F} \cdot \mathbf {\hat {n}} \,dS.$
The surface $S$ is just the region in the plane $D$, with the unit normal $\mathbf {\hat {n}}$ defined (by convention) to have a positive z component in order to match the "positive orientation" definitions for both theorems.
The expression inside the integral becomes $\nabla \times \mathbf {F} \cdot \mathbf {\hat {n}} =\left[\left({\frac {\partial 0}{\partial y}}-{\frac {\partial M}{\partial z}}\right)\mathbf {i} +\left({\frac {\partial L}{\partial z}}-{\frac {\partial 0}{\partial x}}\right)\mathbf {j} +\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\mathbf {k} \right]\cdot \mathbf {k} =\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right).$
Thus we get the right side of Green's theorem $\iint _{S}\nabla \times \mathbf {F} \cdot \mathbf {\hat {n}} \,dS=\iint _{D}\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: $\oint _{C}L\,dx+M\,dy=\oint _{\partial D}\!\omega =\int _{D}d\omega =\int _{D}{\frac {\partial L}{\partial y}}\,dy\wedge \,dx+{\frac {\partial M}{\partial x}}\,dx\wedge \,dy=\iint _{D}\left({\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}\right)\,dx\,dy.$

## 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:
    $\iint _{D}\left(\nabla \cdot \mathbf {F} \right)dA=\oint _{C}\mathbf {F} \cdot \mathbf {\hat {n}} \,ds,$
where $\nabla \cdot \mathbf {F}$ is the divergence on the two-dimensional vector field $\mathbf {F}$, and $\mathbf {\hat {n}}$ is the outward-pointing unit normal vector on the boundary.
To see this, consider the unit normal $\mathbf {\hat {n}}$ in the right side of the equation. Since in Green's theorem $d\mathbf {r} =(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 $(dy,-dx)$. The length of this vector is √(dx$^2$+dy$^2$)=ds.{\textstyle {\sqrt {dx^{2}+dy^{2}}}=ds.} So $(dy,-dx)=\mathbf {\hat {n}} \,ds.$
Start with the left side of Green's theorem: $\oint _{C}(L\,dx+M\,dy)=\oint _{C}(M,-L)\cdot (dy,-dx)=\oint _{C}(M,-L)\cdot \mathbf {\hat {n}} \,ds.$ Applying the two-dimensional divergence theorem with $\mathbf {F} =(M,-L)$, we get the right side of Green's theorem: $\oint _{C}(M,-L)\cdot \mathbf {\hat {n}} \,ds=\iint _{D}\left(\nabla \cdot (M,-L)\right)\,dA=\iint _{D}\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. The area of a planar region $D$ is given by $A=\iint _{D}dA.$
Choose $L$ and $M$ such that ${\frac {\partial M}{\partial x}}-{\frac {\partial L}{\partial y}}=1$, the area is given by $A=\oint _{C}(L\,dx+M\,dy).$
Possible formulas for the area of $D$ include $A=\oint _{C}x\,dy=-\oint _{C}y\,dx={\tfrac {1}{2}}\oint _{C}(-y\,dx+x\,dy).$

## History

It is named after George Green, who stated a similar result in an 1828 paper titled An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism. In 1846, Augustin-Louis Cauchy published a paper stating Green's theorem as the penultimate sentence. This is in fact the first printed version of Green's theorem in the form appearing in modern textbooks. George Green, An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism (Nottingham, England: T. Wheelhouse, 1828). Green did not actually derive the form of "Green's theorem" which appears in this article; rather, he derived a form of the "divergence theorem", which appears on pages 10–12 of his Essay. In 1846, the form of "Green's theorem" which appears in this article was first published, without proof, in an article by Augustin Cauchy: A. Cauchy (1846) "Sur les intégrales qui s'étendent à tous les points d'une courbe fermée" (On integrals that extend over all of the points of a closed curve), Comptes rendus, 23: 251–255. (The equation appears at the bottom of page 254, where (S) denotes the line integral of a function k along the curve s that encloses the area S.) A proof of the theorem was finally provided in 1851 by Bernhard Riemann in his inaugural dissertation: Bernhard Riemann (1851) Grundlagen für eine allgemeine Theorie der Functionen einer veränderlichen complexen Grösse (Basis for a general theory of functions of a variable complex quantity), (Göttingen, (Germany): Adalbert Rente, 1867); see pages 8–9.