Let $X$ be a positive random variable on the $(\Omega,\mathscr{A},P)$. Show that if $X\in L_p$ for $1<p<\infty$. Prove $E(X^p)=\int_{0}^{\infty}px^{p-1}P(X>x)dx$
I have been thinking about this question but it does not come to my mind how should I go from $E(X^p)=\int |X|^p dP$ into a Riemann integral. I understand that $\frac{d(x^p)}{dx}=px^{p-1}$ however I cannot see how the Riemann integral appears. $\int\mathbb{1}_{X>x}dP=P(X>x)$.
Question:
How should I solve this question?
Thanks in advance!