I have a convolution problem in the form
$$g(x)= \int_{-\infty}^\infty h(y)h(x-y)\,dy$$
where they give me the function $h(x)=1/2$ for $0<x<2$ and $0$ otherwise.
I have never done a convolution problem before so I would like someone to walk me through this. I know I'll need to do a change of variables
$\newcommand{\d}[1][x]{\,\mathbb{d}#1}$ If either $y$ or $x-y$ are outside of the interval $(0,2)$ then the integrand is zero and the value of the integral on such intervals (of $y$) is zero.
So search for ranges of $y$ for which $0 \lt x - y \lt 2$ and $0 \lt y \lt 2$, because these are where the integrand is non-zero, and hence the integral is non-zero.
$x-y \gt 0 \implies y \lt x$ and $x-y \lt 2 \implies y \gt x-2$.
So, our integrand is non-zero for all $y \in (x-2,x) \cap (0,2)$ (and zero everywhere else).
From this, we can construct $g(x)$ for different ranges of $x$. $$g(x) = \begin{cases} 0 & x \lt 0 \\ \int_0^x \tfrac14 \d[y] & 0 \lt x \lt 2 \\ \int_{x-2}^2 \tfrac14 \d[y] & 2 \lt x \lt 4 \\ 0 & x \gt 4 \end{cases}$$