I would like to find the cdf of $Z=X_1+X_2$, with $X_1\sim U(0,1) $, $X_2\sim U(0,2)$
I always prefer to find the cdf instead of the pdf with convolution, and this time I am having troubles with the last part of the cdf.
I split the cdf $F_Z(a)$ in 3 cases and I found:
$\frac{a^2}{2}-\frac{a^2}{4}\quad 0<a\le 1$
$\frac{a}{2}-\frac{1}{4}\, \quad 1<a\le 2$
$\frac{a}{2}-\frac{a^2}{4}+\frac{3}{4}\quad2<a\le 3$
I am omitting the part for $a\le0$ and $a>3$, but I don't know what to do with the last part of the cdf, I did this:
$\int_{a-2}^1F_{X_2}(a-x_1)dx_1$
I am fully convinced of the boundaries of integration of $X_1$, yet I can't get the correct answer for the last part of the cdf in that way. Any help would be greatly appreciated.