A nonnegative mass density proportional to has finite local mass near a straight axis if converges, namely . Near a three-dimensional center the corresponding condition is convergence of , namely . These follow from the cylindrical volume element and spherical volume element. At equality the divergence is logarithmic. An unbounded density does not by itself imply infinite mass.
Assume a positive common density scale and use the unit-radius coordinates of the source. The cylinder's density depends on distance from its axis. Its mass is
The radial factor in the cylindrical volume element cancels the apparent density singularity.
For the sphere, the spherical volume element gives
The condition is necessary for finite mass; the integral diverges for . Equating the two finite masses yields , and hence
This satisfies . A divergent pointwise density can therefore have finite total mass: the integrable power-law density at an axis or center must be tested together with its volume factor. Dimensionally, the density laws can be understood as and with unit radius in the chosen length units.