For a sufficiently regular vector field on a bounded region with piecewise smooth boundary , the divergence theorem states
where is the outward unit normal vector. Apply it to for an arbitrary constant vector . Since , it gives
Equality for every constant proves the vector gradient form of the divergence theorem:
Applying the same divergence theorem directly to , with , proves the flux law
This is the Gauss flux law for the prescribed source density, obtained directly from the divergence theorem. For the piecewise source in this problem the divergence relation is understood away from the interface, or almost everywhere; applying the theorem separately to the two sides gives the same law because the normal field is continuous across the interface and the internal boundary fluxes cancel.
For the radial field, its normal component on a sphere of radius is the constant , so its total flux is . For the enclosed source is ; for it is . Thus the origin-regular spherical Poisson flux law gives
The value at is the continuous value zero. A singular inverse-square radial addition is excluded by the source equation throughout space, including the origin: it would add a point source there.
Since , radial integration gives inside and outside. The decay condition fixes the exterior constant, giving for . Integrating inside gives , and matching at yields . Hence the potential of a uniform spherical source is
Both and its radial derivative are continuous at ; there is no surface source hidden in the matching.
For any ball centred at the origin, the gradient is odd under , so its volume integral vanishes by symmetry. On the bounding sphere, is constant and outward normals at antipodal points are opposite, so as well. Both sides of the vector gradient identity are therefore zero, for radii below, above, or equal to .