suppose $X$ and $Y$ are independent and identically distributed random variables that are uniformly distributed on $[0,1]$
What is the PDF of $ W=Y-X $
i tried to draw a picture to illustrated it but it seems very difficult, can anyone guide me a bit?
Although this is not your question, perhaps it is easiest to do the discrete case first: You want to find $P(W=n) = P(Y-X=n)$:
Note that the possibilities are that $(X=0, Y=n), (X=1,Y=n+1), (X=-1,Y=n-1), \ldots, (X=k, Y=n+k),\ldots$ so we get $$ P(W=n) = \sum_{i=-\infty}^{\infty} P(X=i, Y=n+i) $$ Since they are independent, this is $$ \sum_{i=-\infty}^{\infty} P(X=i)P(Y=n+i) = \sum_{i=-\infty}^{\infty} p_X(i)p_Y(n+i) $$ Can you now guess the formula for the general/continuous case?