One sufficient version of the divergence theorem is the following. Let be a bounded region in with a closed, piecewise smooth surface as its boundary, and let be a continuously differentiable function with values in on an open neighbourhood of the closure of . With the outward unit normal vector,
The boundary surface integral is the total outward flux integral. If the boundary has several components, each has the outward orientation relative to the material of ; inner components therefore point into the holes. Edges and isolated vertices may be omitted when assigning the unit normal vector, since they have zero surface area.
Use cylindrical coordinates . The right circular cone is described by and , and the divergence of is . Direct integration gives
To check the boundary flux integral independently, first consider the base . Its outward unit normal vector is , but there, so its flux is zero. Parametrize the lateral surface by
The cross product
points outward: its horizontal component points away from the axis of the cone. This gives the vector surface element without separately normalizing it. Consequently the lateral flux integral is
Adding the zero base contribution agrees with the volume integral, verifying the divergence theorem. The apex has zero surface area; the vector field is smooth there, so no additional flux is hidden at that point.
Take the outward orientation of a surface. The divergence is , so the divergence theorem converts the closed surface flux into an integral over the box:
Each term separates; for example the term is . Summing gives
Here are the box half-lengths. Reversing orientation of a surface would negate the result.
Differentiate the ellipsoidal parametrization. Its outward vector surface element is
For , its dot product with simplifies to . Thus the requested direct surface integral is
As a check, the divergence of is three, and the ellipsoid has volume , so the divergence theorem gives the same value.
Write and . Away from the origin, and . The product rule gives
Consequently the divergence of is zero. For any closed surface bounding a region that excludes the origin, the field is smooth throughout that region, and the divergence theorem proves
For the infinite cylinder, use and outward unit normal . With , , , and . Hence the direct surface flux is
The integrand is odd in and absolutely integrable. This calculation treats the unbounded cylindrical side directly, without applying the bounded-region divergence theorem across the field's singularity.
Compute the curl component by component from the given vector field:
For example, and . Its divergence is
as expected because the divergence of a curl is zero.
Take counterclockwise when viewed from positive , the disc upward oriented, and the hemisphere outward oriented. These choices give both surfaces the same positive boundary orientation. Parametrize by , . On it, and , so the line integral is
On , use polar coordinates and . Since there, the surface flux is
On the unit hemisphere, the outward unit normal vector is . Since , we have . In spherical polar coordinates, and , giving the explicit surface integral
Indeed the inner integral is .
These equalities illustrate Stokes theorem twice: and either upward or outward spans the oriented circle , so each surface flux equals the same line integral. For the divergence theorem, close the upper half-ball by adjoining the downward oriented base, namely . Its outward surface flux is
The minus sign on the base is required because its outward normal vector points down. Reversing a specified orientation reverses that integral's sign.
For a bounded volume with piecewise smooth closed boundary , oriented by the outward unit normal vector, and a continuously differentiable vector field on a neighborhood of , the divergence theorem states
For an oriented piecewise smooth surface with piecewise smooth boundary , and a continuously differentiable vector field on a neighborhood of , Stokes theorem states
The boundary orientation follows the right-hand rule relative to the chosen normal vector. Reversing that orientation reverses both sides of the latter identity.
The divergence is . With outward orientation, the divergence theorem converts the surface flux into a volume integral:
Directly, the three faces lying in coordinate planes contribute zero, and each opposite face contributes , confirming the sign and normalization.
Let be the interior of the tetrahedron, and take any constant vector field . Its divergence is zero, so the divergence theorem gives
Choosing to be each Cartesian basis vector proves . This is the general fact that vector areas of a closed polyhedron sum to zero, specialized to four faces. The outward orientations are essential: the scalar face areas are all positive and do not sum to zero.
Let be a bounded region with a piecewise smooth closed boundary , and let have continuous first partial derivatives on a neighborhood of its closure. The divergence theorem states
where is the outward unit normal vector. The right side is the outward flux; reversing the orientation reverses its sign.
On the radius- sphere, the outward unit normal vector is , so . For a direct surface integral, put , , and . The integral is
The azimuthal integrals are , while and . Thus
The flux of a linear field through a sphere also follows from the equality of the three spherical second moments, without using the divergence theorem.
The divergence is . Since the volume enclosed by a sphere is ,
This agrees with the independently computed outward surface integral, as the divergence theorem requires.
For a bounded region with piecewise smooth closed boundary , outward unit normal vector and continuously differentiable vector field , the divergence theorem states . Here is scalar surface area, is volume, and is the oriented area element.
For , its divergence is three. The ellipsoid has semiaxes , so its volume is , obtained by scaling the unit ball. Consequently
Since is constant, componentwise differentiation gives . Applying the divergence theorem to this vector field gives
This holds for every constant vector , so the vector integrals agree. This is the vector gradient form of the divergence theorem. With , the gradient is the constant unit vector . Therefore
The identity reduces to when is constant. In components, this follows by differentiating and using the antisymmetry of the Levi-Civita symbol. The divergence theorem and the cyclic scalar triple product identity now give
Since is arbitrary,
The order of the cross product determines the minus sign, as in the vector curl form of the divergence theorem.
The divergence is . Take the hemisphere's outward orientation, and close it with the unit disk at , whose outward normal is . The divergence theorem then gives . On the disk, , and polar coordinates give
Consequently the curved hemisphere has flux
The reversed hemisphere orientation would reverse the sign.
The divergence is
For any closed piecewise smooth surface bounding a volume, use the divergence theorem with the outward orientation:
Reversing the orientation still gives zero. The field is smooth everywhere, so there is no hidden singular source inside the surface.
Take the sphere's outward normal. Since with constant , its divergence is . The divergence theorem gives
The translated centre does not enter the answer, because the divergence is constant. Equivalently the constant field produced by translating coordinates has zero net flux through a closed sphere. The inward orientation would negate the result.
Integrate the normal component on each face directly, with outward normals. Each unlisted pair of coordinates ranges independently from zero to one:
For example, on the integral is . Adding all six contributions gives
This calculation uses the six explicit surface integrals, independently of the divergence theorem.
For a sufficiently smooth vector field on a volume and its closed boundary , the divergence theorem states
with the unit normal directed outwards. Here
Hence the net volume flux through every closed surface in the liquid is zero. This verifies incompressible flow directly. It does not require the velocity to vanish pointwise on an arbitrary closed surface; inward and outward contributions can cancel.