Search topics and sections

Stokes' theorem, also called the Kelvin-Stokes theorem, is a result in vector calculus. It links what a vector field does along a closed loop to what it does on a surface whose edge is that loop. The circulation of the field around the loop (how much the field pushes along the loop) equals the total curl (local spinning) of the field across the surface.[1]

The theorem extends Green's theorem from flat regions to curved surfaces in space.[1] It is also the special case of the generalized Stokes theorem for surfaces in three-dimensional space.[2]

Setup for Stokes' theoremnSCnRight-hand rule
Stokes' theorem relates the circulation of F\mathbf{F} around the edge CC to the flux (the total amount passing through) of ∇×F\nabla\times\mathbf{F} through the surface SS. By the right-hand rule, if your right thumb points along n\mathbf{n}, your curled fingers show the direction around CC.

The basic idea

Circulation

The circulation of a vector field around a closed curve adds up the part of the field that points along the curve, all the way around. It is written as the line integral ∮CF⋅dr\oint_C \mathbf{F}\cdot d\mathbf{r}.[3] If F\mathbf{F} is the velocity of a fluid, the circulation measures how strongly the fluid tends to flow around the curve CC.[1]

Curl

The curl of a field at a point is a vector that measures how the field rotates there. Picture a tiny paddlewheel placed in a flowing fluid. It spins fastest when its axis points along the curl.[1]

Adding up small loops

The theorem follows from cutting the surface into many tiny patches. The circulation around each tiny patch is about the curl's component along the patch's normal (the direction perpendicular to the patch), times the patch's area.[3]

When all the patch circulations are added, each inside edge is crossed twice in opposite directions, so it cancels. Only the outer edge is left, and its circulation is the circulation around CC.[3]

Small circulations on a surface cancel along shared edgesCsurface S cut into small patchesouter edge remainsshared edge: opposite directions cancelsum of small circulations = circulation around C
Adding the circulations of many small patches cancels every inside edge, leaving only the circulation around the boundary CC.

Statement

Let SS be an oriented surface, meaning one of its sides is chosen as positive, which sets the direction of its normal. It must be piecewise smooth (made of finitely many smooth pieces). Let its boundary be a simple closed curve CC (a loop that does not cross itself), traced in the positive direction defined in "Matching the directions" below.[1]

Suppose each coordinate part of F\mathbf{F} has continuous partial derivatives throughout an open region containing SS. This means the rates of change of each part vary continuously across that region. Then[1]

∮CF⋅dr=∬S(∇×F)⋅dS\oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_S (\nabla\times\mathbf{F})\cdot d\mathbf{S}
  • F\mathbf{F} is the vector field.
  • CC is the boundary curve and drd\mathbf{r} is a small step along it.
  • SS is the surface, and dS=n dSd\mathbf{S} = \mathbf{n}\,dS is a small piece of it times its unit normal vector n\mathbf{n}.
  • ∇×F\nabla\times\mathbf{F} is the curl of F\mathbf{F}.

The right side is the flux of the curl through SS, written as a surface integral.[1] Some versions allow the boundary to be several piecewise smooth closed curves, each oriented to match the surface.[4]

Conditions

The theorem as stated uses four conditions.[5]

  • The surface must be oriented. It has two sides, and one side is chosen as positive, which fixes the normal n\mathbf{n}.
  • The surface must be piecewise smooth and finite, with finite area.
  • The field must have continuous first partial derivatives, so its curl can be integrated.
  • The curve and the surface must be oriented to match.

The first three conditions make the two integrals defined. The fourth makes their signs agree.[5]

Matching the directions

The direction around CC and the normal n\mathbf{n} must agree. If you walk along CC in the positive direction with your head pointing along n\mathbf{n}, the surface stays on your left.[1] Equivalently, by the right-hand rule, if the thumb of your right hand points along n\mathbf{n}, your fingers curl in the direction of CC.[6]

Reversing either direction flips the sign of one side of the equation.[3]

In coordinates

Write F=(P,Q,R)\mathbf{F} = (P, Q, R). Its curl is[7]

∇×F=(∂R∂y−∂Q∂z, ∂P∂z−∂R∂x, ∂Q∂x−∂P∂y)\nabla\times\mathbf{F} = \left(\frac{\partial R}{\partial y}-\frac{\partial Q}{\partial z},\ \frac{\partial P}{\partial z}-\frac{\partial R}{\partial x},\ \frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)

With the unit normal n=(n1,n2,n3)\mathbf{n} = (n_1, n_2, n_3), the theorem reads

∮CP dx+Q dy+R dz=∬S[(∂R∂y−∂Q∂z)n1+(∂P∂z−∂R∂x)n2+(∂Q∂x−∂P∂y)n3]dS\oint_C P\,dx + Q\,dy + R\,dz = \iint_S \left[\left(\frac{\partial R}{\partial y}-\frac{\partial Q}{\partial z}\right)n_1 + \left(\frac{\partial P}{\partial z}-\frac{\partial R}{\partial x}\right)n_2 + \left(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)n_3\right] dS

A worked example

Take F=(−y,x,0)\mathbf{F} = (-y, x, 0) and let CC be the unit circle in the xyxy-plane, traced counterclockwise when seen from above. The formula above gives ∇×F=(0,0,2)\nabla\times\mathbf{F} = (0, 0, 2).

  1. Line integral. Use r(t)=(cos⁡t,sin⁡t,0)\mathbf{r}(t) = (\cos t, \sin t, 0) for 0≤t≤2π0 \le t \le 2\pi. Then F⋅r′(t)=sin⁡2t+cos⁡2t=1\mathbf{F}\cdot\mathbf{r}'(t) = \sin^2 t + \cos^2 t = 1, so the circulation is 2π2\pi.
  2. Surface integral. Take SS to be the unit disk with n=(0,0,1)\mathbf{n} = (0,0,1). The expression being integrated is the constant 22, and the disk's area is π\pi, so the flux is 2π2\pi.

Both sides equal 2π2\pi, as the theorem says.

Why the theorem holds

Circulation around a tiny square

Richard Feynman's lectures give a short argument based on small squares.[3] Place a tiny square with sides Δx\Delta x and Δy\Delta y in the xyxy-plane and go around it counterclockwise. Comparing the field on opposite sides gives a circulation of

(∂Fy∂x−∂Fx∂y)Δx Δy=(∇×F)⋅n Δa\left(\frac{\partial F_y}{\partial x} - \frac{\partial F_x}{\partial y}\right)\Delta x\,\Delta y = (\nabla\times\mathbf{F})\cdot\mathbf{n}\,\Delta a

Here Δa=Δx Δy\Delta a = \Delta x\,\Delta y is the square's area and n\mathbf{n} is its normal. The bracket is the zz-component of the curl, which for a square in any position is the component along its normal.[3] Covering SS with such squares and adding them, the inside edges cancel and the sum becomes the surface integral.[3]

Reduction to Green's theorem

A standard textbook proof turns the theorem into Green's theorem in a coordinate plane.[8] The steps below keep the notation F=(P,Q,R)\mathbf{F} = (P, Q, R) used above.

  1. Prove it for a field of the form F=R k\mathbf{F} = R\,\mathbf{k} on a surface that is a graph z=f(x,y)z = f(x, y) over a region DD of the xyxy-plane.
  2. Rewrite the line integral around CC as a line integral around the edge of DD, using z=f(x,y)z = f(x,y) and dz=fx dx+fy dydz = f_x\,dx + f_y\,dy.
  3. Rewrite the surface integral as a double integral over DD.
  4. Show the two are equal by Green's theorem. Terms cancel because fxy=fyxf_{xy} = f_{yx}.
  5. Repeat for a field P iP\,\mathbf{i} on a surface x=g(y,z)x = g(y,z) and a field Q jQ\,\mathbf{j} on a surface y=h(x,z)y = h(x,z), then add the three results.
  6. If the surface is not such a graph, cut it into pieces that are. The line integrals along each cut appear twice in opposite directions and cancel.

The author of this proof presents it as an informal sketch, not a fully rigorous proof.[8]

Consequences

Green's theorem as a special case

Green's theorem is Stokes' theorem for a flat surface. Let CC be a counterclockwise simple closed curve in the xyxy-plane, SS the region DD inside it with n=k\mathbf{n} = \mathbf{k}, and F=(P(x,y),Q(x,y),0)\mathbf{F} = (P(x,y), Q(x,y), 0).[5] The theorem becomes

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

Any surface with the same edge

The flux of a curl depends only on the boundary curve. If S1S_1 and S2S_2 are smooth surfaces with the same boundary CC and the same orientation, then[1]

∬S1(∇×F)⋅dS=∮CF⋅dr=∬S2(∇×F)⋅dS\iint_{S_1} (\nabla\times\mathbf{F})\cdot d\mathbf{S} = \oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_{S_2} (\nabla\times\mathbf{F})\cdot d\mathbf{S}

This lets you swap a hard surface for an easy one, such as a flat disk.[1] In the worked example, the upper unit hemisphere also gives a flux of 2π2\pi. This surface independence is the counterpart of path independence for line integrals of gradient fields (fields that are the gradient of a function).[1]

Two surfaces with the same boundary circleChemispheredisksame flux of curl
Any two surfaces with the same boundary and orientation have the same flux of ∇×F\nabla\times\mathbf{F}, because both equal the circulation around CC.

Closed surfaces

The flux of a curl through any closed surface is zero. Feynman's argument shrinks the boundary loop to a point. The line integral goes to zero, so the surface integral must too.[3]

The same result follows from the divergence theorem. The divergence of a field measures how much it spreads out from a point, and the divergence of a curl is always zero for fields with continuous second partial derivatives.[7][9]

Curl-free and conservative fields

A field with zero curl has zero circulation around a loop whenever the loop bounds a surface where the field is defined. This follows directly from the theorem, since the flux of a zero curl is zero.

Every conservative vector field (a gradient field) has zero curl.[10]

The reverse statement holds on a simply connected region.[11] Such a region is connected, and every simple closed curve in it can be shrunk continuously to a point while staying inside it.[12] There, Stokes' theorem gives zero circulation around every simple closed curve.[10]

The reverse statement can fail when the region has a hole. Consider the field[10]

F=1x2+y2 (−y, x, 0)\mathbf{F} = \frac{1}{x^2+y^2}\,(-y,\ x,\ 0)

It is defined everywhere except on the zz-axis and has zero curl there. Yet its circulation around the unit circle in the xyxy-plane is 2π2\pi, since F⋅r′(t)=1\mathbf{F}\cdot\mathbf{r}'(t) = 1 on that circle. Stokes' theorem does not apply, because every surface bounded by this circle is cut by the zz-axis.[10]

Vortex field circulating around the z-axisCxycirculation around C = 2πz-axis: field undefinedcurl = 0 everywhere else
The field F=(−y,x,0)/(x2+y2)\mathbf{F} = (-y, x, 0)/(x^2+y^2) has zero curl away from the zz-axis, yet its circulation around the unit circle is 2π2\pi. This does not contradict Stokes' theorem, because every surface spanning CC is pierced by the zz-axis, where the field is undefined.

Curl as circulation per unit area

Stokes' theorem gives curl a meaning that does not depend on coordinates. Let DrD_r be a small disk of radius rr centered at a point P0P_0, with unit normal n\mathbf{n} and boundary circle CrC_r. Then[1]

(∇×F)(P0)⋅n(P0)=lim⁡r→0+1πr2∮CrF⋅dr(\nabla\times\mathbf{F})(P_0)\cdot\mathbf{n}(P_0) = \lim_{r\to 0^+}\frac{1}{\pi r^2}\oint_{C_r}\mathbf{F}\cdot d\mathbf{r}

In words, the component of the curl along n\mathbf{n} is the circulation per unit area in the limit. This is why the paddlewheel spins fastest with its axis along the curl.[1]

When the theorem does not apply

The theorem does not apply when one of its conditions is not met.

  • One-sided surfaces. A Möbius strip has only one side, so no continuous normal can be chosen on it. Flux through it has no meaning, and Stokes' theorem does not apply to it.[13] See Orientability.
  • Fields that are undefined somewhere on every spanning surface. In the example above, the field is undefined on the zz-axis, which every spanning surface crosses.[10]

The circulation around the edge of a Möbius strip can still be found with Stokes' theorem by using a different, two-sided surface with the same edge.[14]

Uses in physics

Physicists use the theorem to move between the integral and differential forms of laws such as Faraday's law and Ampère's law.[1][15] An integral form is an equation about an integral over a loop or surface, and a differential form is an equation about the field's values at each point.[15]

Faraday's law

Faraday's law of induction has an integral form and a differential form. The integral form says the line integral of the electric field E\mathbf{E} around a loop equals minus the rate of change of the magnetic flux ϕ=∬DB⋅dS\phi = \iint_D \mathbf{B}\cdot d\mathbf{S} of the magnetic field B\mathbf{B} through a surface DD bounded by the loop.[1]

∮CE⋅dr=−∂ϕ∂t\oint_C \mathbf{E}\cdot d\mathbf{r} = -\frac{\partial \phi}{\partial t}

Stokes' theorem turns the left side into ∬D(∇×E)⋅dS\iint_D (\nabla\times\mathbf{E})\cdot d\mathbf{S}. If the surface does not change with time, both sides are integrals over the same surface. Because this holds for every surface, however small, the expressions being integrated must match:[1]

∇×E=−∂B∂t\nabla\times\mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}

Ampère's law

For steady currents, Ampère's law says the circulation of the magnetic field B\mathbf{B} around a loop is μ0\mu_0 times the current through it.[15][16] Here μ0\mu_0 is the magnetic constant.

∮CB⋅dr=μ0Ienc=μ0∬SJ⋅dA\oint_C \mathbf{B}\cdot d\mathbf{r} = \mu_0 I_{\text{enc}} = \mu_0 \iint_S \mathbf{J}\cdot d\mathbf{A}

The current density J\mathbf{J} is the current flowing through a unit area, with a direction.[17] The current through the loop is the flux of J\mathbf{J} through any surface bounded by the loop. Applying Stokes' theorem to the left side and using the same surface on both sides gives ∇×B=μ0J\nabla\times\mathbf{B} = \mu_0\mathbf{J}.[15]

With a term added for a changing electric field, the same steps give ∇×B=μ0J+μ0ε0 ∂E/∂t\nabla\times\mathbf{B} = \mu_0\mathbf{J} + \mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t, where ε0\varepsilon_0 is the electric constant. This full form is one of Maxwell's equations.[16]

Place among the integral theorems

A family of theorems

Stokes' theorem belongs to a family of results that each extend the fundamental theorem of calculus.[1] Each one equates an integral over a region with an integral over the region's boundary.

Theorem Region Boundary
Fundamental theorem of calculus Interval on a line Two endpoints
Gradient theorem Curve Two endpoints
Green's theorem Flat region in the plane Closed curve
Stokes' theorem Surface in space Closed curve
Divergence theorem Solid region in space Closed surface
Regions and boundaries in the Stokes theorem familyabFundamental theoremof calculusDCGreen's theoremnSCStokes' theoremEDivergence theoremintegral over region = integral over boundary
Each theorem in the family equates an integral over a region with an integral over its boundary. Stokes' theorem is the case of a surface SS and its edge curve CC.

The general form

In the language of differential forms (mathematical objects, not the differential form of a physical law), all of these are one formula. A pp-form is a mathematical object suited to integration over pp-dimensional regions, such as curves when p=1p = 1 and surfaces when p=2p = 2.[18]

Let MM be a compact (roughly, finite in extent and including its edge) oriented smooth (p+1)(p+1)-dimensional manifold with boundary ∂M\partial M. Give ∂M\partial M the induced orientation, meaning its positive direction is chosen to match the orientation of MM. If ω\omega is a smooth pp-form on MM with exterior derivative dωd\omega, then[2][18]

∫∂Mω=∫Mdω\int_{\partial M}\omega = \int_M d\omega

The same formula holds on a manifold that is not compact if ω\omega has compact support (it is zero outside some compact set).[19] The three classical theorems are special cases.[2]

Theorem Form degree Setting
Green's theorem 1-form Plane
Stokes' theorem 1-form Three-dimensional space
Divergence theorem 2-form Three-dimensional space

History

The theorem is named for George Stokes, but he did not discover it first.[2] Its first known statement is in a letter from William Thomson, later Lord Kelvin, to Stokes dated 2 July 1850.[2]

Year Event
1850 Thomson states the theorem in a letter to Stokes.
1854 Stokes sets it as question 8 on the February Smith's Prize exam at Cambridge, its first appearance in print.
1861 Hermann Hankel publishes what seems to be the first published proof, for surfaces of the form z=z(x,y)z = z(x,y).
1867 Thomson and Peter Guthrie Tait sketch a proof without that restriction in their Treatise on Natural Philosophy.
1873 James Clerk Maxwell states the theorem in his Treatise on Electricity and Magnetism, citing the Smith's Prize exam.
1889 Vito Volterra is the first to include the theorems of Green, Gauss, and Stokes in one general result, without proof.
1899 Henri Poincaré states the same generalization in a shorter form.
1945 Élie Cartan publishes the general formula in its modern form, ∫∂Mω=∫Mdω\int_{\partial M}\omega = \int_M d\omega, from a course he gave in 1936 to 1937.

All entries are from Victor Katz's history of the theorem.[2] It is not known whether any student solved the 1854 exam question.[2] Maxwell's citation followed an 1871 letter in which he asked Stokes about the theorem's history.[2]

References

  1. Calculus Volume 3, Section 6.7: Stokes' Theorem, OpenStax, 2016.
  2. The History of Stokes' Theorem (Victor J. Katz), Mathematics Magazine 52(3), 1979.
  3. The Feynman Lectures on Physics, Vol. II, Ch. 3: Vector Integral Calculus, California Institute of Technology, 1964.
  4. Lecture 21: The Theorem of Stokes', Johns Hopkins University, 2019.
  5. 18.02 Supplementary Notes V13.1-2: Stokes' Theorem (Arthur Mattuck), MIT OpenCourseWare, 2010.
  6. Stokes' and Gauss' Theorems (Math 240 slides), University of Pennsylvania, 2013.
  7. Calculus Volume 3, Section 6.5: Divergence and Curl, OpenStax, 2016.
  8. 18.02 Supplementary Notes V13.3: Proof of Stokes' Theorem (Arthur Mattuck), MIT OpenCourseWare, 2010.
  9. Math 20E week 10 notes: Why is Stokes' Theorem true?, University of California, San Diego, 2012.
  10. 15.8 Stokes' Theorem (lecture notes), University of California, Irvine.
  11. The Stokes Theorem (Sect. 16.7), MTH 234 notes, Michigan State University, 2010.
  12. Calculus Volume 3, Section 6.3: Conservative Vector Fields, OpenStax, 2016.
  13. The Möbius strip (course handout), Louisiana State University.
  14. Flux through a Möbius strip? (L. Fernández-Jambrina), European Journal of Physics, 2021.
  15. Differential Form of Ampère's Law (Corinne A. Manogue and Tevian Dray), Oregon State University.
  16. Differential Forms and Maxwell's Equations, University College London.
  17. 19.7: Summary, Introductory Physics: Building Models to Describe Our World (Martin, Neary, Rinaldo, and Woodman), LibreTexts.
  18. Math 600: Integration on Chains and Stokes' Theorem (Ryan Blair), University of Pennsylvania.
  19. Note 16: Stokes' theorem (differential geometry course notes), University of Copenhagen.

Figure