You are on page 1of 16

Topic 3

The -function & convolution.


Impulse response & Transfer function

In this lecture we will described the mathematic operation of the convolution of


two continuous functions. As the name suggests, two functions are blended or
folded together.
We will then discuss the impulse response of a system, and show how it is related
to the transfer function of the system.
First though we will define a special function called the -function or unit impulse.
It is, like the Heaviside step function u(t), a generalized function or distribution
and is best defined by considering another function in conjunction with it.

3.1 The -function


Consider a function

1/w 0 < t < w
g(t) =
0 otherwise
One thing of note about g(t) is that
Z w
g(t)dt = 1.
0

The lower limit 0 is a infinitesimally small amount less than zero. Now, suppose
that the width w gets very small, indeed as small at 0+ , an number an infinitesimal
amount bigger than zero. At that point, g(t) has become like the function, a
very thin, very high spike at zero, such that
Z Z 0+
(t)dt = (t)dt = 1
0

1
3/2

g(t) (t)
1/ w

0 w 0
(a) (b)

Figure 3.1: As w becomes very small the function g(t) turns into a -function (t) indicated by
the arrowed spike.

In some sense it is akin to the derivative of the Heaviside unit step


Z t
(t)dt = u(t) .

More formally the delta function is defined in association with any arbitrary function
f (t), as
The delta function ...
Z
f (t)(t)dt = f (0) .

Picking out values of a function in this way is called sifting of f (t) by (t). We
can also see that
Z
f (t)(t )dt = f ( ) ,

a result that we will return to.
(t ) A (t )
f(t) (t) f(t)

t t
0 0 0

(a) (b) (c)

Figure 3.2: (a,b) Sifting. (c) With an amplitude A.

Although the -function is infinitely high, very often you will see a described as
the unit -function, or see a -function
R spike with Ran amplitude A by it. This is to

denote a delta-function where (t)dt = 1 or A(t)dt = A.
3/3

3.2 Properties of the -function


Fourier transform of the delta function:

FT [(t)] = 1

Proof: Use the definition of the -function and sift the function f (t) = eit :
Z
(t)eit dt = ei0 = 1 .

Symmetry: The -function has even symmetry.

(t) = (t)

Parameter Scaling:
1
(at) = (t)
|a|
R
Proof: To prove this return to the fundamental definition, f (t)(t)dt = f (0)
If a 0, substitute (at) for t (no swap in limits)
Z Z
f (at)(at)d(at) = a f (at)(at)dt = f (0)

Z
But f (at)(t)dt = f (0) a (at) = (t).

Now if a < 0, substitute (at) for t (but need to swap limits as a negative)
Z Z
f (at)(at)d(at) = a f (at)(at)dt = f (0)

Z
But f (at)(t)dt = f (0) a (at) = (t).

So |a| (at) = (t) covers both cases, and the stated definition follows immedi-
ately.
3/4

3.3 Fourier Transforms that involve the -function

Fourier Transform of ei0 t


Z
ei(0 )t dt = 2( 0 ) .
 i t 
FT e 0 =

Fourier Transform of 1

FT [1] = 2() .
You could obtain this either by putting 0 = 0 just above, or by using the dual
property, FT [1] = 2(), then the even symmetry property () = ().

Fourier Transform of cos 0 t


 
1 i0 t i0 t

FT [cos 0 t] = FT e +e = (( 0 ) + ( + 0 )) .
2

Fourier Transform of sin 0 t


 
1 i0 t i0 t

FT [cos 0 t] = FT e e = i (( 0 ) ( + 0 )) .
2i

Fourier Transform of Complex Fourier Series yes, this can be useful!


" n= # n=
X X
in0 t
FT Cn e = 2 Cn ( n0 ) .
n= n=

3.4 Convolution
We turn now to a very important technique is signal analysis and processing. The
convolution of two functions f (t) and g(t) is denoted by f g. The convolution
is defined by an integral over the dummy variable .

The convolution integral. The value of f g at t is


Z
(f g)(t) = f ( )g(t )d

3/5

The process is commutative, which means that


Z Z
(f g)(t) (g f )(t) or f ( )g(t )d f (t )g( )d

3.4.1 Example 1
It is easier to see what is going on when convolving a signal f with a function g
of even or odd symmetry. However, to get into a strict routine, it is best to start
with an example with no symmetry.
[Q] Find and sketch the convolution of f (t) = u(t)eat with g(t) = u(t)ebt ,
where both a and b are positive.
[A] Using the first form of the convolution integral, the short answer must be
the unintelligible
Z
f g = u( )ea u(t )eb(t ) d .

First, make sketches of the functions f ( ) and g(t ) as varies. Function f ( )


looks just like f (t) of course. But g(t ) is a reflected (time reversed) and
shifted version of g(t). (The reflection is easy enough. To check that the shift
is correct, ask yourself where does the function g(p) drop? The answer is at
p = 0. So g(t ) must drop when t = 0, that is when = t.)

f( ) g( ) g( ) g(t )


0 0 0 0 t

(a) (b) (c) (d)
Figure 3.3:

We now multiply the two functions, BUT we must worry about the fact that t is
a variable. In this case there are two different regimes, one when t < 0 and the
other when t 0. Figure 3.4 shows the result.
So now to the integration. For t < 0, the function on the bottom left of Figure
3.4 is everywhere zero, and the result is zero. For t 0
Z Z t
a b(t ) bt (ba) ebt  (ba)t 
u( )e u(t )e d = e e d = e 1
0 ba
3/6

g(t ) f( ) g(t ) f( )


t 0 0 t

f( ) g(t ) f( ) g(t )

t <0 t >0


0 t 0 t
Figure 3.4:

So
eat ebt /(b a) for t 0
 
f g(t) =
0 for t < 0
It is important to realize that the function at the bottom right of Figure 3.4 is
NOT the convolution. That is the function you are about to integrate over for a
particular value of t. Figure 3.5 shows the t > 0 part of the convolution for b = 2
and a = 1.
0.25
(exp(-x)-exp(-2*x))

0.2

0.15

0.1

0.05

0
0 1 2 3 4 5 6

Figure 3.5: f g(t) plotted for t > 0 when b = 2 and a = 1.


3/7

3.4.2 Example 2
[Q] Derive an expression for the convolution of an arbitrary signal f (t) with the
function g(t) shown in the figure. Determine the convolution when f (t) = A, a
constant, and when f (t) = A + (B A)u(t).
[A] Follow the routine. Function f ( ) looks exactly like f (t), but g(t ) is
reflected and shifted. Multiply and integrate over from to . Because g
only has finite range, we can pinch in the limits of integration, and the convolution
becomes
Z t Z t+a
f g = f ( )d + f ( )d
ta t

g(t) f(t) g(t )


f(t) 1
a t 1
a ta t
t
1 t t+a
1

Figure 3.6:

When f (t) = A, a constant, it is obvious by inspection that the convolution is zero


for all t. When f (t) = A + (B A)u(t), we have to be more careful because
there is a discontinuity in the function.
From Figure 3.7(a):
The convolution is zero for all t < a and all t > a (Diagram positions
1,2,5).
The maximum value is when t = 0 (Position 4). By inspection, or using the
integrals above, (f g)(t = 0) = a(B A).
For a < t < 0, (Position 3)
Z t Z 0 Z t+a
f g = (A)d + Ad + Bd = aA+tA+(t+a)B = (a+t)(BA)
ta t 0
showing that the increase in correlation value is linear. Symmetry tells us that
the decrease for 0 < t < a will also be linear.
One can see from Figure 3.7(b) that this convolution provides a rudimentary de-
tector of steps in the signal. The maximum in the correlation is proportion to the
step size, and would go negative if the step was downwards.
3/8

g(t ) f( ) f( ) g(t )
B f *g a(BA)
A
t
2a a 0 0 a 0 a a a
1: t<a 2: t=a 3: a<t<0 4: t=0 5: t>a
(a) (b)
Figure 3.7:

3.5 The Impulse Response Function


You are very used to describing systems using the transfer function in the frequency
domain. So used to it in fact, that you may have forgotten to wonder why cant
we describe a systems response in the time domain? The answer is You can, but
you didnt know about convolution until now.
In the time domain, a system is described by its Impulse Response Function
h(t). This function literally describes the response of system at time t to an unit
impulse or -function input administered at time t = 0.
Suppose that now is time t, and you administered an impulse to the system at
time in the past. The response now is y (t) = h(t ).

Whack Succession of whacks


Now x(t)

t t
0 t

Figure 3.8:

Suppose you administered a succession of impulses of different strengths x. The


portion dy (t) of the response due to impulse a time earlier is
dy (t) = x( )h(t )d ,
so that the total response now is
Z t
y (t) = x( )h(t )d ,

where all t.
3/9

Now suppose that h is causal. If > t then h(t ) = 0, and therefore, provided
h(t) is causal,
the time response y (t) to an input x(t) is
Z
y (t) = x( )h(t )d = x h .

The output is the input CONVOLVED with the Impulse Response


Function.

3.6 How do we connect this up ...


Can we reconcile the following things you now know about systems and signals?

1. The temporal output is the temporal input CONVOLVED with the Impulse
Response Function.

2. The frequency domain output is the frequency domain input MULTIPLIED


by the Transfer Function.

3. The frequency domain signal is the Fourier Transform of the temporal signal

Mathematically, it must be that the FT of a convolution is a product.

y (t) = x(t) h(t)



FT FT
? ?
Y () = X()H()

3.7 The Fourier Transform of a Convolution


To prove this we need to develop the integration for the Fourier Transform of a
convolution. Now x h is a perfectly respectable function of t, so
Z
FT [x h] = [(x h)(t)] eit dt
Zt=
Z
= x( )h(t )d eit dt
t= =
3/10

For absolute clarity, lets switch the order of integration, then write t = + p. In
the inner integral is a constant, so that dt = dp.
Z Z
FT [x h] = x( )h(t )eit dtd
Z =
Zt=

= x( )h(p)ei eip dpd
Z =

p=
Z
i
= x( )e d h(p)eip dp
= p=
= FT [x] FT [h]
= X() H()

So, the first important thing we discover is

The time-convolution/frequency-modulation property of Fourier


transform
f (t) g(t) F ()G()
or FT [f (t) g(t)] = FT [f (t)] FT [g(t)] = F ()G()

3.8 Impulse response and Transfer Function


The second important connection is that
The Fourier Transform of the Impulse Response Function is the Trans-
fer Function
h(t) H()
or FT [h(t)] = H()
3/11

x(t) *h(t) y(t)

X( ) H( ) Y( )

Figure 3.9:

3.9 The time-modulation/frequency-convolution property


There is a further result involving convolution that we state now.

The modulation/convolution property of Fourier transform


1
f (t)g(t) F () G()
2

3.10 Example1
[Q1] Show that (t) f (t) = f (t).
R
[A1] One could do this the long way by writing f ( )(t )d , etc, but a
quicker way is to argue that

FT [(t) f (t)] = FT [(t)] FT [f (t)] = 1 . F ()


1
FT [FT [(t) f (t)]] = FT 1 [F ()]
(t) f (t) = f (t)

We could also show that f (t) (t ) = f (t ) .

Both of these are manifestations of the

Sifting property of -functions

f (t) (t ) = f (t )
3/12

Previously this was expressed as an integral but we now recognize that integral
as the convolution integral!
3/13

3.11 More examples


[Q2] Convolve the two top hat functions f (t) and g(t) shown in below, and plot
the resulting convolved signal r (t). Find its Fourier Transform R().

f(t) g(t)
2
1

a a a/2 a/2

Figure 3.10:

[A2] Plotted below as functions of are f ( ), the reversed and shifted g(t )
for t = 3a/2, 3a/2 < t < a/2 and t = a/2, and the resulting f ( )g(t ).

g(t ) f( ) fg

1

t a a
g(t ) f( ) fg

1

t a a a t+a/2
g(t ) f( ) fg

1

a t a a 0

Figure 3.11:

From the plots it is obvious that

for all t < 3a/2 f g is zero, so the convolution integral is zero.


For 3a/2 < t < a/2 the integral is
Z t+a/2  
3a
2d = 2 t + .
a 2
3/14

At t = a/2 there is complete overlap, at which point the integral is 2a.


It will continue constant at 2a until t = 0.
The convolution has even symmetry.
The result is given in Figure 3.12.

f(t) * g(t)
2a

3a/2 a/2 0 a/2 3a/2

Figure 3.12:

To find the Fourier transform of this convolution, we can use f g F ()G().


Function f (t) is a top hat of height 1, but its width is 2a. We can use the
Parameter Scaling Property from Lecture 2 that says if
1  
If f (t) F () then FT [f (t)] = F
||
We have to be VERY careful. It is tempting to say that because our function is 2
times wider than the standard top hat, the scaling must be 2. WRONG!
The scaling is = 1/2. For the unit top-hat of half-width a/2
2  a   a 
() = sin = a sinc .
2 2
So for our parameter scaled version
   
1 2 2a 2  a 
F () = =2 sin = sin (a) = 2a sinc .
|(1/2)| (1/2) 2 2
Function g(t) is a top hat of height 2 and half-width a/2. From Lecture 2, Section
2.4,
4  a   a 
G() = 2() = sin = 2a sinc .
2 2
So the Fourier Transform of the convolution is
8  a 
2
 a   a 
FT [f g] = 2 sin (a) sin = 4a sinc sinc .
2 2
3/15

[Q3] A signal f (t) is amplitude modulated by cos 0 into a signal y (t). Find the
resulting Fourier Transform Y () in terms of F ().
[A3] We could use the method given in Lecture 2 Amplitude modulation by a
cosine. Instead, lets use the property at Section 3.6 of this Lecture.
1
f (t)g(t) F () G()
2
where our g(t) = cos 0 t. By writing
1 i0 t
e + ei0 t

cos 0 t =
2
one can determine that
FT [cos 0 t] = (( + 0 ) + ( 0 )) .

(+ 0 ) ( 0 )


0 0

Hence Figure 3.13: Frequency spectrum of cos 0 t

1
FT [f (t) cos 0 t] = F () (( + 0 ) + ( 0 ))
2
1
= (F ( + 0 ) + F ( 0 ))
2

So suppose f (t) had a amplitude spectrum as sketched below. After amplitude


modulation, the amplitude spectrum would split into two parts.

F( ) Cosine F( )
Modulation

0 0 0 0

Figure 3.14: An amplitude spectrum split into two by modulation with a cosine wave.
3/16

3.12 Summary
We started by developing the definition of the unit delta function (t). Although
this is an infinitely high spike, it is also infinitely narrow, so that the integral over
it is unity.
The delta function was more formally defined via its sifting properties.
We looked at properties of the delta function and at Fourier transforms that involve
the delta function
We then defined the convolution integral, and looked at how to lay out the
integral graphically.
We defined the Impulse Response function and showed that the temporal output
of a system is the temporal input convolved with the input.
Finally, by showing that the FT of a convolution of two temporal function is the
product of their individual FTs, we found that our old friend the Transfer Function
is the Fourier Transform of the Impulse Response.

You might also like