Here is a formula for the volume of a general body in $\mathbb{R}^n$ I came across, that uses spherical polar coordinates. I'm not sure how it came about:
Here, $K$ is a body with $0$ in its interior, and for each direction $\theta \in S^{n-1}$, let $r(\theta)$ be the radius of $K$ in that direction. $$ \text{vol}(K) = nv_n \int_{S^{n-1}} \int_{0}^{r(\theta)} s^{n-1}ds d\sigma = v_n \int_{S^{n-1}} r(\theta)^n d\sigma(\theta)$$ $S^{n-1}$ is the sphere of radius $1$ in $n-1$ dimensions, and $v_n$ is the volume of the Euclidean ball of radius $1$ in $n$-dimensions.
I understand how the first integral goes to the second, but how did this formula come about in the first place?
I'm trying to start off with the regular Cartesian integral for volume which looks like $$\int \int ... \int dx_1 dx_2...dx_n$$ but I'm not able to proceed from here.
It has been a long while since I posted this. Could someone please add a detailed explanation? It would be really helpful.