1 Stokes’ theorem

This is a theorem that equates a line integral to a surface integral. For any vector field F ̲ and a contour C which bounds an area S ,

S ( ̲ × F ̲ ) d S ̲ = C F ̲ d r ̲

Figure 17:

{ A surface for Stokes' theorem}

Notes

  1. d S ̲ is a vector perpendicular to the surface and d r ̲ is the line element along the contour C .
  2. Both sides of the equation are scalars.
  3. The theorem is often a useful way of calculating a line integral along a contour composed of several distinct parts (e.g. a square or other figure).
  4. ̲ × F ̲ is a vector field representing the curl of the vector field F ̲ and may, alternatively, be written as curl F ̲ .

1.1 Justification of Stokes’ theorem

Imagine that the surface is divided into a set of infinitesimally small rectangles A B C D where the axes are adjusted so that A B and C D lie parallel to the new x -axis i.e. A B = δ x and B C and A D lie parallel to the new y -axis i.e. B C = δ y .

Now, C F ̲ d r ̲ is calculated.

The contributions along A B , B C , C D and D A are

F ̲ ( x , y , 0 ) δ x ̲ = F x ( x , y , z ) δ x ,

F ̲ ( x + δ x , y , 0 ) δ y ̲ = F y ( x + δ x , y , z ) δ y ,

F ̲ ( x , y + δ y , 0 ) ( δ x ̲ ) = F x ( x , y + δ y , z ) δ x

F ̲ ( x , y , 0 ) ( δ x ̲ ) = F y ( x , y , z ) δ y .

Thus,

C F ̲ d r ̲ ( F x ( x , y , z ) F x ( x , y + δ y , z ) ) δ x + ( F y ( x + δ x , y , z ) F y ( x , y , z ) ) δ y F y x δ x δ y + F x y δ x δ y ( ̲ × F ̲ ) z δ S ( ̲ × F ̲ ) d S ̲

as d S ̲ is perpendicular to the x - and y - axes.

Thus, for each small rectangle, C F ̲ d r ̲ ( ̲ × F ̲ ) d S ̲

When the contributions over all the rectangles are summed, the line integrals for the inner parts of the rectangles cancel and all that remains is the line integral around the outside of the shape. The surface integrals sum. Hence, the theorem applies for the area S bounded by the contour C .

While the above does not comprise a formal proof of Stokes’ theorem, it gives an appreciation of where the theorem comes from.

Figure 18:

{ Line integral cancellation and non-cancellation}

Key Point 8

Stokes’ Theorem

S ( ̲ × F ̲ ) d S ̲ = C F ̲ d r ̲

The closed contour integral of the scalar product of a vector function with the vector along the contour is equal to the integral of the scalar product of the curl of that vector function and the unit normal, over the corresponding surface.

Example 31

Verify Stokes’ theorem for the vector function F ̲ = y 2 i ̲ ( x + z ) j ̲ + y z k ̲ and the unit square 0 x 1 , 0 y 1 for z = 0 .

Solution

If F ̲ = y 2 i ̲ ( x + z ) j ̲ + y z k ̲ then ̲ × F ̲ = ( z + 1 ) i ̲ + ( 1 2 y ) k ̲ = i ̲ + ( 1 2 y ) k ̲ (as z = 0 ). Note that d S ̲ = d x d y k ̲ so that ( ̲ × F ̲ ) d S ̲ = ( 1 2 y ) d y d x

Thus S ( ̲ × F ̲ ) d S ̲ = x = 0 1 y = 0 1 ( 1 2 y ) d y d x = x = 0 1 ( y y 2 ) y = 0 1 d x = x = 0 1 ( 2 ) d x = 2 x 0 1 = 2 + 0 = 2

To evaluate C F ̲ d r ̲ , consider it separately on the four sides.

When y = 0 , F ̲ = x j ̲ and d r ̲ = d x i ̲ so F ̲ d r ̲ = 0 so the contribution to the integral is zero.

When x = 1 , F ̲ = y 2 i ̲ j ̲ and d r ̲ = d y j ̲ so F ̲ d r ̲ = d y so the contribution to the integral is

y = 0 1 ( d y ) = y 0 1 = 1 .

When y = 1 , F ̲ = i ̲ x j ̲ and d r ̲ = d x i ̲ so F ̲ d r ̲ = d x so the contribution to the integral is

x = 0 1 ( d x ) = x 0 1 = 1 .

When x = 0 , F ̲ = y 2 i ̲ and d r ̲ = d y j ̲ so F ̲ d r ̲ = 0 so the contribution to the integral is zero.

The integral C F ̲ d r ̲ is the sum of the contributions i.e. 0 1 1 + 0 = 2 .

Thus S ( ̲ × F ̲ ) d S ̲ = C F ̲ d r ̲ = 2

Example 32

Using cylindrical polar coordinates verify Stokes’ theorem for the function F ̲ = ρ 2 ϕ ̂ ̲ and the circle ρ = a and the surface ρ a . (It is effectively plane-polar coordinates here as this example just considers the plane z = 0 .)

Solution

Firstly, find C F ̲ d r ̲ . This can be done by integrating along the contour ρ = a from ϕ = 0 to ϕ = 2 π . Here F ̲ = a 2 ϕ ̂ ̲ (as ρ = a ) and d r ̲ = a d ϕ ϕ ̂ ̲ (remembering the scale factor) so F ̲ d r ̲ = a 3 d ϕ and hence

C F ̲ d r ̲ = 0 2 π a 3 d ϕ = 2 π a 3

As F ̲ = ρ 2 ϕ ̂ ̲ , ̲ × F ̲ = 3 ρ ̲ and ( ̲ × F ̲ ) d S ̲ = 3 ρ as d S ̲ = ̲ .

Thus

S ( ̲ × F ̲ ) d S ̲ = ϕ = 0 2 π ρ = 0 1 3 ρ × ρ d ρ d ϕ = ϕ = 0 2 π ρ = 0 a 3 ρ 2 d ρ d ϕ = ϕ = 0 2 π ρ 3 ρ = 0 a d ϕ = 0 2 π a 3 d ϕ = 2 π a 3

Hence

C F ̲ d r ̲ = S ( ̲ × F ̲ ) d S ̲ = 2 π a 3

Example 33

Find the closed line integral  C F ̲ d r ̲  for the vector field F ̲ = y 2 i ̲ + ( x 2 z ) j ̲ + 2 x y k ̲ and for the contour A B C D E F G H A in Figure 19.

Figure 19:

{ Closed contour ABCDEFGHA}

Solution

To find the line integral directly would require eight line integrals i.e. along A B , B C , C D , D E , E F , F G , G H and H A . It is easier to carry out a surface integral to find S ( ̲ × F ̲ ) d S ̲ which is equal to the required line integral C F ̲ d r ̲ by Stokes’ theorem.

As F ̲ = y 2 i ̲ + ( x 2 z ) j ̲ + 2 x y k ̲ , ̲ × F ̲ = i ̲ j ̲ k ̲ x y z y 2 x 2 z 2 x y = ( 2 x + 1 ) i ̲ 2 y j ̲ + ( 2 x 2 y ) k ̲

As the contour lies in the x - y plane, the unit normal is k ̲ and d S ̲ = d x d y k ̲

Hence ( ̲ × F ̲ ) d S ̲ = ( 2 x 2 y ) d x d y .

To work out S ( ̲ × F ̲ ) d S ̲ , it is necessary to divide the area inside the contour into two smaller areas i.e. the rectangle A B C D G H and the trapezium D E F G . On A B C D G H , the integral is

y = 0 4 x = 0 6 ( 2 x 2 y ) d x d y = y = 0 4 x 2 2 x y x = 0 6 d y = y = 0 4 ( 36 12 y ) d y = 36 y 6 y 2 0 4 = 36 × 4 6 × 16 0 = 48

On D E F G , the integral is

y = 4 7 x = 1 y 2 ( 2 x 2 y ) d x d y = y = 4 7 x 2 2 x y x = 1 y 2 d y = y = 4 7 ( y 2 + 2 y + 3 ) d y = 1 3 y 3 + y 2 + 3 y 4 7 = 343 3 + 49 + 21 + 64 3 16 12 = 51

So the full integral is, S ( ̲ × F ̲ ) d S ̲ = 48 51 = 3 .

By Stokes’ theorem, S ( ̲ × F ̲ ) d S ̲ = C F ̲ d r ̲ = 3

From Stokes’ theorem, it can be seen that surface integrals of the form S ( ̲ × F ̲ ) d S ̲ depend only on the contour bounding the surface and not on the internal part of the surface.

Task!

Verify Stokes’ theorem for the vector field F ̲ = x 2 i ̲ + 2 x y j ̲ + z k ̲ and the triangle with vertices at ( 0 , 0 , 0 ) , ( 3 , 0 , 0 ) and ( 3 , 1 , 0 ) .

First find the normal vector d S ̲ :

d x d y k ̲

Then find the vector ̲ × F ̲ :

2 y k ̲

Now evaluate the double integral x = 0 3 y = 0 x 3 ( ̲ × F ̲ ) d S ̲ :

1

Finally find the integral F ̲ d r ̲ along the 3 sides of the triangle and so verify that the two sides of the equation in the theorem are equal:

9 , 3 , 11 , Both sides are 1 .

Exercises
  1. Using plane-polar coordinates (or cylindrical polar coordinates with z = 0 ), verify Stokes’ theorem for the vector field F ̲ = ρ ρ ̂ ̲ + ρ cos π ρ 2 ϕ ̂ ̲ and the semi-circle ρ 1 , π 2 ϕ π 2 .
  2. Verify Stokes’ theorem for the vector field F ̲ = 2 x i ̲ + ( y 2 z ) j ̲ + x z k ̲ and the contour around the rectangle with vertices at ( 0 , 2 , 0 ) , ( 2 , 2 , 0 ) , ( 2 , 0 , 1 ) and ( 0 , 0 , 1 ) .
  3. Verify Stokes’ theorem for the vector field F ̲ = y i ̲ + x j ̲ + z k ̲ and for the contour starting from the origin and going to ( 1 , 0 , 0 ) , ( 0 , 0 , 0 ) , ( 1 , 1 , 0 ) and ( 1 , 1 , 1 ) before returning to the origin.
    1. Find the surface integral over the triangle ( 0 , 0 , 0 ) , ( 1 , 0 , 0 ) , ( 1 , 1 , 0 ) .
    2. Find the surface integral over the triangle ( 1 , 0 , 0 ) , ( 1 , 1 , 0 ) , ( 1 , 1 , 1 ) .
    3. Find the line integrals along the four parts of the contour.
    4. Show that the two sides of the equation of the theorem are equal.
  4. Use Stokes’ theorem to evaluate the integral

    C F ̲ d r ̲ where F ̲ = sin ( 1 x + 1 ) + 5 y i ̲ + ( 2 x e y 2 ) j ̲

    and C is the contour starting at ( 0 , 0 ) and going to ( 5 , 0 ) , ( 5 , 2 ) , ( 6 , 2 ) , ( 6 , 5 ) , ( 3 , 5 ) , ( 3 , 2 ) , ( 0 , 2 ) and returning to ( 0 , 0 ) .

  1. Both sides are 0 ,
  2. Both sides are 2
    1. 1
    2. 0 (as F ̲ is perpendicular to d S ̲ )
    3. 0 , 1 , 1 , 1
    4. Both sides are 1
  3. 57 , [ ̲ × F ̲ = 3 ].