Main content

### Course: Multivariable calculus > Unit 5

Lesson 3: Green's theorem (articles)# Green's theorem examples

Green's theorem is beautiful and all, but here you can learn about how it is actually used.

## Background

## Remembering the formula

Green's theorem is most commonly presented like this:

This is also most similar to how practice problems and test questions tend to look. But personally, I can never quite remember it just in this $P$ and $Q$ form.

"Was itor $\frac{\partial Q}{\partial x}$ ?" $\frac{\partial Q}{\partial y}$

"Which term is subtracted again?"

I always start by thinking about this form:

I find this easier to remember because it actually has a physical meaning (see the last article for more details):

- The line integral of a vector field
around a closed curve${\mathbf{\text{F}}}(x,y)$ measures the fluid rotation around that boundary${C}$ .${C}$ - The double integral of the curl of
adds up all the tiny little bits of fluid rotation within the region${\mathbf{\text{F}}}$ enclosed by${R}$ .${C}$ - Intuitively, it makes sense that these should be related. And in fact, they are equal.

To get to the $PQ$ version of the theorem, write the components of ${\mathbf{\text{F}}}$ as $P(x,y)$ and $Q(x,y)$ :

(To remember that $P$ is the $x$ -component and $Q$ is the $y$ -component, think about the fact that $P$ comes before $Q$ in the alphabet).

And from here, expand each bit of the line integral, curl, etc. After doing this a couple times, it's natural enough to do in your head.

Of course, this requires remembering how to compute two-dimensional curl, but this is something which ought to be remembered outside the context of Green's theorem anyway.

Warning: Green's theorem only applies to curves that are orientedcounterclockwise. If you are integrating clockwise around a curve and wish to apply Green's theorem, you must flip the sign of your result at some point.

## How do you know when to use Green's theorem?

"Mathematics is not a spectator sport" - George Polya

The best way to get a feel for its usefulness is to simply jump into some examples to get a feel for it. I'll debrief after each example to help extract the intuition for each one.

## Example 1: Line integral $\to $ Area

**Problem**: Let

If you orient ${C}$ counterclockwise, compute the following line integral:

**Solution**

**Step 1**: Is the curve in question oriented clockwise or counterclockwise?

I know that might feel silly to ask, given that it was just stated explicitly in the problem. But it's important to remember that you must always ask this when using Green's theorem.

**Step 2**: As we apply Green's theorem to this integral

**Step 3**: Now compute the appropriate partial derivatives of

**Step 4**: Finally, compute the double integral from Green's theorem. In this case,

## Example 1 debrief

Why did the line integral in the last example become simpler as a double integral when we applied Green's theorem? It's because the curl of the relevant function was a constant:

More generally, if it looks like the partial derivative of $Q$ with respect to $x$ is simple, and/or that the partial derivative of $P$ with respect to $y$ is simple, think Green's theorem.

It was also important that we could easily compute the area of the region in question. If that were not true, the double integral might not have been simpler at all.

## Example 2: Two function graphs

**Problem**

Consider the following two functions:

Now consider the region between the graphs of these functions.

Let ${D}$ be the clockwise-oriented boundary of this region ($D$ for droopy). Compute the following line integral:

**Solution**

**Step 1**: Is the curve in question oriented clockwise or counterclockwise?

Since Green's theorem applies to counterclockwise curves, this means we will need to take the negative of our final answer.

**Step 2**: What should we substitute for

**Step 3**: Now compute the appropriate partial derivatives of

**Step 4**: To apply Green's theorem, we will perform a double integral over the droopy region

Fill in all of those bounds:

**Step 5**: Finally, to apply Green's theorem, we plug in the appropriate value to this integral. If our original line integral was oriented counterclockwise, we would plug in

However, since the curve is oriented clockwise, we make this negative:

Using the answers to the previous two questions, plugging in this value to the double integral you set up, find the answer to the original line integral problem:

## Example 2 debrief

As in Example 1, part of the reason this line integral became simpler is that the terms simplified once we looked at the appropriate partial derivatives.

Also, the region in question was defined by two separate curves. Computing the line integral directly requires setting up two separate line integrals for each curve. But the double integral very naturally went over the full region in one fell swoop.

Another thing to note is that the ultimate double integral wasn't exactly

*simple*. You still had to mark up a lot of paper during the computation. But this is okay. We can still feel confident that Green's theorem simplified things, since each individual term became simpler, since we avoided needing to parameterize our curves, and since what would have been two separate line integrals was just one double integral.## Sneaky area calculations

In the previous two examples, we used Green's theorem to turn a line integral into a double integral. Here, let's do things the other way around. Take a look at the double integral from Green's theorem:

Remember how in Example $1$ , we were lucky enough to have the following property:

This means our integral was just computing the area of ${R}$ :

Now imagine that we didn't already know the area of ${R}$ , but we wished to compute it. One thing you could do is find some pair of functions $P(x,y)$ and $Q(x,y)$ satisfying this curl-equals-one property:

, $\frac{\partial Q}{\partial x}}-{\displaystyle \frac{\partial P}{\partial y}}=1$

According to Green's theorem, any pair of functions like this let's you compute the area of a region using a line integral:

Doesn't that feel strange, computing the area of a region using a line integral around its boundary? Let' see what it looks like in action.

## Example 3: Area of a seashell

**Problem**

Consider the spiral defined by the following parametric equations in the range $0\le t\le 2\pi $ .

Now add the line from $(0,0)$ to $(2\pi ,0)$ to this spiral, and consider the seashell-shaped region it encloses.

What is the area of that region?

**Solution**

**Step 1**: How is the boundary of this seashell oriented?

**Step 2**: Choose the appropriate

To apply the Green's theorem trick, we first need to find a pair of functions $P(x,y)$ and $Q(x,y)$ which satisfy the following property:

Actually, quite a few pairs of functions satisfy this.

**Concept check**: Which of the following function pairs satisfies this property?

You might think the second or third choices above make things simplest. Interestingly, though, it's often the last choice that makes the line integral computation work out best. This means solving the following integral:

Or, written more cleanly,

Why is this simpler? You will see in just a moment how things nicely cancel out, and it has to do with symmetrically including both $x$ and $y$ into the expression. Honestly, I'm not sure how you could have seen this ahead of time; it's just really clever.

**Step 3:**Compute the line integral.

The boundary of our region is defined with two curves. One is the spiral, defined by these two equations in the range $0\le t\le 2\pi $ :

The other is the line between $(0,0)$ and $(2\pi ,0)$ . Notice, this line is purely on the $x$ -axis. Therefore $y$ is always $0$ , and $dy$ is also $0$ , since there's no change in $y$ . So consider the value of the line integral on this segment:

Each part of the integrant is $0$ , so we can ignore it! Therefore, we can just take this line integral over our spiral and get the answer.

**Concept check**: Given that

**Bring it on home**: Use the last answer to compute the following line integral on the spiral, which will give the area of the seashell region as desired:

## Summary

- Green's theorem can turn tricky line integrals into more straight-forward double integrals.
- To know if Green's theorem will actually make a line integral simpler, ask the following two questions:

- Also, consider if the region encompassed by the curve
will be easy to describe with a double integral, or if it has a known area.$C$ - You can compute the area of a region with the following line integral around its counterclockwise-oriented boundary:

## Want to join the conversation?

- In the summary, last bullet point, where it states that we can compute area of region using the line integral of 1/2(xdy-ydx).

Is this option always the best of will -ydx or xdy sometimes be better?(14 votes) - How do you know if a graph is oriented clockwise or counterclockwise just by looking at its graph?(6 votes)
- You can't just tell by looking at the graph (unless there are arrows that make that clear). You would need to plug t values into the parametric equations and see which way the function is going as you plug in increasing values of t.

For example, in example 3, we can plug in t = 0 to get the coordinate (0,0) and then another one, say t = pi, to get (-pi, 0). Since we have the graph of the function, we can see that it is oriented counterclockwise. (If t=0 was (-pi,0) instead it would be clockwise since it would be turning clockwise as t increases)(4 votes)

- I'm confused about how the line integral was computed. In the second step of the explanation how does he get the (dy/dt)dt and (dx/dt)dt? Is he allowed to do that because the dts "cancel out", but then what is the purpose of that in the first place?

Then when we plug in the definitions of x(t) and y(t) why does it become just d/dt instead of dy/dt and dx/dt? Where did dy and dx go? I know I am slow, but usually not this slow...(3 votes)- tsin(t) comes from y = tsin(t).(1 vote)

- A spiral is r=θ, right? How do you parameterize this curve if you didn't know it was x=t cos(t), y=t sin(t)?(3 votes)
- Is green's theorem only applicable to surfaces that are plane or can it also be applied to surfaces that are wavy....?

(I think that it can only be applied to flat ones....

since Green's theorem is a special case of stoke's theorem in which the surface being considered is flat and in x-y plane)(2 votes) - Does the formula in the last bullet point of summary works for all cases? or Is it for specific kind of problem?(2 votes)
- HI all, I have a questions from Example 3:

1) Why do we not include the change of variables factor ( 'r' for polar ) when converting to polar coordinates?

Thanks!(1 vote)- here,he does not convert it to polar co-ordinates but he only parameterize the curve to a new variable 't', which is still in Cartesian co=ordinate system .

..

any value of t gives corresponding values of x and y(2 votes)

- In the 3rd example,

how did we come to the conclusion that it satisfies (dQ/dx - dP/dy) = 1??

Also, the area under the line (0,0) to (2pi,0) is ignored because the value is 0. If it was not 0 would we've included in our calculation? I don't think we should coz the area of the seashell (spiral part) already covers it, right?(1 vote)- I think, we just "make up" a vector field such that its curl = 1.

For a vector field F=Pi+Qj, 2D-curl of 'F' = Q_x - P_y

We are given a curve (which is independent of 'F') along which we move a particle in the 'F' field.

From the curve parametrization, we get 'x' and 'y' as some functions of 't'

So we make up (tailor) 'F' for the curl to be 1 everywhere along the curve...

This way, in Green's theorem, the curl part (Q_x-P_y) = 1, and what's left is ∫∫1*dA=∫∫dA=Area.

We want the curl to be 1, so that we can calculate the area of a region.(1 vote)

- Interesting article. I'm trying to think of some use cases of these integral concepts in science. Could you use the relation between a line integral and area to say, calculate the area of an irregularly shaped landmass from a bordering set of rivers?(1 vote)
- Surely you can, and this is what people do in real life. Certain handheld devices using GPS could record the path one takes, and then using such integration, one can easily calculate the area in which his/her path is enclosed.(1 vote)

- For problem 3 in step 3, I don't understand what the text means when it says "Each part of the integrant is 0, so we can ignore it! Therefore, we can just take this line integral over our spiral and get the answer". Wouldn't we be able to do the same thing if dy and y weren't 0 at that point?(1 vote)