BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Stokes' theorem

Stokes' theorem is the space version of Green's theorem for work: the work of F around a closed curve C equals the flux of curl F through any surface S bounded by C, ∮ F · dr = ∫∫ (∇ × F) · n̂ dS. The orientations must match: walking along C with S on your left, n̂ points up (or the right-hand rule: thumb along C, index towards S, middle finger along n̂). For a flat region in the xy-plane it is exactly Green's theorem. It holds in any plane, because work, flux and curl do not depend on the coordinates, and for curved surfaces by cutting them into nearly flat pieces. Example: F = ⟨z, x, y⟩ around the unit circle gives π, directly or through a paraboloid.

You need this first

Full reading path (29 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. Parametric equations of lines and the cycloid (18.02)
  7. Velocity, acceleration and Kepler's second law (18.02)
  8. Functions of two variables and partial derivatives (18.02)
  9. Tangent planes, critical points and least squares (18.02)
  10. The second derivative test (18.02)
  11. Differentials and the chain rule (18.02)
  12. The gradient and directional derivatives (18.02)
  13. Lagrange multipliers (18.02)
  14. Non-independent variables (18.02)
  15. Double integrals (18.02)
  16. Double integrals in polar coordinates, and their uses (18.02)
  17. Change of variables in double integrals (18.02)
  18. Vector fields and line integrals (18.02)
  19. Gradient fields and path independence (18.02)
  20. Testing for gradient fields, potentials and curl (18.02)
  21. Green's theorem (18.02)
  22. Flux and the normal form of Green's theorem (18.02)
  23. Simply connected regions (18.02)
  24. Triple integrals and cylindrical coordinates (18.02)
  25. Spherical coordinates and gravitational attraction (18.02)
  26. Vector fields in space and flux through surfaces (18.02)
  27. Flux through graphs and the divergence theorem (18.02)
  28. The divergence theorem, its proof and the diffusion equation (18.02)
  29. Line integrals, gradient fields and curl in space (18.02)
On this page · 7 sections
  1. Curl again
  2. The theorem
  3. Orientation
  4. Stokes contains Green
  5. Why it is true
  6. An example
  7. Summary

The curl measures the rotation in a flow: its direction is the axis, its length twice the angular velocity. This lecture shows its second role: as in the plane, it turns work around a closed curve into a surface integral (transcript, pp. 1–2).

Curl again#

A constant field has curl zero, and so does a stretching field such as x i^x\,\hat i, whose stretching is measured by the divergence (1 here) instead. The rotation ⟨−y,x,0⟩\langle -y, x, 0\rangle about the zz-axis has curl ⟨0,0,2⟩\langle 0, 0, 2\rangle (transcript, pp. 1–2). In a river flowing towards the sea, the curl shows where the eddies are (p. 2). The curl decides whether a field is conservative (on a simply connected region); and, as in the plane with Green's theorem, it converts line integrals into double integrals (p. 2).

The theorem#

If CC is a closed curve in space and SS any surface bounded by CC, then (transcript, pp. 2–3; notes, p. 2):

Stokes' theorem
∮CF⃗⋅dr⃗=∫∫S(∇×F⃗)⋅n^ dS\oint_C \vec F \cdot d\vec r = \int\int_S (\nabla \times \vec F) \cdot \hat n\,dS
In words

the loop integral of sub C vector capital F dot d vector r equals the integral of the integral over S of ( del cross vector capital F ) times n hat d S

Source: 18.02 lecture summaries, Week 13 (Prof. Auroux), Lecture 31, pp. 2–3, Lecture 31, p. 2

It is the space version of Green's theorem for work, as the divergence theorem is of Green for flux (notes, p. 2). For the unit circle in the xyxy-plane, SS could be the disc, a hemisphere, a pointed cone: the flux of ∇×F⃗\nabla \times \vec F is the same through each (p. 3; notes, p. 2). The theorem can also be used backwards, to turn a surface integral into a line integral (p. 3). F⃗\vec F must be defined and differentiable everywhere on SS; what happens off SS does not matter (pp. 9–10). So if F⃗\vec F is undefined at the origin, use the hemisphere rather than the disc for the unit circle; if it is undefined on the whole zz-axis, every surface bounded by the circle crosses the axis and Stokes' theorem cannot be applied directly (pp. 9–10).

Orientation#

Reversing CC changes the sign of the work, and flipping n^\hat n the sign of the flux, so the two must be compatible (transcript, pp. 3–4; notes, p. 2). The rule: if you walk along CC in its direction with SS on your left, then n^\hat n points up, towards your head (pp. 4–5; notes, p. 2). Equivalently, a right-hand rule: thumb along CC, index finger pointing into SS, then the middle finger points along n^\hat n (pp. 5–6; notes, p. 2). These conventions are no more arbitrary than the choice of sign in the curl, and both come from preferring right-handed coordinate systems (p. 9).

Some cases (pp. 4–7): if CC is the unit circle traversed clockwise (seen from above) and SS the disc, n^\hat n points down. For a cone with CC as its rim, n^\hat n points up and into the cone: deforming the disc into the cone keeps the normal on the same side. A cylinder (without top or bottom) has two boundary curves; with n^\hat n pointing outwards, the bottom circle runs counterclockwise and the top one clockwise, seen from above, and the work is the sum over both.

Stokes contains Green#

If CC and SS lie in the xyxy-plane, with CC counterclockwise, then n^=k^\hat n = \hat k and dS=dx dydS = dx\,dy, and dz=0dz = 0 on CC (transcript, pp. 7–8; notes, p. 2):

Green's theorem as a special case
∮CP dx+Q dy=∫∫S(∇×F⃗)⋅k^ dx dy=∫∫S(Qx−Py) dx dy\oint_C P\,dx + Q\,dy = \int\int_S (\nabla \times \vec F) \cdot \hat k\,dx\,dy = \int\int_S (Q_x - P_y)\,dx\,dy
In words

the loop integral of sub C P d x plus Q d y equals the integral of the integral over S of ( del cross vector capital F ) times k hat d x d y equals the integral of the integral over S of of the quantity Q sub x minus P sub y, d x d y

which is Green's theorem (with PP, QQ in place of MM, NN) (pp. 8–9).

Why it is true#

The idea of the proof (transcript, pp. 10–11; notes, pp. 2–3):

  1. For CC and SS in the xyxy-plane it is Green's theorem, already proved.
  2. In any other plane it reduces to Green's theorem in coordinates adapted to that plane: work, flux and curl can be defined geometrically, without reference to the coordinate system, so they look the same in any rotated right-handed coordinates (pp. 10–11; notes, pp. 2–3).
  3. A general surface is cut into tiny, nearly flat pieces, like the panels of a ball. On each piece the work around its edge is about the flux of the curl through it. Adding up: the fluxes add to the flux through SS, and the line integrals along inner edges are each done twice in opposite directions, so they cancel, leaving the work around CC (pp. 11–12; notes, p. 3). Auroux admits this argument cheats a little; it is an outline, not a full proof (p. 12).

An example#

Check the theorem for F⃗=⟨z,x,y⟩\vec F = \langle z, x, y\rangle, with CC the unit circle in the xyxy-plane, counterclockwise, and SS the piece of the paraboloid z=1−x2−y2z = 1 - x^2 - y^2 above the plane (transcript, pp. 12–13; notes, p. 3).

Directly: on CC, x=cos⁡θx = \cos\theta, y=sin⁡θy = \sin\theta, z=0z = 0, so only x dyx\,dy survives (p. 12; notes, p. 3):

The work around the circle
∮Cz dx+x dy+y dz=∮Cx dy=∫02πcos⁡2θ dθ=π\oint_C z\,dx + x\,dy + y\,dz = \oint_C x\,dy = \int_0^{2\pi} \cos^2\theta\,d\theta = \pi
In words

the loop integral of sub C z d x plus x d y plus y d z equals the loop integral of sub C x d y equals the integral from 0 to 2 pi of cos squared theta d theta equals pi

Source: 18.02 lecture summaries, Week 13 (Prof. Auroux), Lecture 31, pp. 2–3, Lecture 31, p. 3

By Stokes: ∇×F⃗=⟨1,1,1⟩\nabla \times \vec F = \langle 1, 1, 1\rangle, and for the graph z=f(x,y)=1−x2−y2z = f(x, y) = 1 - x^2 - y^2, n^ dS=⟨−fx,−fy,1⟩ dx dy=⟨2x,2y,1⟩ dx dy\hat n\,dS = \langle -f_x, -f_y, 1\rangle\,dx\,dy = \langle 2x, 2y, 1\rangle\,dx\,dy, pointing up (p. 13; notes, p. 3):

The flux of the curl
∫∫S(∇×F⃗)⋅n^ dS=∫∫unit disc(2x+2y+1) dx dy=∫∫unit disc1 dx dy=π\int\int_S (\nabla \times \vec F) \cdot \hat n\,dS = \int\int_{\text{unit disc}} (2x + 2y + 1)\,dx\,dy = \int\int_{\text{unit disc}} 1\,dx\,dy = \pi
In words

the integral of the integral over S of ( del cross vector capital F ) times n hat d S equals the integral of the integral over unit disc of the quantity 2 x plus 2 y plus 1, d x d y equals the integral of the integral over unit disc of 1 d x d y equals pi

since ∫∫x dx dy=∫∫y dx dy=0\int\int x\,dx\,dy = \int\int y\,dx\,dy = 0 over the disc by symmetry (p. 13; notes, p. 3).

Worked example

One curve, two surfaces

For F⃗=⟨−y,x,z⟩\vec F = \langle -y, x, z\rangle and CC the unit circle in the xyxy-plane, counterclockwise, compute the work directly, then the flux of the curl through the unit disc and through the upper unit hemisphere.

Directly

On CC, F⃗=⟨−sin⁡θ,cos⁡θ,0⟩\vec F = \langle -\sin\theta, \cos\theta, 0\rangle is tangent with length 1, so the work is the circumference, 2π2\pi.

Through the disc

∇×F⃗=⟨0−0,0−0,1−(−1)⟩=⟨0,0,2⟩\nabla \times \vec F = \langle 0 - 0, 0 - 0, 1 - (-1)\rangle = \langle 0, 0, 2\rangle. Through the disc with n^=k^\hat n = \hat k: 2×π=2π2 \times \pi = 2\pi.

Through the hemisphere

On the upper hemisphere n^=⟨x,y,z⟩\hat n = \langle x, y, z\rangle, so (∇×F⃗)⋅n^=2z=2cos⁡φ(\nabla \times \vec F) \cdot \hat n = 2z = 2\cos\varphi, and the flux is ∫02π∫0π/22cos⁡φsin⁡φ dφ dθ=2π\int_0^{2\pi}\int_0^{\pi/2} 2\cos\varphi\sin\varphi\,d\varphi\,d\theta = 2\pi. The same, as Stokes' theorem promises.

Summary#

  • Stokes' theorem: ∮CF⃗⋅dr⃗=∫∫S(∇×F⃗)⋅n^ dS\oint_C \vec F \cdot d\vec r = \int\int_S (\nabla \times \vec F) \cdot \hat n\,dS for any surface SS bounded by CC, with F⃗\vec F differentiable on SS.
  • Orientation: walking along CC with SS on your left, n^\hat n points up (right-hand rule: thumb, index, middle finger).
  • In the xyxy-plane it is Green's theorem. In other planes, by invariance under rotations; for curved surfaces, by cutting into flat pieces whose inner edges cancel.
  • Example: ⟨z,x,y⟩\langle z, x, y\rangle around the unit circle gives π\pi, directly or through the paraboloid.

Symbols on this page

Show the 36 symbols used here
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ϕ\phi phi.
The angle down from the positive z-axis, used as a parameter on the hemisphere. Say it: “phi” (sounds like “fye”).
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
⟨\langle angle brackets.
The average (mean value) of what is inside, ⟨…⟩. Say it: “the average of”.
∇\nabla nabla (del).
Del: ∇f is the gradient, ∇·v the divergence, ∇×v the curl, ∇² the Laplacian. Say it: “del”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
∮\oint loop integral.
An integral around a closed loop. Say it: “the loop integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
zz z.
The z coordinate. Say it: “z”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
dd d.
The d of dr, dx, dy, dz, dS, dθ, dφ. Say it: “d”.
ff f.
The function whose graph z = f(x, y) is the paraboloid. Say it: “f”.
FF F.
A vector field in space, ⟨P, Q, R⟩. Say it: “capital F”.
rr r.
The position vector along the curve C. Say it: “r”.
PP P.
The x component of F. Say it: “P”.
QQ Q.
The y component of F. Say it: “Q”.
CC C.
A closed curve in space, the boundary of S. Say it: “C”.
NN N.
The y component of a plane field, in Green's theorem's notation. Say it: “capital N”.
MM M.
The x component of a plane field, in Green's theorem's notation. Say it: “M”.
SS S.
A surface bounded by the closed curve C; dS is a small piece of its area. Say it: “S”.
i^\hat{i} i hat.
Unit vector in the x direction: length 1, pointing towards increasing x. Say it: “i hat”.
k^\hat{k} k hat.
Unit vector in the z direction: length 1, pointing towards increasing z. Say it: “k hat”.
n^\hat{n} n hat.
The unit normal to S, compatible with the direction of C. Say it: “n hat”.
fxf_{x} f sub x.
The partial derivative ∂f/∂x. Say it: “f sub x”.
fyf_{y} f sub y.
The partial derivative ∂f/∂y. Say it: “f sub y”.
PyP_{y} P sub y.
The partial derivative ∂P/∂y. Say it: “P sub y”.
QxQ_{x} Q sub x.
The partial derivative ∂Q/∂x. Say it: “Q sub x”.
PzP_{z} P sub z.
The partial derivative ∂P/∂z. Say it: “P sub z”.
RxR_{x} R sub x.
The partial derivative ∂R/∂x. Say it: “capital R sub x”.
QzQ_{z} Q sub z.
The partial derivative ∂Q/∂z. Say it: “Q sub z”.
RyR_{y} R sub y.
The partial derivative ∂R/∂y. Say it: “capital R sub y”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 36 words used here

New here

Stokes' theorem.
The rule that the flux of a vector field's curl through a surface equals the field's line integral round the edge of that surface.

Also used

curl.
A measure of how much a vector field turns or swirls around each point. Explained in Testing for gradient fields, potentials and curl.
angular velocity.
How fast something turns: the rate of change of an angle, in radians per second, often taken as a vector along the axis. Explained in Circular motion: polar coordinates, position and velocity.
work.
The energy a force gives to a body as it moves: the part of the force along the motion times the distance moved. Explained in Kinetic energy and work in one dimension.
closed curve.
A curve that ends where it started, like a circle, so it has no loose ends. Explained in Forces on currents and the Biot–Savart law.
surface integral.
An integral over a surface in space: the surface is cut into tiny patches, each multiplied by the value there, and all are added.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
field.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
divergence.
A measure of how much a vector field spreads out from each point: the amount flowing out of a tiny region per unit size. Explained in Flux and the normal form of Green's theorem.
eddy.
A swirl of fluid turning round on itself, such as the whirls behind a rock in a stream. Explained in Stokes flow past a sphere, drag, eddies and turbulence.
conservative force.
A force whose work between two points is the same for every path, so it can be described by a potential energy. Explained in Conservation of energy.
simply connected.
Of a region: in one piece with no hole a loop could wrap around, so any closed curve in it can shrink to a point. Explained in Simply connected regions.
Green's theorem.
The theorem that an integral around a closed curve in the plane equals a double integral of the curl, or divergence, over the region inside. Explained in Green's theorem.
line integral.
An integral along a path: adding up a quantity, such as the part of a force along the motion, over tiny steps of a curve. Explained in Work and kinetic energy in two and three dimensions.
double integral.
An integral over a region of the plane: cut the region into tiny pieces, multiply each by the function's value there, and add. Explained in Double integrals.
divergence theorem.
The theorem that the flux of a vector field out of a closed surface equals the integral of its divergence over the region inside. Explained in Flux through graphs and the divergence theorem.
flux.
How much of a field, or of a flow of matter or energy, passes through a surface (per second, for a flow). Explained in Towards the universe: what starlight tells us.
unit circle.
The circle of radius 1 centred at the origin; the point at angle θ on it is (cos θ, sin θ). Explained in Angles, radians and trigonometry.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
differentiable.
Having a derivative: at that point the graph has a single, definite, non-vertical tangent line, with no corner or break. Explained in The mean value theorem and inequalities.
right-hand rule.
A way to find a direction with the right hand: curl the fingers from the first vector to the second; the thumb gives the result. Explained in Magnetic fields and magnetic force.
right-handed.
Of a set of axes: arranged so that curling the right hand from x to y makes the thumb point along z. Explained in Torque and the cross product.
coordinate system.
A rule that gives every point a set of numbers, its coordinates, fixed by a starting point, directions and units. Explained in Vectors.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
symmetry.
A change, such as a reflection, a rotation or a shift, that leaves something looking exactly the same. Explained in The derivative: slope of the tangent line and rate of change.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
velocity field.
A vector field that gives the velocity of a moving fluid at each point, like a map of wind arrows. Explained in Vector fields and line integrals.
circulation.
How much a field or flow goes round a closed loop: the part of the field along the loop, added up all the way round. Explained in Fields: scalar, vector, gravitational and electric.
vorticity.
The amount of spinning in a flowing fluid at each point: the curl of its velocity field. Explained in Testing for gradient fields, potentials and curl.
spin.
Turning about an axis through the body itself, as a wheel, a planet or a black hole does. Explained in Kinetic energy and angular momentum of a rolling body.
invariant.
Unchanged by a given transformation, such as moving to another frame, turning the axes or changing the gauge. Explained in Symmetry and Galilean invariance.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
convention.
An agreed choice, such as which direction counts as positive, that could have been made differently.
arbitrary.
Free to be chosen as one likes; any choice gives a correct result.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

32 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. In Stokes' theorem, the surface SS must be…
  2. CC is the unit circle in the xyxy-plane, counterclockwise seen from above, and SS the unit disc. Which normal is compatible?
  3. The curl of ⟨z,x,y⟩\langle z, x, y\rangle is…
0 of 3 answered

Flashcards

1 / 3