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

For F(x,y,z) = (y,z,x), compute
| ∫ CF ⋅ ds |
using Stokes’ Theorem.
Solution: By Stokes’ theorem, we need to compute
S curl F ⋅ dS |
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 = , |
∇ = . |
| curl F | = ∇× F | ||
= . |
For our vector field F = (y,z,x), we can calculate the curl as
| curl(F) | = ∇× F = ∇× (y,z,x) | ||
= ![]() | |||
= i - j![]() | |||
+ k![]() | |||
| = i(-1) - j(1) + k(-1) | |||
| = (-1,-1,-1) |
Next, parameterize the surface (the quarter disk) by
| Φ(r,θ) = (0,r cos θ,r sin θ) |
Calculate the normal vector (we don’t need to normalize it to the unit normal vector n):
![]() | = (0, cos θ, sin θ) | ||
![]() | = (0,-r sin θ,r cos θ) | ||
×![]() | = 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
×
= -ri.
(Note, at this point, we can already see that the integral
S curl 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 | = S curl F ⋅ dS | ||
= ∫
01 ∫
0π∕2 curl F(Φ(r,θ)) ⋅ dθdr | |||
| = ∫ 01 ∫ 0π∕2(-1,-1,-1) ⋅ (-r, 0, 0)dθdr | |||
= ∫
01 ∫
0π∕2rdθdr = ![]() |
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.

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. |
| F(c(t)) ⋅ c'(t) | = F(0, 0,t) ⋅ (0, 0, 1) | ||
| = (0,t, 0) ⋅ (0, 0, 1) | |||
| = 0 |
| ∫ 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, |
| ∫ 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π∕2 dt | |||
= + = . |
Therfore,
∫
CF ⋅ ds = ![]() |
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.

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).

∫
CF ⋅ ds = S curl F ⋅ dS |
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 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
Q curl F ⋅ dS compare? They are the same. (For
both surfaces, C is a positive oriented boundary.)
Continue example: Let
F(x,y,z) = ![]() |
One can show that curl(F) = (xz,-yz,x2 + y2).
Use surface P, parameterized by
| Φ(r,θ) = (r cos θ,r sin θ, 1) |
× = (0, 0,r), |
P curl F ⋅ dS | = ∫ 01 ∫ 02π curl(F(r cos θ,r sin θ, 1)) ⋅ (0, 0,r)dθdr | ||
| = ∫ 01 ∫ 02π(r cos θ,-r sin θ,r2) ⋅ (0, 0,r)dθdr | |||
| = ∫ 01 ∫ 02πr3dθdr | |||
= ∫
012πr3dr = ![]() |















+
= 



= (0
