$\newcommand{\real}{\mathbb{R}}$ I read this identity from the monograph Probability Inequalities by Zhengyan Lin and Zhidong Bai. The author proposed to use this identity to prove the inequality $E[|X - Y|] \leq E[|X + Y|]$ when $X$ and $Y$ are i.i.d. I quote:
An alternative proof is to use the formula \begin{align} & E[|X + Y|] - E[|X - Y|] \\ =& \int_{-\infty}^\infty(1 - F(u) - F(-u))(1 - G(u) - G(-u))du, \tag{1} \end{align} where $F$ and $G$ are the distribution functions of $X$ and $Y$ respectively.
The author didn't give a proof to $(1)$ (assume $X$ and $Y$ are independent). In the original text, the lower limit of the integral is "$0$", which has been corrected to "$-\infty$" in $(1)$.
My question: does $(1)$ hold for any distribution functions $F$ and $G$ (such that $E[|X|] < \infty, E[|Y|] < \infty$)? The author seems to imply this is the case. As shown below, $(1)$ is indeed true if $F$ and $G$ are absolutely continuous with densities $f$ and $g$, but I have difficulty to generalize it to any distribution functions. Interestingly, $E[|X - Y|] \leq E[|X + Y|]$ holds for general i.i.d. $X$ and $Y$, as proved elegantly in this answer.
My attempt: When $F$ and $G$ have densities $f$ and $g$ respectively, direct simplification shows \begin{align} & E[|X + Y|] - E[|X - Y|] \\ =& 2E[X(1 - G(X) - G(-X))] + 2E[Y(1 - F(Y) - F(-Y))] \\ =& 2\int_\real x(1 - G(x) - G(-x))f(x)dx + 2\int_\real x(1 - F(x) - F(-x))g(x)dx. \end{align} By the change of variable theorem: \begin{align} I = \int_\real x(1 - G(x) - G(-x))f(x)dx = \int_\real (-t)(1 - G(-t) - G(t))f(-t)dt. \end{align} Hence \begin{align} & 2I = \int_\real x(1 - G(x) - G(-x))(f(x) - f(-x))dx \\ =& -\int_\real x(1 - G(x) - G(-x))d(1 - F(-x) - F(x)). \tag{2} \end{align} Similarly, if denote $E[Y(1 - F(Y) - F(-Y)]$ by $J$, then \begin{align} 2J = -\int_\real x(1 - F(x) - G(-x))d(1 - G(-x) - G(x)). \tag{3} \end{align}
Integrating by parts, $-2I$ becomes \begin{align} & x(1 - G(x) - G(-x))(1 - F(x) - F(-x))|_{-\infty}^\infty \\ -& \int_\real (1 - F(x) - F(-x))(1 - G(x) - G(-x))dx \\ -& \int_\real x(1 - F(x) - F(-x))d(1 - G(x) - G(-x)) \\ =& -\int_\real (1 - F(x) - F(-x))(1 - G(x) - G(-x))dx + 2J, \end{align} hence \begin{align} & E[|X + Y|] - E[|X - Y|] \\ =& 2(I + J) = \int_\real (1 - F(x) - F(-x))(1 - G(x) - G(-x))dx. \end{align} That $\lim_{x \to \pm\infty}x(1 - F(x) - F(-x))(1 - G(x) - G(-x)) = 0$ in the above derivation can be derived by integrability of $X$ or $Y$. For example, for sufficiently positive large $x$: \begin{align} 0 \leq x(1 - F(x) - F(-x))(1 - G(x) - G(-x)) \leq x(1 - F(x)) \to 0 \end{align} as $x \to \infty$ ($x(1 - F(x)) \to 0$ as $x \to +\infty$ is well known if $E[|X|] < \infty$).
I think the difficulty of generalizing the above argument to general $F$ and $G$ lies in deriving $(2)$ and $(3)$, in particular when $F$ and $G$ have discontinuities. Therefore, I doubt if $(1)$ can still hold for the general case (perhaps some extra discrete terms need to be appended).