Survey of Mathematics

6.4 Green's theorem and change of variables

Green's theorem says the circulation of a field around a closed curve equals the total spin inside, because the circulations around tiny cells add up and the inner edges cancel; it gives areas by line integrals, handles regions with holes through the winding number, and its proof for the area of an image gives the change of variables formula with the Jacobian determinant.

Taught in 375/376Apostol, not taughtBeyond the courseApostol Vol. 2, 11.19 to 11.34MATH 376 Weeks 4 and 5: lectures of 11, 13 and 16 February, worksheets 8, 9 and 27, homework 4, Midterm 2 problem 4(b), practice Final problem 3Green, An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism (1828)Katz, Change of variables in multiple integrals: Euler to Cartan (1982)

A circle of wind blows round a hill. How much does it push a cyclist who rides once round the foot of the hill? You can add up the push along the road, the line integral of 6.1. Or you can cut the area inside the road into tiny squares, measure how much the wind swirls in each, and add. Green’s theorem says the two answers are the same. It turns a one-dimensional integral into a two-dimensional one, and back, and the same idea turns the problem ‘what factor multiplies the area when you change coordinates’ into the Jacobian determinant.

Before you start

6.1: the circulation around a closed path. 6.3: type I and type II regions and iterated integrals. 5.4: the Jacobian determinant. 2.7: the determinant of a matrix.

Quick checkThe circulation of F=(−y,x)F = (-y, x) counterclockwise around the unit circle is 2π2\pi. What is it clockwise?
Quick checkIn ∫01 ⁣∫0xf dy dx\displaystyle\int_0^1\!\int_0^xf\,dy\,dx, what is the region of integration?
Quick checkThe matrix A=[2003]A = \begin{bmatrix}2 & 0\\ 0 & 3\end{bmatrix} sends the unit square to a rectangle. By what factor does it multiply areas?

The picture: spin in every cell, cancellation on the edges

Each little cell has its own circulation: the push of the field around its four edges. Pull the cells apart and look at two neighbours: they run along their shared edge in opposite directions, so that edge contributes ++ in one cell and −- in the other, and cancels in the sum. Only the outer edges are left. So the sum of all cell circulations equals the circulation around the whole boundary. And for a small cell the circulation is about the spin Qx−PyQ_x - P_y times its area, so the sum is a Riemann sum for ∬(Qx−Py) dA\iint (Q_x - P_y)\,dA. The three numbers in the explanation line agree.

The idea, in words

For a field F=(P,Q)F = (P, Q) and a tiny square of side hh, go once counterclockwise around it. The bottom edge pushes by about P(x,y) hP(x, y)\,h. The top edge, run backwards, contributes −P(x,y+h) h-P(x, y + h)\,h. The two together are −(P(x,y+h)−P(x,y))h≈−Py h2-\big(P(x, y + h) - P(x, y)\big)h \approx -P_y\,h^2. The right and left edges give +Qx h2+Q_x\,h^2 in the same way. The circulation of the square is about (Qx−Py) h2(Q_x - P_y)\,h^2: the field’s local spin, times area. Adding up the squares gives the theorem.

Why· Why the theorem is true, in one sentence, and why it needs a hole-free field

Inside the region everything cancels in pairs, so the total is carried by the boundary. That argument breaks exactly when the field is not defined, or not differentiable, at some point inside: then the small cell around that point has no honest spin. The angle field of 6.2 has Qx−Py=0Q_x - P_y = 0 everywhere it is defined, yet its circulation around the unit circle is 2π2\pi, all of it carried by the one cell around the origin that we are not allowed to cut.

Where this came from· Green, Riemann and the planimeter

George Green’s 1828 essay on electricity and magnetism contains an identity between an integral over a region of space and one over its boundary surface, in the form his theory of the potential needed. It was published privately in Nottingham and almost nobody noticed until William Thomson (Kelvin) found it in the 1840s and had it reprinted. The statement for a plane region, the one in this chapter, was first printed without proof by Cauchy in 1846, and Riemann proved it in his 1851 doctoral dissertation on functions of a complex variable. Meanwhile engineers had a machine that computes an area from the boundary: Johann Martin Hermann is credited with inventing the first planimeter in 1814, and in 1854 Jakob Amsler built the polar planimeter, in which you trace the boundary of a drawn region with a pointer and read the area off a wheel. The area formula 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx) below is the mathematics behind that idea.

The statement

Definition T

Jordan curve

A curve C⊂R2C \subset \mathbb R^2 is a Jordan curve if it is traced by a path α:[a,b]→R2\alpha: [a, b] \to \mathbb R^2 with α(a)=α(b)\alpha(a) = \alpha(b) and α\alpha one-to-one on [a,b)[a, b): a closed simple path (6.1). The Jordan curve theorem (stated in the lecture without proof) says that such a curve splits the plane into exactly two connected open pieces, a bounded interior and an unbounded exterior. The region RR in Green’s theorem is the interior together with CC.

In one lineA closed curve that does not cross or touch itself: α:[a,b]→R2\alpha: [a, b] \to \mathbb R^2 with α(a)=α(b)\alpha(a) = \alpha(b) and α\alpha one-to-one on [a,b)[a, b).

Why it existsIt is the shape of a boundary: a loop with a clear inside and outside, which is what Green's theorem integrates around and over.

Definition T

Positive orientation

A Jordan curve CC is positively oriented (traversed counterclockwise) if, walking along CC in the direction of the parametrization, the interior lies on your left. The circle α(t)=(cos⁡t,sin⁡t)\alpha(t) = (\cos t, \sin t), 0≤t≤2π0 \le t \le 2\pi, is positively oriented. A rigorous definition through the winding number is given at the end of the section on holes.

In one lineA Jordan curve is positively oriented (counterclockwise) if the region it bounds lies on your left as you walk along it.

Why it existsGreen's theorem is stated for this direction; the opposite direction gives the opposite sign.

Theorem T MATH 376 lecture 4.20; Apostol Thm 11.10 (11.19)

Green's theorem

Let CC be a piecewise smooth Jordan curve, positively oriented, and RR the interior of CC together with CC. Let SS be an open set with R⊂SR \subset S and F=(P,Q):S→R2F = (P, Q): S \to \mathbb R^2 of class C1C^1 (continuous first partial derivatives). Then

∮CP dx+Q dy=∬R(∂Q∂x−∂P∂y)dA.\oint_C P\,dx + Q\,dy = \iint_R \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)dA.

In one lineIf CC is a positively oriented piecewise smooth Jordan curve bounding RR, and PP and QQ are C1C^1 on an open set containing RR, then ∮CP dx+Q dy=∬R(Qx−Py) dA\oint_C P\,dx + Q\,dy = \iint_R (Q_x - P_y)\,dA.

Why it is trueIt trades a line integral for an area integral (or the reverse), whichever is easier, and it is the plane case of the big theorems of 6.5 and 6.6.

What goes wrong without each hypothesis. Check all of them every time.

  • Orientation. Traverse CC clockwise and the line integral changes sign. A problem that says ‘counterclockwise’ is giving you the positive orientation.
  • Closed. An open curve encloses no region.
  • Simple. If CC crosses itself, for example a figure eight, the two loops run in opposite senses, and the line integral equals the double integral over one loop minus the double integral over the other, not over the whole enclosed set.
  • Piecewise smooth. The line integral needs a velocity that is continuous on pieces (6.1).
  • C1C^1 on an open set containing all of RR, the inside included. The angle field F=(−y,x)x2+y2F = \frac{(-y, x)}{x^2 + y^2} is C1C^1 on the plane minus the origin and has Qx−Py=0Q_x - P_y = 0 there, so the right side of Green over the unit disc would be 00 if the theorem applied; but the circulation around the unit circle is 2π2\pi. The theorem fails because FF is not defined at the origin, which is inside the circle: no open set containing RR is available.
Watch out· Four checks before you use Green

The curve is closed and simple. It is counterclockwise. The field is C1C^1 everywhere inside and on it. Then replace the line integral by ∬(Qx−Py) dA\iint (Q_x - P_y)\,dA.

Proof for a region that is of type I and type II

The lecture skipped the proof for time; worksheet 8 problem 6 proves it for a region of both types (6.3).

ProofMATH 376 worksheet 8 problem 6
The idea: Split the line integral into its P part and its Q part. For the P part use the type I description: only the bottom and top curves contribute, and the fundamental theorem of calculus turns their difference into the integral of P_y. For the Q part use the type II description, and add.
Let RR be of both types.
R={a≤x≤b, g1(x)≤y≤g2(x)}={c≤y≤d, h1(y)≤x≤h2(y)}R = \{a \le x \le b,\ g_1(x) \le y \le g_2(x)\} = \{c \le y \le d,\ h_1(y) \le x \le h_2(y)\} with all four functions continuous. We prove ∮P dx=−∬Py dA\oint P\,dx = -\iint P_y\,dA and ∮Q dy=∬Qx dA\oint Q\,dy = \iint Q_x\,dA and add.
The curve has four pieces: the bottom graph y=g1(x)y = g_1(x) (traversed with xx increasing), the right side, the top graph y=g2(x)y = g_2(x) (traversed with xx decreasing) and the left side. The sides may be single points.
Counterclockwise keeps the region on the left: along the bottom curve you move right, along the top curve you move left.
On the vertical sides xx is constant, so they add nothing to ∮P dx\oint P\,dx.
dx=x′(t) dtdx = x'(t)\,dt and x′=0x' = 0 on a vertical segment.
∮CP dx=∫abP(x,g1(x)) dx−∫abP(x,g2(x)) dx=−∫ab[P(x,g2(x))−P(x,g1(x))] dx\oint_CP\,dx = \displaystyle\int_a^bP(x, g_1(x))\,dx - \int_a^bP(x, g_2(x))\,dx = -\int_a^b\big[P(x, g_2(x)) - P(x, g_1(x))\big]\,dx.
Parametrize each by xx. Reversing the direction of the top piece flips the sign of its integral (6.1).
P(x,g2(x))−P(x,g1(x))=∫g1(x)g2(x)Py(x,y) dyP(x, g_2(x)) - P(x, g_1(x)) = \displaystyle\int_{g_1(x)}^{g_2(x)}P_y(x, y)\,dy.
Fundamental theorem of calculus in the variable yy: PyP_y is continuous, so P(x,⋅)P(x, \cdot) is an antiderivative of Py(x,⋅)P_y(x, \cdot).
So ∮CP dx=−∫ab ⁣∫g1(x)g2(x)Py dy dx=−∬RPy dA\oint_CP\,dx = -\displaystyle\int_a^b\!\int_{g_1(x)}^{g_2(x)}P_y\,dy\,dx = -\iint_RP_y\,dA.
The type I integral formula of 6.3 for the continuous function PyP_y.
∮CQ dy=∫cdQ(h2(y),y) dy−∫cdQ(h1(y),y) dy\oint_CQ\,dy = \displaystyle\int_c^dQ(h_2(y), y)\,dy - \int_c^dQ(h_1(y), y)\,dy.
Now describe RR as type II. Counterclockwise: up the right curve x=h2(y)x = h_2(y), down the left curve x=h1(y)x = h_1(y). The horizontal pieces have dy=0dy = 0.
=∫cd ⁣∫h1(y)h2(y)Qx dx dy=∬RQx dA= \displaystyle\int_c^d\!\int_{h_1(y)}^{h_2(y)}Q_x\,dx\,dy = \iint_RQ_x\,dA.
Fundamental theorem of calculus in xx for the continuous QxQ_x, then the type II integral formula.
∮CP dx+Q dy=∬R(Qx−Py) dA\oint_CP\,dx + Q\,dy = \iint_R(Q_x - P_y)\,dA. ■\blacksquare
Add the two results.
Proof workshopRebuild the proof of Green's theorem for a region of both typesMATH 376 worksheet 8 problem 6

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    A more general region, such as an annulus, is cut by interior segments into finitely many pieces of this kind. Along each cut the two neighbouring pieces traverse the cut in opposite directions, so the line integrals along it cancel, and only the original boundary is left: this is the cancellation of the picture at the top of the chapter.

    What is proved here, and what is not. The proof above covers regions of both types, and, by cutting, every region that can be cut into such pieces (discs, polygons, regions between curves, the annulus), which is every region met in practice. Green’s theorem for an arbitrary piecewise smooth Jordan curve is true, and Apostol 11.19 states it in that generality, but its complete proof is a topic for analysis (it rests on the Jordan curve theorem, which Veblen proved completely in 1905).

    Worked example MATH 376 worksheet 8 problem 3
    Compute ∮Cxy2 dx+x2y dy\oint_C xy^2\,dx + x^2y\,dy where CC is the boundary of the rectangle with vertices (0,0)(0, 0), (2,0)(2, 0), (2,3)(2, 3), (0,3)(0, 3), counterclockwise.

    Solution.

    1. Check the hypotheses. CC is closed, simple, piecewise smooth (four corners) and counterclockwise as stated. P=xy2P = xy^2 and Q=x2yQ = x^2y are polynomials, hence C1C^1 on the whole plane. Green applies.
    2. Compute the spin. Qx=2xyQ_x = 2xy and Py=2xyP_y = 2xy, so Qx−Py=0Q_x - P_y = 0.
    3. Integrate. ∮C=∬R0 dA=0\oint_C = \iint_R0\,dA = 0.

    Answer. 00.

    Worked example MATH 376 worksheet 8 problem 5 and worksheet 9 problem 5
    Find the work of F=(y+x, 2x+cos⁡(y2))F = (y + \sqrt x,\ 2x + \cos(y^2)) around the triangle with vertices (0,0)(0, 0), (1,0)(1, 0), (0,1)(0, 1), counterclockwise. Then compute ∮C(xy+ex2) dx+(x2−ln⁡(y2+1)) dy\oint_C(xy + e^{x^2})\,dx + (x^2 - \ln(y^2 + 1))\,dy around the same triangle.

    Solution.

    1. First field, spin. P=y+xP = y + \sqrt x, Q=2x+cos⁡(y2)Q = 2x + \cos(y^2), so Qx=2Q_x = 2 and Py=1P_y = 1, and Qx−Py=1Q_x - P_y = 1.
    2. First field, integrate. The work is ∬R1 dA\iint_R1\,dA, the area of the triangle: 12\frac12. One subtlety: ∂P/∂x=12x\partial P/\partial x = \frac{1}{2\sqrt x} is not continuous at x=0x = 0 and x\sqrt x is not defined for x<0x < 0, so no open set containing the triangle works and the theorem as stated here does not literally apply. Only PyP_y and QxQ_x appear in the formula, and they are fine, so the worksheet’s answer comes from Green, but the direct computation along the three edges is what proves it. It confirms 23+(−16+K)+(−K)=12\frac23 + (-\frac16 + K) + (-K) = \frac12, where K=∫01cos⁡(t2) dtK = \int_0^1\cos(t^2)\,dt cancels.
    3. Second field, spin. Qx=2xQ_x = 2x and Py=xP_y = x, so Qx−Py=xQ_x - P_y = x. Both components are C1C^1 on the plane (y2+1>0y^2 + 1 > 0).
    4. Second field, integrate. The triangle is 0≤x≤10 \le x \le 1, 0≤y≤1−x0 \le y \le 1 - x: ∫01 ⁣∫01−xx dy dx=∫01x(1−x) dx=12−13=16\int_0^1\!\int_0^{1-x}x\,dy\,dx = \int_0^1x(1 - x)\,dx = \frac12 - \frac13 = \frac16.

    Answer. 12\dfrac12 and 16\dfrac16.

    Worked example MATH 376 worksheet 9 problem 4 and worksheet 27 problem 3
    Compute ∮Cy3 dx+(x3+3xy2) dy\oint_Cy^3\,dx + (x^3 + 3xy^2)\,dy where CC is the circle x2+y2=4x^2 + y^2 = 4, counterclockwise. Then compute the circulation of F=(−y,x)F = (-y, x) around the unit circle both directly and by Green.

    Solution.

    1. Spin. P=y3P = y^3, Q=x3+3xy2Q = x^3 + 3xy^2 are polynomials. Qx=3x2+3y2Q_x = 3x^2 + 3y^2 and Py=3y2P_y = 3y^2, so Qx−Py=3x2Q_x - P_y = 3x^2.
    2. Polar coordinates over the disc of radius 22. ∬3x2 dA=∫02π ⁣∫023r2cos⁡2θ⋅r dr dθ=3∫02πcos⁡2θ dθ∫02r3 dr=3⋅π⋅4=12π\iint3x^2\,dA = \int_0^{2\pi}\!\int_0^23r^2\cos^2\theta\cdot r\,dr\,d\theta = 3\int_0^{2\pi}\cos^2\theta\,d\theta\int_0^2r^3\,dr = 3\cdot\pi\cdot4 = 12\pi. The integrand factors into a function of θ\theta times a function of rr over constant limits. Parametrizing the circle would give a harder integral.
    3. Second problem, directly. α=(cos⁡t,sin⁡t)\alpha = (\cos t, \sin t), F(α)=(−sin⁡t,cos⁡t)F(\alpha) = (-\sin t, \cos t), F⋅α′=1F \cdot \alpha' = 1, so the circulation is ∫02π1 dt=2π\int_0^{2\pi}1\,dt = 2\pi.
    4. Second problem, by Green. P=−yP = -y, Q=xQ = x, so Qx−Py=1−(−1)=2Q_x - P_y = 1 - (-1) = 2; the field is C1C^1 on the plane; ∬disc2 dA=2π\iint_{\text{disc}}2\,dA = 2\pi.

    Answer. 12π12\pi and 2π2\pi (both ways).

    Your answerCompute ∮C(−y3) dx+x3 dy\oint_C(-y^3)\,dx + x^3\,dy around the unit circle, counterclockwise.
    Quick checkGreen's theorem is applied to the unit circle traversed clockwise with F=(−y,x)F = (-y, x). What does ∮F⋅dr\oint F \cdot dr equal?
    Quick checkF=(−y,x)x2+y2F = \dfrac{(-y, x)}{x^2 + y^2} has Qx−Py=0Q_x - P_y = 0, and CC is the unit circle counterclockwise. Why is ∮CF⋅dr=2π\oint_C F \cdot dr = 2\pi and not 00?

    Area by a line integral

    To get an area, choose a field with Qx−Py=1Q_x - P_y = 1; then the right side of Green is ∬R1 dA=area(R)\iint_R1\,dA = \text{area}(R).

    Theorem T MATH 376 lecture 4.22; Apostol 11.20

    Area as a line integral

    Let CC be a positively oriented piecewise smooth Jordan curve α(t)=(X(t),Y(t))\alpha(t) = (X(t), Y(t)), a≤t≤ba \le t \le b, bounding SS. Then for any real cc, area(S)=∫ab[(c−1)Y(t)X′(t)+cX(t)Y′(t)] dt\text{area}(S) = \int_a^b\big[(c - 1)Y(t)X'(t) + cX(t)Y'(t)\big]\,dt.

    In one lineFor a positively oriented piecewise smooth Jordan curve α(t)=(X(t),Y(t))\alpha(t) = (X(t), Y(t)) bounding SS, and any real cc, area(S)=∫ab[(c−1)YX′+cXY′] dt\text{area}(S) = \int_a^b\big[(c - 1)YX' + cXY'\big]\,dt; with c=1,0,12c = 1, 0, \frac12: area(S)=∮x dy=−∮y dx=12∮(x dy−y dx)\text{area}(S) = \oint x\,dy = -\oint y\,dx = \frac12\oint(x\,dy - y\,dx).

    Why it is trueIt computes an area by walking once around the boundary, which is what the planimeter does and what a surveyor does with the coordinates of the corners.

    ProofMATH 376 lecture 4.22
    The idea: Apply Green's theorem to the field ((c-1) y, c x), whose spin is c minus (c-1), which is 1.
    Take the field F=((c−1)y, cx)F = ((c - 1)y,\ cx).
    P=(c−1)yP = (c - 1)y and Q=cxQ = cx are polynomials, so C1C^1 on the plane; the curve satisfies the other hypotheses.
    Qx−Py=c−(c−1)=1Q_x - P_y = c - (c - 1) = 1.
    Qx=cQ_x = c and Py=c−1P_y = c - 1.
    ∮CF⋅dr=∬R1 dA=area(S)\oint_C F \cdot dr = \iint_R1\,dA = \text{area}(S), and the left side is ∫ab[(c−1)YX′+cXY′] dt\int_a^b\big[(c - 1)YX' + cXY'\big]\,dt. ■\blacksquare
    Green's theorem. The left side in terms of the parameter: P x′+Q y′=(c−1)YX′+cXY′P\,x' + Q\,y' = (c - 1)YX' + cXY'.
    Worked example MATH 376 lecture example 4.23; worksheet 8 problem 2; worksheet 27 problem 4; homework 4 problem 4
    Use the area formula with c=1c = 1 and with c=12c = \frac12 to find the area of the unit disc, then the area of the ellipse x=acos⁡tx = a\cos t, y=bsin⁡ty = b\sin t using ∮x dy\oint x\,dy, and again using 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx).

    Solution.

    1. Disc, c=1c = 1. α=(cos⁡t,sin⁡t)\alpha = (\cos t, \sin t), so XY′=cos⁡2tXY' = \cos^2t and ∫02πcos⁡2t dt=[t2+sin⁡2t4]02π=π\int_0^{2\pi}\cos^2t\,dt = \big[\frac t2 + \frac{\sin2t}{4}\big]_0^{2\pi} = \pi. The term with (c−1)(c - 1) vanishes.
    2. Disc, c=12c = \frac12. The integrand is −12sin⁡t⋅(−sin⁡t)+12cos⁡tcos⁡t=12-\frac12\sin t\cdot(-\sin t) + \frac12\cos t\cos t = \frac12, and 12⋅2π=π\frac12\cdot2\pi = \pi. Both agree with π⋅12\pi\cdot1^2.
    3. Ellipse with ∮x dy\oint x\,dy. The curve is a Jordan curve and increasing tt goes counterclockwise. x dy=(acos⁡t)(bcos⁡t) dt=abcos⁡2t dtx\,dy = (a\cos t)(b\cos t)\,dt = ab\cos^2t\,dt, and ∫02πabcos⁡2t dt=πab\int_0^{2\pi}ab\cos^2t\,dt = \pi ab.
    4. Ellipse with 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx). dx=−asin⁡t dtdx = -a\sin t\,dt and dy=bcos⁡t dtdy = b\cos t\,dt, so x dy−y dx=ab(cos⁡2t+sin⁡2t) dt=ab dtx\,dy - y\,dx = ab(\cos^2t + \sin^2t)\,dt = ab\,dt and the area is 12⋅ab⋅2π=πab\frac12\cdot ab\cdot2\pi = \pi ab.

    Answer. The disc has area π\pi both ways, and the ellipse has area πab\pi ab both ways.

    Worked example MATH 376 homework 4 problem 5
    A thin plate of uniform density occupies the triangle with vertices (−1,0)(-1, 0), (0,1)(0, 1), (1,0)(1, 0). Use Green's theorem to find its centre of mass.

    Solution.

    1. Area. Base 22, height 11, so A=1A = 1. The centre of mass has xˉ=1A∬x dA\bar x = \frac1A\iint x\,dA and yˉ=1A∬y dA\bar y = \frac1A\iint y\,dA.
    2. Choose fields with the right spin. For ∬y dA\iint y\,dA take P=−y22P = -\frac{y^2}{2}, Q=0Q = 0 (spin yy). For ∬x dA\iint x\,dA take P=0P = 0, Q=x22Q = \frac{x^2}{2} (spin xx). Both are C1C^1 on the plane.
    3. Boundary, counterclockwise. (−1,0)→(1,0)→(0,1)→(−1,0)(-1, 0) \to (1, 0) \to (0, 1) \to (-1, 0).
    4. ∬y dA=∮−y22 dx\iint y\,dA = \oint-\frac{y^2}{2}\,dx. Base: y=0y = 0, so 00. Right edge from (1,0)(1, 0) to (0,1)(0, 1): x=1−tx = 1 - t, y=ty = t, dx=−dtdx = -dt, giving ∫01t22 dt=16\int_0^1\frac{t^2}{2}\,dt = \frac16. Left edge from (0,1)(0, 1) to (−1,0)(-1, 0): x=t−1x = t - 1, y=ty = t, tt from 11 to 00, giving ∫10−t22 dt=16\int_1^0-\frac{t^2}{2}\,dt = \frac16. Sum 13\frac13, so yˉ=13\bar y = \frac13.
    5. ∬x dA=∮x22 dy\iint x\,dA = \oint\frac{x^2}{2}\,dy. The base has dy=0dy = 0. Right edge: ∫01(1−t)22 dt=16\int_0^1\frac{(1 - t)^2}{2}\,dt = \frac16. Left edge: ∫10(t−1)22 dt=−16\int_1^0\frac{(t - 1)^2}{2}\,dt = -\frac16. Sum 00, so xˉ=0\bar x = 0, as symmetry in the yy-axis says.

    Answer. (0,13)(0, \frac13): one third of the way up. Check: the width of the triangle at height yy is 2(1−y)2(1 - y), so ∬y dA=∫01y⋅2(1−y) dy=13\iint y\,dA = \int_0^1y\cdot2(1 - y)\,dy = \frac13.

    Worked example Apostol 11.22 (exercise style)
    Find the area of the astroid x=acos⁡3tx = a\cos^3t, y=asin⁡3ty = a\sin^3t, 0≤t≤2π0 \le t \le 2\pi.

    Solution.

    1. Setup. The curve is simple and counterclockwise. x′=−3acos⁡2tsin⁡tx' = -3a\cos^2t\sin t and y′=3asin⁡2tcos⁡ty' = 3a\sin^2t\cos t.
    2. Choose the symmetric formula. x y′−y x′=acos⁡3t⋅3asin⁡2tcos⁡t+asin⁡3t⋅3acos⁡2tsin⁡t=3a2sin⁡2tcos⁡2t (cos⁡2t+sin⁡2t)=3a2sin⁡2tcos⁡2tx\,y' - y\,x' = a\cos^3t\cdot3a\sin^2t\cos t + a\sin^3t\cdot3a\cos^2t\sin t = 3a^2\sin^2t\cos^2t\,(\cos^2t + \sin^2t) = 3a^2\sin^2t\cos^2t.
    3. Integrate. Area =12∫02π3a2sin⁡2tcos⁡2t dt=3a22∫02πsin⁡22t4 dt=3a22⋅π4= \frac12\int_0^{2\pi}3a^2\sin^2t\cos^2t\,dt = \frac{3a^2}{2}\int_0^{2\pi}\frac{\sin^22t}{4}\,dt = \frac{3a^2}{2}\cdot\frac{\pi}{4}. sin⁡tcos⁡t=12sin⁡2t\sin t\cos t = \frac12\sin2t and ∫02πsin⁡22t dt=π\int_0^{2\pi}\sin^22t\,dt = \pi.

    Answer. 3πa28\dfrac{3\pi a^2}{8}.

    Your answerA land parcel has corners, in order counterclockwise, at (0,0)(0, 0), (120,0)(120, 0), (150,80)(150, 80), (40,110)(40, 110) (metres). Use the formula 12∑(xiyi+1−xi+1yi)\frac12\sum(x_iy_{i+1} - x_{i+1}y_i) for the area in square metres.

    Regions with holes, and the winding number

    Beyond the course: for understanding· Apostol 11.21 to 11.25 (label A)

    The course stated only the simplest version of Green’s theorem. This section is the rest of Apostol’s treatment: what happens when the region has holes.

    Theorem A Apostol Thm 11.12 (11.23)

    Green's theorem for regions with holes

    Let C1,…,CnC_1, \dots, C_n be piecewise smooth Jordan curves such that no two intersect, C2,…,CnC_2, \dots, C_n lie in the interior of C1C_1, and each CiC_i lies in the exterior of CjC_j for i≠ji \ne j, i,j>1i, j > 1. Let RR be C1C_1 together with the part of its interior outside C2,…,CnC_2, \dots, C_n. If PP and QQ are C1C^1 on an open set containing RR, then

    ∬R(∂Q∂x−∂P∂y)dA=∮C1P dx+Q dy−∑k=2n∮CkP dx+Q dy,\iint_R\Big(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\Big)dA = \oint_{C_1}P\,dx + Q\,dy - \sum_{k=2}^n\oint_{C_k}P\,dx + Q\,dy,

    with every curve traversed counterclockwise. The minus signs are the clockwise orientation of the inner curves: the region stays on your left.

    In one lineIf C1C_1 is a Jordan curve and C2,…,CnC_2, \dots, C_n are disjoint Jordan curves inside it, all counterclockwise, and RR is the region inside C1C_1 and outside the others, then ∬R(Qx−Py) dA=∮C1−∮C2−⋯−∮Cn\iint_R(Q_x - P_y)\,dA = \oint_{C_1} - \oint_{C_2} - \dots - \oint_{C_n} of P dx+Q dyP\,dx + Q\,dy, for P,QP, Q of class C1C^1 on an open set containing RR.

    Why it is trueIt handles an annulus or a plate with holes: the outer curve counts positively, the inner curves negatively, and the field may be undefined inside the holes.

    ProofApostol 11.23
    The idea: For n = 2, cut the annulus by two crosscuts into two simply connected pieces, apply Green's theorem to each piece, and add. The crosscuts are traversed once in each direction and cancel.
    Cut the region into an upper piece bounded by the Jordan curve K1K_1 (upper halves of C2C_2 and C1C_1 and the two crosscuts) and a lower piece bounded by K2K_2.
    Introduce two crosscuts ABAB and CDCD joining the inner and outer curves.
    ∬Ri(Qx−Py) dA=∮KiP dx+Q dy\iint_{R_i}(Q_x - P_y)\,dA = \oint_{K_i}P\,dx + Q\,dy for i=1,2i = 1, 2.
    Green's theorem for each piece, which has no holes.
    Adding, the crosscut integrals disappear, and the remaining parts of K1K_1 and K2K_2 are C1C_1 counterclockwise and C2C_2 clockwise.
    Each crosscut is traversed once in each direction, so its two integrals cancel.
    ∬R(Qx−Py) dA=∮C1−∮C2\iint_R(Q_x - P_y)\,dA = \oint_{C_1} - \oint_{C_2}. The general nn follows by induction on nn. ■\blacksquare
    Additivity of the double integral over the two pieces.
    Corollary A Apostol Thm 11.13 (11.25)

    Invariance of a line integral under deformation

    Let P,QP, Q be C1C^1 on an open connected set SS with Py=QxP_y = Q_x everywhere on SS. Let C1,C2C_1, C_2 be piecewise smooth Jordan curves in SS with C2C_2 inside C1C_1, and the points inside C1C_1 and outside C2C_2 in SS. Then ∮C1P dx+Q dy=∮C2P dx+Q dy\oint_{C_1}P\,dx + Q\,dy = \oint_{C_2}P\,dx + Q\,dy (both traversed in the same direction).

    In one lineIf Py=QxP_y = Q_x on an open connected set SS and C2C_2 lies inside C1C_1 with the region between them in SS, then ∮C1P dx+Q dy=∮C2P dx+Q dy\oint_{C_1}P\,dx + Q\,dy = \oint_{C_2}P\,dx + Q\,dy, both counterclockwise.

    Why it is trueIt lets you replace a complicated curve around a hole by a small circle, and it shows that for such fields the integral around a hole counts how often the curve winds.

    The proof is the previous theorem with Qx−Py=0Q_x - P_y = 0: the double integral is 00, so ∮C1−∮C2=0\oint_{C_1} - \oint_{C_2} = 0.

    Worked example MATH 376 (the argument for the angle field); Apostol 11.25, exercise style
    Let F=(−y,x)x2+y2F = \dfrac{(-y, x)}{x^2 + y^2} and let CC be any counterclockwise Jordan curve with the origin inside it. Show ∮CF⋅dr=2π\oint_CF \cdot dr = 2\pi. Then let G=F(1,0)+3F(−1,0)G = F_{(1, 0)} + 3F_{(-1, 0)}, where Fp(x)=F(x−p)F_p(x) = F(x - p) is the angle field about the point pp, and compute ∮G⋅dr\oint G \cdot dr around the circle of radius 33 about the origin and around small circles about each point.

    Solution.

    1. Cut a hole. Choose a small circle C2C_2 of radius ρ\rho about the origin lying inside CC. Let RR be the region between them. FF is C1C^1 on the plane minus the origin, and the origin is not in RR, so the hole version applies with C1=CC_1 = C.
    2. Apply the hole version. ∮CF⋅dr−∮C2F⋅dr=∬R(Qx−Py) dA=∬R0 dA=0\oint_CF \cdot dr - \oint_{C_2}F \cdot dr = \iint_R(Q_x - P_y)\,dA = \iint_R0\,dA = 0. Qx−Py=0Q_x - P_y = 0 was computed in 6.2.
    3. Compute on the small circle. α(t)=(ρcos⁡t,ρsin⁡t)\alpha(t) = (\rho\cos t, \rho\sin t), F(α)=(−ρsin⁡t,ρcos⁡t)ρ2F(\alpha) = \frac{(-\rho\sin t, \rho\cos t)}{\rho^2}, and F⋅α′=1F \cdot \alpha' = 1, so ∮C2F⋅dr=2π\oint_{C_2}F \cdot dr = 2\pi. Hence ∮CF⋅dr=2π\oint_CF \cdot dr = 2\pi for every such CC.
    4. The two-hole field. GG has spin 00 away from the two points (±1,0)(\pm1, 0). Around the circle of radius 33, which contains both points, the hole version with two small circles gives ∮G=2π⋅1+2π⋅3=8π\oint G = 2\pi\cdot1 + 2\pi\cdot3 = 8\pi. Around a small circle about (1,0)(1, 0) that excludes (−1,0)(-1, 0): 2π2\pi. Around a small circle about (−1,0)(-1, 0): 6π6\pi. Each hole contributes its coefficient times 2π2\pi.

    Answer. 2π2\pi; and 8π8\pi, 2π2\pi, 6π6\pi for the three curves. This is also why a circulation of 00 around circles about the missing point implies a potential for a field with Py=QxP_y = Q_x (the instructor’s remark on Final problem 1(a)): every closed curve is a whole number of laps around the hole.

    Your answerWith G=F(1,0)+3F(−1,0)G = F_{(1, 0)} + 3F_{(-1, 0)} as above, what is the circulation of GG counterclockwise around the circle of radius 33 centred at the origin?
    Definition A

    Winding number

    Let r(t)=(X(t),Y(t))r(t) = (X(t), Y(t)), a≤t≤ba \le t \le b, be a closed piecewise smooth path and p=(x0,y0)p = (x_0, y_0) a point not on it. The winding number of rr about pp is

    W(r;p)=12π∫ab[X(t)−x0]Y′(t)−[Y(t)−y0]X′(t)[X(t)−x0]2+[Y(t)−y0]2 dt=12π∮−(y−y0) dx+(x−x0) dy(x−x0)2+(y−y0)2.W(r; p) = \frac1{2\pi}\int_a^b\frac{[X(t) - x_0]Y'(t) - [Y(t) - y_0]X'(t)}{[X(t) - x_0]^2 + [Y(t) - y_0]^2}\,dt = \frac1{2\pi}\oint\frac{-(y - y_0)\,dx + (x - x_0)\,dy}{(x - x_0)^2 + (y - y_0)^2}.

    It is always an integer (the total change of the angle of r(t)−pr(t) - p, divided by 2π2\pi). If CC is a Jordan curve it is 00 for pp outside CC, and for pp inside it is +1+1 at every inside point or −1-1 at every inside point; the first case is the positive orientation.

    In one lineThe winding number W(r;p)W(r; p) of a closed piecewise smooth path rr about a point pp not on it is 12π∮−(y−y0) dx+(x−x0) dy(x−x0)2+(y−y0)2\frac1{2\pi}\oint\frac{-(y - y_0)\,dx + (x - x_0)\,dy}{(x - x_0)^2 + (y - y_0)^2}: the number of times rr goes counterclockwise around pp.

    Why it existsIt makes 'goes around' exact: it is the circulation of the angle field about pp divided by 2π2\pi, and it is always a whole number.

    Worked example Apostol 11.24 (definition and Figure 11.20); the limacon is new
    Find the winding number of (a) the unit circle run twice counterclockwise about the origin; (b) the circle of radius 11 about (3,0)(3, 0), about the origin; (c) the limacon r=1+2cos⁡θr = 1 + 2\cos\theta, 0≤θ≤2π0 \le \theta \le 2\pi, about the points (1.5,0)(1.5, 0), (0.5,0)(0.5, 0) and (−0.2,0)(-0.2, 0).

    Solution.

    1. (a) The circulation of the angle field is 2π2\pi per lap, so after two laps it is 4π4\pi and W=2W = 2. The lab in 6.2 gave 12.566=4π12.566 = 4\pi.
    2. (b) The origin is outside the circle about (3,0)(3, 0), which lies in the half plane x>2x > 2, where the angle θ\theta is a single valued function, so the angle returns to its start without winding: W=0W = 0.
    3. (c) Shape. The limacon has a big outer loop through (3,0)(3, 0) and a small inner loop through the origin and (1,0)(1, 0) (where r=−1r = -1).
    4. (c) Count. A point inside the outer loop but outside the inner loop, such as (1.5,0)(1.5, 0), has W=1W = 1; a point inside the inner loop, such as (0.5,0)(0.5, 0), is circled twice, W=2W = 2; a point outside everything, such as (−0.2,0)(-0.2, 0), has W=0W = 0. Checked numerically by following the angle of r(t)−pr(t) - p and dividing the total change by 2π2\pi: the values 1,2,01, 2, 0.

    Answer. (a) 22; (b) 00; (c) 11, 22 and 00.

    Python labGreen's theorem, numerically, and where it fails
    import numpy as np
    c, s = np.cos, np.sin
    
    def circulation(F, r, dr, n=20000):                  # line integral of F around the closed curve r(t), 0 <= t <= 2 pi
        t = np.linspace(0, 2 * np.pi, n + 1); m = (t[:-1] + t[1:]) / 2
        (x, y), (u, v) = r(m), dr(m); P, Q = F(x, y)
        return np.sum(P * u + Q * v) * 2 * np.pi / n
    
    def double(curl, inside, box, n=1500):               # double integral of the curl over the region, midpoint grid
        x0, x1, y0, y1 = box
        X, Y = np.meshgrid(x0 + (np.arange(n) + .5) * (x1 - x0) / n, y0 + (np.arange(n) + .5) * (y1 - y0) / n)
        return np.sum(np.where(inside(X, Y), curl(X, Y), 0)) * (x1 - x0) * (y1 - y0) / n**2
    
    ell = (lambda t: (2 * c(t), s(t)), lambda t: (-2 * s(t), c(t)))          # the ellipse x^2/4 + y^2 = 1, counterclockwise
    inside = lambda X, Y: X**2 / 4 + Y**2 <= 1
    box = (-2, 2, -1, 1)
    F1 = lambda x, y: (-y**3, x**3)                                          # spin 3 x^2 + 3 y^2
    F2 = lambda x, y: (y**2, x)                                              # spin 1 - 2 y
    F3 = lambda x, y: (-y / (x**2 + y**2), x / (x**2 + y**2))                # the angle field, spin 0 away from the origin
    for name, F, curl in [("(-y^3, x^3)", F1, lambda X, Y: 3 * X**2 + 3 * Y**2), ("(y^2, x)", F2, lambda X, Y: 1 - 2 * Y),
                          ("angle field", F3, lambda X, Y: 0 * X)]:
        print(f"F = {name:12s} line integral {circulation(F, *ell):9.4f}    integral of the spin {double(curl, inside, box):9.4f}")

    Try this. Run it. For the ellipse x^2/4 + y^2 = 1 and F = (-y^3, x^3), the line integral around the boundary and the double integral of Q_x - P_y over the inside agree to about three decimals (both are 15*pi/2 = 23.562). For F = (y^2, x) the spin is 1 - 2y, whose integral over the symmetric ellipse equals the area 2*pi. For the angle field the spin is 0 but the line integral is 2*pi, because the field is not defined at the origin inside the ellipse. Change the curve to the circle of radius 0.5 centred at (2, 0), that is (2 + 0.5 cos t, 0.5 sin t), and the box and the inside test to match: the angle field now gives 0, because the origin is outside the curve and Green's theorem applies with spin 0.

    Change of variables

    In one variable, if g:[a,b]→Rg: [a, b] \to \mathbb R is C1C^1 and ff is continuous on g([a,b])g([a, b]), then ∫g(a)g(b)f(x) dx=∫abf(g(u)) g′(u) du\int_{g(a)}^{g(b)}f(x)\,dx = \int_a^bf(g(u))\,g'(u)\,du: substitution. The factor g′(u)g'(u) says by how much gg stretches a tiny interval. In the plane, a transformation is a map g(u,v)=(X(u,v),Y(u,v))g(u, v) = (X(u, v), Y(u, v)) from a region TT in the (u,v)(u, v)-plane to a region S=g(T)S = g(T) in the (x,y)(x, y)-plane. Its derivative is the Jacobian matrix (5.3), and its determinant, the Jacobian determinant (5.4),

    J(u,v)=∂(x,y)∂(u,v)=det⁡[XuXvYuYv]=XuYv−XvYuJ(u, v) = \frac{\partial(x, y)}{\partial(u, v)} = \det\begin{bmatrix}X_u & X_v\\ Y_u & Y_v\end{bmatrix} = X_uY_v - X_vY_u

    should be the area-stretching factor, the analogue of g′g'. The columns are the partial derivatives with respect to uu and vv.

    Slide the cell around and shrink its size hh. The purple patch is the true image of the little square; the green parallelogram is what the Jacobian matrix at the corner does to it. The ratio of areas is the Jacobian, up to a small error that goes to zero with hh.

    Why· Why the weight is the absolute value of the Jacobian determinant

    Put f=1f = 1; the formula says area(g(T))=∬Tw du dv\text{area}(g(T)) = \iint_Tw\,du\,dv for some weight ww, which must be the local area stretching factor. A translation keeps areas, so w=1w = 1, and its Jacobian matrix is the identity. A linear map with matrix AA sends the unit square to the parallelogram spanned by the columns of AA, of area ∣det⁡A∣|\det A| (2.7). A general C1C^1 map is close to its linear approximation g(a+h)≈g(a)+Dg(a) hg(a + h) \approx g(a) + Dg(a)\,h on a tiny square, so there the factor is ∣det⁡Dg(a)∣|\det Dg(a)|. Area is positive, so we need the absolute value: JJ is negative for a map that flips orientation.

    Where this came from· Euler, Lagrange and Jacobi

    Leonhard Euler studied double integrals in 1769 and was apparently the first to ask systematically how they change under a change of variables. A few years later Joseph-Louis Lagrange, working on the attraction of a solid body, needed a triple integral, found Euler’s method messy in three variables, and derived a general change of variables for triple integrals. The determinant that appears in the formula was studied for its own sake by Carl Jacobi in his 1841 paper on functional determinants (see 5.3), and carries his name. The best single account is V. Katz, Change of Variables in Multiple Integrals: Euler to Cartan (1982).

    Theorem T MATH 376 lecture Thm 4.27 and the lecture of 16 February; Apostol 11.26 and 11.29 to 11.30

    Change of variables in a double integral

    Let T=[a,b]×[c,d]T = [a, b] \times [c, d] (or a more general region) and g=(X,Y):T→R2g = (X, Y): T \to \mathbb R^2 one-to-one and C1C^1 with J(u,v)≠0J(u, v) \ne 0 for every (u,v)∈T(u, v) \in T. If ff is continuous on g(T)g(T), then

    ∬g(T)f(x,y) dx dy=∬Tf(X(u,v),Y(u,v)) ∣J(u,v)∣ du dv.\iint_{g(T)}f(x, y)\,dx\,dy = \iint_Tf\big(X(u, v), Y(u, v)\big)\,|J(u, v)|\,du\,dv.

    In Rn\mathbb R^n the statement is the same with TT a box and ∣det⁡Dg∣|\det Dg|.

    In one lineIf g:T→Sg: T \to S is one-to-one and C1C^1 with J≠0J \ne 0 (allowed to fail on a set of content zero) and ff is continuous on SS, then ∬Sf dx dy=∬Tf(X(u,v),Y(u,v)) ∣J(u,v)∣ du dv\iint_Sf\,dx\,dy = \iint_Tf(X(u, v), Y(u, v))\,|J(u, v)|\,du\,dv.

    Why it is trueIt lets you trade a region or integrand that is awkward in (x,y)(x, y) for a simple one in (u,v)(u, v), at the price of one extra factor: the absolute Jacobian determinant.

    What fails without each hypothesis.

    • One-to-one. If gg covers part of the image twice, the right side counts it twice. Example: g(u,v)=(u2,v)g(u, v) = (u^2, v) on [−1,1]×[0,1][-1, 1] \times [0, 1] has image [0,1]2[0, 1]^2 of area 11, but ∬T∣2u∣ du dv=2\iint_T|2u|\,du\,dv = 2. Polar coordinates with θ∈[0,4π]\theta \in [0, 4\pi] cover the disc twice.
    • J≠0J \ne 0. Where J=0J = 0 the map squashes a direction. For polar coordinates J=rJ = r vanishes at r=0r = 0, and gg also fails to be one-to-one on the line r=0r = 0 and on θ=0\theta = 0 versus θ=2π\theta = 2\pi; these bad sets have area zero, so the formula still holds.
    • C1C^1. The linear approximation needs continuous partial derivatives.
    • The absolute value. Dropping it is a common error (worksheet 9 problems 3 and 6, worksheet 27 problem 6).
    • The direction of the Jacobian. The formula needs ∂(x,y)/∂(u,v)\partial(x, y)/\partial(u, v): the old variables expressed through the new. If you solved for u,vu, v in terms of x,yx, y, what you computed is ∂(u,v)/∂(x,y)\partial(u, v)/\partial(x, y), the reciprocal.

    The recipe

    1. Choose a substitution (u,v)(u, v) that makes the region or the integrand simple.
    2. Map the boundary. For a polygon, send each vertex to the uvuv-plane and check that the sides map to the sides.
    3. Write x,yx, y in terms of u,vu, v, compute J=XuYv−XvYuJ = X_uY_v - X_vY_u and take ∣J∣|J|.
    4. Rewrite the integrand in u,vu, v.
    5. Integrate over the new region with the right limits.
    Mapx,yx, y in terms of the new variables∣J∣\lvert J\rvert
    polarx=rcos⁡θ, y=rsin⁡θx = r\cos\theta,\ y = r\sin\thetarr
    stretched polarx=arcos⁡θ, y=brsin⁡θx = ar\cos\theta,\ y = br\sin\thetaabrabr
    scalingx=2u, y=3vx = 2u,\ y = 3v66
    sum and differenceu=x−y, v=x+yu = x - y,\ v = x + y, so x=u+v2, y=v−u2x = \frac{u + v}{2},\ y = \frac{v - u}{2}12\frac12
    cylindricalx=rcos⁡θ, y=rsin⁡θ, z=zx = r\cos\theta,\ y = r\sin\theta,\ z = zrr
    sphericalx=ρsin⁡φcos⁡θ, y=ρsin⁡φsin⁡θ, z=ρcos⁡φx = \rho\sin\varphi\cos\theta,\ y = \rho\sin\varphi\sin\theta,\ z = \rho\cos\varphiρ2sin⁡φ\rho^2\sin\varphi
    Quick checkYou substitute u=x+yu = x + y, v=x−yv = x - y and compute ∂(u,v)/∂(x,y)=−2\partial(u, v)/\partial(x, y) = -2. What factor multiplies the integrand in the du dvdu\,dv integral?
    Worked example MATH 376 lecture 4.28; practice Final problem 3, see [A.5](/vol2/a5-practice-exams/)
    Find the Jacobian determinant of polar coordinates and of g(r,θ)=r(cos⁡2πθ, 12sin⁡2πθ)g(r, \theta) = r\big(\cos2\pi\theta,\ \tfrac12\sin2\pi\theta\big). Then compute the area of the elliptic ring E={(x,y):1≤x2+4y2≤11}E = \{(x, y): 1 \le x^2 + 4y^2 \le 11\}.

    Solution.

    1. Polar. det⁡[cos⁡θ−rsin⁡θsin⁡θrcos⁡θ]=rcos⁡2θ+rsin⁡2θ=r\det\begin{bmatrix}\cos\theta & -r\sin\theta\\ \sin\theta & r\cos\theta\end{bmatrix} = r\cos^2\theta + r\sin^2\theta = r. Columns are ∂/∂r\partial/\partial r and ∂/∂θ\partial/\partial\theta.
    2. The practice map. x=rcos⁡2πθx = r\cos2\pi\theta, y=r2sin⁡2πθy = \frac r2\sin2\pi\theta. Then xr=cos⁡2πθx_r = \cos2\pi\theta, xθ=−2πrsin⁡2πθx_\theta = -2\pi r\sin2\pi\theta, yr=12sin⁡2πθy_r = \frac12\sin2\pi\theta, yθ=πrcos⁡2πθy_\theta = \pi r\cos2\pi\theta. Chain rule: the inner function 2πθ2\pi\theta has derivative 2π2\pi.
    3. Determinant. J=xryθ−xθyr=πrcos⁡22πθ+πrsin⁡22πθ=πrJ = x_ry_\theta - x_\theta y_r = \pi r\cos^22\pi\theta + \pi r\sin^22\pi\theta = \pi r. The second product is 2πrsin⁡(⋅)⋅12sin⁡(⋅)=πrsin⁡2(⋅)2\pi r\sin(\cdot)\cdot\frac12\sin(\cdot) = \pi r\sin^2(\cdot), with a plus sign after subtracting the negative.
    4. Turn the ring into a rectangle. x2+4y2=r2cos⁡22πθ+r2sin⁡22πθ=r2x^2 + 4y^2 = r^2\cos^22\pi\theta + r^2\sin^22\pi\theta = r^2, so the ring is 1≤r≤111 \le r \le \sqrt{11}, θ∈[0,1)\theta \in [0, 1). gg is the polar map followed by a squeeze of yy by 12\frac12, one-to-one for r>0r > 0 and C1C^1 with J=πr≠0J = \pi r \ne 0 for r≥1r \ge 1: all hypotheses hold.
    5. Integrate. Area(E)=∬E1 dx dy=∫01 ⁣∫111πr dr dθ=π⋅11−12=5π\text{Area}(E) = \iint_E1\,dx\,dy = \int_0^1\!\int_1^{\sqrt{11}}\pi r\,dr\,d\theta = \pi\cdot\frac{11 - 1}{2} = 5\pi.
    6. Check. The ellipse x2+4y2≤ρ2x^2 + 4y^2 \le \rho^2 has half-axes ρ\rho and ρ/2\rho/2, area πρ22\frac{\pi\rho^2}{2}, and 11π2−π2=5π\frac{11\pi}{2} - \frac{\pi}{2} = 5\pi.

    Answer. J=rJ = r for polar, J=πrJ = \pi r for the practice map, and Area(E)=5π\text{Area}(E) = 5\pi. (With the polar J=rJ = r the disc of radius RR has area ∫02π ⁣∫0Rr dr dθ=πR2\int_0^{2\pi}\!\int_0^Rr\,dr\,d\theta = \pi R^2, the lecture’s first use of the theorem.)

    Worked example MATH 376 homework 4 problem 3; worksheet 9 problem 6
    Find the area of the ellipse x2a2+y2b2≤1\frac{x^2}{a^2} + \frac{y^2}{b^2} \le 1 with x=arcos⁡θx = ar\cos\theta, y=brsin⁡θy = br\sin\theta. Then compute ∬R(x2+y2) dA\iint_R(x^2 + y^2)\,dA over x24+y29≤1\frac{x^2}{4} + \frac{y^2}{9} \le 1 with x=2ux = 2u, y=3vy = 3v.

    Solution.

    1. Jacobian. [acos⁡θ−arsin⁡θbsin⁡θbrcos⁡θ]\begin{bmatrix}a\cos\theta & -ar\sin\theta\\ b\sin\theta & br\cos\theta\end{bmatrix} has determinant abrcos⁡2θ+abrsin⁡2θ=abrabr\cos^2\theta + abr\sin^2\theta = abr. x2a2+y2b2=r2\frac{x^2}{a^2} + \frac{y^2}{b^2} = r^2, so the ellipse is 0≤r≤10 \le r \le 1.
    2. Area. ∫02π ⁣∫01abr dr dθ=πab\int_0^{2\pi}\!\int_0^1abr\,dr\,d\theta = \pi ab. One-to-one except on a set of area zero (r=0r = 0 and the cut at θ=0\theta = 0).
    3. Second problem: scaling. The map x=2ux = 2u, y=3vy = 3v is linear with ∣J∣=6|J| = 6, and the condition becomes u2+v2≤1u^2 + v^2 \le 1.
    4. Rewrite. ∬R(x2+y2) dA=∬u2+v2≤1(4u2+9v2)⋅6 du dv\iint_R(x^2 + y^2)\,dA = \iint_{u^2 + v^2 \le 1}(4u^2 + 9v^2)\cdot6\,du\,dv.
    5. Polar in the uvuv-plane. 6∫02π ⁣∫01(4r2cos⁡2θ+9r2sin⁡2θ) r dr dθ=6⋅14(4π+9π)=39π26\int_0^{2\pi}\!\int_0^1(4r^2\cos^2\theta + 9r^2\sin^2\theta)\,r\,dr\,d\theta = 6\cdot\frac14(4\pi + 9\pi) = \frac{39\pi}{2}. ∫01r3 dr=14\int_0^1r^3\,dr = \frac14 and ∫02πcos⁡2θ dθ=∫02πsin⁡2θ dθ=π\int_0^{2\pi}\cos^2\theta\,d\theta = \int_0^{2\pi}\sin^2\theta\,d\theta = \pi.

    Answer. πab\pi ab and 39π2\dfrac{39\pi}{2}.

    Your answerUse x=2ux = 2u, y=3vy = 3v to find the area of the ellipse x24+y29≤1\frac{x^2}{4} + \frac{y^2}{9} \le 1.
    Worked example MATH 376 worksheet 9 problem 3
    Compute ∬Rx−yx+y dA\iint_R\dfrac{x - y}{x + y}\,dA where RR is the square with vertices (0,1)(0, 1), (1,2)(1, 2), (2,1)(2, 1), (1,0)(1, 0), using u=x−yu = x - y, v=x+yv = x + y.

    Solution.

    1. Map the vertices. (x,y)↦(u,v)(x, y) \mapsto (u, v): (0,1)→(−1,1)(0, 1) \to (-1, 1), (1,2)→(−1,3)(1, 2) \to (-1, 3), (2,1)→(1,3)(2, 1) \to (1, 3), (1,0)→(1,1)(1, 0) \to (1, 1). These are the corners of the rectangle [−1,1]×[1,3][-1, 1] \times [1, 3]. The sides of RR lie on the lines x−y=±1x - y = \pm1 and x+y=1,3x + y = 1, 3.
    2. Solve for the old variables. Adding the definitions, u+v=2xu + v = 2x; subtracting, v−u=2yv - u = 2y. So x=u+v2x = \frac{u + v}{2}, y=v−u2y = \frac{v - u}{2}. The formula needs ∂(x,y)/∂(u,v)\partial(x, y)/\partial(u, v), so x,yx, y must be written in terms of u,vu, v.
    3. Jacobian. det⁡[1212−1212]=14+14=12\det\begin{bmatrix}\frac12 & \frac12\\ -\frac12 & \frac12\end{bmatrix} = \frac14 + \frac14 = \frac12, so ∣J∣=12|J| = \frac12.
    4. Rewrite the integrand. x−yx+y=uv\frac{x - y}{x + y} = \frac uv, continuous since v≥1v \ge 1.
    5. Integrate. ∫13 ⁣∫−11uv⋅12 du dv=12∫131v[u22]−11dv=0\int_1^3\!\int_{-1}^1\frac uv\cdot\frac12\,du\,dv = \frac12\int_1^3\frac1v\Big[\frac{u^2}{2}\Big]_{-1}^1dv = 0. The integrand is odd in uu over the symmetric interval [−1,1][-1, 1].

    Answer. 00.

    Worked example MATH 376 worksheet 27 problem 6
    Compute ∬D(x+y) dA\iint_D(x + y)\,dA where DD is the parallelogram that corresponds to 0≤u≤20 \le u \le 2, 0≤v≤40 \le v \le 4 under u=x+yu = x + y, v=x−yv = x - y.

    Solution.

    1. Solve. x=u+v2x = \frac{u + v}{2}, y=u−v2y = \frac{u - v}{2}.
    2. Jacobian. det⁡[121212−12]=−14−14=−12\det\begin{bmatrix}\frac12 & \frac12\\ \frac12 & -\frac12\end{bmatrix} = -\frac14 - \frac14 = -\frac12. The Jacobian is negative, so ∣J∣=12|J| = \frac12. The absolute value is required: area is positive, and this map reverses orientation.
    3. Integrand. x+y=ux + y = u.
    4. Integrate. ∫02 ⁣∫04u⋅12 dv du=∫022u du=4\int_0^2\!\int_0^4u\cdot\frac12\,dv\,du = \int_0^22u\,du = 4.

    Answer. 44.

    Worked example MATH 376 homework 4 problem 6; Topic 5 table
    Compute the Jacobian determinants of cylindrical and spherical coordinates, and use the second to verify dV=ρ2sin⁡φ dρ dφ dθdV = \rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta.

    Solution.

    1. Cylindrical. For (r,θ,z)↦(rcos⁡θ,rsin⁡θ,z)(r, \theta, z) \mapsto (r\cos\theta, r\sin\theta, z) the matrix is [cos⁡θ−rsin⁡θ0sin⁡θrcos⁡θ0001]\begin{bmatrix}\cos\theta & -r\sin\theta & 0\\ \sin\theta & r\cos\theta & 0\\ 0 & 0 & 1\end{bmatrix}. Expand along the third column, which has a single non-zero entry 11 with sign ++: det⁡=1⋅(rcos⁡2θ+rsin⁡2θ)=r\det = 1\cdot(r\cos^2\theta + r\sin^2\theta) = r.
    2. Spherical matrix. Rows x,y,zx, y, z, columns ρ,φ,θ\rho, \varphi, \theta: [sin⁡φcos⁡θρcos⁡φcos⁡θ−ρsin⁡φsin⁡θsin⁡φsin⁡θρcos⁡φsin⁡θρsin⁡φcos⁡θcos⁡φ−ρsin⁡φ0]\begin{bmatrix}\sin\varphi\cos\theta & \rho\cos\varphi\cos\theta & -\rho\sin\varphi\sin\theta\\ \sin\varphi\sin\theta & \rho\cos\varphi\sin\theta & \rho\sin\varphi\cos\theta\\ \cos\varphi & -\rho\sin\varphi & 0\end{bmatrix}.
    3. Expand along the third row, with signs +,−,++, -, +; the third entry is 00. The first entry cos⁡φ\cos\varphi has minor ρ2cos⁡φsin⁡φ(cos⁡2θ+sin⁡2θ)=ρ2sin⁡φcos⁡φ\rho^2\cos\varphi\sin\varphi(\cos^2\theta + \sin^2\theta) = \rho^2\sin\varphi\cos\varphi. The second entry −ρsin⁡φ-\rho\sin\varphi (sign −-) has minor ρsin⁡2φ\rho\sin^2\varphi.
    4. Combine. det⁡=cos⁡φ⋅ρ2sin⁡φcos⁡φ−(−ρsin⁡φ)⋅ρsin⁡2φ=ρ2sin⁡φ(cos⁡2φ+sin⁡2φ)=ρ2sin⁡φ\det = \cos\varphi\cdot\rho^2\sin\varphi\cos\varphi - (-\rho\sin\varphi)\cdot\rho\sin^2\varphi = \rho^2\sin\varphi(\cos^2\varphi + \sin^2\varphi) = \rho^2\sin\varphi.
    5. Absolute value. On 0≤φ≤π0 \le \varphi \le \pi, sin⁡φ≥0\sin\varphi \ge 0, so ∣J∣=ρ2sin⁡φ|J| = \rho^2\sin\varphi.

    Answer. rr and ρ2sin⁡φ\rho^2\sin\varphi.

    Worked example Apostol 11.27, example 2
    Compute ∬Se(y−x)/(y+x) dx dy\iint_Se^{(y-x)/(y+x)}\,dx\,dy where SS is the triangle bounded by x+y=2x + y = 2 and the coordinate axes.

    Solution.

    1. Choose the substitution from the integrand. u=y−xu = y - x, v=y+xv = y + x, so x=v−u2x = \frac{v - u}{2}, y=v+u2y = \frac{v + u}{2} and J=−12J = -\frac12, ∣J∣=12|J| = \frac12.
    2. Map the boundary. x=0x = 0 becomes u=vu = v; y=0y = 0 becomes u=−vu = -v; x+y=2x + y = 2 becomes v=2v = 2. The new region is the triangle 0≤v≤20 \le v \le 2, −v≤u≤v-v \le u \le v.
    3. Inner integral. ∫−vveu/v du=[veu/v]u=−vu=v=v(e−e−1)\int_{-v}^ve^{u/v}\,du = \big[ve^{u/v}\big]_{u=-v}^{u=v} = v(e - e^{-1}). Treat vv as a constant; the antiderivative of eu/ve^{u/v} in uu is veu/vve^{u/v}.
    4. Outer integral. ∬eu/v⋅12 du dv=12∫02v(e−e−1) dv=12(e−e−1)⋅2\iint e^{u/v}\cdot\frac12\,du\,dv = \frac12\int_0^2v(e - e^{-1})\,dv = \frac12(e - e^{-1})\cdot2.

    Answer. e−e−1e - e^{-1}.

    Worked example the Gaussian integral (label B); used in 8.1
    Show that ∫−∞∞e−x2 dx=π\displaystyle\int_{-\infty}^\infty e^{-x^2}\,dx = \sqrt\pi.

    Solution.

    1. Square it. (∫e−x2 dx)2=∬R2e−(x2+y2) dx dy\big(\int e^{-x^2}\,dx\big)^2 = \iint_{\mathbb R^2}e^{-(x^2 + y^2)}\,dx\,dy. Separable integrand: the product of two single integrals (Fubini, extended to the plane as a limit of integrals over larger and larger discs).
    2. Polar coordinates. =∫02π ⁣∫0∞e−r2 r dr dθ=2π[−12e−r2]0∞=π= \int_0^{2\pi}\!\int_0^\infty e^{-r^2}\,r\,dr\,d\theta = 2\pi\Big[-\tfrac12e^{-r^2}\Big]_0^\infty = \pi. The factor rr of the Jacobian is what makes the antiderivative elementary.
    3. Square root. The integral is positive, so it equals π\sqrt\pi.

    Answer. π\sqrt\pi. This is the normalising constant of the Gaussian density in 10.1.

    Why the formula is true

    Three layers, in the order Apostol gives them. The first layer is the one a good proof sketch should name; the second is a complete proof of the case that matters; the third is a sketch.

    Theorem A Apostol 11.29

    Area under a change of variables

    Let g=(X,Y)g = (X, Y) be one-to-one with continuous second partial derivatives and J=XuYv−XvYu>0J = X_uY_v - X_vY_u > 0 on a region TT bounded by a piecewise smooth Jordan curve C∗C^* (positively oriented), and S=g(T)S = g(T) with boundary C=g(C∗)C = g(C^*). Then area(S)=∬TJ(u,v) du dv\text{area}(S) = \iint_TJ(u, v)\,du\,dv.

    In one lineIf g=(X,Y)g = (X, Y) has continuous second partials and J>0J > 0 on a region TT bounded by a piecewise smooth Jordan curve, then the area of g(T)g(T) equals ∬TJ du dv\iint_TJ\,du\,dv.

    Why it is trueThis is the formula with f=1f = 1; the rest of the change of variables theorem is deduced from it by a step-function argument, and its proof is Green's theorem.

    ProofApostol 11.29
    The idea: Write the area of S as a line integral of x dy around its boundary with Green's theorem. Parametrize the boundary through the (u, v) plane. Then apply Green's theorem again in the (u, v) plane; the mixed second partials cancel and what is left is the Jacobian.
    area(S)=∮Cx dy\text{area}(S) = \oint_Cx\,dy.
    Green's theorem with P=0P = 0, Q=xQ = x (spin 11), for the curve CC, positively oriented because J>0J > 0 preserves orientation (Apostol states this).
    ∮Cx dy=∮C∗X (Yu du+Yv dv)\oint_Cx\,dy = \oint_{C^*}X\,(Y_u\,du + Y_v\,dv).
    Parametrize C∗C^* by (u(t),v(t))(u(t), v(t)); then CC is (X(u(t),v(t)),Y(u(t),v(t)))(X(u(t), v(t)), Y(u(t), v(t))), and the chain rule gives dy=Yuu′ dt+Yvv′ dtdy = Y_uu'\,dt + Y_vv'\,dt.
    =∬T[(XYv)u−(XYu)v] du dv= \iint_T\big[(XY_v)_u - (XY_u)_v\big]\,du\,dv.
    Green's theorem in the (u,v)(u, v)-plane with P=XYuP = XY_u and Q=XYvQ = XY_v (these are C1C^1 because X,YX, Y are C2C^2).
    (XYv)u−(XYu)v=XuYv−XvYu+X(Yvu−Yuv)(XY_v)_u - (XY_u)_v = X_uY_v - X_vY_u + X(Y_{vu} - Y_{uv}).
    Product rule: (XYv)u=XuYv+XYvu(XY_v)_u = X_uY_v + XY_{vu} and (XYu)v=XvYu+XYuv(XY_u)_v = X_vY_u + XY_{uv}.
    So the integrand is XuYv−XvYu=JX_uY_v - X_vY_u = J, and area(S)=∬TJ du dv\text{area}(S) = \iint_TJ\,du\,dv. ■\blacksquare
    Equality of mixed partials for the C2C^2 function YY (5.5): Yvu=YuvY_{vu} = Y_{uv}.
    Proof workshopGive the reason for each line: the area of an image is the integral of JApostol 11.29

    Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.

    1. area(S)=∮Cx dy\text{area}(S) = \oint_C x\,dy.
    2. ∮Cx dy=∮C∗X (Yu du+Yv dv)\oint_C x\,dy = \oint_{C^*} X\,(Y_u\,du + Y_v\,dv).
    3. =∬T[(XYv)u−(XYu)v] du dv= \iint_T [(XY_v)_u - (XY_u)_v]\,du\,dv.
    4. (XYv)u−(XYu)v=XuYv−XvYu+X(Yvu−Yuv)(XY_v)_u - (XY_u)_v = X_uY_v - X_vY_u + X(Y_{vu} - Y_{uv}).
    5. Yvu=YuvY_{vu} = Y_{uv}, so the integrand is JJ.

    From f=1f = 1 to every ff. Apply the formula to a rectangle RR in the xyxy-plane and its image R∗R^* in the uvuv-plane under the inverse map: ∬Rdx dy=∬R∗∣J∣ du dv\iint_Rdx\,dy = \iint_{R^*}|J|\,du\,dv. Multiply by a constant cijc_{ij} and sum over the cells of a partition: this proves the formula for step functions ss on RR. Given an integrable ff and step functions s≤f≤ts \le f \le t, composing with gg keeps the inequalities, and multiplying by ∣J∣≥0|J| \ge 0 keeps them too; so the number ∬R∗f(g(u,v))∣J∣ du dv\iint_{R^*}f(g(u, v))|J|\,du\,dv lies between ∬s\iint s and ∬t\iint t for all such s,ts, t, hence equals ∬Rf\iint_Rf. Finally extend ff by zero from a general region to a rectangle containing it (Apostol 11.30). This is the sandwich argument of 6.3 again.

    The lecture’s proof (label T, a sketch). The lecture of 16 February proved the theorem on a rectangle by a different route. By uniform continuity of the partial derivatives, for every ε\varepsilon there is δ\delta such that ∥g(p+h)−g(p)−Dg(p) h∥∞≤ε∥h∥∞\lVert g(p + h) - g(p) - Dg(p)\,h \rVert_\infty \le \varepsilon\lVert h \rVert_\infty for all pp and all ∥h∥∞<δ\lVert h \rVert_\infty < \delta. Cut the rectangle into cells of side below δ\delta. On each cell the true image g(Rk)g(R_k) lies within a band of width about εδ\varepsilon\delta of the parallelogram Dg(pk)(Rk)Dg(p_k)(R_k), whose area is ∣J(pk)∣ area(Rk)|J(p_k)|\,\text{area}(R_k); since ∣J∣|J| has a positive minimum, the area error is a small multiple of ε\varepsilon times the area of the cell. Summing, the integral of ff over g(Q)g(Q) is within O(ε)O(\varepsilon) of ∑f(g(pk))∣J(pk)∣ area(Rk)\sum f(g(p_k))|J(p_k)|\,\text{area}(R_k), which lies between the step integrals of the continuous function (f∘g)∣J∣(f \circ g)|J|. Since ε\varepsilon is arbitrary, the two integrals are equal. This is a sketch: several constants are not tracked.

    Where it is used

    Used inside maths· Inside maths: Cauchy's theorem, Stokes, and densities under a change of variables

    Green’s theorem is the plane case of Stokes’ theorem. The 376 midterm asked to deduce Green’s theorem from Stokes’ theorem for the flat disc D×{0}D \times \{0\} with normal (0,0,1)(0, 0, 1) and the field (P,Q,0)(P, Q, 0), whose curl is (0,0,Qx−Py)(0, 0, Q_x - P_y); the full-credit solution is in A.1, where Stokes’ theorem is the given and this chapter’s statement is the target. Another consequence is a ‘normal form’ of Green’s theorem: applying it to (−Q,P)(-Q, P) shows that the flux of a field F=(P,Q)F = (P, Q) out of a region equals ∬(Px+Qy) dA\iint(P_x + Q_y)\,dA, the divergence, which becomes the divergence theorem in 3-space. In complex analysis, ∮f(z) dz=0\oint f(z)\,dz = 0 for analytic ff follows from Green’s theorem and the Cauchy–Riemann equations, and the winding number appears in the residue theorem. In probability, if (X,Y)(X, Y) has density fX,Yf_{X,Y} and (U,V)=h(X,Y)(U, V) = h(X, Y) is one-to-one and smooth, then fU,V(u,v)=fX,Y(h−1(u,v)) ∣det⁡Dh−1(u,v)∣f_{U,V}(u, v) = f_{X,Y}(h^{-1}(u, v))\,|\det Dh^{-1}(u, v)|: this chapter’s theorem, read as a statement about densities.

    Used in the real world· Used in the real world: the planimeter, the surveyor's formula and the bell curve

    A polar planimeter measures the area of a region on a map or an indicator diagram by tracing its boundary once with a pointer; the reading of its wheel is a line integral of the motion of the pointer along the boundary, and by Green’s theorem that line integral is proportional to the enclosed area. Land surveyors use the polygon version: for a parcel with corners (xi,yi)(x_i, y_i) listed counterclockwise, the area is 12∑(xiyi+1−xi+1yi)\frac12\sum(x_iy_{i+1} - x_{i+1}y_i), because on the straight edge from (xi,yi)(x_i, y_i) to (xi+1,yi+1)(x_{i+1}, y_{i+1}) the integral of x dy−y dxx\,dy - y\,dx is exactly xiyi+1−xi+1yix_iy_{i+1} - x_{i+1}y_i. For corners (0,0)(0, 0), (120,0)(120, 0), (150,80)(150, 80), (40,110)(40, 110) metres the area is 12(0+9600+13300+0)=11,450\frac12(0 + 9600 + 13300 + 0) = 11{,}450 m2^2. The same formula is what graphics libraries use to find the signed area of a polygon, and a negative sign tells them the corners were listed clockwise.

    The bell curve: the density of a standard normal variable is 12πe−x2/2\frac{1}{\sqrt{2\pi}}e^{-x^2/2}, and the constant 12π\frac1{\sqrt{2\pi}} comes from the Gaussian integral ∫e−x2/2 dx=2π\int e^{-x^2/2}\,dx = \sqrt{2\pi}, which is the polar-coordinate computation above (with x2/2x^2/2 in place of x2x^2). Without the factor rr from the Jacobian, no one would have found the integral in closed form. And when the heat in a circular plate is computed in polar coordinates, or the gravitational pull of a ball in spherical coordinates, the Jacobians rr and ρ2sin⁡φ\rho^2\sin\varphi are the factors that make the integrals tractable.

    Traps

    Watch out· Deduce means: say what each ingredient becomes

    On the 376 midterm, a student were asked in problem 4(b) to ‘Deduce Green’s theorem from Stokes’ theorem’. They wrote Stokes’ theorem and the determinant formula for the curl, and the rubric item was ‘Stated Green’s theorem or Stokes’ theorem, otherwise no helpful steps’: 0.5 of 3. Quoting the big theorem is the first line of the argument. The rest: name the surface (D×{0}D \times \{0\}), its normal ((0,0,1)(0, 0, 1)), the field (P,Q,0)(P, Q, 0) and its curl (0,0,Qx−Py)(0, 0, Q_x - P_y), check the orientation of the boundary, and conclude. The full solution is in A.1. A ‘deduce’ question is a checklist.

    Watch out· Check all the hypotheses of Green, especially the inside

    Orientation (counterclockwise, region on your left), closed and simple, and a C1C^1 field on an open set containing the inside as well as the boundary. The designed counterexample is the angle field around the origin: spin 00, circulation 2π2\pi. If the curve encloses a point where FF is undefined, cut it out with the hole version.

    Watch out· Keep the absolute value, and use the right Jacobian

    The factor is ∣J∣|J|, never JJ (worksheet 9 problems 3 and 6, worksheet 27 problem 6 all test this). And it is ∂(x,y)/∂(u,v)\partial(x, y)/\partial(u, v), the old variables in terms of the new. If you solved u=x+yu = x + y, v=x−yv = x - y and computed the matrix of u,vu, v in terms of x,yx, y (determinant −2-2), invert: the factor is 12\frac12.

    Watch out· Map the region, not only the integrand

    Change the boundary as well as the integrand. For a polygon, map its vertices and check that the images of the sides are the sides of the new region (worksheet 9 problem 3 turns a tilted square into a rectangle). A substitution that simplifies the integrand but leaves a messy region is usually the wrong substitution.

    Watch out· Do not forget r in polar coordinates

    dA=r dr dθdA = r\,dr\,d\theta. The same goes for rr in cylindrical and ρ2sin⁡φ\rho^2\sin\varphi in spherical coordinates. Polar limits are constants only for a disc, a sector or a ring centred at the origin.

    Watch out· A curve that crosses itself

    For a figure eight, Green’s theorem does not give the integral over the whole enclosed set: the loops run in opposite senses and the line integral is the integral over one loop minus the integral over the other. Split the curve into its simple loops, or use the winding number.

    Problems

    checkMATH 376 worksheet 8 problem 3 style

    Compute ∮Cx2y dx+xy2 dy\oint_C x^2y\,dx + xy^2\,dy around the boundary of the square [0,1]2[0, 1]^2, counterclockwise.

    Solution

    P=x2yP = x^2y, Q=xy2Q = xy^2 are polynomials. Qx−Py=y2−x2Q_x - P_y = y^2 - x^2. ∬[0,1]2(y2−x2) dA=13−13=0\iint_{[0,1]^2}(y^2 - x^2)\,dA = \frac13 - \frac13 = 0.

    check

    The Jacobian determinant of (r,θ)↦(rcos⁡θ,rsin⁡θ)(r, \theta) \mapsto (r\cos\theta, r\sin\theta) is rr. By what factor does polar coordinates multiply the area of a tiny cell at r=5r = 5?

    Solution

    By 55. A cell of sides drdr and dθd\theta is sent to a nearly rectangular patch with sides drdr and 5 dθ5\,d\theta, of area 5 dr dθ5\,dr\,d\theta.

    check

    True or false: if Qx−Py=0Q_x - P_y = 0 at every point of the plane minus the origin, then ∮CP dx+Q dy=0\oint_CP\,dx + Q\,dy = 0 for every closed curve in that set.

    Solution

    False. The angle field has Qx−Py=0Q_x - P_y = 0 there and circulation 2π2\pi around the unit circle. The statement is true for curves that do not wind around the origin (their inside stays in the domain).

    checkMATH 376 worksheet 9 problem 3, step 1 only

    The linear map u=x−yu = x - y, v=x+yv = x + y sends the triangle with vertices (0,0)(0, 0), (1,0)(1, 0), (0,1)(0, 1) to a triangle in the uvuv-plane. Find its vertices and the Jacobian ∂(x,y)/∂(u,v)\partial(x, y)/\partial(u, v).

    Solution

    (0,0)↦(0,0)(0, 0) \mapsto (0, 0), (1,0)↦(1,1)(1, 0) \mapsto (1, 1), (0,1)↦(−1,1)(0, 1) \mapsto (-1, 1). With x=u+v2x = \frac{u + v}{2}, y=v−u2y = \frac{v - u}{2}, the Jacobian is det⁡[1212−1212]=12\det\begin{bmatrix}\frac12 & \frac12\\ -\frac12 & \frac12\end{bmatrix} = \frac12. (Check: the new triangle has base 22 and height 11, area 11, which is twice the area 12\frac12 of the old; so areas in the (x,y)(x, y)-plane are half those in the (u,v)(u, v)-plane, matching ∣J∣=12|J| = \frac12.)

    usenew (MATH 376 worksheet 9 problem 4 style)

    Use Green’s theorem to compute the work of F=(ex−y3, sin⁡y+x3)F = (e^x - y^3,\ \sin y + x^3) around the circle x2+y2=1x^2 + y^2 = 1, counterclockwise.

    Solution

    FF is C1C^1 on the plane. Qx−Py=3x2+3y2Q_x - P_y = 3x^2 + 3y^2. In polar coordinates ∬3r2 dA=∫02π ⁣∫013r3 dr dθ=3π2\iint3r^2\,dA = \int_0^{2\pi}\!\int_0^13r^3\,dr\,d\theta = \frac{3\pi}{2}.

    useMATH 376 worksheet 27 problem 4 style

    Find the area enclosed by the ellipse x29+y216=1\frac{x^2}{9} + \frac{y^2}{16} = 1 by 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx).

    Solution

    x=3cos⁡tx = 3\cos t, y=4sin⁡ty = 4\sin t, x dy−y dx=12(cos⁡2t+sin⁡2t) dt=12 dtx\,dy - y\,dx = 12(\cos^2t + \sin^2t)\,dt = 12\,dt, so the area is 12⋅12⋅2π=12π\frac12\cdot12\cdot2\pi = 12\pi (=πab= \pi ab).

    useApostol 11.28 style

    Compute ∬Dx2+y2 dA\iint_D\sqrt{x^2 + y^2}\,dA where DD is the half disc x2+y2≤4x^2 + y^2 \le 4, y≥0y \ge 0.

    Solution

    Polar: ∫0π ⁣∫02r⋅r dr dθ=π⋅83=8π3\int_0^\pi\!\int_0^2r\cdot r\,dr\,d\theta = \pi\cdot\frac83 = \frac{8\pi}{3}.

    use

    Use u=x+yu = x + y, v=y−2xv = y - 2x to compute ∬T(x+y) dA\iint_T(x + y)\,dA over the triangle TT with vertices (0,0)(0, 0), (1,0)(1, 0), (0,1)(0, 1).

    Solution

    The vertices map to (0,0)(0, 0), (1,−2)(1, -2), (1,1)(1, 1). Solving: u−v=3xu - v = 3x, so x=u−v3x = \frac{u - v}{3}, and y=u−x=2u+v3y = u - x = \frac{2u + v}{3}. J=det⁡[13−132313]=19+29=13J = \det\begin{bmatrix}\frac13 & -\frac13\\ \frac23 & \frac13\end{bmatrix} = \frac19 + \frac29 = \frac13. The new triangle is 0≤u≤10 \le u \le 1, −2u≤v≤u-2u \le v \le u, and the integrand is uu: ∫01 ⁣∫−2uuu⋅13 dv du=13∫013u2 du=13\int_0^1\!\int_{-2u}^uu\cdot\frac13\,dv\,du = \frac13\int_0^13u^2\,du = \frac13. Check directly: ∬T(x+y) dA=∫01 ⁣∫01−x(x+y) dy dx=13\iint_T(x + y)\,dA = \int_0^1\!\int_0^{1-x}(x + y)\,dy\,dx = \frac13.

    proveMATH 376 lecture 4.22 / Apostol 11.20

    Use Green’s theorem to prove that 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx) is the area of the region bounded by a positively oriented piecewise smooth Jordan curve.

    Solution

    Take P=−y2P = -\frac y2, Q=x2Q = \frac x2. They are C1C^1 on the plane, and Qx−Py=12+12=1Q_x - P_y = \frac12 + \frac12 = 1. By Green’s theorem, ∮P dx+Q dy=∬R1 dA=area(R)\oint P\,dx + Q\,dy = \iint_R1\,dA = \text{area}(R), and the left side is 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx).

    proveMATH 376 Midterm 2 problem 4(b) style (the Green side)

    Using Green’s theorem, show that the area of a polygon with counterclockwise vertices (x1,y1),…,(xn,yn)(x_1, y_1), \dots, (x_n, y_n) is 12∑i=1n(xiyi+1−xi+1yi)\frac12\sum_{i=1}^n(x_iy_{i+1} - x_{i+1}y_i), with (xn+1,yn+1)=(x1,y1)(x_{n+1}, y_{n+1}) = (x_1, y_1).

    Solution

    By the previous problem the area is 12∮(x dy−y dx)\frac12\oint(x\,dy - y\,dx) around the polygon. On the edge from (xi,yi)(x_i, y_i) to (xi+1,yi+1)(x_{i+1}, y_{i+1}) parametrize x=xi+t(xi+1−xi)x = x_i + t(x_{i+1} - x_i), y=yi+t(yi+1−yi)y = y_i + t(y_{i+1} - y_i), 0≤t≤10 \le t \le 1. Then dx=(xi+1−xi) dtdx = (x_{i+1} - x_i)\,dt and dy=(yi+1−yi) dtdy = (y_{i+1} - y_i)\,dt, so x dy−y dx=[(xi+tΔx)Δy−(yi+tΔy)Δx] dtx\,dy - y\,dx = \big[(x_i + t\Delta x)\Delta y - (y_i + t\Delta y)\Delta x\big]\,dt with Δx=xi+1−xi\Delta x = x_{i+1} - x_i, Δy=yi+1−yi\Delta y = y_{i+1} - y_i. The terms in tt cancel (tΔxΔy−tΔyΔx=0t\Delta x\Delta y - t\Delta y\Delta x = 0), leaving (xiΔy−yiΔx) dt=(xiyi+1−xi+1yi) dt(x_i\Delta y - y_i\Delta x)\,dt = (x_iy_{i+1} - x_{i+1}y_i)\,dt, because −xiyi+yixi=0-x_iy_i + y_ix_i = 0. Integrating over [0,1][0, 1] and summing over the edges gives the formula.

    proveMATH 376 lecture 4.25 / Remark 4.26

    Prove that a linear map g(u,v)=A(u,v)Tg(u, v) = A(u, v)^{\mathsf T} with invertible AA multiplies areas by ∣det⁡A∣|\det A|, by finding the area of the image of the unit square.

    Solution

    A(u,v)T=u c1+v c2A(u, v)^{\mathsf T} = u\,c_1 + v\,c_2 where c1,c2c_1, c_2 are the columns of AA, so the image of [0,1]2[0, 1]^2 is the parallelogram spanned by c1c_1 and c2c_2. Its area is ∣det⁡(c1,c2)∣=∣det⁡A∣|\det(c_1, c_2)| = |\det A| (2.7); for example, with sides (2,0)(2, 0) and (0,3)(0, 3) it is a 2×32 \times 3 rectangle of area 6=det⁡[2003]6 = \det\begin{bmatrix}2 & 0\\ 0 & 3\end{bmatrix}. The absolute value is needed because area is not negative. By translation invariance and additivity the same factor applies to every square, hence (by exhaustion with squares) to every region.

    prove

    Let F=(−y,x)x2+y2F = \dfrac{(-y, x)}{x^2 + y^2}. Prove that ∮CF⋅dr=0\oint_CF \cdot dr = 0 for any counterclockwise Jordan curve CC that does not enclose the origin.

    Solution

    The origin is outside CC, so it is not in the region RR bounded by CC, and FF is C1C^1 on the open set (plane minus origin) containing RR. By Green’s theorem, ∮CF⋅dr=∬R(Qx−Py) dA=∬R0 dA=0\oint_CF \cdot dr = \iint_R(Q_x - P_y)\,dA = \iint_R0\,dA = 0.

    proveMATH 376 homework 4 problem 6 and Topic 5 table

    Show that a map g:R2→R2g: \mathbb R^2 \to \mathbb R^2 of the form g(r,θ)=(rcos⁡θ,rsin⁡θ)g(r, \theta) = (r\cos\theta, r\sin\theta) restricted to (0,∞)×[0,2π)(0, \infty) \times [0, 2\pi) is one-to-one, and explain why the change of variables formula still applies on the whole disc, where J=0J = 0 at the origin.

    Solution

    If r1(cos⁡θ1,sin⁡θ1)=r2(cos⁡θ2,sin⁡θ2)r_1(\cos\theta_1, \sin\theta_1) = r_2(\cos\theta_2, \sin\theta_2) with ri>0r_i > 0, take lengths: r1=r2r_1 = r_2; then (cos⁡θ1,sin⁡θ1)=(cos⁡θ2,sin⁡θ2)(\cos\theta_1, \sin\theta_1) = (\cos\theta_2, \sin\theta_2) forces θ1=θ2\theta_1 = \theta_2 in [0,2π)[0, 2\pi). So gg is one-to-one there. On the closed rectangle [0,R]×[0,2π][0, R] \times [0, 2\pi] the map fails to be one-to-one on the sides r=0r = 0 (all go to the origin) and θ=0\theta = 0 versus θ=2π\theta = 2\pi, and J=r=0J = r = 0 on r=0r = 0. These sets are segments of the boundary of the rectangle, which have content zero, and the theorem allows gg to fail to be one-to-one, and JJ to vanish, on a set of content zero (Apostol 11.26). So ∬discf dA=∫02π ⁣∫0Rf(rcos⁡θ,rsin⁡θ) r dr dθ\iint_{\text{disc}}f\,dA = \int_0^{2\pi}\!\int_0^Rf(r\cos\theta, r\sin\theta)\,r\,dr\,d\theta.

    stretchApostol 11.25 (exercise style)

    A curve goes twice counterclockwise around the unit circle and then once clockwise around the circle of radius 33 about the origin (a closed path in two pieces, connected by a radial segment traversed both ways). Find its winding number about (a) the origin; (b) the point (0,2)(0, 2); (c) the point (5,0)(5, 0).

    Solution

    The winding number adds over pieces, and the radial segment traversed both ways contributes nothing. (a) Origin: inside both circles, 2⋅(+1)+1⋅(−1)=12\cdot(+1) + 1\cdot(-1) = 1. (b) (0,2)(0, 2): inside the circle of radius 33 but outside the unit circle, so 2⋅0+(−1)=−12\cdot0 + (-1) = -1. (c) (5,0)(5, 0): outside both, 00.

    stretchnew (change of variables to a density)

    The random point (X,Y)(X, Y) is uniform on the unit disc, with density 1π\frac1\pi there. Use polar coordinates to find the density of the distance R=X2+Y2R = \sqrt{X^2 + Y^2} and the expected distance E[R]E[R].

    Solution

    P(R≤ρ)=∬r≤ρ1π dA=∫02π ⁣∫0ρ1πr dr dθ=ρ2P(R \le \rho) = \iint_{r \le \rho}\frac1\pi\,dA = \int_0^{2\pi}\!\int_0^\rho\frac1\pi r\,dr\,d\theta = \rho^2 for 0≤ρ≤10 \le \rho \le 1. So the density of RR is 2ρ2\rho on [0,1][0, 1] (the Jacobian factor rr is where the 2ρ2\rho comes from), and E[R]=∫01ρ⋅2ρ dρ=23E[R] = \int_0^1\rho\cdot2\rho\,d\rho = \frac23.

    Summary

    • Green’s theorem: for a positively oriented (counterclockwise) piecewise smooth Jordan curve CC bounding RR, and P,QP, Q of class C1C^1 on an open set containing RR, ∮CP dx+Q dy=∬R(Qx−Py) dA\oint_CP\,dx + Q\,dy = \iint_R(Q_x - P_y)\,dA. Check closed, simple, counterclockwise and C1C^1 inside. The proof for a region of both types integrates PyP_y in yy and QxQ_x in xx and uses the fundamental theorem of calculus; in general, the inner edges of small cells cancel.
    • Area: area(R)=∮x dy=−∮y dx=12∮(x dy−y dx)\text{area}(R) = \oint x\,dy = -\oint y\,dx = \frac12\oint(x\,dy - y\,dx) (take a field with spin 11). The same method gives centroids and the surveyor’s polygon formula.
    • Holes: for a region with holes, the outer curve counts positively and the inner curves negatively. For a field with Py=QxP_y = Q_x, a curve around a hole can be replaced by a small circle, so the angle field gives 2π2\pi times the winding number.
    • Change of variables: ∬g(T)f dx dy=∬Tf(g(u,v)) ∣J∣ du dv\iint_{g(T)}f\,dx\,dy = \iint_Tf(g(u, v))\,|J|\,du\,dv with J=∂(x,y)/∂(u,v)J = \partial(x, y)/\partial(u, v), for gg one-to-one and C1C^1 with J≠0J \ne 0 (except on a set of content zero). Use the absolute value, the old variables in terms of the new, and map the region.
    • Standard Jacobians: rr (polar and cylindrical), abrabr (stretched polar), ρ2sin⁡φ\rho^2\sin\varphi (spherical), ∣det⁡A∣|\det A| (linear map). They are the area or volume stretching factors.
    • Why it is true: a linear map multiplies areas by ∣det⁡A∣|\det A|; for f=1f = 1 the area of an image equals ∬J\iint J, proved by applying Green’s theorem twice (using equality of mixed partials); general ff follows by a step-function sandwich.
    • Uses: the Gaussian integral π\sqrt\pi, planimeters, densities of transformed random variables, and Cauchy’s theorem in complex analysis.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    2.7 Determinants
    5.4 The chain rule for fields
    6.1 Paths and line integrals
    6.2 Gradient fields and potentials
    6.3 Multiple integrals
    Leads to
    6.5 Surfaces, area and flux
    6.6 Curl, divergence, Stokes' theorem and Gauss's theorem
    Same idea elsewhere
    MATH 376: Weeks 4 and 5. Green's theorem with its hypotheses and the proof for a region of both types (worksheet 8 problem 6), area by line integral, the change of variables theorem with the lecture's proof sketch, polar, cylindrical and spherical Jacobians, and the practice Final problem on the Jacobian of r(cos 2 pi theta, sin(2 pi theta)/2). Midterm 2 problem 4(b), 'deduce Green's theorem from Stokes' theorem', lost 2.5 points; its solution is in 9.1 and uses this theorem as the target.
    MATH 521 and complex analysis: Cauchy's theorem for analytic functions is Green's theorem applied to the real and imaginary parts, and the winding number of this chapter is the index that appears in the residue theorem. 521 proves the change of variables formula for the Lebesgue integral, where the Jacobian becomes the density of the pushed-forward measure.
    MATH 431 and STAT 309: If $(X, Y)$ has density $f$ and $(U, V) = h(X, Y)$ is a one-to-one smooth change of variables, the density of $(U, V)$ is $f$ composed with $h^{-1}$ times $|\det Dh^{-1}|$: this is the change of variables theorem. The Gaussian integral (8.1) is computed with it.
    Engineering: A mechanical planimeter measures the area of a drawn region by tracing its boundary once, which is Green's theorem at work. Surveyors compute the area of a parcel from the coordinates of its corners with the field $\frac12(-y, x)$.