Step by step
The question
Question: use Green's theorem to find ∮ (y² − x) dx + (2xy + x²) dy around the rectangle 0 ≤ x ≤ 1, 0 ≤ y ≤ 2.
1 Find P and Q
The path goes once around the rectangle, counterclockwise.
The part before dx is P = y² − x.
The one before dy is Q = 2xy + x².
2 Find the inside
Green's theorem: the line integral around equals the double integral inside of ∂Q/∂x minus ∂P/∂y.
Term by term.
In 2xy, 2y is fixed and waits in front.
x gives 1.
So 2y.
x²: the power 2 comes down.
The power goes down by 1.
So 2x.
So ∂Q/∂x = 2y + 2x.
Term by term.
y²: the power 2 comes down.
The power goes down by 1.
So 2y.
x has no y: it is a fixed number, so it gives 0.
Drop the zeros: ∂P/∂y = 2y.
Take away: 2y + 2x minus 2y.
So the inside is 2x.
Careful!
The order matters.
Q by x, minus P by y.
The other way round changes the sign.
3 Find the limits
Over the rectangle: y from 0 to 2 inside, x from 0 to 1 outside.
4 The inner integral
Integrate each term: the power goes up by 1, and we divide by the new power.
Put in the top y = 2, then take away the bottom y = 0.
The bottom part is 0.
So it is 4x.
5 The outer integral
Integrate each term: the power goes up by 1, and we divide by the new power.
Put in the top x = 1, then take away the bottom x = 0.
The bottom part is 0.
So it is 2.
6 Check
Let's check by walking the four sides, one at a time.
Bottom −1/2, right 6, top −7/2, left 0.
On each side, only one of x and y moves.
Added up: 2.
The same as the double integral.
Right!
Let's look back.
First: find P and Q.
Then: find the inside.
Then: find the limits.
Then: the inner integral.
Then: the outer integral.
Last: check.