I have a doubt about convolution.
I have found this definition :
$$(f*g)(t)=\int_{-\infty}^{+\infty} f(t-\alpha) \ g(\alpha) \ d\alpha$$
This integral does not converge:
$$\cos(t)*t=\int_{-\infty}^{+\infty} \cos(t-\alpha) \ \alpha \ d\alpha$$
Contrariwise: $$ \mathscr{L} \{ \cos(t) * t \} =\mathscr{L} \{ \cos(t) \} \ \mathscr{L} \{t \}=\frac{1}{s^3+s}$$
Partial fraction decomposition:
$$\frac{1}{s^3+s}=\frac{A}{s}+\frac{B}{s-i}+\frac{C}{s+i}$$
$$A=\lim_{s\rightarrow 0} \ \frac{1}{s^2+1}=1$$ $$B=\lim_{s\rightarrow i} \ \frac{1}{s^2+is}=-\frac{1}{2}$$ $$C=\lim_{s\rightarrow -i} \ \frac{1}{s^2-is}=\frac{1}{2}$$
$$\frac{1}{s^3+s}=\frac{1}{s}+\frac{-\frac{1}{2}}{s-i}+\frac{\frac{1} {2}}{s+i}$$
$$\mathscr{L}^{-1} \{ \frac{1}{s}+\frac{-\frac{1}{2}}{s-i}+\frac{\frac{1}{2}}{s+i} \}=1-\frac{1}{2} \ e^{it}+\frac{1}{2} \ e^{-it}$$
Then, I have found this other definition of convolution (in a lesson about Laplace transform):
$$(f*g)(t)=\int_{0}^{t} f(t-\alpha) \ g(\alpha) \ d\alpha$$
Why are there two different definitions about convolution?
When have I to use one or another?
Thanks!