I have given two random variables $X,Y$ which are independent and uniformly distributed on $[0,1]$. I need to compute the density of $X+Y$.
My idea was to compute $\Bbb{E}(\phi(X+Y))$ where $\phi$ is a mesurable function and then compare the density functions. So $$\Bbb{E}(\phi(X+Y))=\int_{\Bbb{R}^2} \phi(x+y)\cdot 1_{[0,1]}(x)\cdot 1_{[0,1]}(y)~~~\Bbb{P}(X+Y\in dx+dy)$$Is this correct so far, so does this idea works.
Now I need to split $\Bbb{P}(X+Y\in dx+dy)$ but I don't know if this is $\Bbb{P}(X+Y\in dx+dy)=\Bbb{P}(X\in dx)+\Bbb{P}(Y\in dy)$.
Could maybe someone help me?
Thanks for your help