With partial integration I wanted to prove that for non-negative random variable with CDF F(x) holds $$ \int_0^{\infty}\overline{F}(x)dx=E[X]. $$ Here is $\overline{F}(x)= 1-F(x)$. I got this far $$ \int_0^{\infty}\overline{F}(x)dx=\lim_{x\to{\infty}} x\overline{F}(x)-0+\underbrace{\int_{0}^\infty xf(x)dx}_{E[X]}. $$
But now I don't know hot to calcute the upper limit.
Does anyone have a clue how to prove this?
Have a nice day!