Stokes’ theorem examples

Example 1

Let C be the closed curve illustrated below.

PIC

For F(x,y,z) = (y,z,x), compute

CF ds

using Stokes’ Theorem.

Solution: By Stokes’ theorem, we need to compute

Scurl F dS

where S is a surface with boundary C. We have freedom to choose any surface S, as long as we orient it so that C is a positively oriented boundary.

In this case, the simplest choice for S is clear. Let S be the quarter disk in the yz-plane.

Given the orientation of the curve C, we need to choice the surface normal vector n to point in which direction? By our right hand rule criterion, the normal vector should point toward the negate negative side of the x-axis.

We need to calculate the curl of F. We could use the formula

curl F = F3 y F2 z , F1 z F3 x , F2 x F1 y ,

but I’m not very good at memorizing that formula. I tend to use the mnemonic that curl F = ×F, where I pretend that is the vector

= x, y, z.

Since I remember the cross product using a 3 × 3 determinant, by mnemonic device for remembering curl F is

curl F = ×F = i j k x y z F1F2F3 .

But use whatever method works for you.

For our vector field F = (y,z,x), we can calculate the curl as

curl(F) = ×F = × (y,z,x) = i j k x y z y z x = i yx zz j xx zy + k xz yy = i(1) j(1) + k(1) = (1,1,1)

Next, parameterize the surface (the quarter disk) by

Φ(r,θ) = (0,r cos θ,r sin θ)

for 0 r 1 and 0 θ π2.

Calculate the normal vector (we don’t need to normalize it to the unit normal vector n):

Φ r = (0, cos θ, sin θ) Φ θ = (0,r sin θ,r cos θ) Φ r ×Φ θ = i(r cos 2θ + r sin 2θ) = ri

Is the surface oriented properly? The normal vector points in the positive x-direction. But we need it to point it negative x-direction. Therefore, the surface is not oriented properly if we were to choose this normal vector.

To orient the surface properly, we must instead use the normal vector Φ θ ×Φ r = ri.

(Note, at this point, we can already see that the integral Scurl F dS should be positive. The vector field curl F = (1,1,1) and the normal vector (r, 0, 0) are pointing more-or-less in the same direction.)

Now, we have all pieces together to compute the integral.

CF ds =Scurl F dS =010π2curl F(Φ(r,θ)) Φ θ (r,θ) ×Φ r (r,θ) dθdr =010π2(1,1,1) (r, 0, 0)dθdr =010π2rdθdr = π 4

Double-check example

Just for verification, we can compute the line CF ds directly.

We need to parametrize C. We’ll do it by dividing C into three parts.

PIC

We’ll use the fact that

CF ds =C1F ds +C2F ds +C3F ds

Recall F(x,y,z) = (y,z,x)

First we’ll compute the integral over C1. Parameterize it by

c(t) = (0, 0,t),0 t 1.

Since c'(t) = (0, 0, 1), we compute that

F(c(t)) c'(t) = F(0, 0,t) (0, 0, 1) = (0,t, 0) (0, 0, 1) = 0

Therefore,

C1F ds =01F(c(t)) c'(t)dt = 0.

The integral for C3 is similar.

C3F ds = 0

Last, we’ll compute the integral over C2. Parameterize C2 as

c(t) = (0, sin t, cos t),0 t π2,

so that c'(t) = (0, cos t, sin t). We then compute

C2F ds =0π2F(c(t)) c'(t)dt =0π2F(0, sin t, cos t) (0, cos t, sin t)dt =0π2(sin t, cos t, 0) (0, cos t, sin t)dt =0π2 cos 2tdt =0π21 + cos 2t 2 dt = t 2 + sin 2t 4 0π2 = π 4.

Therfore,

CF ds = π 4

in agreement with our Stokes’ theorem answer.

Example 2

We often present Stoke’s theorem problems as we did above. We give a curve C and expect you to compute the surface integral over some surface S with boundary C. In general, one can pick many surfaces. (See demo by Jon Rogness). But, sometimes, there is a surface that is “obviously” the best one.

One special case where this is relatively easy is when C lies in a plane. This is especially easy when that plane is parallel to a coordinate plane, as in the following example. (We won’t work out this example, but just discuss how to choose S).

Let’s say you want to use Stokes’ theorem to compute CF ds where C is polygon path connecting the following points: (1,1,0), (3,1,4), (1,1,5), (-1,1,1)

Does this curve lie in a plane? Yes, in the plane y = 1. The figure below is just the plane y = 1.

PIC

If one coordinate is constant, then curve is parallel to a coordinate plane. (The xz-plane for above example). For Stokes’ theorem, use the surface in that plane. For our example, the natural choice for S is the surface whose x and z components are inside the above rectangle and whose y component is 1.

Example 3

In other cases, a surface is given explicitly in the problem.

Compute CF ds, where C is the curve in which the cone z2 = x2 + y2 intersects the plane z = 1. (Oriented counter clockwise viewed from positive z-axis).

PIC

CF ds =Scurl F dS for what surface S?

In this case, there are two natural choices for the surface. You could use the portion of the plane or the portion of the cone illustrated below.

PIC PIC

Let P be the portion of the plane z = 1 with x2 + y2 < 1 with upward pointing normal. Let Q be the portion of the cone z2 = x2 + y2 with 0 < z < 1 with upward angling normal.

How do P curl F dS and Qcurl F dS compare? They are the same. (For both surfaces, C is a positive oriented boundary.)

Continue example: Let

F(x,y,z) = sin x y3 3 , cos y + x3 3 ,xyz

Compute CF ds.

One can show that curl(F) = (xz,yz,x2 + y2).

Use surface P, parameterized by

Φ(r,θ) = (r cos θ,r sin θ, 1)

for 0 r 1, 0 θ 2π. Then normal vector is

Φ r ×Φ θ = (0, 0,r),

which points in the correct direction, as mentioned above.

P curl F dS =0102πcurl(F(r cos θ,r sin θ, 1)) (0, 0,r)dθdr =0102π(r cos θ,r sin θ,r2) (0, 0,r)dθdr =0102πr3dθdr =012πr3dr = π 2