Let B be a 3-dimensional ball of radius r. Find the average distance from a point in B to its center.
So I know that the distance from the point to the center is defined by a function, and I just need to find the average value of this function, correct? But I don't know where to go from here. Any help would be appreciated, thanks.
Spherical coordinates are the natural choice for integrating in. The integral for the total distance, before dividing by the sphere's volume, is $$\int_0^{2\pi}\int_0^\pi\int_0^R r\cdot r^2\sin\theta\,dr\,d\theta\,d\phi$$ $$=\int_0^{2\pi}\int_0^\pi\int_0^R r^3\sin\theta\,dr\,d\theta\,d\phi$$ $$=\frac{R^4}4\int_0^{2\pi}\int_0^\pi \sin\theta\,d\theta\,d\phi$$ $$=\frac{R^4}2\int_0^{2\pi}1\,d\phi$$ $$=\pi R^4$$ The average distance is then this divided by the ball's volume: $$\frac{\pi r^4}{(4/3)\pi r^3}=\color{blue}{\frac{3r}4}$$