Proving Stokes' theorem with a rectangular surface
Consider the rectangle (0 \leq x \leq a), (0 \leq y \leq b) in the (xy)-plane and the vector field (\mathbf{F} = \left(-\frac{y}{2}, \frac{x}{2}, 0\right)). Its curl is (\nabla \times \mathbf{F} = (0,0,1)).
Calculating the line integral (\oint_{\partial S} \mathbf{F} \cdot d\mathbf{r}) around the rectangle counterclockwise:
- Side 1 ((0,0) \to (a,0)): (\mathbf{F} = (0, \frac{x}{2}, 0)), (d\mathbf{r} = (dx, 0, 0)) so integral is (0).
- Side 2 ((a,0) \to (a,b)): (\mathbf{F} = \left(-\frac{y}{2}, \frac{a}{2}, 0\right)), (d\mathbf{r} = (0, dy, 0)), integral is (\int_0^b \frac{a}{2} dy = \frac{a b}{2}).
- Side 3 ((a,b) \to (0,b)): (\mathbf{F} = \left(-\frac{b}{2}, \frac{x}{2}, 0\right)), (d\mathbf{r} = (-dx, 0, 0)), integral is (\int_a^0 -\frac{b}{2} dx = \frac{a b}{2}).
- Side 4 ((0,b) \to (0,0)): (\mathbf{F} = \left(-\frac{y}{2}, 0, 0\right)), (d\mathbf{r} = (0, -dy, 0)), integral is (0).
Summing these yields (0 + \frac{a b}{2} + \frac{a b}{2} + 0 = a b).
The surface integral of the curl over the rectangle is:
[
\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \iint_{0}^{a} \iint_{0}^{b} 1 , dy , dx = a b.
]
Since both integrals equal (a b), this explicitly verifies Stokes' theorem for this rectangular surface and vector field.
Let (S) be the rectangle in the (xy)-plane with corners ((0,0,0)), ((a,0,0)), ((a,b,0)), ((0,b,0)), oriented upward (normal vector (\mathbf{n} = \hat{k})). Take the vector field
[
\mathbf{F}(x,y,z) ;=; \left(-\tfrac{y}{2},, \tfrac{x}{2},, 0\right).
]
Its curl is
[
\nabla \times \mathbf{F} ;=; \Bigl(\tfrac{\partial}{\partial y}(0) - \tfrac{\partial}{\partial z}(\tfrac{x}{2}),, \tfrac{\partial}{\partial z}\bigl(-\tfrac{y}{2}\bigr) - \tfrac{\partial}{\partial x}(0),, \tfrac{\partial}{\partial x}(\tfrac{x}{2}) - \tfrac{\partial}{\partial y}\bigl(-\tfrac{y}{2}\bigr)\Bigr)
;=; (0,,0,,1).
]
Surface integral of the curl.
Since the normal is (\hat{k}) and (\nabla \times \mathbf{F} = (0,0,1)), we have
[
\iint_{S} (\nabla \times \mathbf{F}) \cdot \hat{k}, dS ;=; \iint_{S} 1 , dA ;=; a,b.
]
Line integral around the boundary.
Traverse the rectangle counterclockwise:
-
(\displaystyle C_1:\ (x,y)=(t,0)), (0\le t\le a). Then (d\mathbf{r}=(dt,0,0)) and (\mathbf{F}=(0,\tfrac{t}{2},0)). The dot product (\mathbf{F}\cdot d\mathbf{r} = 0), so (\int_{C_1} \mathbf{F}\cdot d\mathbf{r}=0.)
-
(\displaystyle C_2:\ (x,y)=(a,t)), (0\le t\le b). Then (d\mathbf{r}=(0,dt,0)), (\mathbf{F}=(-\tfrac{t}{2},,\tfrac{a}{2},,0)). The dot product is (\tfrac{a}{2},dt). Integrating from (0) to (b) gives (\int_{C_2} \mathbf{F}\cdot d\mathbf{r} = \tfrac{a}{2},b).
-
(\displaystyle C_3:\ (x,y)=(a-t,b)), (0\le t\le a). Then (d\mathbf{r}=(-dt,0,0)), (\mathbf{F}=(-\tfrac{b}{2},,\tfrac{a-t}{2},,0)). The dot product is (\bigl(-\tfrac{b}{2}\bigr)(-dt)=\tfrac{b}{2},dt). Integrating from (0) to (a) gives (\int_{C_3} \mathbf{F}\cdot d\mathbf{r} = \tfrac{b}{2},a).
-
(\displaystyle C_4:\ (x,y)=(0,b-t)), (0\le t\le b). Then (d\mathbf{r}=(0,-dt,0)), and (\mathbf{F}=\bigl(-\tfrac{b-t}{2},,0,,0\bigr)). The dot product (\mathbf{F}\cdot d\mathbf{r}=0). Hence (\int_{C_4} \mathbf{F}\cdot d\mathbf{r}=0.)
Summing all four sides,
[
\oint_{\partial S} \mathbf{F}\cdot d\mathbf{r}
= 0 + \frac{ab}{2} + \frac{ab}{2} + 0
= ab.
]
Thus
[
\oint_{\partial S} \mathbf{F}\cdot d\mathbf{r} ;=; \iint_{S} (\nabla \times \mathbf{F})\cdot \hat{k}, dS = ab,
]
showing both sides of Stokes’ theorem agree for this rectangular surface and this vector field.