I am struggling in evaluating the follow type of integral:
$$\int_{-\infty}^{x}f(z)\left[\int_{z}^{\infty}g(y)\,\mathrm dy\right] \,\mathrm dz.$$
I did some research and found out that the above expression is equivalent to the following, which might be easier to evaluate:
$$\int_{-\infty}^{\infty}\left[\int_{-\infty}^{\min(x,y)}\, f(z)\mathrm dz\right] g(y)\,\mathrm dy.$$
I am unable to see how those two expressions are equivalent and therefore struggling with this type of integral. Could anyone please guide me how to approach this integral or point me to any reference materials?
