$ X $ is a non-negative continuous random variable with density function $f$ and distribution function $F$.
Use integration by parts to show that
$ \int_0^{\infty} ( 1- F(x)) dx = \int_0^{\infty}xf(x)dx $
I'm quite puzzled on how to even integrate $F(X)$ to get $f(x)$ :S