\[g(r)=4\pi\int_{r}^{\infty}f(t)t\,\mathrm{d}t.\]