Stokes's Theorem

The Significance of Stokes’s Theorem

Stokes’s theorem establishes the connection between the surface integral of the second kind over a surface in space and the line integral of the second kind along the boundary curve of the surface. It is the generalisation of Green’s theorem to three dimensions (Green’s theorem is the special case of Stokes’s theorem on a plane), linking “the flux of the curl across the surface” with “the circulation along the boundary”.

Stokes’s Theorem

Theorem1

Suppose Σ\Sigma is a piecewise smooth oriented surface, LL is the positively oriented boundary curve of Σ\Sigma, and the functions P(x,y,z),Q(x,y,z),R(x,y,z)P(x,y,z), Q(x,y,z), R(x,y,z) have continuous first-order partial derivatives in a region of space containing Σ\Sigma. Then

∮LP dx+Q dy+R dz=∬Σ∣dy dzdz dxdx dy∂∂x∂∂y∂∂zPQR∣\oint_L P \, dx + Q \, dy + R \, dz = \iint_\Sigma \left| \begin{array}{ccc} dy\,dz & dz\,dx & dx\,dy \\ \frac{\partial}{\partial x} & \frac{\partial}{\partial y} & \frac{\partial}{\partial z} \\ P & Q & R \end{array} \right|

Expanding this gives:

∮LP dx+Q dy+R dz=∬Σ(∂R∂y−∂Q∂z)dy dz+(∂P∂z−∂R∂x)dz dx+(∂Q∂x−∂P∂y)dx dy\oint_L P \, dx + Q \, dy + R \, dz = \iint_\Sigma \left( \frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z} \right) dy\,dz + \left( \frac{\partial P}{\partial z} - \frac{\partial R}{\partial x} \right) dz\,dx + \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) dx\,dy

The Convention for the Positively Oriented Boundary Curve (the Right-Hand Rule)

Expressed with the Curl

Introducing the notion of the curl:

∇×F⃗=(∂R∂y−∂Q∂z,∂P∂z−∂R∂x,∂Q∂x−∂P∂y)\nabla \times \vec{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)

Stokes’s theorem can be written concisely as:

∮LF⃗⋅dr⃗=∬Σ(∇×F⃗)⋅dS⃗\oint_L \vec{F} \cdot d\vec{r} = \iint_\Sigma (\nabla \times \vec{F}) \cdot d\vec{S}

That is: the circulation of the vector field along the closed curve = the flux of the curl through any surface bounded by that curve.

The Physical Meaning of Stokes’s Theorem

The Space Line Integral and Independence of the Path

Theorem2

Suppose the region GG of space is simply connected in one dimension (that is, every closed curve in GG spans a surface lying entirely in GG), and the functions P,Q,RP, Q, R have continuous first-order partial derivatives in GG. Then the following four statements are equivalent:

  1. The line integral ∫LP dx+Q dy+R dz\int_L P \, dx + Q \, dy + R \, dz is independent of the path in GG

  2. The line integral along any closed curve LL in GG is zero: ∮LP dx+Q dy+R dz=0\oint_L P \, dx + Q \, dy + R \, dz = 0

  3. There exists a function u(x,y,z)u(x,y,z) in GG such that du=P dx+Q dy+R dzdu = P \, dx + Q \, dy + R \, dz

  4. We have ∇×F⃗=0\nabla \times \vec{F} = 0 throughout GG (that is, the curl vanishes: ∂R∂y=∂Q∂z, ∂P∂z=∂R∂x, ∂Q∂x=∂P∂y\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})

A vector field whose curl vanishes is called an irrotational field (or a field with a potential / a conservative field).

A Unified View of the Three Theorems

Worked Examples

Example 1: Computing a Space Line Integral with Stokes’s Theorem

Compute ∮L(y−z) dx+(z−x) dy+(x−y) dz\oint_L (y-z) \, dx + (z-x) \, dy + (x-y) \, dz, where LL is the ellipse x2+y2=a2, xa+zb=1x^2+y^2 = a^2, \, \frac{x}{a}+\frac{z}{b} = 1 (a>0,b>0a>0, b>0), traversed counterclockwise as seen from the positive xx-axis.

Stokes's theorema space line integralan ellipsethe curlthe right-hand rule

Approach:

For a space closed curve, use Stokes’s theorem to convert it into a surface integral. The curl turns out to be a constant vector.

Steps:

  1. P=y−z, Q=z−x, R=x−yP = y-z, \, Q = z-x, \, R = x-y
  2. The curl: ∂R∂y−∂Q∂z=−1−1=−2\frac{\partial R}{\partial y}-\frac{\partial Q}{\partial z} = -1-1 = -2, ∂P∂z−∂R∂x=−1−1=−2\frac{\partial P}{\partial z}-\frac{\partial R}{\partial x} = -1-1 = -2, ∂Q∂x−∂P∂y=−1−1=−2\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y} = -1-1 = -2
  3. ∇×F⃗=(−2,−2,−2)\nabla \times \vec{F} = (-2, -2, -2)
  4. Take Σ\Sigma to be the elliptical face in the plane xa+zb=1\frac{x}{a}+\frac{z}{b}=1 bounded by LL. By the right-hand rule, the normal vector points towards the positive xx-direction (that is, its xx-component is positive).
  5. The normal vector of the plane: (1a,0,1b)(\frac{1}{a}, 0, \frac{1}{b}), and the unit normal vector n⃗=(1a,0,1b)1a2+1b2\vec{n} = \frac{(\frac{1}{a}, 0, \frac{1}{b})}{\sqrt{\frac{1}{a^2}+\frac{1}{b^2}}}
  6. (∇×F⃗)⋅n⃗=−2/a−2/b1/a2+1/b2(\nabla \times \vec{F}) \cdot \vec{n} = \frac{-2/a - 2/b}{\sqrt{1/a^2+1/b^2}}
  7. The area of the ellipse: its projection onto the xOyxOy plane is the disk x2+y2≤a2x^2+y^2 \leq a^2, of area πa2\pi a^2. The cosine of the angle between the normal of the plane and the zz-axis is cos⁡γ=1/b1/a2+1/b2\cos\gamma = \frac{1/b}{\sqrt{1/a^2+1/b^2}}. The area of the ellipse =πa2cos⁡γ=πa21/a2+1/b21/b=πab1+a2/b2=πaa2+b2= \frac{\pi a^2}{\cos\gamma} = \pi a^2 \frac{\sqrt{1/a^2+1/b^2}}{1/b} = \pi a b \sqrt{1+a^2/b^2} = \pi a \sqrt{a^2+b^2}
  8. The integral =(∇×F⃗)⋅n⃗×the area of the ellipse=−2(1/a+1/b)1/a2+1/b2×πaa2+b2=−2πa(a+b)= (\nabla \times \vec{F}) \cdot \vec{n} \times \text{the area of the ellipse} = \frac{-2(1/a+1/b)}{\sqrt{1/a^2+1/b^2}} \times \pi a \sqrt{a^2+b^2} = -2\pi a(a+b)

Answer: −2πa(a+b)-2\pi a(a+b)

Example 2: A Field with Zero Curl

Verify that the curl of the vector field F⃗=(yz,xz,xy)\vec{F} = (yz, xz, xy) vanishes, and compute the line integral ∫Lyz dx+xz dy+xy dz\int_L yz \, dx + xz \, dy + xy \, dz, where LL is the helix x=cos⁡t, y=sin⁡t, z=tx = \cos t, \, y = \sin t, \, z = t from the point A(1,0,0)A(1,0,0) to the point B(1,0,2π)B(1,0,2\pi).

Stokes's theoremzero curlindependence of the paththe potential functiona helix

Approach:

The curl vanishes, so the integral is independent of the path; you can find the potential function and substitute the endpoints.

Steps:

  1. P=yz, Q=xz, R=xyP = yz, \, Q = xz, \, R = xy
  2. The curl: ∂R∂y−∂Q∂z=x−x=0\frac{\partial R}{\partial y}-\frac{\partial Q}{\partial z} = x-x = 0, ∂P∂z−∂R∂x=y−y=0\frac{\partial P}{\partial z}-\frac{\partial R}{\partial x} = y-y = 0, ∂Q∂x−∂P∂y=z−z=0\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y} = z-z = 0
  3. The curl vanishes, so the integral is independent of the path.
  4. Finding the potential function: du=yz dx+xz dy+xy dzdu = yz \, dx + xz \, dy + xy \, dz By inspection u=xyzu = xyz (because d(xyz)=yz dx+xz dy+xy dzd(xyz) = yz \, dx + xz \, dy + xy \, dz)
  5. The integral =u(B)−u(A)=xyz∣B−xyz∣A=1⋅0⋅2π−1⋅0⋅0=0= u(B) - u(A) = xyz|_B - xyz|_A = 1 \cdot 0 \cdot 2\pi - 1 \cdot 0 \cdot 0 = 0

Answer: 00

Example 3: Green’s Theorem Is a Special Case of Stokes’s Theorem

Show that Green’s theorem is the special case of Stokes’s theorem on a plane.

Stokes's theoremGreen's theorema unified viewthe plane special case

Approach:

In Stokes’s theorem, take the surface to be the region DD in the xOyxOy plane.

Steps:

  1. In Stokes’s theorem, take Σ\Sigma to be the region DD in the xOyxOy plane (z=0z=0), taken on the upper side (the normal vector is (0,0,1)(0,0,1)).
  2. Then dz=0dz = 0, and the line integral ∮LP dx+Q dy+R dz=∮LP dx+Q dy\oint_L P \, dx + Q \, dy + R \, dz = \oint_L P \, dx + Q \, dy
  3. In the surface integral, dy dz=0, dz dx=0dy\,dz = 0, \, dz\,dx = 0 (because the surface lies in the xOyxOy plane), and only the dx dydx\,dy term survives: ∬Σ(∂Q∂x−∂P∂y)dx dy=∬D(∂Q∂x−∂P∂y)dx dy\iint_\Sigma (\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}) dx\,dy = \iint_D (\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}) dx\,dy
  4. Stokes’s theorem therefore becomes: ∮LP dx+Q dy=∬D(∂Q∂x−∂P∂y)dx dy\oint_L P \, dx + Q \, dy = \iint_D (\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}) dx\,dy This is exactly Green’s theorem!

Answer: Green’s theorem is the special case of Stokes’s theorem in the xOyxOy plane.


Exercises

Exercise 1

Verify that the curl of the vector field F⃗=(2x+y+z,x+3y+2z,x+2y+3z)\vec{F} = (2x+y+z, x+3y+2z, x+2y+3z) vanishes, and find its potential function.

zero curlthe potential functiona field with a potentiala conservative field

Approach:

Compute the curl, verify that it vanishes, and then find the potential function.

Steps:

  1. P=2x+y+z, Q=x+3y+2z, R=x+2y+3zP = 2x+y+z, \, Q = x+3y+2z, \, R = x+2y+3z
  2. The curl: ∂R∂y−∂Q∂z=2−2=0\frac{\partial R}{\partial y}-\frac{\partial Q}{\partial z} = 2-2 = 0, ∂P∂z−∂R∂x=1−1=0\frac{\partial P}{\partial z}-\frac{\partial R}{\partial x} = 1-1 = 0, ∂Q∂x−∂P∂y=1−1=0\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y} = 1-1 = 0
  3. The curl vanishes.
  4. Finding the potential function uu: ∂u∂x=2x+y+z⇒u=x2+xy+xz+ϕ(y,z)\frac{\partial u}{\partial x} = 2x+y+z \Rightarrow u = x^2 + xy + xz + \phi(y,z) ∂u∂y=x+ϕy=x+3y+2z⇒ϕy=3y+2z⇒ϕ=32y2+2yz+ψ(z)\frac{\partial u}{\partial y} = x + \phi_y = x+3y+2z \Rightarrow \phi_y = 3y+2z \Rightarrow \phi = \frac{3}{2}y^2 + 2yz + \psi(z) ∂u∂z=x+2y+ψ′=x+2y+3z⇒ψ′=3z⇒ψ=32z2\frac{\partial u}{\partial z} = x + 2y + \psi' = x+2y+3z \Rightarrow \psi' = 3z \Rightarrow \psi = \frac{3}{2}z^2
  5. The potential function: u=x2+xy+xz+32y2+2yz+32z2+Cu = x^2 + xy + xz + \frac{3}{2}y^2 + 2yz + \frac{3}{2}z^2 + C

Answer: the potential function is u=x2+xy+xz+32y2+2yz+32z2+Cu = x^2 + xy + xz + \frac{3}{2}y^2 + 2yz + \frac{3}{2}z^2 + C

Exercise 2

Compute ∮L(y−z) dx+(z−x) dy+(x−y) dz\oint_L (y-z) \, dx + (z-x) \, dy + (x-y) \, dz, where LL is the curve of intersection of the cylinder x2+y2=a2x^2+y^2 = a^2 with the plane x+y+z=0x+y+z=0, taken counterclockwise as seen from the positive zz-axis.

Stokes's theorema space line integrala circlethe curl

Approach:

Use Stokes’s theorem, taking the elliptical face in the plane x+y+z=0x+y+z=0 bounded by the curve.

Steps:

  1. The curl is ∇×F⃗=(−2,−2,−2)\nabla \times \vec{F} = (-2,-2,-2) (as in the example above)
  2. Take Σ\Sigma to be the elliptical face in the plane x+y+z=0x+y+z=0, with the normal vector n⃗=(1,1,1)3\vec{n} = \frac{(1,1,1)}{\sqrt{3}} (the side where x+y+z>0x+y+z>0)
  3. (∇×F⃗)⋅n⃗=−63=−23(\nabla \times \vec{F}) \cdot \vec{n} = \frac{-6}{\sqrt{3}} = -2\sqrt{3}
  4. The area of the ellipse: its projection onto the xOyxOy plane is the disk x2+y2≤a2x^2+y^2 \leq a^2, of area πa2\pi a^2, and cos⁡γ=13\cos\gamma = \frac{1}{\sqrt{3}}, so the area of the ellipse =3πa2= \sqrt{3}\pi a^2
  5. The integral =−23×3πa2=−6πa2= -2\sqrt{3} \times \sqrt{3}\pi a^2 = -6\pi a^2

Answer: −6πa2-6\pi a^2


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∮L\oint_LClosed line integralclosed line integralThe integral along a closed curve
∇×F⃗\nabla \times \vec{F}CurlcurlThe curl of the vector field
Σ\SigmaOriented surfaceoriented surfaceThe oriented surface with LL as its boundary
LLBoundary curveboundary curveThe positively oriented boundary curve of the surface Σ\Sigma
dr⃗d\vec{r}Directed arc length elementdirected arc element(dx,dy,dz)(dx, dy, dz)
dS⃗d\vec{S}Directed area elementdirected surface element(dydz,dzdx,dxdy)(dydz, dzdx, dxdy)
ω\omegaDifferential formdifferential formA differential form in the generalised Stokes theorem
dωd\omegaExterior derivativeexterior derivativeThe exterior derivative of a differential form

Key Terms

English termPronunciationNote
Stokes’ theorem/stoʊksɪz ˈθɪərəm/the relation between a space line integral and a surface integral
curl/kɜːrl/the strength of the rotation of the vector field
circulation/ˌsɜːrkjəˈleɪʃən/the line integral of the second kind along a closed curve
right-hand rule/raɪt hænd ruːl/the rule that determines the positive orientation of a boundary curve
positive boundary/ˈpɒzətɪv ˈbaʊndəri/the boundary orientation consistent with the normal vector of the surface by the right-hand rule
irrotational field/ˌɪrəʊˈteɪʃənəl fiːld/a vector field with zero curl
conservative field/kənˈsɜːrvətɪv fiːld/a vector field that has a potential function, that is, an irrotational field
conservative field/kənˈsɜːrvətɪv fiːld/that is, a field with a potential, whose integral is path independent
generalized Stokes theorem/ˈdʒɛnrəlaɪzd stoʊks ˈθɪərəm/the integral theorem for the exterior derivative of differential forms
exterior derivative/ɪkˈstɪəriər dɪˈrɪvətɪv/the differential operation on differential forms
simply connected (1D)/ˈsɪmpli kəˈnɛktɪd/every closed curve spans a surface lying in the region

Found an issue with this content?

Tell us what could be improved.