I have this problem Let $X$ and $Y$ be random variables that have a joint density function given by,
Find the density function of $X - Y$.
My problem is, that I don´t how to choose the integrals intervals
$$\int_{0}^{\infty}\int_{y}^{y+z}8(y+z)y\,dy\,dz$$
Is this statement correct?
First do a drawing. Then realize that
$$F_Z(z)=\int_{0}^{1+z} 8x dx \int_{x-z}^{1}y dy$$
This because:
$z \in [-1;0]$
Using the CDF method you get
$$F_Z(z)=\mathbb{P}[X-Y \leq z]=\mathbb{P}[Y \geq X-z]$$
Then the area to be integrated is the purple one, as shown in the following picture