I am struggling to derive the gravitational field strength within a solid sphere. I am considering a point a position vector $\textbf{r}$, and a small mass element of the sphere within, at a position vector $\textbf{r}_m$. The mass of this element would be $dm=\rho dV$ or $dm=\rho r_m^2sin\theta dr_md\theta d\phi$ in spherical polar coordinates. Then I have the small contribution to the gravitational field strength at $\textbf{r}$ from the mass being
$d\textbf{g}=-\frac{Gdm}{|\textbf{r-r}_m|^2} \frac{\textbf{r-r}_m}{|\textbf{r-r}_m|}$
$\int d\textbf{g}=-\int_{V} \frac{G\rho (\textbf{r-r}_m)}{|\textbf{r-r}_m|^3}dV$
And now I am stuck. I don't know how to integrate such a vector expression or even if it can be done... I would greatly appreciate some help!