The fundamental theorem of calculus says a total change of $F$ on an interval equals the difference of $F$ at the two endpoints. Interior information, the derivative, is recovered from the boundary. Stokes theorem is that slogan for a surface. The circulation of a vector field $\mathbf{F}$ around the oriented edge of a surface equals the flux of $\operatorname{curl}\mathbf{F}$ through the surface. You are not learning a new kind of integral. You are learning that two integrals, which look unrelated, are the same number when the hypotheses hold.
In symbols, if $S$ is an oriented surface with compatible boundary curve $\partial S$,
$$\oint_{\partial S}\mathbf{F}\cdot d\mathbf{r}=\iint_S(\nabla\times\mathbf{F})\cdot d\mathbf{S}.$$
The left side adds how much $\mathbf{F}$ pushes along the rim. The right side adds how much the field swirls through the interior. Compute the side that is kinder. That is the practical gift, and it is available only after the orientations match and $\mathbf{F}$ is smooth on $S$. This page is a first undergraduate reading in the multivariable cluster of the explainer library. It assumes you can already say what a line integral and a curl are asking. The wider map is multivariable and vector calculus. The linear picture of $d\mathbf{S}$ lives on Jacobian matrices in plain language. The study route this site uses before several variables is the linear algebra first course.
What each side is counting
A line integral $\int_C\mathbf{F}\cdot d\mathbf{r}$ samples the field along a path and keeps only the part tangent to the path. If you walk the path and the field agrees with your direction, the integral grows. If the field fights you, the integral shrinks. On a closed rim the result is called circulation. It is a single number, not a vector. Units, if the field is a force, are work. If the field is a velocity, the number is a circulation of flow. The theorem does not know your units. You attach them after the integral is done.
The surface integral $\iint_S(\nabla\times\mathbf{F})\cdot d\mathbf{S}$ does a different sampling. At each point of $S$ you take the curl, keep the part along the chosen normal, and add those pieces with respect to area. A positive contribution means the local swirl agrees with the normal. A negative contribution means it opposes the normal. Stokes theorem says the total of those local swirls equals the circulation on the rim. Nothing in the statement says the two integrands look alike. They usually do not. Equality of the totals is the claim.
Curl as microscopic circulation
At a point, $\nabla\times\mathbf{F}$ is a vector. Its direction is an axis of local rotation, in the right hand sense, for a smooth field. Its length is the strength of that swirl per unit area in the plane perpendicular to the axis. If you take a tiny oriented loop in a plane with unit normal $\mathbf{n}$, the circulation around that loop is about $(\nabla\times\mathbf{F})\cdot\mathbf{n}$ times the area of the loop.
Example Let $\mathbf{F}=\langle -y,x,0\rangle$. Then $\nabla\times\mathbf{F}=\langle 0,0,2\rangle$. On a circle of radius $\varepsilon$ in the plane $z=0$, centered at the origin and traveled counterclockwise from above, the circulation is not a mystery. Parametrize $\mathbf{r}(t)=(\varepsilon\cos t,\varepsilon\sin t,0)$. Then $\mathbf{F}(\mathbf{r}(t))=(-\varepsilon\sin t,\varepsilon\cos t,0)$ and $\mathbf{r}'(t)=(-\varepsilon\sin t,\varepsilon\cos t,0)$, so the dot product is $\varepsilon^2$ at every $t$. Integrate from $0$ to $2\pi$ and the circulation is $2\pi\varepsilon^2$. The area inside the circle is $\pi\varepsilon^2$. Circulation divided by area equals $2$, which is exactly the $z$ component of the curl. The tiny loop has already met the theorem. The factor $2$ is a rate per unit area, not a circulation by itself.
Stokes theorem says those microscopic swirls add up on a large surface. Tile $S$ with small patches. Each shared edge is traveled once in each direction, so the interior edges cancel. Only the outer boundary survives. The same cancellation is why a telescoping sum appears in the single variable fundamental theorem. If that single variable sentence is still foggy, repair it on what a derivative actually measures before you lean on the surface version.
Orientation is part of the data
A surface needs a continuous choice of normal, and the boundary needs a travel direction tied to that normal. The right hand rule is the tie. Point the thumb of your right hand along the normal. Your fingers curl in the direction you must walk the rim. Reverse the normal and you must reverse the walk. The two sides of the theorem both change sign, and the equality survives. Reverse only one of them and a minus sign appears. That minus sign is not a calculation error. It is a mismatched pair of orientations.
A closed surface, such as a full sphere, has empty boundary. The circulation side is an empty sum, which is $0$. So the flux of $\operatorname{curl}\mathbf{F}$ through a closed surface is $0$ whenever $\mathbf{F}$ is smooth on and inside that surface. This is a useful check, and it is not the divergence theorem. The divergence theorem equates the flux of $\mathbf{F}$ itself, not of the curl, with a triple integral of $\operatorname{div}\mathbf{F}$. Mixing those two statements is a common way to "prove" a number that the problem never asked for.
Green in the plane is the flat case
If $S$ sits in the $xy$ plane and $\mathbf{F}=\langle P,Q,0\rangle$, Stokes theorem reduces to Green's theorem:
$$\oint_C P\,dx+Q\,dy=\iint_D(Q_x-P_y)\,dA.$$
The scalar $Q_x-P_y$ is the $z$ component of the curl. So Green is not a different religion. It is Stokes for a flat domain with upward normal, which matches counterclockwise travel on the outer boundary. If you already believe Green, you already believe the two dimensional core of Stokes. A hole in the domain adds an inner curve, traveled clockwise when the outer curve is counterclockwise, because the normal still points up and the region stays on the left as you walk. Forgetting the inner curve is how a planar problem quietly leaves the hypotheses.
Why the surface can change
Suppose two surfaces $S_1$ and $S_2$ share the same oriented boundary, and $\nabla\times\mathbf{F}$ is defined and smooth in the region they enclose together. Then the two flux integrals of the curl are equal, because each equals the same circulation. You may replace a complicated surface with a simpler one that has the same rim. A hemisphere and its equatorial disk are the classroom picture. The curl does not have to be zero for the swap to be legal. Smoothness in the enclosed region is the legal condition.
Example Let $\mathbf{F}=\langle -y,x,0\rangle$ and let $C$ be the unit circle $x^2+y^2=1$ in the plane $z=0$, traveled counterclockwise when viewed from above. On $C$, the field equals the unit tangent, and the speed is $1$, so the circulation is the length $2\pi$. You can also compute it from the parametrization $\mathbf{r}(t)=(\cos t,\sin t,0)$: the integrand $\mathbf{F}\cdot\mathbf{r}'$ equals $1$, and the integral from $0$ to $2\pi$ is $2\pi$.
The disk $x^2+y^2\le 1$ in the plane $z=0$ has upward normal and $\nabla\times\mathbf{F}=\langle 0,0,2\rangle$. The flux of the curl is $2$ times the area $\pi$, which is $2\pi$. A hemisphere with the same rim gives the same number, because the hypotheses hold in the ball and the boundary matches. The disk was the kinder surface. Choosing the hemisphere and then grinding through a spherical parametrization is correct and usually a waste, unless the problem insists on that surface.
A second field shows the sign. Let $\mathbf{G}=\langle y,0,0\rangle$. Then $\nabla\times\mathbf{G}=\langle 0,0,-1\rangle$. On the same unit circle, $\mathbf{G}\cdot d\mathbf{r}$ becomes $-\sin^2 t$ after the parametrization above, and the integral is $-\pi$. The flux of the curl through the unit disk is $-1$ times area $\pi$, which is also $-\pi$. The negative sign means the swirl opposes the upward normal. It is still a successful check of the theorem.
What the theorem is not
- It is not path independence. Path independence belongs to gradient fields, where the circulation on every closed curve in the region is zero. A gradient field has curl zero, so Stokes theorem agrees, but many fields with curl zero on a punctured region are not gradients. The theorem does not promote every curl free field into a gradient.
- It is not a test that the field is conservative. A single surface with a single boundary can give circulation zero because the flux of the curl happens to cancel, even when the field is not a gradient on a larger region.
- It does not apply to a surface that the field does not survive. Smoothness on $S$ is a hypothesis, not a courtesy.
- A zero curl does not let you ignore a hole. The next example is the standard warning.
Example Let $\mathbf{H}=\left\langle \dfrac{-y}{x^2+y^2},\dfrac{x}{x^2+y^2},0\right\rangle$ away from the $z$ axis, where the formula breaks. On the unit circle in the plane $z=0$ the denominator is $1$, and $\mathbf{H}\cdot d\mathbf{r}$ integrates to $2\pi$. Away from the origin the curl is $\mathbf{0}$. If you still apply Stokes theorem on the unit disk, the flux of the curl would be $0$. The two numbers disagree because $\mathbf{H}$ is not smooth on that disk. The origin sits in the interior. The theorem did not fail. The hypothesis did.
How an undergraduate should compute
- Sketch $S$ and $\partial S$. Decide a normal, then the boundary direction from the right hand rule.
- Compute $\nabla\times\mathbf{F}$. If it is simple, prefer the surface integral. If $S$ is messy and $\mathbf{F}$ is simple on the curve, prefer the line integral.
- If another surface has the same boundary and a friendlier curl flux, switch, after you know the curl is smooth between them.
- Parametrize, insert, and integrate. The vector area element is $\mathbf{r}_u\times\mathbf{r}_v\,du\,dv$. The order of the cross product chooses the normal.
- Ask whether the field is smooth on and near $S$. If not, stop and repair the setup. Do not average the two sides into a compromise number.
How to know you understood
- Say, in one sentence, which integral is circulation and which is flux of curl, and why they can be equal without looking alike.
- For $\mathbf{F}=\langle -y,x,0\rangle$ on the unit circle, get $2\pi$ two ways: the line integral, and the flux of $\langle 0,0,2\rangle$ through the disk.
- Name the right hand rule out loud while you point at a sketch. Then say what happens if you reverse only the normal.
- Give the punctured field $\mathbf{H}$ as a case where curl zero on the curve does not license Stokes theorem on the disk.
- Tell Stokes theorem from the divergence theorem in one sentence a classmate could use.
Practice with the vector calculator
This site does not hide a surface integrator, and it should not. Stokes theorem is a decision about which integral to set up, not a button. The nearby arithmetic is a dot product or a cross product. The vector operations calculator does those, in two or three components. It does not know your orientation, and it does not add the pieces of an integral.
To see divergence and curl at one point, including the rotation field $\langle -y, x, 0\rangle$ and the shear field from the sign example, use the divergence and curl calculator. It estimates each partial derivative with a central difference, reports the numbers, and draws the arrows in the plane or on a horizontal slice. It does not integrate a surface. The number it prints is a local check, not a flux.
After a parametrization has collapsed to a one variable integral, a numerical picture of that integral can go to the Riemann sum calculator. Use it only after the setup is finished by hand. A pretty Riemann sum of the wrong integrand is still the wrong integral. The short glossary forms are Stokes theorem, vector field, and partial derivative, since every component of a curl is a partial derivative.
Check a dot product or a cross product after you can say which vector is the field and which vector is the normal.
Open the vector operations calculatorConstrained optimization uses normals in a different job. The gradient of a constraint is normal to a level set, which is the picture on Lagrange multipliers intuition. Do not import a multiplier into a circulation problem. If the next course is still single variable, Stokes theorem can wait. The AP Calculus AB bridge says so on purpose, and it sends several variables through linear algebra first.
The family of theorems
Keep one mental shelf:
- Fundamental theorem: $\int_a^b F'=F(b)-F(a)$.
- Line integrals of gradients: path independence when $\mathbf{F}=\nabla f$ on a decent region.
- Green: curl in the plane, circulation on a closed curve.
- Stokes: curl in space, circulation on the boundary of a surface.
- Divergence theorem: flux of $\mathbf{F}$ through a closed surface equals the triple integral of $\operatorname{div}\mathbf{F}$.
Each says that a derivative on the inside matches a measurement on the boundary. The integral glossary line is the single variable ancestor of that shelf. Jacobians appear when you parametrize $S$ and compute $d\mathbf{S}$. They also appear when a change of variables needs a volume scale. That is a different sentence, and it belongs on the Jacobian page, not as a substitute for the curl.
Citations and further reading
- OpenStax, Calculus Volume 3, Stokes’ theorem. openstax.org
- MIT OpenCourseWare, 18.02SC, Stokes theorem lectures. ocw.mit.edu
- Paul’s Online Math Notes, Stokes’ Theorem. tutorial.math.lamar.edu
- Schey, H. M. Div, Grad, Curl, and All That, for a physical reading of curl and circulation.