Divergence theorem examples

Example 1

Compute SF dS where

F = (3x + z77,y2 sin x2z,xz + yex5 )

and S is surface of box

0 x 1,0 y 3,0 z 2.

Use outward normal n.

Solution: Given the ugly nature of the vector field, it would be hard to compute this integral directly. However, the divergence of F is nice:

div F = 3 + 2y + x.

We use the divergence theorem to convert the surface integral into a triple integral

SF dS =Bdiv FdV

where B is the box

0 x 1,0 y 3,0 z 2.

We compute the triple integral of div F = 3 + 2y + x over the box B:

SF dS =010302(3 + 2y + x)dzdydx =0103(6 + 4y + 2x)dydx =01(18 + 18 + 6x)dx = 36 + 3 = 39.

Example 2

For F = (xy2,yz2,x2z), use the divergence theorem to evaluate

SF dS

where S is the sphere of radius 3 centered at origin. Orient the surface with the outward pointing normal vector.

Solution: Since I am given a surface integral (over a closed surface) and told to use the divergence theorem, I must convert the surface integral into a triple integral over the region inside the surface.

Since div F = y2 + z2 + x2, the surface integral is equal to the triple integral

B(y2 + z2 + x2)dV

where B is ball of radius 3.

To evaluate the triple integral, we can change variables to spherical coordinates. In spherical coordinates, the ball is

0 ρ 3,0 θ 2π,0 ϕ π.

The integral is simply x2 + y2 + z2 = ρ2. For spherical coordinates, we know that the Jacobian determinant is dV = ρ2 sin ϕdϕdθdρ. Therefore, the integral is

0302π0πρ4 sin ϕdϕdθdρ =0302π ρ4 cos ϕ ϕ=0ϕ=π dθdρ =0302π2ρ4dθdρ =034πρ4dρ = 4πρ5 5 03 = 972π 5 .