I was reading an article and I found this equivalence:
$$ \int_0^\infty\,dy\int_0^\infty dx\,p(x+y)\ =\ \langle X \rangle $$ where $p(x)$ is a p.d.f of a positive random variable $X$ and $\langle X \rangle = \int_0^\infty xp(x)\,dx$.
Is it true? Changing the variables I have only that the l.h.s is equal to $$ \int_0^\infty dy\int_y^\infty p(x)\,dx = \int_0^\infty P(X\geq y)\,dy $$
Yes, this is true, and your transformation is already a first step in showing it (and a useful result in its own right). Now integrate $1\cdot P$ by parts, or alternatively integrate $x\cdot p$ by parts (using $P-1$ as the antiderivative).