Let us look at a basic continuous-time convolution example to
help express some of the important ideas. We will convolve together two square pulses,
xtxt and
htht,
as shown in Figure 1
Now we will take one of the functions and reflect it around
the y-axis. Then we must shift the function, such that the
origin, the point of the function that was originally on the
origin, is labeled as point tt. This
step is shown in Figure 2,
ht-τ
h
t
τ
.
Note that in
Figure 2 ττ
is the 1st axis variable while
tt is
a constant (in this figure).
Since convolution is commutative it will never
matter which function is reflected and shifted; however, as
the functions become more complicated reflecting and shifting
the "right one" will often make the problem much easier.
We start out with the convolution integral,
yt=∫-∞∞xτht-τdτ
y
t
τ
x
τ
h
t
τ
.
The value of the function yy
at time tt is given by
the amount of overlap(to be precise the integral of the
overlapping region) between
ht-τ
h
t
τ
and
xτ
x
τ
.
Next, we want to look at the functions and divide the span
of the functions into different limits of integration.
These different regions can be understood by thinking about
how we slide
ht-τ
h
t
τ
over
xτ
x
τ
, see Figure 3.
In this case we will have the following four
regions. Compare these limits of integration to the
four illustrations of
ht-τ
h
t
τ
and
xτ
x
τ
in
Figure 3.
-
t<0
t
0
-
0≤t<1
0
t
1
-
1≤t<2
1
t
2
-
t≥2
t
2
Finally we are ready for a little math. Using the convolution
integral, let us integrate the product of
xτht-τ
x
τ
h
t
τ
. For our first and fourth region this will be
trivial as it will always be 00.
The second region,
0≤t<1
0
t
1
, will require the following math:
yt=∫0t
1
dτ=t
y
t
τ
0
t
1
t
(1)
The third region,
1≤t<2
1
t
2
, is solved in much the same manner. Take note of
the changes in our integration though. As we move
ht-τ
h
t
τ
across our other function, the left-hand edge of the
function,
t-1
t
1
, becomes our lowlimit for the integral. This is
shown through our convolution integral as
yt=∫t-11
1
dτ=1-t-1=2-t
y
t
τ
t
1
1
1
1
t
1
2
t
(2)
The above formulas show the method for calculating
convolution; however, do not let the simplicity of this
example confuse you when you work on other problems. The
method will be the same, you will just have to deal with
more math in more complicated integrals.
Note that the value of ytyt
at all time is given by the integral of the overlapping functions. In this
example yy for a given tt
equals the gray area in the plots in Figure 3.
Thus, we have the following results for our four regions:
yt=
0ift<0tif0≤t<12-tif1≤t<20ift≥2
y
t
0
t
0
t
0
t
1
2
t
1
t
2
0
t
2
(3)
Now that we have found the resulting function for each of the
four regions, we can combine them together and graph the
convolution of
xt*ht
x
t
h
t
.
By looking at Figure 3 we can obtain
the system output,
ytyt,
by "common" sense.
For t<0t0
there is no overlap, so ytyt is 0.
As tt goes from 0 to 1 the overlap will linearly
increase with a maximum for t=1t1,
the maximum corresponds to the peak value in the triangular pulse.
As tt goes from 1 to 2 the overlap will linearly
decrease. For t>2t2
there will be no overlap and hence no output.
We see readily from the "common" sense approach that the output function
ytyt is the
same as obtained above with calculations. When convolving to square
pulses the result will always be a
triangular pulse. Its origin, peak value and strech will, of course, vary.