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.
Definition10.6.1.
Let \(U \subset \R^2\) be a bounded connected open set. Suppose the boundary \(\partial U\) is a disjoint union of (the images of) finitely many simple closed piecewise smooth paths such that every \(p \in \partial U\) is in the closure of \(\R^2 \setminus \widebar{U}\text{.}\) Then \(U\) is called a bounded domain with piecewise smooth boundary in \(\R^2\text{.}\)
The condition about points outside the closure says that locally \(\partial U\) separates \(\R^2\) into an “inside” and an “outside.” The condition prevents \(\partial U\) from being just a “cut” inside \(U\text{.}\) 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.
Definition10.6.2.
Let \(U \subset \R^2\) be a bounded domain with piecewise smooth boundary, let \(\partial U\) be oriented , and let \(\gamma \colon [a,b] \to \R^2\) be a parametrization of \(\partial U\) giving the orientation. Write \(\gamma(t) = \big(x(t),y(t)\bigr)\text{.}\) If the vector \(n(t) \coloneqq \bigl(-y'(t),x'(t)\bigr)\) points into the domain, that is, \(\epsilon n(t) + \gamma(t)\) is in \(U\) for all small enough \(\epsilon > 0\text{,}\) then \(\partial U\) is positively oriented. See Figure 10.14. Otherwise it is negatively oriented.
The vector \(n(t)\) turns \(\gamma^{\:\prime}(t)\) counterclockwise by \(90^\circ\text{,}\) 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 \(\partial U\) is connected, then the positive orientation means we are traveling counterclockwise around \(\partial U\text{.}\) If we do have “holes,” then we travel around them clockwise.
Proposition10.6.3.
Let \(U \subset \R^2\) be a bounded domain with piecewise smooth boundary. Then \(U\) is Jordan measurable.
Proof.
We must show that \(\partial U\) is a null set. As \(\partial 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 \(\R^2\) is a null set. Let \(\gamma \colon [a,b] \to \R^2\) be a smooth path. It is enough to show that \(\gamma\bigl((a,b)\bigr)\) is a null set, as adding the points \(\gamma(a)\) and \(\gamma(b)\text{,}\) to a null set still results in a null set. Define
The set \((a,b) \times \{ 0 \}\) is a null set in \(\R^2\) and \(\gamma\bigl((a,b)\bigr) = f\bigl( (a,b) \times \{ 0 \} \bigr)\text{.}\) By Proposition 10.3.10, \(\gamma\bigl((a,b)\bigr)\) is a null set in \(\R^2\) and so \(\gamma\bigl([a,b]\bigr)\) is a null set, and so finally \(\partial U\) is a null set.
Theorem10.6.4.Green.
Suppose \(U \subset \R^2\) is a bounded domain with piecewise smooth boundary with the boundary positively oriented. Suppose \(P\) and \(Q\) are continuously differentiable functions defined on some open set that contains the closure \(\widebar{U}\text{.}\) Then
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 \(U \subset \R^2\) be a bounded domain with piecewise smooth boundary. We say \(U\) is of type I if there exist numbers \(a < b\text{,}\) and continuous functions \(f \colon [a,b] \to \R\) and \(g \colon [a,b] \to \R\text{,}\) such that
\begin{equation*}
U \coloneqq \bigl\{ (x,y) \in \R^2 : a < x < b \text{ and } f(x) < y < g(x) \bigr\} .
\end{equation*}
Similarly, \(U\) is of type II if there exist numbers \(c < d\text{,}\) and continuous functions \(h \colon [c,d] \to \R\) and \(k \colon [c,d] \to \R\text{,}\) such that
\begin{equation*}
U \coloneqq \bigl\{ (x,y) \in \R^2 : c < y < d \text{ and } h(y) < x < k(y) \bigr\} .
\end{equation*}
Finally, \(U \subset \R^2\) is of type III if it is both of type I and type II. See Figure 10.15.
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
We integrate \(P\,dx\) along the boundary. The one-form \(P\,dx\) 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 \(\bigl(x,f(x)\bigr)\) and to \(\bigl(x,g(x)\bigr)\) we recognize path integrals above. However the second path integral is in the wrong direction; the top should be going right to left, and so we must switch orientation.
Let us see how one can use the simple version of Green’s (type III domains only) for a more complex path.
Example10.6.5.
Suppose \(P(x,y) = \frac{-y}{x^2+y^2}\text{,}\)\(Q(x,y) = \frac{x}{x^2+y^2}\text{.}\) 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 \(\gamma\) is a path that goes counterclockwise around a rectangle whose interior contains the origin. We claim
First we draw a circle \(C\) of radius \(r > 0\) centered at the origin such that the entire circle is within \(\gamma\) and oriented clockwise. Consider \(U\) to be the domain between \(\gamma\) and \(C\text{.}\) See Figure 10.16. The integral around \(\partial U\) is the integral around \(\gamma\) plus the integral around \(C\text{.}\) 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 \(U_1,U_2,U_3,U_4\text{,}\) are of type III. The dashed lines are oriented in opposite directions for the two \(U_j\) that share them, and so when we integrate along both, the integrals cancel. That is,
\begin{multline*}
\int_{\partial U} P\, dx + Q \, dy
=
\\
\int_{\partial U_1} P\, dx + Q \, dy
+
\int_{\partial U_2} P\, dx + Q \, dy
+
\int_{\partial U_3} P\, dx + Q \, dy
+
\int_{\partial U_4} P\, dx + Q \, dy .
\end{multline*}
Now we can apply Green’s theorem to every \(U_j\text{.}\) We leave it to the reader to verify that outside of the origin, \(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 0\text{.}\) So
\begin{equation*}
\int_C P \, dx + Q \, dy
+
\int_{\gamma} P \, dx + Q \, dy
=
\int_{\partial U} P \, dx + Q \, dy = 0 .
\end{equation*}
So the integral around \(C\) is minus the integral around \(\gamma\text{.}\) The integral around \(C\) is easy to compute as on \(C\) we have \(x^2+y^2 = r^2\text{,}\) so \(P(x,y) = \frac{-y}{r^2}\) and \(Q(x,y) = \frac{x}{r^2}\text{.}\) We leave it to the reader to compute
We remark that if \(\gamma\) would not contain the origin, \(\int_\gamma
P\,dx+Q\,dy = 0\text{,}\) as we could just apply Green’s to \(\gamma\text{.}\) So this integral can detect whether the origin is inside \(\gamma\) or not.
As a second example, we illustrate the usefulness of Green’s theorem on a fundamental result about harmonic functions.
Example10.6.6.
Suppose \(U \subset \R^2\) is open and \(f \colon U \to \R\) is harmonic, that is, \(f\) is twice continuously differentiable and satisfies the Laplace equation, \(\frac{\partial^2 f}{\partial x^2} +
\frac{\partial^2 f}{\partial y^2} = 0\text{.}\) 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 \(D_r \coloneqq B(p,r)\) be a disc such that its closure \(\overline{D_r} = C(p,r) \subset U\text{.}\) Write \(p = (x_0,y_0)\text{.}\) We orient \(\partial D_r\) positively. See Exercise 10.6.1. Then via Green’s and differentiation under the integral,
Let \(g(r) \coloneqq
\frac{1}{2\pi}
\int_0^{2\pi}
f\bigl(x_0+r\cos(t),y_0+r\sin(t)\bigr) \, dt\) for \(r \geq 0\) (small enough). The function is continuous at \(r=0\) (exercise), and we have just proved that \(g'(r) = 0\) for all \(r > 0\text{.}\) Therefore, \(g(0) = g(r)\) for all \(r > 0\text{,}\) and
That is, for a harmonic function, the value at \(p = (x_0,y_0)\) equals the average of its values over a circle of any radius \(r\) centered at \((x_0,y_0)\text{.}\)
ExercisesExercises
10.6.1.
Prove that a disc \(B(p,r) \subset \R^2\) is a type III domain, and prove that the orientation given by the parametrization \(\gamma(t) =
\bigl(x_0+r\cos(t),y_0+r\sin(t)\bigr)\) where \(p = (x_0,y_0)\) is the positive orientation of the boundary \(\partial B(p,r)\text{.}\) 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 \(V \subset \R^2\) is a bounded domain with piecewise smooth boundary of type III and suppose that \(U \subset \R^2\) is an open set such that \(\widebar{V} \subset U\text{.}\) Suppose \(f \colon U \to \R\) is a twice continuously differentiable function. Prove that \(\int_{\partial V}
\frac{\partial f}{\partial x} \, dx +
\frac{\partial f}{\partial y} \, dy = 0\text{.}\)
10.6.4.
For a disc \(B(p,r) \subset \R^2\text{,}\) orient the boundary \(\partial B(p,r)\) positively.
Using Green’s theorem show that the area of a triangle with vertices \((x_1,y_1)\text{,}\)\((x_2,y_2)\text{,}\)\((x_3,y_3)\) is \(\frac{1}{2}\sabs{x_1y_2 + x_2 y_3 + x_3 y_1 - y_1x_2 - y_2x_3 - y_3x_1}\text{.}\) Hint: See previous exercise.
10.6.6.
Using the mean value property prove the maximum principle for harmonic functions: Suppose \(U \subset \R^2\) is a connected open set and \(f \colon U \to \R\) is harmonic. Prove that if \(f\) attains a maximum at \(p \in U\text{,}\) then \(f\) is constant.
10.6.7.
Let \(f(x,y) \coloneqq \ln \sqrt{x^2+y^2}\text{.}\)
Show \(f\) is harmonic where defined.
Show \(\lim\limits_{(x,y) \to 0} f(x,y) = -\infty\text{.}\)
Using a circle \(C_r\) of radius \(r\) around the origin, compute \(\frac{1}{2\pi r} \int_{\partial C_r} f \, ds\text{.}\) What happens as \(r \to 0\text{?}\)
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