| Part of a series of articles about |
| Calculus |
|---|
This article may be too technical for most readers to understand. (November 2025) |

Stokes' theorem, also known as the Kelvin–Stokes theorem, is a theorem in vector calculus that relates the behavior of a vector field along the edge of a surface to the behavior of its curl on the surface itself. In its usual three-dimensional form, it says that the total circulation of a vector field around a closed curve is equal to the total curl of the field through a surface bounded by that curve.
If Σ is an oriented surface with boundary ∂Σ, Stokes' theorem is commonly written as
Here the left side is the line integral of the vector field around the boundary curve, while the right side is the surface integral of its curl over the surface. Informally, the theorem says that adding up the local rotation of a vector field across a surface gives the net circulation around its edge.
The theorem is also called the fundamental theorem for curls, the curl theorem, or the rotor theorem. It is a special case of the generalized Stokes theorem. In the language of differential forms, the vector field corresponds to a 1-form and its curl corresponds to the exterior derivative of that form.
Let be an vector field and be a simple closed curve . We define the circulation as being the tangent vector to the curve (whose direction is determined by our choosing of directionality of the curve itself).
If we connect two random points of and compute the sum of the circulations of a vector field along the two sub-curves, it's clear that the term associated to the newly constructed branch vanishes as the directions of the vectors for the points of this segment are opposite in the two circulations. From here we can extend the reasoning to multiple arbitrarily added connecting segments obtaining the following: With the sub curves created by the process of connecting two points at a time and the surface enclosed by .
By iteration of this subdivision process we obtain smaller and smaller curves. Let's take the limit We can represent an arbitrarily small surface with a square. Let's take for example an infinitesimal square with the vector normal to the surface pointing along the Z direction: We can consider the field constant along the sides and take its value on their middle points, multiply this by the oriented length of the sides to have the circulation of this infinitesimal curve. Furthermore we can use a Taylor's expansion to relate all four field values to the same vertex of the infinitesimal square. Having a reference vertex of the square and and the lengths of the (infinitesimal) sides, the result is: As per construction, Z component goes to zero with the scalar product, and can be ignored. Simplifying the expression we find:In general we find the following to be true for any orientation:with the normal vector to the surface.
Using the previous relations we can write:
And finally, taking the limit for and with we get
Or Stokes' Theorem.
Let be a smooth oriented surface in , parametrized by , with boundary , parametrized by . If a vector field has continuous first-order partial derivatives in , then with the shorthands for the line element and the surface element where is the vector orthogonal to the surface at the point .
The equality can be expressed in terms of differential forms, with being the wedge product and the exterior derivative:
The main challenge in a precise statement of Stokes' theorem is in defining the notion of a boundary. Surfaces such as the Koch snowflake, for example, are well-known not to exhibit a Riemann-integrable boundary, and the notion of surface measure in Lebesgue theory cannot be defined for a non-Lipschitz surface. One (advanced) technique is to pass to a weak formulation and then apply the machinery of geometric measure theory; for that approach see the coarea formula. In this article, we instead use a more elementary definition, based on the fact that a boundary can be discerned for full-dimensional subsets of .
A more detailed statement will be given for subsequent discussions. Let be a piecewise smooth Jordan plane curve: a simple closed curve in the plane. The Jordan curve theorem implies that divides into two components, a compact one and another that is non-compact. Let denote the compact part; then is bounded by . It now suffices to transfer this notion of boundary along a continuous map to our surface in . But we already have such a map: the parametrization of .
Suppose is piecewise smooth at the neighborhood of , with . If is the space curve defined by then we call the boundary of , written
With the above notation, if is any smooth vector field on , then
Here, the "" represents the dot product in .
Stokes' theorem can be viewed as a special case of the following identity: where is any smooth vector or scalar field in . When is a uniform scalar field, the standard Stokes' theorem is recovered.
The proof of the theorem consists of 4 steps. We assume Green's theorem, so what is of concern is how to boil down the three-dimensional complicated problem (Stokes' theorem) to a two-dimensional rudimentary problem (Green's theorem). When proving this theorem, mathematicians normally deduce it as a special case of a more general result, which is stated in terms of differential forms, and proved using more sophisticated machinery. While powerful, these techniques require substantial background, so the proof below avoids them, and does not presuppose any knowledge beyond a familiarity with basic vector calculus and linear algebra. At the end of this section, a short alternative proof of Stokes' theorem is given, as a corollary of the generalized Stokes' theorem.
As in § Theorem, we reduce the dimension by using the natural parametrization of the surface. Let ψ and γ be as in that section, and note that by change of variables where Jyψ stands for the Jacobian matrix of ψ at y = γ(t).
Now let {eu, ev} be an orthonormal basis in the coordinate directions of R2.
Recognizing that the columns of Jyψ are precisely the partial derivatives of ψ at y, we can expand the previous equation in coordinates as
The previous step suggests we define the function
Now, if the scalar value functions and are defined as follows, then,
This is the pullback of F along ψ, and, by the above, it satisfies
We have successfully reduced one side of Stokes' theorem to a 2-dimensional formula; we now turn to the other side.
First, calculate the partial derivatives appearing in Green's theorem, via the product rule:
Conveniently, the second term vanishes in the difference, by equality of mixed partials. So,
But now consider the matrix in that quadratic form—that is, . We claim this matrix in fact describes a cross product. Here the superscript "" represents the transposition of matrices.
To be precise, let be an arbitrary 3 × 3 matrix and let
Note that x ↦ a × x is linear, so it is determined by its action on basis elements. But by direct calculation Here, {e1, e2, e3} represents an orthonormal basis in the coordinate directions of .
Thus (A − AT)x = a × x for any x.
Substituting for A, we obtain
We can now recognize the difference of partials as a (scalar) triple product:
On the other hand, the definition of a surface integral also includes a triple product—the very same one!
So, we obtain
Combining the second and third steps and then applying Green's theorem completes the proof. Green's theorem asserts the following: for any region D bounded by the Jordans closed curve γ and two scalar-valued smooth functions defined on D;
We can substitute the conclusion of STEP2 into the left-hand side of Green's theorem above, and substitute the conclusion of STEP3 into the right-hand side. Q.E.D.
The functions can be identified with the differential 1-forms on via the map
Write the differential 1-form associated to a function F as ωF. Then one can calculate that where ★ is the Hodge star and is the exterior derivative. Thus, by generalized Stokes' theorem,
The theorem first appears in a letter from William Thomson to George Stokes dated 2 July 1850. Stokes set it as question 8 on the 1854 Smith's Prize examination at Cambridge, which led to the result bearing his name.
In this section, we will discuss the irrotational field (lamellar vector field) based on Stokes' theorem.
Definition 2-1 (irrotational field). A smooth vector field F on an open set is irrotational (lamellar vector field) if ∇ × F = 0.
This concept is very fundamental in mechanics; as we'll prove later, if F is irrotational and the domain of F is simply connected, then F is a conservative vector field.
In this section, we will introduce a theorem that is derived from Stokes' theorem and characterizes vortex-free vector fields. In classical mechanics and fluid dynamics it is called Helmholtz's theorem.
Theorem 2-1 (Helmholtz's theorem in fluid dynamics).: 142 Let be an open subset with a lamellar vector field F and let c0, c1: [0, 1] → U be piecewise smooth loops. If there is a function H: [0, 1] × [0, 1] → U such that
Then,
Some textbooks such as Lawrence call the relationship between c0 and c1 stated in theorem 2-1 as "homotopic" and the function H: [0, 1] × [0, 1] → U as "homotopy between c0 and c1". However, "homotopic" or "homotopy" in above-mentioned sense are different (stronger than) typical definitions of "homotopic" or "homotopy"; the latter omit condition [TLH3]. So from now on we refer to homotopy (homotope) in the sense of theorem 2-1 as a tubular homotopy (resp. tubular-homotopic).

In what follows, we abuse notation and use "" for concatenation of paths in the fundamental groupoid and "" for reversing the orientation of a path.
Let D = [0, 1] × [0, 1], and split ∂D into four line segments γj. so that
By our assumption that c0 and c1 are piecewise smooth homotopic, there is a piecewise smooth homotopy H: D → M
Let S be the image of D under H. That follows immediately from Stokes' theorem. F is lamellar, so the left side vanishes, i.e.
As H is tubular(satisfying [TLH3]), and . Thus the line integrals along Γ2(s) and Γ4(s) cancel, leaving
On the other hand, c1 = Γ1, , so that the desired equality follows almost immediately.
Above Helmholtz's theorem gives an explanation as to why the work done by a conservative force in changing an object's position is path independent. First, we introduce the Lemma 2-2, which is a corollary of and a special case of Helmholtz's theorem.
Lemma 2-2. Let be an open subset, with a Lamellar vector field F and a piecewise smooth loop c0: [0, 1] → U. Fix a point p ∈ U, if there is a homotopy H: [0, 1] × [0, 1] → U such that
Then,
Above Lemma 2-2 follows from theorem 2–1. In Lemma 2-2, the existence of H satisfying [SC0] to [SC3] is crucial;the question is whether such a homotopy can be taken for arbitrary loops. If U is simply connected, such H exists. The definition of simply connected space follows:
Definition 2-2 (simply connected space). Let be non-empty and path-connected. M is called simply connected if and only if for any continuous loop, c: [0, 1] → M there exists a continuous tubular homotopy H: [0, 1] × [0, 1] → M from c to a fixed point p ∈ c; that is,
The claim that "for a conservative force, the work done in changing an object's position is path independent" might seem to follow immediately if the M is simply connected. However, recall that simple-connection only guarantees the existence of a continuous homotopy satisfying [SC1-3]; we seek a piecewise smooth homotopy satisfying those conditions instead.
Fortunately, the gap in regularity is resolved by the Whitney's approximation theorem.: 136, 421 In other words, the possibility of finding a continuous homotopy, but not being able to integrate over it, is actually eliminated with the benefit of higher mathematics. We thus obtain the following theorem.
Theorem 2-2. Let be open and simply connected with an irrotational vector field F. For all piecewise smooth loops c: [0, 1] → U
In the physics of electromagnetism, Stokes' theorem provides the justification for the equivalence of the differential form of the Maxwell–Faraday equation and the Maxwell–Ampère equation and the integral form of these equations. For Faraday's law, Stokes theorem is applied to the electric field, :
For Ampère's law, Stokes' theorem is applied to the magnetic field, :
{{cite journal}}: ISBN / Date incompatibility (help)CS1 maint: periodical has ISBN (link) See theorems 7 & 8.