we're given a function $h(x)=\begin{cases}1/2&\text{for}&0\le x<2\\0 &\text{otherwise}\end{cases}$.
Then we are told to define the function $\displaystyle g(x)= \int_{-\infty}^{+\infty} h(y)h(x-y)dy$ I need to find the formula for $h(x)$ for all $x$.
what i believe i need to do is a double integral with integral from $-\infty$ to $+\infty$ as outside integral and integral from $0$ to $2$ of $\frac{1}{2}h(x-y)$
i don't know how to handle the $h(x-y)$ part
Hint: $h(y) h(x-y) = 1/4$ if ... and $0$ otherwise. Draw a picture of this region in the $xy$ plane.