I am stuck in this problem. We can assume that we are working in a $\sigma$-finite measure space and we have some measurable function $f$.
Now, the first thing I do is obtain two integrals
$$\int_0^\infty pt^{p-1} \mu(\{x:|f(x)|\geq t\}) dt = \int_0^\infty \int_Xpt^{p-1} \chi_{\{x:|f(x)|\geq t\}} d\mu dt$$
Now, since we are working under the assumption that $p>0, t\geq 0$ and also since the indicator function $\chi$ is non-negative, we can use Fubini's theorem to swap the integrals, and get
$$\int_X \int_0^\infty pt^{p-1} \chi_{\{x:|f(x)|\geq t\}} dt d\mu$$ From here, I am unsure if I should somehow prove that the integrand is Riemann-integrable so I can perform a change of variables. On the other hand, I saw that, for the special case $p=1$, the following identity is used:
$$\int_0^\infty \chi_{\{x:|f(x)|\geq t\}} dt = \int_0^{|f(x)|} dt$$
Is it possible to use a change of variables $s = t^p$ to get the following integral?
$$\int_0^\infty \chi_{\{x:|f(x)|^p\geq s\}}ds=\int_0^{|f(x)|^p}ds$$
If so, how can this be made rigorous? Also, how do I prove the identity?
Hint: the integral upper limit is not really $\infty$. Notice that by definition of the indicator function, $\int_0^\infty pt^{p-1}\chi_{\{|f((x)|\geq t\}}dt = \int_0^{|f(x)|} pt^{p-1}dt$.