If S is a sphere of radius R centered at the origin, what is the flux of out of this sphere?
At first glance, we might think to use the divergence theorem, since the surface is closed. We can easily calculate that so we might think that
There's one big problem with this, though. At the origin (the center of this sphere,) and r = 0. So the vector field is not defined (it has a singularity) at one point inside W. That's enough to violate condition 5 above. Thus we cannot use the divergence theorem.To correctly compute the flux, note that the outward normal to the surface is . Thus, the vector field and surface are parallel everywhere. This tells us that
Thus, the flux is easily calculated to beNote that if the sphere were centered at the point (2,0,0) with a radius of 1, then the singularity of the vector field at the origin would lie outside the surface. The divergence theorem would then give us the flux as zero in one quick, easy step.