I am confusing myself more and more with this question and require some assistance. The question reads:
Let: $$g(x) = \begin{cases}1 & \text{ if } |x|<\frac{1}{2}\\ 0 & \text{ otherwise }\end{cases}$$ Compute $(g*g)(x)$ and $(g*g*g)$ explicitly.
Now I have found that: $$(g*g)(x) = \begin{cases} 1-x & 0\leq x\leq 1\\ x+1 & -1\leq x\leq 0\\ 0 & \text{ otherwise}\end{cases}$$
But now I am trying to compute $g*g*g$. I have started: $$g*(g*g) = \int_{-\infty}^{\infty}g(x-y)\cdot (g*g)(y)dy$$ Thus, we require $-1\leq y\leq 1$ and $x-\frac{1}{2}\leq y\leq x+\frac{1}{2}$ for the integrand to not vanish. This says that $-\frac{3}{2}\leq x\leq \frac{3}{2}$. But now I'm confusing the hell out of myself. How do I divide this part into cases like I did with $(g*g)$? Do I separate it into two intervals $[-\frac{3}{2},0]$ and $[0,\frac{3}{2}]$? And treat each case separately?




At first we calculate $g\star g$ and then we use this result and proceed similarly to calculate $g\star g \star g$.
Comment:
In (1) we use the definition of the convolution $\star$.
In (2) we use that $g(x)=1$ if $-\frac{1}{2}<x<\frac{1}{2}$ and $0$ else.
In (3) we apply the substitution: $u=x-y, du=-dy$.
In (4) we split the integral according to the support of $g(u)$.
In (5) we note the support of $g$ is the interval $\left[-\frac{1}{2},\frac{1}{2}\right]$ with length $1$. The integral has limits of length $1$ and is non-zero in the interval $\left[x-\frac{1}{2},x+\frac{1}{2}\right]$. We consider this interval sliding over $[-\frac{1}{2},\frac{1}{2}]$. When the upper limit $x+\frac{1}{2}$ of this interval is part of the support of $g$ we have to consider $-\frac{1}{2}\leq x+\frac{1}{2}\leq \frac{1}{2}$ and when the lower limit $x-\frac{1}{2}$ of this interval is part of the support of $g$ we have to consider $-\frac{1}{2}\leq x-\frac{1}{2}\leq \frac{1}{2}$. Everything else has no contribution.
In (6) we do the integration and write the ranges of validity in simplified form.
Comment:
In (7) we split the integral into three parts according to the representation of $(g\star g)(x)$ in (5).
In (8) we observe that both integrals in (7) are similar to that in (4) and we treat each of them correspondingly. Note that both integrals have a contribution in the interval $-\frac{1}{2}\leq x\leq \frac{1}{2}$ and the ranges of validity coincide in that case.
In (9) we do the integration and write the ranges of validity in simplified form.