roam said:
Thank you Samy for your response.
For the case ##-1.5 \leq t \leq -0.5##, could you please explain how you got the integral limits to be ##(-1,1)## instead of ##(-1.5, -0.5)##?
I wasn't considering cases yet.
I simply started from the definition: ##\displaystyle (f*h)(t)=\displaystyle \int^{+ \infty}_{-\infty} f(\tau) h(t-\tau) d \tau##.
Since ##f## is 0 outside of ##[-1,1]##, the integration limits can be replaced by ##-1## and ##+1##.
Since ##f## is 1 in ##[-1,1]##, the ##f(\tau)## just becomes ##1##, giving the result: ##\displaystyle (f*h)(t)=\displaystyle \int^{+1}_{-1} h(t-\tau) d \tau##.
roam said:
I think alternatively it is also possible to rewrite the integral limits like:
$$t+0.5 \leq \tau \leq t+1.5$$
In the interval ##[-1.5, -0.5]##, ##x+0.5## is between -1 and 0. Whereas ##x+1.5## is between 0 and 1. So the integral can be rewritten:
$$(f*h)(t)=\int^{t+1.5}_{t+0.5} h(t- \tau) \ d \tau$$
I am not sure how to proceed from here. How exactly does a substitution help? (this is my first convolution problem of this type)
But shouldn't the three cases be the following?
(i) ##-1.5 \leq t \leq -0.5##
(ii) ##-0.5 \leq t \leq 0.5##
(iii) ##0.5 \leq t \leq 1.5##
For values of t less than -1.5 or greater than 1.5, (f∗g)(t) is zero.
I made a mistake in listing the cases, sorry for that.
It really depends on how you want to tackle the integral. (There are probably a number of ways to do it, I'm not sure the one I suggest is the shortest.)
I suggested the substitution ##\sigma =t-\tau##.
The integral then becomes ##\displaystyle (f*h)(t)=\displaystyle -\int^{t+1}_{t-1} h(\sigma) d \sigma \ \ \ \ (1)##.
(There is no deep reason for this substitution. I think that dealing with ##h(\sigma)## is less error prone than dealing with ##h(t-\tau)## when treating the different cases.)
Notice that ##h## vanishes outside of ##[-0.5,+0.5]##, and that the expression for ##h## is different for positive and negative ##\sigma##. This will be important when treating the various cases.
Now for the cases.
a) For ##t\leq -1.5##, the convolution is 0, as you already wrote.
b) For ##-1.5 \leq t \leq -1##, the integration limits will be ##-0.5 \to t+1 (\leq 0)##, so you can use the expression for ##h## as valid for negative ##\sigma##.
c) For ##-1 \leq t -0.5##, the integration limits will be ##-0.5 \to t+1##, where ##0 \leq t+1 \leq 0.5##. In this case the integral (1) will consist of two parts: the integral from ##-0.5## to ##0## and the integral from ##0## to ##t+1## (with different expressions for ##h(\sigma)##).
d) For ##-0.5 \leq t \leq 0##, the integration limits will be ##-0.5 \to 0.5##, and the integral will also consist of two parts (##-0.5 \to 0, 0 \to 0.5##).
Since ##h## is even and the integration domain is symmetric around the y-axis, you can compute one of the integrals and multiply the result by 2.
e) Finally, for ##t \geq 0##, make use of the fact that ##f*h## is an even function, and use (with the needed precautions) the results obtained for negative ##t##.