Let $X$ be a non-negative random variable on $(\Omega, \mathcal{F}, P)$ such that $E[X]<\infty$. I need to show that:
$E[X]=\int_0^\infty P(X>t) \ dt$ (Riemann integral)
where $E[X]=\int_\Omega X \ dP =\int_\mathbb{R}x \ dP_X$ (Lebesgue integral).
Any help would be appreciated, thank you.