Green's Theorem: Formula, Area Trick and Solved Example Problems
By Dr. Muhammad Amjad Khadim (PhD Mathematics) · Updated November 2026
Green's theorem is usually the first of the "big three" integral theorems that students meet, and it is the friendliest. It lives entirely in the plane, it needs only double integrals you already know how to do, and it has a lovely side effect: it lets you find the area of a region by walking around its edge. In this post I state Green's theorem, explain what each side means, show the famous area formula, and solve a series of example problems with full working, the way you would be expected to present them in a Calc 3 exam or a first-year engineering maths paper.
If you want to see where Green's theorem leads, it is the flat special case of Stokes' theorem, and its "flux form" is the 2D version of the divergence theorem. You do not need either of those to follow this guide, though.
1. Statement of Green's theorem
2. What the two sides mean
3. Conditions and orientation
4. Solved examples
5. Finding area with Green's theorem
6. The flux (normal) form
7. Common mistakes, FAQs and practice
1. Statement of Green's Theorem
Let C be a positively oriented, piecewise-smooth, simple closed curve in the plane, and let D be the region it encloses. If P(x, y) and Q(x, y) have continuous first partial derivatives on an open region containing D, then
Many students remember the integrand on the right as "Q x minus P y". Notice the mixing: Q is differentiated with respect to x, and P with respect to y. Getting this backwards flips the sign of your answer, so it is worth saying out loud a few times.
2. What the Two Sides Mean
Think of F = (P, Q) as a vector field, for example the velocity of water on a flat surface. The left-hand side, ∮ P dx + Q dy = ∮ F · dr, is the circulation of the water around the loop C. The quantity ∂Q/∂x − ∂P/∂y on the right is the scalar curl of F: it measures how fast a tiny paddle wheel placed at that point would spin.
So Green's theorem says that the total spin of all the tiny paddle wheels inside D equals the circulation around the boundary. Inside the region, neighbouring paddle wheels' effects cancel along shared edges, and only the boundary survives. Our article on the meaning of gradient, divergence and curl gives more intuition for the curl.
3. Conditions and Orientation
- Closed curve: C must start and finish at the same point.
- Simple: C must not cross itself.
- Positive orientation: C must be traversed counterclockwise, so that the region D is always on your left as you walk. If the curve is clockwise, the answer changes sign.
- Smoothness: P and Q must be smooth everywhere inside D, with no holes or singular points.
4. Solved Examples
Example 1: A unit square
Problem. Evaluate ∮C xy dx + x² dy, where C is the boundary of the square with vertices (0, 0), (1, 0), (1, 1), (0, 1), traversed counterclockwise.
Identify P and Q: P = xy and Q = x².
Partial derivatives: ∂Q/∂x = 2x and ∂P/∂y = x.
Integrand: ∂Q/∂x − ∂P/∂y = 2x − x = x.
Double integral: ∬D x dA = ∫01 ∫01 x dx dy = 1/2.
So the line integral equals 1/2. Done directly, this would need four separate line integrals, one for each side of the square.
Example 2: A triangle
Problem. Evaluate ∮C x⁴ dx + xy dy, where C is the triangle with vertices (0, 0), (1, 0), (0, 1), counterclockwise.
P = x⁴ and Q = xy, so ∂Q/∂x − ∂P/∂y = y − 0 = y. The triangle is described by 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x. Then
∬D y dA = ∫01 ∫01−x y dy dx = ∫01 (1 − x)²/2 dx = 1/6.
Notice how the awkward x⁴ term disappeared completely, because its derivative with respect to y is zero.
Example 3: A nasty-looking integral made easy
Problem. Evaluate ∮C (3y − esin x) dx + (7x + √(y⁴ + 1)) dy, where C is the circle x² + y² = 9, counterclockwise.
Trying to parametrise this directly would be painful, because of esin x and √(y⁴ + 1). But look at the derivatives:
∂Q/∂x = 7, ∂P/∂y = 3, so ∂Q/∂x − ∂P/∂y = 4.
The integrand is the constant 4, so the answer is 4 × (area of the disc) = 4 × 9π = 36π. This is a classic exam question: the scary terms are there precisely to push you towards Green's theorem.
Example 4: A clockwise curve
Problem. Evaluate ∮C −y dx + x dy where C is the circle x² + y² = 4 traversed clockwise.
∂Q/∂x − ∂P/∂y = 1 − (−1) = 2, and the disc has area 4π, so the counterclockwise integral is 8π. Because C is clockwise, the answer is −8π.
5. Finding Area With Green's Theorem
If we choose P and Q so that ∂Q/∂x − ∂P/∂y = 1, then the double integral is just the area of D. Three popular choices are:
Example 5: Area of an ellipse
Use x = a cos t, y = b sin t for 0 ≤ t ≤ 2π. Then dx = −a sin t dt and dy = b cos t dt, so
x dy − y dx = ab cos² t dt + ab sin² t dt = ab dt.
Therefore Area = ½ ∫02π ab dt = πab, the well-known formula for the area of an ellipse. When a = b = r this gives πr² for a circle.
The same idea, applied to a polygon with vertices (x1, y1), ..., (xn, yn) listed counterclockwise, gives the shoelace formula: Area = ½ |Σ (xiyi+1 − xi+1yi)|. It is also the principle behind the planimeter, a mechanical instrument surveyors once used to measure areas on maps by tracing their outlines.
6. The Flux (Normal) Form
Green's theorem has a second version that measures flow across the curve rather than along it. If n is the outward unit normal to C and F = (P, Q), then
∮C F · n ds = ∬D ( ∂P/∂x + ∂Q/∂y ) dA
The integrand on the right is the 2D divergence. For example, with F = (x, y) and D the unit disc, the divergence is 2, so the outward flux is 2 × π = 2π. This form is the flat version of the divergence theorem.
7. Common Mistakes
- Swapping the derivatives. It is ∂Q/∂x − ∂P/∂y, not ∂P/∂x − ∂Q/∂y.
- Wrong orientation. Clockwise curves give the negative of the answer.
- Using Green's theorem on an open curve. The curve must be closed. For an open curve, close it with a straight segment and subtract that segment's integral.
- Ignoring singularities. The field (−y, x)/(x² + y²) has scalar curl zero, yet its circulation around the unit circle is 2π, not 0. The theorem fails because the field is undefined at the origin, which lies inside D.
- Wrong limits for the region. Sketch D before setting up the double integral.
Frequently Asked Questions
When should I use Green's theorem?
Use it when the line integral around a closed curve looks hard but ∂Q/∂x − ∂P/∂y is simple, often a constant. Use it in reverse when a double integral looks hard but the boundary is easy to parametrise.
Does Green's theorem work in 3D?
Not directly. Its 3D generalisations are Stokes' theorem (for circulation) and the divergence theorem (for flux).
What does it mean if ∂Q/∂x = ∂P/∂y everywhere?
Then the circulation around every closed curve in a simply connected region is zero, and the field is conservative. Our upcoming guide on testing whether a vector field is conservative explores this in detail.
Practice Problems
- ∮ y dx − x dy around the unit circle, counterclockwise. (Answer: −2π)
- ∮ (x + y) dx + (2x − y) dy around the rectangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 3, counterclockwise. (Answer: 6)
- Use ½∮(x dy − y dx) to show a circle of radius r has area πr².
You can check the partial derivatives in these problems with the tools on our vector analysis calculators page, and test yourself with our vector algebra MCQs. For more reading, see Paul's Online Notes on Green's theorem and the MathWorld article. And if you ever need an area or length unit converted after one of these calculations, PakMath's free converters handle it in a click.
Comments
Post a Comment