In N D I want to do an integral of the flux through an N-1 D surface. The usual vector calculus integration theorems say I can integrate around the perimeter of the surface. OK, but that perimeter is now N-2 D. In 4D it could be a cube or a 2-sphere. I can't use Gauss' theorem because the surface isn't closed. Now what?