{
  "id": "greens-theorem",
  "title": "Green's Theorem",
  "lang": "en",
  "source_lang": "en",
  "summary": "Green's theorem relates a line integral around a positively oriented closed plane boundary to a double integral of derivatives over the enclosed region.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Green's theorem in the plane",
    "Planar Green's theorem"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/greens-theorem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/greens-theorem/",
      "json": "https://aiwiki.page/zh/greens-theorem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Green's theorem is a theorem of calculus that relates a line integral around the boundary of a plane region to a double integral over that region. In its circulation form, it states that the total tangential circulation of a planar vector field around the boundary equals the integral of its scalar curl throughout the region. An equivalent flux form relates outward flow across the boundary to the integral of divergence inside. It is a two-dimensional instance of Stokes' theorem and a planar counterpart of the divergence theorem."
    },
    {
      "heading": "Statement and hypotheses",
      "text": "Let \\(D\\) be a bounded plane region whose boundary \\(\\partial D\\) consists of finitely many disjoint, piecewise smooth, simple closed curves. Let \\(P(x,y)\\) and \\(Q(x,y)\\) have continuous first partial derivatives on an open set containing the closure of \\(D\\). Then\n\n\\[\\oint_{\\partial D} P\\,dx+Q\\,dy = \\iint_D \\left( \\frac{\\partial Q}{\\partial x} - \\frac{\\partial P}{\\partial y} \\right)\\,dA.\\]\n\nHere \\(dA=dx\\,dy\\), and the boundary is positively oriented: the region lies on the left while the boundary is traversed. Thus an outer boundary is traversed counterclockwise, while the boundary of each hole is traversed clockwise. When there are several boundary components, the symbol \\(\\oint_{\\partial D}\\) denotes their sum with these orientations.\n\nFor a region enclosed by a single simple closed curve \\(C\\), the formula is often written\n\n\\[\\oint_C P\\,dx+Q\\,dy = \\iint_D (Q_x-P_y)\\,dA.\\]\n\nThe hypotheses above are standard sufficient conditions, not the weakest possible ones. They ensure that both sides are defined and that the derivatives used in the area integral are regular throughout the enclosed region. Reversing the boundary orientation changes the sign of the line integral."
    },
    {
      "heading": "Circulation and flux forms",
      "text": "Circulation form\n\nFor the vector field \\(\\mathbf F=(P,Q)\\), let \\(\\mathbf T\\) be the positively oriented unit tangent and let \\(ds\\) denote arc length. Since\n\n\\[\\mathbf F\\cdot\\mathbf T\\,ds=P\\,dx+Q\\,dy,\\]\n\nGreen's theorem becomes\n\n\\[\\oint_{\\partial D}\\mathbf F\\cdot\\mathbf T\\,ds = \\iint_D (Q_x-P_y)\\,dA.\\]\n\nThe quantity \\(Q_x-P_y\\) is the scalar curl of the planar field. If the field is embedded in three dimensions as \\((P,Q,0)\\), it is the component of the three-dimensional curl perpendicular to the plane.\n\nThis formula expresses a local-to-global relationship: curl measures infinitesimal circulation per unit area, and its integral gives circulation around the entire boundary. Circulation along internal interfaces cancels because adjacent pieces traverse a shared interface in opposite directions.\n\nFlux form\n\nLet \\(\\mathbf n\\) be the outward unit normal to the boundary. For positive boundary orientation,\n\n\\[\\mathbf n\\,ds=(dy,-dx).\\]\n\nConsequently,\n\n\\[\\mathbf F\\cdot\\mathbf n\\,ds=P\\,dy-Q\\,dx.\\]\n\nApplying the circulation form to the pair \\((-Q,P)\\) gives\n\n\\[\\oint_{\\partial D}\\mathbf F\\cdot\\mathbf n\\,ds = \\iint_D (P_x+Q_y)\\,dA.\\]\n\nThe quantity \\(P_x+Q_y\\) is the divergence of \\(\\mathbf F\\). The formula states that total outward flux equals the integral of local net outflow over the region. In a planar fluid-flow model, positive divergence represents local expansion or a source contribution, while negative divergence represents local contraction or a sink contribution."
    },
    {
      "heading": "Why the theorem holds",
      "text": "The theorem follows from the fundamental theorem of calculus, together with cancellation along shared boundaries.\n\nFor the rectangle \\(R=[a,b]\\times[c,d]\\), the horizontal sides contribute\n\n\\[\\oint_{\\partial R}P\\,dx = \\int_a^b P(x,c)\\,dx-\\int_a^b P(x,d)\\,dx = -\\int_a^b\\int_c^d P_y(x,y)\\,dy\\,dx.\\]\n\nThe vertical sides contribute\n\n\\[\\oint_{\\partial R}Q\\,dy = \\int_c^d Q(b,y)\\,dy-\\int_c^d Q(a,y)\\,dy = \\int_c^d\\int_a^b Q_x(x,y)\\,dx\\,dy.\\]\n\nAdding these expressions proves the result for a rectangle.\n\nThe same reasoning applies to regions bounded between suitable graphs. For example, if\n\n\\[D=\\{(x,y):a\\leq x\\leq b,\\ g_1(x)\\leq y\\leq g_2(x)\\},\\]\n\nthen\n\n\\[-\\iint_D P_y\\,dA = \\int_a^b \\bigl[P(x,g_1(x))-P(x,g_2(x))\\bigr]\\,dx,\\]\n\nwhich is precisely the \\(P\\,dx\\) contribution along the positively oriented boundary.\n\nWhen a region is decomposed into suitable pieces, the line integrals along internal boundaries cancel and the area integrals add. More general piecewise smooth regions are handled by subdivision and approximation, with regularity assumptions justifying the limiting steps."
    },
    {
      "heading": "Applications",
      "text": "Area enclosed by a curve\n\nChoosing \\(P=0\\) and \\(Q=x\\) gives\n\n\\[\\operatorname{Area}(D)=\\oint_{\\partial D}x\\,dy.\\]\n\nChoosing \\(P=-y\\) and \\(Q=0\\) gives\n\n\\[\\operatorname{Area}(D)=-\\oint_{\\partial D}y\\,dx.\\]\n\nAveraging yields the symmetric formula\n\n\\[\\operatorname{Area}(D) = \\frac12\\oint_{\\partial D}(x\\,dy-y\\,dx).\\]\n\nIf a positively oriented boundary is parametrized by\n\\((x(t),y(t))\\), \\(a\\leq t\\leq b\\), then\n\n\\[\\operatorname{Area}(D) = \\frac12\\int_a^b \\bigl(x(t)y'(t)-y(t)x'(t)\\bigr)\\,dt.\\]\n\nFor a simple polygon with vertices\n\\((x_1,y_1),\\ldots,(x_n,y_n)\\) in counterclockwise order, evaluating this integral along its straight edges gives the shoelace formula:\n\n\\[\\operatorname{Area}(D) = \\frac12\\sum_{i=1}^{n} (x_i y_{i+1}-x_{i+1}y_i),\\]\n\nwhere \\((x_{n+1},y_{n+1})=(x_1,y_1)\\). Clockwise order produces the negative signed area.\n\nEvaluating line integrals\n\nGreen's theorem can replace a complicated boundary integral with a simpler area integral, or conversely.\n\nFor example, let\n\n\\[P=-\\frac y2,\\qquad Q=\\frac x2.\\]\n\nThen \\(Q_x-P_y=1\\). Around a counterclockwise circle of radius \\(R\\),\n\n\\[\\oint_{\\partial D} -\\frac y2\\,dx+\\frac x2\\,dy = \\iint_D 1\\,dA = \\pi R^2.\\]\n\nMore generally, polynomial integrands can be chosen so that the resulting boundary integrals compute moments of area, such as \\(\\iint_D x\\,dA\\) or \\(\\iint_D y\\,dA\\).\n\nConservative fields and path independence\n\nA field of the form \\(\\mathbf F=\\nabla\\phi\\), where \\(\\phi\\) has continuous second derivatives, has zero scalar curl because its mixed partial derivatives agree. Here \\(\\nabla\\phi\\) is the gradient of the potential \\(\\phi\\).\n\nConversely, a continuously differentiable field with zero scalar curl on a simply connected open subset of the plane has a potential and is path independent. Green's theorem provides a central route to this result by showing that circulation vanishes around suitable closed curves.\n\nSimple connectedness is important: zero curl alone does not rule out nonzero circulation around a hole."
    },
    {
      "heading": "Holes, singularities, and limits of application",
      "text": "Green's theorem does not require the region to be simply connected, provided every boundary component is included with the correct orientation. Its smoothness requirements, however, must hold throughout the region of integration.\n\nConsider\n\n\\[\\mathbf F(x,y) = \\left( -\\frac{y}{x^2+y^2}, \\frac{x}{x^2+y^2} \\right), \\qquad (x,y)\\ne(0,0).\\]\n\nIts scalar curl is zero wherever it is defined. Nevertheless, its counterclockwise circulation around any circle centered at the origin is\n\n\\[\\oint_C\\mathbf F\\cdot d\\mathbf r=2\\pi.\\]\n\nThere is no contradiction: the field is undefined at the origin, so Green's theorem cannot be applied to the entire disk.\n\nIt can be applied to an annulus centered at the origin. The outer boundary contributes \\(2\\pi\\), while the clockwise inner boundary contributes \\(-2\\pi\\); their sum is zero, matching the integral of the curl over the annulus.\n\nThe standard statement also does not directly apply to an arbitrary self-intersecting closed curve, since such a curve need not bound one ordinary interior region. Extensions use signed regions or winding-number weights. Likewise, rough boundaries and weakly differentiable fields require additional formulations rather than an unqualified use of the classical theorem."
    },
    {
      "heading": "Connections with other theorems",
      "text": "Stokes' theorem and differential forms\n\nFor the differential form\n\n\\[\\omega=P\\,dx+Q\\,dy,\\]\n\nits exterior derivative is\n\n\\[d\\omega=(Q_x-P_y)\\,dx\\wedge dy.\\]\n\nGreen's theorem therefore reads\n\n\\[\\int_{\\partial D}\\omega=\\int_D d\\omega.\\]\n\nThis is the form taken by the generalized Stokes theorem on an oriented two-dimensional region. The circulation form also follows from the classical three-dimensional Stokes theorem by placing \\(D\\) in the plane \\(z=0\\) with upward normal.\n\nComplex analysis\n\nGreen's theorem helps explain the connection between complex analysis and planar vector calculus. Write \\(f=u+iv\\) and \\(z=x+iy\\). Then\n\n\\[f(z)\\,dz = (u\\,dx-v\\,dy)+i(v\\,dx+u\\,dy).\\]\n\nIf \\(u\\) and \\(v\\) have continuous first derivatives and satisfy the Cauchy–Riemann equations, then\n\n\\[-v_x-u_y=0, \\qquad u_x-v_y=0.\\]\n\nApplying Green's theorem to the real and imaginary parts gives\n\n\\[\\oint_{\\partial D} f(z)\\,dz=0,\\]\n\nprovided the hypotheses hold throughout an open neighborhood of the region's closure. This establishes a version of Cauchy's integral theorem under continuous differentiability assumptions.\n\nGreen's identities\n\nThe flux form, applied to the field \\(u\\nabla v\\), gives Green's first identity:\n\n\\[\\iint_D \\left( \\nabla u\\cdot\\nabla v+u\\Delta v \\right)\\,dA = \\oint_{\\partial D} u\\frac{\\partial v}{\\partial n}\\,ds,\\]\n\nwhere \\(\\Delta\\) is the Laplace operator and\n\\(\\partial v/\\partial n=\\nabla v\\cdot\\mathbf n\\).\n\nInterchanging \\(u\\) and \\(v\\) and subtracting yields Green's second identity:\n\n\\[\\iint_D (u\\Delta v-v\\Delta u)\\,dA = \\oint_{\\partial D} \\left( u\\frac{\\partial v}{\\partial n} - v\\frac{\\partial u}{\\partial n} \\right)\\,ds.\\]\n\nThese identities also have higher-dimensional versions. They are fundamental tools for boundary-value problems, including Laplace's equation and Poisson's equation."
    },
    {
      "heading": "Historical background",
      "text": "The theorem is named after the English mathematician George Green. His 1828 An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism developed integral relationships connecting quantities inside a region with quantities on its boundary, in the study of potential theory.\n\nThe modern planar theorem belongs to the broader family of boundary–interior integration theorems. These encompass the fundamental theorem of calculus in one dimension, Green's theorem in the plane, and the divergence and Stokes theorems in higher-dimensional settings."
    }
  ],
  "links": [
    "calculus",
    "line-integral",
    "integral",
    "vector-field",
    "stokes-theorem",
    "divergence-theorem",
    "partial-derivative",
    "fundamental-theorem-of-calculus",
    "polygon",
    "circle",
    "gradient",
    "differential-form",
    "complex-analysis",
    "cauchy-riemann-equations",
    "laplace-operator",
    "boundary-value-problem",
    "laplace-equation",
    "poisson-equation"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}