Stokes’ theorem examples
Example 1
Let be the closed curve illustrated below.

For , compute
using Stokes’ Theorem.
Solution: By Stokes’ theorem, we need to compute
where is a surface with boundary . We have freedom to choose any surface , as long as we orient it so that is a positively oriented boundary.
In this case, the simplest choice for is clear. Let be the quarter disk in the -plane.
Given the orientation of the curve , we need to choice the surface normal vector to point in which direction? By our right hand rule criterion, the normal vector should point toward the negate negative side of the -axis.
We need to calculate the curl of . We could use the formula
but I’m not very good at memorizing that formula. I tend to use the mnemonic that , where I pretend that is the vector
Since I remember the cross product using a determinant, by mnemonic device for remembering is
But use whatever method works for you.
For our vector field , we can calculate the curl as
Next, parameterize the surface (the quarter disk) by
for and .
Calculate the normal vector (we don’t need to normalize it to the unit normal vector ):
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 .
(Note, at this point, we can already see that the integral should be positive. The vector field and the normal vector are pointing more-or-less in the same direction.)
Now, we have all pieces together to compute the integral.
Double-check example
Just for verification, we can compute the line directly.
We need to parametrize . We’ll do it by dividing into three parts.

We’ll use the fact that
Recall
First we’ll compute the integral over . Parameterize it by
Since , we compute that
Therefore,
The integral for is similar.
Last, we’ll compute the integral over . Parameterize as
so that . We then compute
Therfore,
in agreement with our Stokes’ theorem answer.
Example 2
We often present Stoke’s theorem problems as we did above. We give a curve and expect you to compute the surface integral over some surface with boundary . 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 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 ).
Let’s say you want to use Stokes’ theorem to compute where 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 . The figure below is just the plane .

If one coordinate is constant, then curve is parallel to a coordinate plane. (The -plane for above example). For Stokes’ theorem, use the surface in that plane. For our example, the natural choice for is the surface whose and components are inside the above rectangle and whose component is 1.
Example 3
In other cases, a surface is given explicitly in the problem.
Compute , where is the curve in which the cone intersects the plane . (Oriented counter clockwise viewed from positive -axis).

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.
Let be the portion of the plane with with upward pointing normal. Let be the portion of the cone with with upward angling normal.
How do and compare? They are the same. (For both surfaces, is a positive oriented boundary.)
Continue example: Let
Compute .
One can show that .
Use surface , parameterized by
for . Then normal vector is
which points in the correct direction, as mentioned above.