Practice / Calculus

Line integrals and Green's theorem: work, potentials and circulation

Ten problems on line integrals and Green's theorem: the mass of a semicircular wire with ds = |r′(t)| dt, the work of a force along a parabola, one field integrated along two paths with different answers, the cross-partials test and a potential function, the fundamental theorem for line integrals on an awkward curve, the circulation around the unit circle by Green's theorem, the area of an ellipse from ½∮(x dy − y dx), outward flux and the divergence, the field around a hole that circulates 2π, and gradient descent against the rotating field of a two-player game, with worked solutions and the mistakes of dropping |r′(t)|, a clockwise boundary, the curl written backward, a zero curl read as a conservative field and dx = dt with dy left alone.

Before you start

A line integral adds something up along a curve instead of across an interval. With respect to arc length it totals a density along a wire; with a vector field it totals the work a force does on an object moving along the path. Every one is computed the same way: parametrize the curve, rewrite everything in the parameter tt, and do an ordinary integral. Two shortcuts save most of the work. If the field is a gradient, F=∇fF = \nabla f, the work depends only on the endpoints, and it is f(end)−f(start)f(\text{end}) - f(\text{start}). If the curve is closed, Green's theorem trades the line integral for a double integral over the region inside:

∮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 .

The same ideas explain why gradient descent can never go in circles while the simultaneous updates of a two-player game can. These ten problems compute line integrals directly, test fields for being conservative, use potentials and Green's theorem, and end with that contrast.

  • A curve CC is given by r(t)=(x(t),y(t))r(t) = (x(t), y(t)) for a≤t≤ba \le t \le b, traced from r(a)r(a) to r(b)r(b). Its speed is ∥r′(t)∥=x′(t)2+y′(t)2\|r'(t)\| = \sqrt{x'(t)^2 + y'(t)^2} and its arc-length element is ds=∥r′(t)∥ dtds = \|r'(t)\|\,dt.
  • Scalar line integral. ∫Cg ds=∫abg(r(t)) ∥r′(t)∥ dt\int_C g\,ds = \int_a^b g(r(t))\,\|r'(t)\|\,dt. It does not depend on the direction of travel.
  • Work integral. For F=(P,Q)F = (P, Q), ∫CF⋅dr=∫CP dx+Q dy=∫abF(r(t))⋅r′(t) dt\int_C F \cdot dr = \int_C P\,dx + Q\,dy = \int_a^b F(r(t)) \cdot r'(t)\,dt, with dx=x′(t) dtdx = x'(t)\,dt and dy=y′(t) dtdy = y'(t)\,dt. Reversing the direction changes its sign.
  • Conservative fields. FF is conservative if F=∇fF = \nabla f for some potential ff. Then ∫CF⋅dr=f(r(b))−f(r(a))\int_C F \cdot dr = f(r(b)) - f(r(a)) for every path, and the integral around every closed curve is 00. On a region with no holes, FF is conservative exactly when ∂P/∂y=∂Q/∂x\partial P/\partial y = \partial Q/\partial x.
  • Green's theorem. For a closed curve CC traced counterclockwise (the region RR on the left) and PP, QQ with continuous partial derivatives on all of RR: ∮CP dx+Q dy=∬R(Qx−Py) dA\oint_C P\,dx + Q\,dy = \iint_R (Q_x - P_y)\,dA. Taking P=−y2P = -\tfrac y2, Q=x2Q = \tfrac x2 gives Area(R)=12∮Cx dy−y dx\text{Area}(R) = \tfrac12\oint_C x\,dy - y\,dx.
  • Flux form. With nn the outward unit normal, ∮CF⋅n ds=∮CP dy−Q dx=∬R(Px+Qy) dA\oint_C F \cdot n\,ds = \oint_C P\,dy - Q\,dx = \iint_R (P_x + Q_y)\,dA, the integral of the divergence.

Builds on: Parametric and polar curves: slopes, arc length and area, Double integrals: iterated integrals, switching the order and polar coordinates, Partial derivatives, gradients and Hessians

Problems

  1. ·

    A wire lies along the upper half of the circle x2+y2=9x^2 + y^2 = 9, and its density is ρ(x,y)=y\rho(x, y) = y. Find the mass of the wire.

  2. ·

    Find the work done by F(x,y)=(x2,xy)F(x, y) = (x^2, xy) on an object moving along the parabola y=x2y = x^2 from (0,0)(0, 0) to (1,1)(1, 1).

  3. ··

    Let F(x,y)=(y,−x)F(x, y) = (y, -x). Compute ∫CF⋅dr\int_C F \cdot dr from (0,0)(0, 0) to (1,1)(1, 1) along the line y=xy = x and along the parabola y=x2y = x^2. What does the difference say about FF? Check the difference with Green's theorem.

  4. ··

    Show that F(x,y)=(2xy+3, x2+4y)F(x, y) = (2xy + 3,\ x^2 + 4y) is conservative and find a potential ff with ∇f=F\nabla f = F.

  5. ··

    For FF of Problem 4, compute ∫CF⋅dr\int_C F \cdot dr along r(t)=(1+t2,t3)r(t) = (1 + t^2, t^3), 0≤t≤10 \le t \le 1, both with the potential and directly. Then give the integral of FF around any closed curve.

  6. ··

    Use Green's theorem to compute ∮C(x−y3) dx+(x3+y) dy\oint_C (x - y^3)\,dx + (x^3 + y)\,dy, where CC is the unit circle traced counterclockwise. Check it directly.

  7. ·

    Use Area=12∮Cx dy−y dx\text{Area} = \tfrac12\oint_C x\,dy - y\,dx to find the area inside the ellipse x29+y24=1\dfrac{x^2}{9} + \dfrac{y^2}{4} = 1.

  8. ··

    Find the outward flux of F(x,y)=(x+y2, 2y+x)F(x, y) = (x + y^2,\ 2y + x) across the circle x2+y2=4x^2 + y^2 = 4, by the divergence form of Green's theorem and directly.

  9. ···

    Let F(x,y)=(−yx2+y2, xx2+y2)F(x, y) = \left(\dfrac{-y}{x^2 + y^2},\ \dfrac{x}{x^2 + y^2}\right), defined everywhere except the origin. Show that Qx=PyQ_x = P_y, compute ∮F⋅dr\oint F \cdot dr counterclockwise around the unit circle, and find it around the circle of radius 11 centered at (3,0)(3, 0) and around the ellipse of Problem 7.

  10. ···

    Gradient descent on L(w1,w2)=12(w12+4w22)L(w_1, w_2) = \tfrac12(w_1^2 + 4w_2^2) moves along the field V=−∇LV = -\nabla L. A two-player game where one player minimizes and the other maximizes w1w2w_1w_2 moves along G=(−w2,w1)G = (-w_2, w_1). Compute ∫V⋅dr\int V \cdot dr along the segment from (2,1)(2, 1) to (0,0)(0, 0) and compare it with LL. Then compute the circulation of VV and of GG counterclockwise around the circle of radius 22 about the origin, and say what each means for the dynamics.

Worked solutions

Problem 1

A wire lies along the upper half of the circle x2+y2=9x^2 + y^2 = 9, and its density is ρ(x,y)=y\rho(x, y) = y. Find the mass of the wire.

  1. r(t)=(3cos⁡t,3sin⁡t)r(t) = (3\cos t, 3\sin t), 0≤t≤π0 \le t \le \piThe upper half of the circle of radius 33.
  2. r′(t)=(−3sin⁡t,3cos⁡t)r'(t) = (-3\sin t, 3\cos t) and ∥r′(t)∥=3\|r'(t)\| = 3The speed is the radius, so ds=3 dtds = 3\,dt.
  3. ∫Cy ds=∫0π3sin⁡t⋅3 dt\int_C y\,ds = \int_0^\pi 3\sin t\cdot 3\,dtSubstitute y=3sin⁡ty = 3\sin t and dsds.
  4. =9[−cos⁡t]0π=9⋅2= 9\big[-\cos t\big]_0^\pi = 9\cdot 2−cos⁡π+cos⁡0=2-\cos\pi + \cos 0 = 2.
  5. Mass =18= 18The wire is heaviest at the top, where y=3y = 3. Leaving out ∥r′(t)∥\|r'(t)\| gives 66, a third of the mass (Mistake 1).

Problem 2

Find the work done by F(x,y)=(x2,xy)F(x, y) = (x^2, xy) on an object moving along the parabola y=x2y = x^2 from (0,0)(0, 0) to (1,1)(1, 1).

  1. r(t)=(t,t2)r(t) = (t, t^2), 0≤t≤10 \le t \le 1, so dx=dtdx = dt and dy=2t dtdy = 2t\,dtUse xx itself as the parameter.
  2. P=x2=t2P = x^2 = t^2 and Q=xy=t⋅t2=t3Q = xy = t\cdot t^2 = t^3Everything in terms of tt.
  3. ∫CP dx+Q dy=∫01(t2+t3⋅2t) dt=∫01(t2+2t4) dt\int_C P\,dx + Q\,dy = \int_0^1 \big(t^2 + t^3\cdot 2t\big)\,dt = \int_0^1 (t^2 + 2t^4)\,dtF⋅r′(t)F \cdot r'(t) with r′(t)=(1,2t)r'(t) = (1, 2t).
  4. =13+25= \tfrac13 + \tfrac25Integrate each power.
  5. W=1115≈0.7333W = \tfrac{11}{15} \approx 0.7333Writing dydy as dtdt too gives 712\tfrac{7}{12} (Mistake 5).

Problem 3

Let F(x,y)=(y,−x)F(x, y) = (y, -x). Compute ∫CF⋅dr\int_C F \cdot dr from (0,0)(0, 0) to (1,1)(1, 1) along the line y=xy = x and along the parabola y=x2y = x^2. What does the difference say about FF? Check the difference with Green's theorem.

  1. Line: r(t)=(t,t)r(t) = (t, t), r′=(1,1)r' = (1, 1), F⋅r′=t−t=0F \cdot r' = t - t = 0, so the integral is 00The field is perpendicular to the line at every point.
  2. Parabola: r(t)=(t,t2)r(t) = (t, t^2), r′=(1,2t)r' = (1, 2t), F⋅r′=t2−t⋅2t=−t2F \cdot r' = t^2 - t\cdot 2t = -t^2P=y=t2P = y = t^2 and Q=−x=−tQ = -x = -t.
  3. ∫01−t2 dt=−13\int_0^1 -t^2\,dt = -\tfrac13The two paths give different work.
  4. Out along the parabola and back along the line is a closed loop around the region x2≤y≤xx^2 \le y \le x, traced counterclockwise, with ∮=−13−0=−13\oint = -\tfrac13 - 0 = -\tfrac13The parabola runs below the line, so the region is on the left.
  5. 00 along the line, −13-\tfrac13 along the parabola: FF is not conservativeGreen: Qx−Py=−1−1=−2Q_x - P_y = -1 - 1 = -2, and the region has area ∫01(x−x2) dx=16\int_0^1 (x - x^2)\,dx = \tfrac16, so ∬R−2 dA=−13\iint_R -2\,dA = -\tfrac13, as found.

Problem 4

Show that F(x,y)=(2xy+3, x2+4y)F(x, y) = (2xy + 3,\ x^2 + 4y) is conservative and find a potential ff with ∇f=F\nabla f = F.

  1. Py=2xP_y = 2x and Qx=2xQ_x = 2xEqual on the whole plane, which has no holes, so FF is conservative.
  2. f=∫(2xy+3) dx=x2y+3x+g(y)f = \int (2xy + 3)\,dx = x^2y + 3x + g(y)Integrate PP in xx; the constant of integration may depend on yy.
  3. fy=x2+g′(y)=x2+4yf_y = x^2 + g'(y) = x^2 + 4y, so g′(y)=4yg'(y) = 4yMatch fyf_y to QQ. The xx's must cancel here, and they do because of step 1.
  4. g(y)=2y2g(y) = 2y^2Any constant can be added.
  5. f(x,y)=x2y+3x+2y2f(x, y) = x^2y + 3x + 2y^2 (plus any constant)Check: fx=2xy+3f_x = 2xy + 3 and fy=x2+4yf_y = x^2 + 4y.

Problem 5

For FF of Problem 4, compute ∫CF⋅dr\int_C F \cdot dr along r(t)=(1+t2,t3)r(t) = (1 + t^2, t^3), 0≤t≤10 \le t \le 1, both with the potential and directly. Then give the integral of FF around any closed curve.

  1. r(0)=(1,0)r(0) = (1, 0) and r(1)=(2,1)r(1) = (2, 1)Only the endpoints matter for a gradient field.
  2. f(2,1)−f(1,0)=(4+6+2)−(0+3+0)=12−3=9f(2, 1) - f(1, 0) = (4 + 6 + 2) - (0 + 3 + 0) = 12 - 3 = 9The fundamental theorem for line integrals, with f=x2y+3x+2y2f = x^2y + 3x + 2y^2.
  3. Directly: r′=(2t,3t2)r' = (2t, 3t^2), P=2(1+t2)t3+3P = 2(1 + t^2)t^3 + 3, Q=(1+t2)2+4t3Q = (1 + t^2)^2 + 4t^3The long way, to confirm.
  4. ∫01[(2t3+2t5+3) 2t+(1+2t2+t4+4t3) 3t2] dt=∫01(6t+3t2+4t4+6t4+12t5+4t6+3t6) dt\int_0^1 \big[(2t^3 + 2t^5 + 3)\,2t + (1 + 2t^2 + t^4 + 4t^3)\,3t^2\big]\,dt = \int_0^1 (6t + 3t^2 + 4t^4 + 6t^4 + 12t^5 + 4t^6 + 3t^6)\,dtExpand F⋅r′F \cdot r' and collect: 6t+3t2+10t4+12t5+7t66t + 3t^2 + 10t^4 + 12t^5 + 7t^6.
  5. ∫CF⋅dr=9\int_C F \cdot dr = 9; around any closed curve it is 00Step 4 is 3+1+2+2+1=93 + 1 + 2 + 2 + 1 = 9. A closed curve ends where it starts, so f(end)−f(start)=0f(\text{end}) - f(\text{start}) = 0.

Problem 6

Use Green's theorem to compute ∮C(x−y3) dx+(x3+y) dy\oint_C (x - y^3)\,dx + (x^3 + y)\,dy, where CC is the unit circle traced counterclockwise. Check it directly.

  1. P=x−y3P = x - y^3, Q=x3+yQ = x^3 + y, so Qx−Py=3x2−(−3y2)=3x2+3y2Q_x - P_y = 3x^2 - (-3y^2) = 3x^2 + 3y^2Differentiate QQ in xx, then subtract PP differentiated in yy.
  2. ∬R3(x2+y2) dA=∫02π ⁣∫013r2⋅r dr dθ\iint_R 3(x^2 + y^2)\,dA = \int_0^{2\pi}\!\int_0^1 3r^2\cdot r\,dr\,d\thetaPolar coordinates over the unit disk, with the rr in r dr dθr\,dr\,d\theta.
  3. =2π⋅34= 2\pi\cdot\tfrac34∫013r3 dr=34\int_0^1 3r^3\,dr = \tfrac34.
  4. Directly: x=cos⁡tx = \cos t, y=sin⁡ty = \sin t, and ∫02π[(cos⁡t−sin⁡3t)(−sin⁡t)+(cos⁡3t+sin⁡t)cos⁡t] dt=∫02π(sin⁡4t+cos⁡4t) dt\int_0^{2\pi}\big[(\cos t - \sin^3 t)(-\sin t) + (\cos^3 t + \sin t)\cos t\big]\,dt = \int_0^{2\pi}(\sin^4 t + \cos^4 t)\,dtThe terms −sin⁡tcos⁡t-\sin t\cos t and sin⁡tcos⁡t\sin t\cos t cancel; each fourth power integrates to 3π4\tfrac{3\pi}{4}.
  5. ∮C=3π2≈4.712\oint_C = \tfrac{3\pi}{2} \approx 4.712Writing the integrand as Py−QxP_y - Q_x gives −3π2-\tfrac{3\pi}{2} (Mistake 3).

Problem 7

Use Area=12∮Cx dy−y dx\text{Area} = \tfrac12\oint_C x\,dy - y\,dx to find the area inside the ellipse x29+y24=1\dfrac{x^2}{9} + \dfrac{y^2}{4} = 1.

  1. x=3cos⁡tx = 3\cos t, y=2sin⁡ty = 2\sin t, 0≤t≤2π0 \le t \le 2\piCounterclockwise, starting at (3,0)(3, 0).
  2. dx=−3sin⁡t dtdx = -3\sin t\,dt and dy=2cos⁡t dtdy = 2\cos t\,dtBoth differentials in tt.
  3. x dy−y dx=(6cos⁡2t+6sin⁡2t) dt=6 dtx\,dy - y\,dx = (6\cos^2 t + 6\sin^2 t)\,dt = 6\,dtcos⁡2+sin⁡2=1\cos^2 + \sin^2 = 1.
  4. 12∫02π6 dt=6π\tfrac12\int_0^{2\pi} 6\,dt = 6\piA constant integrand.
  5. Area =6π≈18.85= 6\pi \approx 18.85In general πab\pi ab. Tracing the ellipse clockwise gives −6π-6\pi (Mistake 2).

Problem 8

Find the outward flux of F(x,y)=(x+y2, 2y+x)F(x, y) = (x + y^2,\ 2y + x) across the circle x2+y2=4x^2 + y^2 = 4, by the divergence form of Green's theorem and directly.

  1. div⁡F=Px+Qy=1+2=3\operatorname{div} F = P_x + Q_y = 1 + 2 = 3The y2y^2 and xx terms do not survive.
  2. ∬R3 dA=3⋅π⋅22=12π\iint_R 3\,dA = 3\cdot\pi\cdot 2^2 = 12\piA constant divergence times the area of the disk of radius 22.
  3. Directly: r=(2cos⁡t,2sin⁡t)r = (2\cos t, 2\sin t), n=(cos⁡t,sin⁡t)n = (\cos t, \sin t) and ds=2 dtds = 2\,dtOn a circle the outward normal points along the radius.
  4. F⋅n=(2cos⁡t+4sin⁡2t)cos⁡t+(4sin⁡t+2cos⁡t)sin⁡t=2cos⁡2t+4sin⁡2t+4sin⁡2tcos⁡t+2sin⁡tcos⁡tF \cdot n = (2\cos t + 4\sin^2 t)\cos t + (4\sin t + 2\cos t)\sin t = 2\cos^2 t + 4\sin^2 t + 4\sin^2 t\cos t + 2\sin t\cos tThe last two terms integrate to 00 over a full turn, and the first two to 2π+4π=6π2\pi + 4\pi = 6\pi.
  5. Outward flux =12π≈37.70= 12\pi \approx 37.706π6\pi times the 22 from ds=2 dtds = 2\,dt.

Problem 9

Let F(x,y)=(−yx2+y2, xx2+y2)F(x, y) = \left(\dfrac{-y}{x^2 + y^2},\ \dfrac{x}{x^2 + y^2}\right), defined everywhere except the origin. Show that Qx=PyQ_x = P_y, compute ∮F⋅dr\oint F \cdot dr counterclockwise around the unit circle, and find it around the circle of radius 11 centered at (3,0)(3, 0) and around the ellipse of Problem 7.

  1. Qx=(x2+y2)−2x2(x2+y2)2=y2−x2(x2+y2)2Q_x = \dfrac{(x^2 + y^2) - 2x^2}{(x^2 + y^2)^2} = \dfrac{y^2 - x^2}{(x^2 + y^2)^2} and Py=−(x2+y2)−2y2(x2+y2)2=y2−x2(x2+y2)2P_y = -\dfrac{(x^2 + y^2) - 2y^2}{(x^2 + y^2)^2} = \dfrac{y^2 - x^2}{(x^2 + y^2)^2}Quotient rule on each.
  2. Unit circle: F=(−sin⁡t,cos⁡t)F = (-\sin t, \cos t) and r′=(−sin⁡t,cos⁡t)r' = (-\sin t, \cos t), so F⋅r′=1F \cdot r' = 1 and ∮=2π\oint = 2\piOn the unit circle x2+y2=1x^2 + y^2 = 1.
  3. Green's theorem does not apply to the unit disk: FF is undefined at the origin, inside itThat is how a field with Qx−Py=0Q_x - P_y = 0 can still circulate.
  4. The circle centered at (3,0)(3, 0) does not enclose the origin, so Green's theorem applies on its disk and gives ∬0 dA=0\iint 0\,dA = 0No hole inside, no circulation.
  5. ∮=2π\oint = 2\pi around the unit circle, 00 around the circle centered at (3,0)(3, 0), and 2π2\pi around the ellipseGreen's theorem on the ring between the ellipse and the unit circle (where FF is smooth) says the two loops around the origin give the same value. FF is the gradient of the polar angle θ\theta, which increases by 2π2\pi once around the origin, so no single-valued potential exists on the punctured plane (Mistake 4).

Problem 10

Gradient descent on L(w1,w2)=12(w12+4w22)L(w_1, w_2) = \tfrac12(w_1^2 + 4w_2^2) moves along the field V=−∇LV = -\nabla L. A two-player game where one player minimizes and the other maximizes w1w2w_1w_2 moves along G=(−w2,w1)G = (-w_2, w_1). Compute ∫V⋅dr\int V \cdot dr along the segment from (2,1)(2, 1) to (0,0)(0, 0) and compare it with LL. Then compute the circulation of VV and of GG counterclockwise around the circle of radius 22 about the origin, and say what each means for the dynamics.

  1. V=(−w1,−4w2)V = (-w_1, -4w_2), and r(t)=(2−2t,1−t)r(t) = (2 - 2t, 1 - t), r′=(−2,−1)r' = (-2, -1)The straight segment, 0≤t≤10 \le t \le 1.
  2. V⋅r′=2(2−2t)+4(1−t)=8(1−t)V \cdot r' = 2(2 - 2t) + 4(1 - t) = 8(1 - t), and ∫018(1−t) dt=4\int_0^1 8(1 - t)\,dt = 4Equal to L(2,1)−L(0,0)=12(4+4)=4L(2, 1) - L(0, 0) = \tfrac12(4 + 4) = 4: the work of −∇L-\nabla L is the drop in loss, along any path.
  3. Circulation of VV: Qx−Py=0−0=0Q_x - P_y = 0 - 0 = 0, so ∮V⋅dr=0\oint V \cdot dr = 0VV is a gradient on the whole plane.
  4. Circulation of GG: Qx−Py=1−(−1)=2Q_x - P_y = 1 - (-1) = 2, so ∮G⋅dr=2⋅π⋅22=8π\oint G \cdot dr = 2\cdot\pi\cdot 2^2 = 8\piGreen's theorem; directly, G⋅r′=4sin⁡2t+4cos⁡2t=4G \cdot r' = 4\sin^2 t + 4\cos^2 t = 4 around the circle, and 4⋅2π=8π4\cdot 2\pi = 8\pi.
  5. ∫V⋅dr=4=L(2,1)−L(0,0)\int V \cdot dr = 4 = L(2, 1) - L(0, 0); circulation 00 for VV and 8π≈25.138\pi \approx 25.13 for GGA gradient field cannot push an iterate around a loop, because each step lowers LL. The game field has nonzero circulation, so it is not the gradient of any loss, and its updates rotate around the equilibrium at the origin instead of settling into it.

Where this goes wrong

1. Dropping |r′(t)| from ds

The arc-length integral is written as if dsds were dtdt.

  1. r(t)=(3cos⁡t,3sin⁡t)r(t) = (3\cos t, 3\sin t), 0≤t≤π0 \le t \le \pi, and the density is y=3sin⁡ty = 3\sin tRight so far: Problem 1.
  2. “∫Cy ds=∫0π3sin⁡t dt\int_C y\,ds = \int_0^\pi 3\sin t\,dt.”The step that causes the mistake: ds=∥r′(t)∥ dt=3 dtds = \|r'(t)\|\,dt = 3\,dt, because tt is an angle, not a length.
  3. Mass =6= 6A third of the true mass. The answer changes with the parametrization: r(t)=(3cos⁡2t,3sin⁡2t)r(t) = (3\cos 2t, 3\sin 2t) on [0,π2][0, \tfrac\pi2] would give 33. With the speed included it is 1818 either way.

2. Going around the boundary clockwise

The ellipse is parametrized in the direction that first comes to mind, from the top.

  1. Area=12∮Cx dy−y dx\text{Area} = \tfrac12\oint_C x\,dy - y\,dx for the ellipse x29+y24=1\tfrac{x^2}{9} + \tfrac{y^2}{4} = 1Right so far: Problem 7.
  2. “x=3sin⁡tx = 3\sin t, y=2cos⁡ty = 2\cos t.”This starts at (0,2)(0, 2) and moves to the right, so it runs clockwise, with the region on the right.
  3. x dy−y dx=−6 dtx\,dy - y\,dx = -6\,dt, so the area is −6π-6\piAn area cannot be negative. Green's theorem needs the counterclockwise direction; reversing it flips the sign of every line integral. The area is 6π6\pi.

3. P_y − Q_x instead of Q_x − P_y

The two partial derivatives of Green's theorem are subtracted in the order they are written down.

  1. P=x−y3P = x - y^3, Q=x3+yQ = x^3 + y, Py=−3y2P_y = -3y^2, Qx=3x2Q_x = 3x^2Right so far: Problem 6.
  2. “The integrand is Py−Qx=−3y2−3x2P_y - Q_x = -3y^2 - 3x^2.”The order is Qx−PyQ_x - P_y: the xx-derivative of the dydy coefficient first.
  3. ∮C=−3π2\oint_C = -\tfrac{3\pi}{2}The direct computation around the circle gives ∫02π(sin⁡4t+cos⁡4t) dt=3π2\int_0^{2\pi}(\sin^4 t + \cos^4 t)\,dt = \tfrac{3\pi}{2}, positive. A test that catches the order: for F=(−y,x)F = (-y, x), which turns counterclockwise, Qx−Py=2>0Q_x - P_y = 2 > 0.

4. Zero curl read as conservative on a region with a hole

The cross-partials test is applied without checking where the field is defined.

  1. Qx=Py=y2−x2(x2+y2)2Q_x = P_y = \tfrac{y^2 - x^2}{(x^2 + y^2)^2} for the field of Problem 9Right so far.
  2. “Qx−Py=0Q_x - P_y = 0, so by Green's theorem every closed integral is 00.”Green's theorem needs PP and QQ smooth on the whole region inside the curve, and the unit disk contains the origin, where FF is undefined.
  3. ∮F⋅dr=0\oint F \cdot dr = 0 around the unit circleThe direct computation gives F⋅r′=1F \cdot r' = 1 at every point and ∮=2π≈6.283\oint = 2\pi \approx 6.283. The test proves a field conservative only on a region with no holes; around the origin, FF is the gradient of the angle, which does not come back to its starting value.

5. dx = dt, and dy left as dt too

After choosing x=tx = t, both differentials are replaced by dtdt.

  1. r(t)=(t,t2)r(t) = (t, t^2), P=t2P = t^2, Q=t3Q = t^3Right so far: Problem 2.
  2. “∫CP dx+Q dy=∫01(t2+t3) dt\int_C P\,dx + Q\,dy = \int_0^1 (t^2 + t^3)\,dt.”dx=dtdx = dt is right, but dy=2t dtdy = 2t\,dt because y=t2y = t^2.
  3. W=13+14=712≈0.5833W = \tfrac13 + \tfrac14 = \tfrac{7}{12} \approx 0.5833The integral of F⋅r′(t)F \cdot r'(t) needs the whole of r′(t)=(1,2t)r'(t) = (1, 2t). With dy=2t dtdy = 2t\,dt the integrand is t2+2t4t^2 + 2t^4 and W=1115≈0.7333W = \tfrac{11}{15} \approx 0.7333.

Print this set: line-integrals-and-greens-theorem.pdf (problems, answers, and worked solutions on separate pages).

Read the guide: Line integrals and Green's theorem: ds = |r′(t)| dt, check for a potential first, and go counterclockwise