Areas with Gauss-Green Formula

Finding Areas with the Gauss-Green Formula

                        Copyright 1994
                       H. Edward Donley
                    Mathematics Department
                   Indiana University of PA
                    Indiana, PA  15705 USA
                    hedonley@grove.iup.edu

This is an unevaluated Mathematica notebook. If you do not have a copy of Mathematica handy, you may want to also view the evaluated version.

Introduction

The Gauss-Green formula can be used to find areas. If {x[t], y[t]}, a<t<b, is a counterclockwise parameterization of the boundary of a region R in the x,y-plane, then the area of R is

Parameterizing the Boundary

If you have the coordinates of a list of points from around the boundary of R, you can construct a parameterization of the boundary. It just so happens that Mathematica lets you pick off a list of points from any graphics cell. Let's start with a circle of radius 1. Here is the graph.

Plot[{Sqrt[1-x^2],-Sqrt[1-x^2]}, {x,-1,1},
  AspectRatio->Automatic];

Click on the graph. A box will appear enclosing the graph. Now hold down the Command key (the one with the picture of an apple on it. If you move the mouse cursor into the graph's bounding box, the cursor will turn into a cross hairs and the coordinates of the point will appear in the bottom left corner of the notebook window. Hold down the mouse button and click on the circle. Continue to keep the mouse button depressed and click around the circle counterclockwise until you get back to where you started. Now release the mouse button. Select Copy under the Edit menu. Click in the following input cell and then select Paste under the Edit menu. You should see a list of all of the data points that you selected. Evaluate the input cell to assign the list of data points to the variable, data.

data = ***paste data here***;
Now we need to make a copy of the first point in the list and add it to the end of the list.

dataLoop = Append[data, First[data]];

Let's take a look at these points to verify that they go around the circle.

ListPlot[data, AspectRatio->Automatic];

Good enough? If not, you can always start over again and pick a new set of data points.

Now we separate out the x and y values.

x = Transpose[dataLoop][[1]];
y = Transpose[dataLoop][[2]];

Numerical Approximation Method

Now we want to apply the Gauss-Green Formula,

to this data list. The boundary of the region can be divided into segments whose endpoints are the data points that you picked off of the graph. We will denote the x coordinate of the ith point by x_i and the y coordinate by y_i. Segment i connects {x_i, y_i} and {x_(i+1),y_(i+1)} for i varying from 1 to the number of data points. On segment i, we will approximate x[t] with the average of the two endpoints, 0.5 (x_(i+1) + x_i). Similary we will approximate y[t] with 0.5 (y_(i+1) + y_i). We will approximate y'[t] dt with the change in y, y_(i+1) - y_i, and x'[t] dt with x_(i+1) - x_i. So we can approximate the area with

and here is the Mathematica code.

area =
   0.5 Apply[
      Plus,
      Table[
         0.5(x[[i+1]]+x[[i]]) (y[[i+1]]-y[[i]])
        -0.5(y[[i+1]]+y[[i]]) (x[[i+1]]-x[[i]]),
      {i,1,Length[data]}]
   ]

Did your answer make sense? What should the area be?

Exercises

Exercise 1: Area of Russia

From the University of Texas Map Collection, http://www.lib.utexas.edu/Libs/PCL/Map_collection

Use the map below to find the area of Russia in square miles.

Hint: You will need to use the scale of miles at the bottom of the map.

Map of Russia

Exercise 2: Smoke over Saudi Arabia after Kuwait War

From the National Center for Atmospheric Research, Boulder, Colorado, USA

What portion of the area that had more than 100 days of smoke also had more than 200 days of smoke?

Map of the Arabian Peninsula

Exercise 2: Smoke over Saudi Arabia after Kuwait War

From the National Center for Atmospheric Research, Boulder, Colorado, USA

Here is a satelite image of the Arabian Peninsula on June 20, 1991, during the Kuwait War. What portion of Saudi Arabia was covered by smoke from the burning oil fields on that day?

Map of the Arabian Peninsula

Exercise 3: More Smoke over Saudi Arabia after Kuwait War

From the National Center for Atmospheric Research, Boulder, Colorado, USA

What portion of the area that had more than 100 days of smoke also had more than 200 days of smoke?

Another Map of the Arabian Peninsula