For a continuously differentiable vector field on a neighborhood of the closure of , the divergence theorem statesHere is the outward unit normal vector; the right side is the outward flux through the boundary.
For a bounded region with piecewise smooth boundary, suppose is a continuously differentiable vector field on an open neighbourhood of its closure. The divergence theorem, with outward unit normal vector , isThe surface integral measures total outward flux. Edges and isolated vertices have zero surface area and do not affect the integral.
Let be a bounded region with piecewise smooth closed boundary , and let be a continuously differentiable vector field on an open neighbourhood of its closure. The divergence theorem stateswhere is the outward unit normal vector. Thus the volume integral of the divergence equals the outward boundary flux integral. For a region containing a hole, the outward unit normal vector on its inner boundary points into that hole.
Let be a piecewise smooth oriented surface with piecewise smooth boundary , and let be a continuously differentiable vector field on a neighbourhood of . The Stokes theorem statesThe boundary orientation is induced by the chosen unit normal vector through the right-hand rule: with the right thumb along , the curled fingers indicate positive boundary traversal. Equivalently, when walking along the boundary with one's head pointing along , the surface lies to the left. An upward oriented disk therefore has counterclockwise boundary traversal when viewed from above. Reversing the orientation reverses both the line integral and the surface integral.
For a bounded region with piecewise smooth boundary and a continuously differentiable vector field on a neighborhood of its closure, the divergence theorem sayswhere is the outward unit normal vector. The left side integrates divergence over the volume; the right side is the outward flux.