How could one solve integrals in the form: $$ I(\mathbf{r})= \int_{V'} \frac{ \mathbf{r} - \mathbf{r'}}{\mid \mathbf{r} - \mathbf{r'} \mid ^3} dV' $$ where the domain of integration is the sphere: $$ x'^2+y'^2+z'^2 \leq R^2 ~?$$
I would change the integration variables from $ x' $ to $ x'' = x-x' $ (similarly for $y $ and $z$), obtaining:
$$ I(\mathbf{r''})=\int_{V''} \frac{ \mathbf{r''}}{\mid \mathbf{r''} \mid ^3} dV'' $$
where now the domain of integration is the sphere centered at $(x,y,z)$: $$ V'' = \{(x'',y'',z'') \in R^3 : (x-x'')^2+(y-y'')^2+(z-z'')^2 \leq R^2 \} $$
and then using spherical coordinates $(r,\theta,\phi) $ such that $$ x''=r \text{cos}\theta \text{sin}\phi $$ $$ y''=r \text{sin}\theta \text{sin}\phi $$ $$ z''=r \text{cos}\phi $$ Obtaining, considering for example the first component of $ I$: $$ I_1(\mathbf{r''})= \int\int\int \frac{ r\text{cos}\theta \text{sin}\phi}{r^3}r^2 \text{sin}\phi dr d\theta d\phi= \int\int\int \text{cos}\theta \text{sin}^2\phi dr d\theta d\phi $$ At this point my problem here is to find the integration intervals for the varibles $(r,\theta,\phi) $; i.e. the description of the domain of integration $V''$ in spherical coordinates.
These kind of integrals arises for example in electrostatic when one has to compute the electric field produced by a uniformly charged sphere centered at the origin. There one would use Gauss' law, but how the integral itself could be calculated?