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

Stokes' theorem, path independence and div curl = 0

A region in space is simply connected if every closed loop in it bounds a surface in it: space without the origin is, space without the z-axis is not. With Stokes' theorem this proves that a field with zero curl on a simply connected region is conservative. Stokes needs an orientable surface, which the one-sided Möbius strip is not. And the flux of curl F is the same through any two surfaces with the same boundary, because by the divergence theorem their difference is the integral of div curl F, which is always zero. The lecture ends by sorting the three kinds of integrals in space and the theorems that bridge them.

You need this first

Full reading path (30 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)
  30. Stokes' theorem (18.02)
On this page · 7 sections
  1. Simply connected regions
  2. Zero curl means conservative
  3. Loops on surfaces
  4. Orientability
  5. Why the surface does not matter
  6. Three kinds of integrals
  7. Summary

Stokes' theorem turns the work around a closed curve into the flux of the curl through a surface bounded by it. This lecture uses it to explain the test for gradient fields, looks at which surfaces are allowed, and shows why the choice of surface does not matter (transcript, p. 1).

Simply connected regions#

A region in space is simply connected if every closed loop inside it bounds some surface that also lies inside it (transcript, p. 1; notes, p. 3).

  • Space without the origin is simply connected. A loop that avoids the origin bounds some surface; if that surface passes through the origin, push it slightly aside (p. 1; notes, p. 3). Auroux calls this a trick question. (By contrast, the plane without the origin is not simply connected; in space there is room to go around the hole.)
  • Space without the zz-axis is not. The unit circle in the xyxy-plane bounds no surface that misses the zz-axis: any surface ending on the circle must cross the axis somewhere, since the axis goes on forever (p. 1; notes, p. 3). A doughnut around the axis does not help: either it has a second edge, or it closes up and then the circle is no longer an edge at all (p. 1).

Zero curl means conservative#

A gradient field has zero curl, because mixed partial derivatives are equal. The converse is the theorem (transcript, p. 1; notes, p. 3): if F⃗\vec F is defined on a simply connected region and ∇×F⃗=0⃗\nabla \times \vec F = \vec 0 there, then F⃗\vec F is a gradient field, its line integrals are path independent, and it is conservative.

Proof. Take two curves C1C_1 and C2C_2 with the same endpoints. Then C=C1−C2C = C_1 - C_2 (along C1C_1, back along C2C_2) is a closed curve, so it bounds a surface SS in the region, and by Stokes (pp. 1–2; notes, p. 3):

Path independence from Stokes
∫C1F⃗⋅dr⃗−∫C2F⃗⋅dr⃗=∮CF⃗⋅dr⃗=∫∫S(∇×F⃗)⋅n^ dS=0\int_{C_1} \vec F \cdot d\vec r - \int_{C_2} \vec F \cdot d\vec r = \oint_C \vec F \cdot d\vec r = \int\int_S (\nabla \times \vec F) \cdot \hat n\,dS = 0
In words

the integral over C one of vector capital F dot d vector r minus the integral over C two of vector capital F dot d vector r equals 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 equals 0

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

The surface SS exists only because the region is simply connected. For a field defined only off the zz-axis, paths on the two sides of the axis can give different values (p. 2). The planar example from the problem sets, ⟨−y,x⟩/(x2+y2)\langle -y, x\rangle/(x^2 + y^2), extended to space with no zz component, is such a field (p. 1); the worked example below computes it.

Loops on surfaces#

The same idea classifies shapes, one of the founding results of topology in the 19th century (transcript, p. 2; notes, p. 3). The surface of a sphere is simply connected: every closed curve on it bounds a piece of the sphere. The surface of a doughnut (a torus) is not: a loop around the tube, or around the hole, bounds nothing that lies on the torus. It has two independent such loops, and counting them for surfaces with more holes is the start of the classification of surfaces (p. 2). Auroux adds that this is not an 18.02 topic.

Orientability#

Stokes' theorem can use any surface bounded by CC, provided it has a normal vector that can be chosen consistently (transcript, p. 2; notes, p. 3). A curve that winds twice around the zz-axis bounds a Möbius strip: a band glued with a half twist, which has only one side. Following an upward normal around the strip brings it back pointing down, so no orientation exists and flux through it cannot be defined (p. 2; notes, p. 3). The strip is non-orientable. The same curve also bounds a two-sided surface (a hemisphere with a twisted slit cut into it), and that is the one to use for Stokes (p. 2; notes, p. 3).

Why the surface does not matter#

If CC bounds two surfaces S1S_1 and S2S_2, Stokes says the flux of ∇×F⃗\nabla \times \vec F is the same through both. Why? Reverse the orientation of S2S_2: then S=S1−S2S = S_1 - S_2 is a closed surface, with normal pointing outwards, enclosing a region DD (transcript, pp. 2–3; notes, p. 3). By the divergence theorem:

The difference of the two fluxes
∫∫S1(∇×F⃗)⋅n^ dS−∫∫S2(∇×F⃗)⋅n^ dS=∫∫∫D∇⋅(∇×F⃗) dV\int\int_{S_1} (\nabla \times \vec F) \cdot \hat n\,dS - \int\int_{S_2} (\nabla \times \vec F) \cdot \hat n\,dS = \int\int\int_D \nabla \cdot (\nabla \times \vec F)\,dV
In words

the integral of the integral over S one of ( del cross vector capital F ) times n hat d S minus the integral of the integral over S two of ( del cross vector capital F ) times n hat d S equals the integral of the integral of the integral of _ capital D del dot ( del cross vector capital F ) d capital V

and the integrand is always zero. With F⃗=⟨P,Q,R⟩\vec F = \langle P, Q, R\rangle (p. 3; notes, pp. 3–4):

div curl = 0
∇⋅(∇×F⃗)=(Ry−Qz)x+(Pz−Rx)y+(Qx−Py)z=0\nabla \cdot (\nabla \times \vec F) = (R_y - Q_z)_x + (P_z - R_x)_y + (Q_x - P_y)_z = 0
In words

del dot ( del cross vector capital F ) equals the quantity capital R sub y minus Q sub z, sub x plus the quantity P sub z minus capital R sub x, sub y plus the quantity Q sub x minus P sub y, sub z equals 0

since the six terms cancel in pairs: RyxR_{yx} with RxyR_{xy}, QzxQ_{zx} with QxzQ_{xz}, PzyP_{zy} with PyzP_{yz} (p. 3). It matches a fact about real vectors: u⃗⋅(u⃗×v⃗)=0\vec u \cdot (\vec u \times \vec v) = 0, because u⃗×v⃗\vec u \times \vec v is perpendicular to u⃗\vec u (p. 3; notes, p. 4). Del is not really a vector, but here it behaves like one.

Three kinds of integrals#

The lecture ends with a review of the unit (transcript, pp. 3–5; notes, p. 4). There are three kinds of integral in space, each evaluated in its own way:

  1. Triple integrals ∫∫∫Df dV\int\int\int_D f\,dV, in rectangular, cylindrical or spherical coordinates, with dV=ρ2sin⁡φ dρ dφ dθdV = \rho^2 \sin\varphi\,d\rho\,d\varphi\,d\theta in spherical ones. The work is in the bounds: for dzdz first, the bottom and top surfaces of the solid, then its shadow in the xyxy-plane (p. 3; notes, p. 4).
  2. Flux integrals ∫∫SF⃗⋅n^ dS\int\int_S \vec F \cdot \hat n\,dS, from a formula for n^ dS\hat n\,dS: for a plane parallel to the yzyz-plane, n^=±i^\hat n = \pm\hat i and dS=dy dzdS = dy\,dz; for a sphere of radius aa, dS=a2sin⁡φ dφ dθdS = a^2 \sin\varphi\,d\varphi\,d\theta; for a cylinder, dS=a dz dθdS = a\,dz\,d\theta; for a graph z=f(x,y)z = f(x, y), n^ dS=±⟨−fx,−fy,1⟩ dx dy\hat n\,dS = \pm\langle -f_x, -f_y, 1\rangle\,dx\,dy; and for a surface with a known normal vector N⃗\vec N (p. 4; notes, p. 4):
Flux element from a normal vector
n^ dS=±N⃗N⃗⋅k^ dx dy\hat n\,dS = \pm \frac{\vec N}{\vec N \cdot \hat k}\,dx\,dy
In words

n hat d S equals plus or minus vector capital N over the quantity vector capital N dot k hat, times d x d y

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

A surface integral has two integral signs and two variables; a dx dy dzdx\,dy\,dz in it means something has gone wrong (p. 4). 3. Line integrals ∫CP dx+Q dy+R dz\int_C P\,dx + Q\,dy + R\,dz, by parametrising CC (p. 4; notes, p. 4).

Bridges between them: the divergence theorem (closed surface to solid), Stokes' theorem (closed curve to surface), and the fundamental theorem for line integrals, f(P1)−f(P0)=∫C∇f⋅dr⃗f(P_1) - f(P_0) = \int_C \nabla f \cdot d\vec r, which links a line integral to no integral at all (pp. 4–5; notes, p. 4). Each relates a quantity with nn integral signs to one with n+1n + 1, but once the div or curl is computed, the integral is evaluated as any other (pp. 4–5). One more topic for review: for a field with zero curl, finding a potential, by antiderivatives or by a line integral (p. 5; notes, p. 4).

Worked example

A curl-free field that is not conservative

Let F⃗=⟨−y,x,0⟩x2+y2\vec F = \dfrac{\langle -y, x, 0\rangle}{x^2 + y^2}, defined in space without the zz-axis. (a) Show that ∇×F⃗=0⃗\nabla \times \vec F = \vec 0. (b) Compute the work around the unit circle in the xyxy-plane, counterclockwise. (c) Check ∇⋅(∇×G⃗)=0\nabla \cdot (\nabla \times \vec G) = 0 for G⃗=⟨xy,yz,zx⟩\vec G = \langle xy, yz, zx\rangle.

(a) The curl

R=0R = 0 and PP, QQ do not depend on zz, so the first two components are 00. The third is Qx−Py=y2−x2(x2+y2)2−y2−x2(x2+y2)2=0Q_x - P_y = \dfrac{y^2 - x^2}{(x^2 + y^2)^2} - \dfrac{y^2 - x^2}{(x^2 + y^2)^2} = 0.

(b) The work

On the circle F⃗=⟨−sin⁡θ,cos⁡θ,0⟩\vec F = \langle -\sin\theta, \cos\theta, 0\rangle is the unit tangent, so the work is the length, ∫02π1 dθ=2π\int_0^{2\pi} 1\,d\theta = 2\pi, not zero. There is no contradiction: the region is not simply connected, and every surface bounded by the circle crosses the zz-axis, where F⃗\vec F is not defined.

(c) div curl

∇×G⃗=⟨0−y, 0−z, 0−x⟩=⟨−y,−z,−x⟩\nabla \times \vec G = \langle 0 - y,\ 0 - z,\ 0 - x\rangle = \langle -y, -z, -x\rangle, and its divergence is 0+0+0=00 + 0 + 0 = 0.

Summary#

Symbols on this page

Show the 60 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”.
ρ\rho rho.
Density: mass (or energy divided by c²) per unit volume. ρ_c is the critical density, ρ̄ the mean density. Unit: kg/m³ (on some pages an energy density in natural units: GeV⁴, eV/cm³). Say it: “rho”.
ϕ\phi phi.
The spherical angle down from the positive z-axis. Say it: “phi” (sounds like “fye”).
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\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”.
aa a.
The radius of a sphere or cylinder. Say it: “a”.
zz z.
The z coordinate. Say it: “z”.
GG G.
Newton's gravitational constant, G ≈ 6.674 × 10⁻¹¹ m³ kg⁻¹ s⁻². Unit: m³/(kg·s²). Say it: “G”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
dd d.
The d of dr, dS, dV, dx, dy, dz, dθ, dφ, dρ. Say it: “d”.
nn n.
A number of integral signs. Say it: “n”.
ff f.
A function: z = f(x, y) for a graph, or the potential of a gradient field. Say it: “f”.
FF F.
A vector field in space, ⟨P, Q, R⟩. Say it: “capital F”.
vv v.
A second vector. Say it: “v”.
rr r.
The position vector along a curve. Say it: “r”.
PP P.
The x component of F. Say it: “P”.
QQ Q.
The y component of F. Say it: “Q”.
DD D.
The solid region enclosed by the closed surface S₁ − S₂. Say it: “capital D”.
AA A.
A vector potential, with F = ∇ × A. Say it: “capital A”.
BB B.
The magnetic field. Say it: “B”.
CC C.
A closed curve, such as C₁ − C₂, bounding a surface S. Say it: “C”.
NN N.
A normal vector to a surface, not necessarily of length 1. Say it: “capital N”.
RR R.
The z component of F. Say it: “capital R”.
SS S.
A surface; dS is a small piece of its area. Say it: “S”.
S1S_{1} S one.
A surface bounded by C. Say it: “S one”.
S2S_{2} S two.
A second surface bounded by the same curve C. Say it: “S two”.
uu u.
A vector. Say it: “u”.
VV V.
Volume; dV is a small piece of volume. Say it: “capital V”.
P0P_{0} processed power spectrum.
The starting point of the curves. Say it: “P nought”.
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”.
r^\hat{r} r hat.
The radial unit vector: length 1, pointing away from the origin. Say it: “r hat”.
n^\hat{n} n hat.
The unit normal to a surface. Say it: “n hat”.
C1C_{1} C 1.
A curve from P₀ to P₁. Say it: “C one”.
C2C_{2} C 2.
A second curve with the same endpoints as C₁. Say it: “C two”.
P1P_{1} P 1.
The end point of the curves. Say it: “P one”.
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”.
RyxR_{\text{yx}} R sub y x.
The mixed second partial derivative ∂²R/∂x∂y: R differentiated by y, then by x. Say it: “capital R sub y x”.
RxyR_{\text{xy}} R sub x y.
The mixed second partial derivative ∂²R/∂y∂x: R differentiated by x, then by y. Say it: “capital R sub x y”.
QzxQ_{\text{zx}} Q sub z x.
The mixed second partial derivative ∂²Q/∂x∂z: Q differentiated by z, then by x. Say it: “Q sub z x”.
QxzQ_{\text{xz}} Q sub x z.
The mixed second partial derivative ∂²Q/∂z∂x: Q differentiated by x, then by z. Say it: “Q sub x z”.
PzyP_{\text{zy}} P sub z y.
The mixed second partial derivative ∂²P/∂y∂z: P differentiated by z, then by y. Say it: “P sub z y”.
PyzP_{\text{yz}} P sub y z.
The mixed second partial derivative ∂²P/∂z∂y: P differentiated by y, then by z. Say it: “P sub y z”.

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

Words on this page

Show the 42 words used here

New here

torus.
The surface of a ring doughnut: a tube bent round so that its ends join.
Möbius strip.
A band glued with a half twist, which has only one side and one edge.
non-orientable.
Of a surface: having only one side, so that no consistent choice of normal direction exists, like a Möbius strip.

Also used

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. Explained in Stokes' theorem.
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.
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.
curl.
A measure of how much a vector field turns or swirls around each point. Explained in Testing for gradient fields, potentials and curl.
gradient field.
A vector field that is the gradient of some function, called its potential; its line integrals depend only on the end points. Explained in Gradient fields and path independence.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
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.
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.
partial derivative.
The rate of change of a function of several variables with respect to one of them, while all the others are held fixed. Explained in Functions of two variables and partial derivatives.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
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.
path-independent.
Of a quantity such as the work done by a force: depending only on the start and end points, not on the route between them. Explained in Conservative and non-conservative forces.
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.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
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.
topology.
The branch of mathematics that studies the properties of shapes that survive stretching and bending without tearing, such as having holes. Explained in Simply connected regions.
normal vector.
A vector at right angles to a plane or surface; it fixes which way the plane faces. Explained in Planes through three points, and matrices.
closed surface.
A surface with no edge that completely encloses a region of space, like the skin of a ball.
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.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
vector.
A quantity with both a size and a direction, such as a velocity or a force, drawn as an arrow. Explained in Vectors.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
triple integral.
An integral over a region of space: cut the region into tiny boxes, multiply each by the function's value there, and add. Explained in Triple integrals and cylindrical coordinates.
spherical coordinates.
Giving a point in space by its distance from the origin and two angles: one measured down from the vertical axis, one around it. Explained in Spherical coordinates and gravitational attraction.
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.
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.
potential.
A function whose gradient is a given vector field; the field is then a gradient field. Explained in Gradient fields and path independence.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
unit tangent vector.
The vector of length one that points along a curve, in the direction of motion: the velocity divided by the speed. Explained in Velocity, acceleration and Kepler's second law.
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.
gradient.
The vector of a function's partial derivatives; it points the way the function increases fastest, and its length is that fastest rate. Explained in Graphs, straight lines and slope.
vector potential.
A vector field A whose curl gives the magnetic field; together with the scalar potential it fixes the electric field too. Explained in Charged particles in electromagnetic fields: potentials and gauge invariance.
magnetic field.
The field made by magnets and moving charges, which pushes sideways on other moving charges and turns compass needles. Explained in Magnetic fields and magnetic force.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
converse.
The statement made by swapping the 'if' and 'then' parts of another statement.
problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
consistent.
Agreeing with, and not contradicting, something else, such as the data, another result, or itself.

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

31 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. Which region is simply connected?
  2. Why can Stokes' theorem not use a Möbius strip as the surface?
  3. ∇⋅(∇×F⃗)\nabla \cdot (\nabla \times \vec F) is…
0 of 3 answered

Flashcards

1 / 3