Let $X$ be a positive random variable with distribution function $F$. Show that $E(X)=\int_0^\infty(1-F(x))dx$
Explain why $E(X) = \int_0^\infty (1-F_X (t)) \, dt$ for every nonnegative random variable $X$