So the question I have is
Let S be a non-negative random variable. By writing the probability as an expectation and using Fubini's theorm, show that
$ES^4=\int_0^\infty4t^3P(S>t)dt$
so I found on wikipedia http://en.wikipedia.org/wiki/Expected_value#General_definition

but it does not show how to prove it.
My attempt is somehow using the chain rule but i don't know how do you change S into t.
Hint: Note that for $X$ non negative random variable, and $x>0$ and $\alpha > 1$
Swap the integrals using Fubini Tonelli theorem, get rid of the indicator function and you will have your result. Try the steps for yourself and let me know if you have problems.