Docsity

Topic 3 The δ-function & convolution. Impulse response ..., Exams of Differential and Integral Calculus

Toggle sidebar
bg1
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
g(t) = 1/w 0< t < w
0 otherwise
One thing of note about g(t) is that
Zw
0−
g(t)dt = 1.
The lower limit 0−is a infinitesimally small amount less than zero. Now, suppose
that the width wgets 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∞
−∞
δ(t)dt=Z0+
0−
δ(t)dt= 1
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Topic 3 The δ-function & convolution. Impulse response ... and more Exams Differential and Integral Calculus in PDF only on Docsity!

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

g(t) =

1 /w 0 < t < w 0 otherwise

One thing of note about g(t) is that ∫ (^) w

0 −

g(t)dt = 1.

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 ∫ (^) ∞

−∞

δ(t)dt =

0 −

δ(t)dt = 1

1

1/ w

0 w

g(t)

δ (t)

(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 ∫ (^) t

−∞

δ(t)dt = u(t).

More formally the delta function is defined in association with any arbitrary function f (t), as

The delta function ... ∫ (^) ∞

−∞

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 ∫ (^) ∞

−∞

f (t)δ(t − τ )dt = f (τ ) ,

a result that we will return to.

0

f(t)^ δ^ (t)

0

f(t)

δ (t− τ )

τ

t

δ (t− τ^ )

0 τ

t

A

(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 spike with an amplitude A by it. This is to denote a delta-function where

−∞ δ(t)dt^ = 1 or^

−∞ Aδ(t)dt^ =^ A.

3.3 Fourier Transforms that involve the δ-function

Fourier Transform of eiω^0 t

FT

[

eiω^0 t^

]

−∞

ei(ω^0 −ω)t^ dt = 2πδ(ω − ω 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

FT [cos ω 0 t] = FT

[

eiω^0 t^ + e−iω^0 t^

]

= π (δ(ω − ω 0 ) + δ(ω + ω 0 )).

Fourier Transform of sin ω 0 t

FT [cos ω 0 t] = FT

[

2i

eiω^0 t^ − e−iω^0 t^

]

= −iπ (δ(ω − ω 0 ) − δ(ω + ω 0 )).

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

FT

[ (^) n=∞ ∑

n=−∞

Cneinω^0 t

]

= 2π

n∑=∞

n=−∞

Cnδ(ω − nω 0 ).

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

(f ∗ g)(t) =

−∞

f (τ )g(t − τ )dτ

The process is commutative, which means that

(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)e−at^ with g(t) = u(t)e−bt^ , where both a and b are positive.

[A] Using the first form of the convolution integral, the “short” answer must be the unintelligible

f ∗ g =

−∞

u(τ )e−aτ^ u(t − τ )e−b(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.)

0

τ

f( τ ) g( τ)

0

τ

→

τ

g(− τ )

0 →^0

τ

g(t− τ )

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 ∫ (^) ∞

−∞

u(τ )e−aτ^ u(t −τ )e−b(t−τ^ )dτ = e−bt

∫ (^) t

0

e(b−a)τ^ dτ =

e−bt b − a

e(b−a)t^ − 1

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

f ∗ g = −

∫ (^) t

t−a

f (τ )dτ +

∫ (^) t+a

t

f (τ )dτ

f(t)

t

g(t)

a t −a

1

−

f(t)^ g(t−^ τ^ )

t

1

−

t+a

t−a (^) τ t

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)

f ∗g = −

∫ (^) t

t−a

(A)dτ +

t

Adτ +

∫ (^) t+a

0

Bdτ = −aA+−tA+(t+a)B = (a+t)(B−A)

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.

g(t− τ )

4: t=

f( τ ) f( τ ) g(t− τ )

A

B

−2a −a 0 0 −a 0 a 1: 2: t=−a 3: −a<t<0 5: t>a

τ τ τ

t<−a

f (^) * g

t

−a a

a(B−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 can’t we describe a system’s response in the time domain? The answer is You can, but you didn’t 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 − τ ).

t 0

Now

t

Whack

t

x(t)

Succession of whacks

τ

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

y (t) =

∫ (^) t

−∞

x(τ )h(t − τ )dτ ,

where all τ ≤ t.

For absolute clarity, let’s switch the order of integration, then write t = τ + p. In the inner integral τ is a constant, so that dt = dp.

FT [x ∗ h] =

τ =−∞

t=−∞

x(τ )h(t − τ )e−iωt^ dtdτ

τ =−∞

p=−∞

x(τ )h(p)e−iωτ^ e−iωpdpdτ

τ =−∞

x(τ )e−iωτ^ dτ

p=−∞

h(p)e−iωpdp

= 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(ω)

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

f (t)g(t) ⇔

2 π

F (ω) ∗ G(ω)

3.10 ♣ Example

[Q1] Show that δ(t) ∗ f (t) = f (t).

[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 (ω) ⇒ FT −^1 [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.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(ω).

1

−a a

f(t) 2

−a/2 a/

g(t)

Figure 3.10:

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

g(t− τ )

1

a

f( τ )

τ t −a

g(t− τ )

1

−a a

f( τ )

τ t

g(t− τ )

1

−a a

f( τ )

τ t

−a t+a/

−a 0

fg

fg

fg

Figure 3.11:

From the plots it is obvious that

  • for all t < − 3 a/ 2 f g is zero, so the convolution integral is zero.
  • For − 3 a/ 2 < t < −a/2 the integral is ∫ (^) t+a/ 2

−a

2dτ = 2

t +

3 a 2

  • 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.

2a

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

f(t) g(t)

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

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

Π(ω) =

ω

sin

(ωa

2

= a sinc

(ωa

2 π

So for our parameter scaled version

F (ω) =

ω (1/2)

2 ω

sin

2 ωa 2

ω

sin (ωa) = 2a sinc

(ωa

π

Function g(t) is a top hat of height 2 and half-width a/2. From Lecture 2, Section 2.4,

G(ω) = 2Π(ω) =

ω

sin

(ωa

2

= 2a sinc

(ωa

2 π

So the Fourier Transform of the convolution is

FT [f ∗ g] =

ω^2

sin (ωa) sin

(ωa

2

= 4a^2 sinc

(ωa

2 π

sinc

(ωa

π

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.