Find the PDF of $W=X+Y$,when X and Y have the joint probability density function
$$f_{X,Y}(x,y)=\begin{cases} 1, &0\le x \le 1,0 \le y \le 1 \\[0.5ex] 0, & \text{otherwise} \end{cases}$$
My solution is let $W=X+Y,X_1=X$,then
$f_{X_1,W}(x ,w)=f_{X,Y}(x,w-x)=1\times |J|=1\times 1=1 , 0\le x \le w \le 2$
so now i just $f_W(w)=\int^{w}_{0}1 dx=w$ ,for $0\le w \le 2$
Am i wrong?