Skip to main content
Logo image

Section 10.6 Green’s theorem

Note: 1 lecture, requires Chapter 9
One of the most important theorems in the calculus of several variables is the so-called generalized Stokes’ theorem, a generalization of the fundamental theorem of calculus. The two-dimensional version is called Green’s theorem
 1 
Named after the British mathematical physicist George Green (1793–1841).
. We will state the theorem in general, but we will only prove a special, but important, case.

Definition 10.6.1.

Let UR2 be a bounded connected open set. Suppose the boundary U is a disjoint union of (the images of) finitely many simple closed piecewise smooth paths such that every pU is in the closure of R2U. Then U is called a bounded domain with piecewise smooth boundary in R2.
The condition about points outside the closure says that locally U separates R2 into an “inside” and an “outside.” The condition prevents U from being just a “cut” inside U. As we travel along the path in a certain orientation, there is a well-defined left and a right, and either U is on the left and the complement of U is on the right, or vice versa. The orientation on U is the direction in which we travel along the paths. We can switch orientation if needed by reparametrizing the path.

Definition 10.6.2.

Let UR2 be a bounded domain with piecewise smooth boundary, let U be oriented , and let γ:[a,b]R2 be a parametrization of U giving the orientation. Write γ(t)=(x(t),y(t)). If the vector n(t):=(y(t),x(t)) points into the domain, that is, ϵn(t)+γ(t) is in U for all small enough ϵ>0, then U is positively oriented. See Figure 10.14. Otherwise it is negatively oriented.

Figure 10.14. Positively oriented domain (left), and a positively oriented domain with a hole (right).

The vector n(t) turns γ(t) counterclockwise by 90, that is, to the left. When we travel along a positively oriented boundary in the direction of its orientation, the domain is “on our left.” For example, if U is a bounded domain with “no holes,” that is, U is connected, then the positive orientation means we are traveling counterclockwise around U. If we do have “holes,” then we travel around them clockwise.

Proof.

We must show that U is a null set. As U is a finite union of piecewise smooth paths, which are finite unions of smooth paths, we need only show that a smooth path in R2 is a null set. Let γ:[a,b]R2 be a smooth path. It is enough to show that γ((a,b)) is a null set, as adding the points γ(a) and γ(b), to a null set still results in a null set. Define
f:(a,b)×(1,1)R2,asf(x,y):=γ(x).
The set (a,b)×{0} is a null set in R2 and γ((a,b))=f((a,b)×{0}). By Proposition 10.3.10, γ((a,b)) is a null set in R2 and so γ([a,b]) is a null set, and so finally U is a null set.
We stated Green’s theorem in general, although we will only prove a special version of it. That is, we will only prove it for a special kind of domain. The general version follows from the special case by application of further geometry, and cutting up the general domain into smaller domains on which to apply the special case.
Let UR2 be a bounded domain with piecewise smooth boundary. We say U is of type I if there exist numbers a<b, and continuous functions f:[a,b]R and g:[a,b]R, such that
U:={(x,y)R2:a<x<b and f(x)<y<g(x)}.
Similarly, U is of type II if there exist numbers c<d, and continuous functions h:[c,d]R and k:[c,d]R, such that
U:={(x,y)R2:c<y<d and h(y)<x<k(y)}.
Finally, UR2 is of type III if it is both of type I and type II. See Figure 10.15.

Figure 10.15. Domain types for Green’s theorem.

Common domains to apply Green’s theorem to are rectangles and discs, and these are type III domains. We will only prove Green’s theorem for type III domains.

Proof.

(Proof of Green’s theorem for U of type III) Let f,g,h,k be the functions defined above. Using Proposition 10.5.8, U is Jordan measurable and as U is of type I, then
U(Py)=abg(x)f(x)(Py(x,y))dydx=ab(P(x,f(x))+P(x,g(x)))dx=abP(x,g(x))dxabP(x,f(x))dx.
We integrate Pdx along the boundary. The one-form Pdx integrates to zero along the straight vertical lines in the boundary. Therefore, it is only integrated along the top and along the bottom. As a parameter, x runs from left to right. If we use the parametrizations that take x to (x,f(x)) and to (x,g(x)), we recognize path integrals above. However, the second path integral is in the wrong direction; the top should be going right to left. After switching this orientation, we find
UPdx=abP(x,g(x))dx+baP(x,f(x))dx=U(Py).
Similarly, U is also of type II. The form Qdy integrates to zero along horizontal lines. So
UQx=cdk(y)h(y)Qx(x,y)dxdy=ab(Q(y,h(y))Q(y,k(y)))dx=UQdy.
Putting the two computations together, we obtain
UPdx+Qdy=UPdx+UQdy=U(Py)+UQx=U(QxPy).
Let us see how one can use the simple version of Green’s (type III domains only) for a more complex path.

Example 10.6.5.

Suppose P(x,y)=yx2+y2, Q(x,y)=xx2+y2. If we think of (P,Q) as a vector, so that we have a so-called vector field, (P,Q) is called the vortex vector field, as it gives the velocity of particles traveling in a vortex around the origin. Variations on this vector field come up often in applications. Suppose that γ is a path that goes counterclockwise around a rectangle whose interior contains the origin. We claim
γyx2+y2dx+xx2+y2dy=2π.
First we draw a circle C of radius r>0 centered at the origin such that the entire circle is within γ and oriented clockwise. Consider U to be the domain between γ and C. See Figure 10.16. The integral around U is the integral around γ plus the integral around C. Now U is not a domain of type III, so we cannot just apply the version of Green’s theorem we actually proved. However, if we cut the box along the axis as shown in the figure with dashed lines, the four resulting domains, let us call them U1,U2,U3,U4, are of type III. The dashed lines are oriented in opposite directions for the two Uj that share them, and so when we integrate along both, the integrals cancel. That is,
UPdx+Qdy=U1Pdx+Qdy+U2Pdx+Qdy+U3Pdx+Qdy+U4Pdx+Qdy.
Now we are allowed to apply Green’s theorem to every Uj. We leave it to the reader to verify that outside of the origin, QxPy=0. So for each j, we find
UjPdx+Qdy=Uj(QxPy)=Uj0=0,
and so UPdx+Qdy=0. As U is C together with γ, we find
CPdx+Qdy+γPdx+Qdy=UPdx+Qdy=0.
So the integral around C is minus the integral around γ. The integral around C is easy to compute as on C we have x2+y2=r2, so P(x,y)=yr2 and Q(x,y)=xr2. We leave it to the reader to compute
CPdx+Qdy=Cyr2dx+xr2dy=2π.
The claim follows.

Figure 10.16. Changing the box integral to an integral around a small circle around the origin. The domain U is the entire shaded area between the circle and the box.

We remark that if γ would not contain the origin, γPdx+Qdy=0, as we could just apply Green’s to γ. So this integral can detect whether the origin is inside γ or not.
As a second example, we illustrate the usefulness of Green’s theorem on a fundamental result about harmonic functions.

Example 10.6.6.

Suppose UR2 is open and f:UR is harmonic, that is, f is twice continuously differentiable and satisfies the Laplace equation, 2fx2+2fy2=0. Harmonic functions are, for instance, the steady state heat distribution, or the electric potential between charges. We will prove one of the most fundamental properties of these functions.
Let Dr:=B(p,r) be a disc such that its closure Dr=C(p,r)U. Write p=(x0,y0). We orient Dr positively. See Exercise 10.6.1. Then via Green’s and differentiation under the integral,
0=12πrDr(2fx2+2fy2)=12πrDrfydx+fxdy=12πr02π(fy(x0+rcos(t),y0+rsin(t))(rsin(t))+fx(x0+rcos(t),y0+rsin(t))rcos(t))dt=ddr[12π02πf(x0+rcos(t),y0+rsin(t))dt].
Let g(r):=12π02πf(x0+rcos(t),y0+rsin(t))dt for r0 (small enough). The function is continuous at r=0 (exercise), and we have just proved that g(r)=0 for all r>0. Therefore, g(0)=g(r) for all r>0, and
g(r)=g(0)=12π02πf(x0+0cos(t),y0+0sin(t))dt=f(x0,y0).
We proved the mean value property of harmonic functions:
f(x0,y0)=12π02πf(x0+rcos(t),y0+rsin(t))dt=12πrDrfds.
That is, for a harmonic function, the value at p=(x0,y0) equals the average of its values over a circle of any radius r centered at (x0,y0), provided r is small enough so that the entire closed disc fits within U.

Exercises Exercises

10.6.1.

Prove that a disc B(p,r)R2 is a type III domain, and prove that the orientation given by the parametrization γ(t)=(x0+rcos(t),y0+rsin(t)) where p=(x0,y0) is the positive orientation of the boundary B(p,r).
Note: Feel free to use what you know about sine and cosine from calculus.

10.6.2.

Prove that a convex bounded domain with piecewise smooth boundary is a type III domain.

10.6.3.

Suppose VR2 is a bounded domain with piecewise smooth boundary of type III and suppose that UR2 is an open set such that VU. Suppose f:UR is a twice continuously differentiable function. Prove that Vfxdx+fydy=0.

10.6.4.

For a disc B(p,r)R2, orient the boundary B(p,r) positively.
  1. Compute B(p,r)ydx.
  2. Compute B(p,r)xdy.
  3. Compute B(p,r)y2dx+x2dy.

10.6.5.

Using Green’s theorem show that the area of a triangle with vertices (x1,y1), (x2,y2), (x3,y3) is 12|x1y2+x2y3+x3y1y1x2y2x3y3x1|. Hint: See previous exercise.

10.6.6.

Using the mean value property prove the maximum principle for harmonic functions: Suppose UR2 is a connected open set and f:UR is harmonic. Prove that if f attains a maximum at pU, then f is constant.

10.6.7.

Let f(x,y):=lnx2+y2.
  1. Show f is harmonic where defined.
  2. Show lim(x,y)0f(x,y)=.
  3. Using a circle Cr of radius r around the origin, compute 12πrCrfds. What happens as r0?
  4. Why can’t you use Green’s theorem?
For a higher quality printout use the PDF versions: https://www.jirka.org/ra/realanal.pdf or https://www.jirka.org/ra/realanal2.pdf