I'm looking for a proof for the formula
$$\int_{B(0,1)}f(|x|)dx = |S^{n-1}|\int_0^1f(r)r^{n-1}dr,$$ where $B(0,1)$ is the unit ball in $\mathbb{R}^n$ and $x\mapsto f(|x|) $ is some integrable function on $B(0,1).$
Thank you in advanced
I'm looking for a proof for the formula
$$\int_{B(0,1)}f(|x|)dx = |S^{n-1}|\int_0^1f(r)r^{n-1}dr,$$ where $B(0,1)$ is the unit ball in $\mathbb{R}^n$ and $x\mapsto f(|x|) $ is some integrable function on $B(0,1).$
Thank you in advanced
Change variables to polar coordinates and use Fubini's theorem, you get
$$\int_{B(0,1)}f(|x|)\,dx=\int_0^1\left(\int_{S^{n-1}}f(r)r^{n-1}\,d\sigma\right)\,dr$$
where $d\sigma$ is the surface area measure on $S^{n-1}$. Then just carry out the inner integration and you get your result.