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.