I came across a question:
Find $f(r)$ and prove the centre of mass formula:
$$\vec{r_{cm}} = \frac{1}{V} \int f(r) \vec{dS} $$
Where $V$ is the total volume and our surface integral is over a body with uniform density.
I'm not even quite sure where to start. I spent a while fiddling around with the divergence theorem but to no avail. I think $f(r) =\frac{r^2}{2} $ but this is only a guess. Any hints would he great to get me started along the right track.