f(t) = \begin{cases} 1, & \text{0<=t<=1} \\ 0, & \text{otherwise} \end{cases}
I know how to find the convolution when there are 2 functions but how do I find the convolution of a function with itself? The textbook claims that substitution is a method that can be useful but I don't understand how the boundaries would work with substitution.
EDIT: Convolution is from negative infinity to infinity. convolution function
By definition, $$ f\star f(t) =:g(t)= \int_0^t f(s)f(t-s)\,\mathsf ds = \int_0^t \mathsf 1_{(0,1)}(s)\mathsf 1_{(0,1)}(t-s)\,\mathsf ds. $$ If $t\in[0,1)$, then $t-1<s<t$ and $0<s<1$ imply $0<s<t$, so we compute $$ g(t) = \int_0^t \mathsf ds = t. $$ If $t\in[1,2]$, then similarly we compute $$ g(t) = \int_{t-1}^1 \mathsf ds = 2-t. $$ Hence, $$g(t) = t\cdot\mathsf 1_{[0,1)}(t) + (2-t)\cdot\mathsf 1_{[1,2]}. $$