Take , so the shell excludes the possible singularity at the origin. The divergence and curl of a radial vector field formula in spherical coordinates gives
With volume element , direct integration gives
For the independent boundary calculation, the outer sphere has outward unit normal vector and the inner sphere has outward unit normal vector . Their fluxes are
Their sum equals the direct volume integral, verifying the divergence theorem. The restriction permits the displayed power-antiderivative step. At , treated separately, both the shell volume integral and net boundary flux are zero; the excluded origin must still not be filled in.
On the outward-oriented sphere of radius , , so . Hence
Away from the origin, the divergence and curl of a radial vector field with give
If the enclosed volume excludes the origin and its boundary avoids it, this field is smooth throughout the volume. The divergence theorem then gives . The nonzero sphere flux is compatible with zero divergence away from the origin because the enclosed singularity prevents applying that smooth-volume theorem directly to the full ball.
In three dimensions the curl can be written with the Levi-Civita symbol:
Both terms contract an antisymmetric array with a symmetric one, and therefore vanish. Every differentiable radial field of this form has zero curl away from the origin. This is the three-dimensional part of the divergence and curl of a radial vector field.
Apply the product rule and the preceding gradient formula to the vector field . Summing over the repeated index gives
Here for the Kronecker delta. Thus the divergence and curl of a radial vector field give, in any dimension,
Write . For , direct Cartesian differentiation gives the divergence and curl of a radial vector field:
The volume element in spherical coordinates therefore gives, for ,
For the direct surface integral, the outer sphere has outward normal and contributes . The inner boundary's outward normal relative to the shell is , so it contributes . Hence
For , the field has zero ordinary divergence everywhere in this shell. The separate surface contributions are and , so both full integrals are zero. This radial power-law flux through a spherical shell was obtained by direct differentiation and integration; the excluded origin is never part of the volume.