37
Frequency Response and Continuous-time Fourier Series

Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Embed Size (px)

Citation preview

Page 1: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Frequency Response andContinuous-time Fourier Series

Page 2: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Recall course objectives

Main Course Objective:Fundamentals of systems/signals interaction

(we’d like to understand how systems transform or affect signals)

Specific Course Topics:-Basic test signals and their properties-Systems and their properties-Signals and systems interaction

Time Domain: convolutionFrequency Domain: frequency response

-Signals & systems applications:audio effects, filtering, AM/FM radio

-Signal sampling and signal reconstruction

Page 3: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

CT Signals and Systems in the FD -part I

GoalsI. Frequency Response of (stable) LTI systems

-Frequency Response, amplitude and phase definition-LTI system response to multi-frequency inputs

II. (stable) LTI system response to periodic signals in the FD

-The Fourier Series of a periodic signal-Periodic signal magnitude and phase spectrum-LTI system response to general periodic signals

III. Filtering effects of (stable) LTI systems in the FD

- Noise removal and signal smoothing

Page 4: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Frequency Response of LTI systems

We have seen how some specific LTI system responses (the IR andthe step response) can be used to find the response to the systemto arbitrary inputs through the convolution operation.

However, all practical (periodic or pulse-like) signals that can begenerated in the lab or in a radio station can be expressed assuperposition of co-sinusoids with different frequencies, phases,and amplitudes. (An oscillatory input is easier to reproduce in thelab than an impulse delta, which has to be approximated.)

Because of this, it is of interest to study (stable) LTI systemresponses to general multi-frequency inputs. This is whatdefines the frequency response of the system.

We will later see how to use this information to obtain theresponse of LTI systems to (finite-energy) signals (usingFourier and Laplace transforms)

Page 5: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response of Systems to Exponentials

Let a stable LTI system be excited by an exponential input

Here, and can be complex numbers!

From what we learned on the response of LTI systems:

The response to an exponential is another exponential

Problem: Determine

!

x(t) = Ae"t

!

B

!

!

"

!

A

!

y(t) = Be"t

!

x(t) = Ae"t

Page 6: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response of Systems to Exponentials

Consider a linear ODE describing the LTI system as

Let andSubstituting in the ODE we see that

The proportionality constant is equal to the ratio:

!

B

A=

bk"k

k= 0

M

#

ak"k

k= 0

N

#=bM"M + ....+ b

2"2 + b

1" + b

0

aN"N + ....+ a

2"2 + a

1" + a

0

!

akdky(t)

dtk

=k= 0

N

" bkdkx(t)

dtk

k= 0

M

"

!

x(t) = Ae"t

!

y(t) = Be"t

!

Be"t

ak"k =

k= 0

N

# Ae"t

bk"k

k= 0

M

#

!

"

!

B =

bk"k

k= 0

M

#

ak"k

k= 0

N

#A

Page 7: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response of Systems to Exponentials

Surprise #1:

The ratio

where

is the Transfer Function which we have obtained beforewith Laplace Transforms!

!

B

A= H(")

!

H(s) =bMsM

+ ....+ b2s2

+ b1s+ b

0

aNsN

+ ....+ a2s2

+ a1s+ a

0

Page 8: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response of Systems to Exponentials

Surprise #2:

Ifusing linearity

With bit of complex algebra we write

and the response

where

!

x(t) = Acos("t) = A ej"t + e# j"t( ) /2

!

y(t) = H( j")e j"t + H(# j")e# j"t( ) /2

!

H( j") = Bej#

!

B = H( j")

!

" =#H( j$)

!

H(" j#) = Be" j$

!

y(t) = Bej"t+# + Be$ j"t$#( ) /2 = Bcos( j"t + #)

Page 9: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response of Systems to Exponentials

The ratio

is called the Frequency Response

Observe that is a complex function of

We can graph the FR by plotting:

its rectangular coordinates , against

or its polar coordinates , against

Polar coordinates are usually more informative

!

B

A= H( j") =

bM ( j")M

+ ....+ b2( j")2 + b

1( j") + b

0

aN ( j")N

+ ....+ a2( j")2 + a

1( j") + a

0

!

H( j")

!

|H( j") |

!

"

!

H( j") = Re(H( j"))+ j Im(H( j"))

!

Re H ( j" )

!

Im H ( j" )

!

"

!

"H ( j# )

!

"

Page 10: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Frequency Response Plots

Compare rectangular (left) versus polar (right) plots

Polar: only low frequency co-sinusoids are passed, the shift inphase is more or less proportional to frequency

Rectangular: contains the same information as polarrepresentation. More difficult to see what it does to co-sinusoids. Mostly used in computer calculations

Page 11: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

System classification according to FR

Depending on the plot of we will classify systems into:

Low-pass filters: for (*)

High-pass filters: for

Band-pass filters: for and

In order to plot the logarithmic scale is frequently used.This scale defines decibel units

(here we use log_10)

(*) these plots correspond to the so-called ideal filters, becausethey keep exactly a set of low, high, and band frequencies

!

|H(") |

!

|H( j") |# 0

!

|" |> K

!

|H( j") |# 0

!

|" |< K

!

|H( j") |# 0

!

|" |< K1

!

|" |> K2

!

|H( j") |

!

|H( j") |dB= 20log |H( j") |

!

|H(") |

!

|H(") |

!

|H(") |

!

"

!

"

!

"

Page 12: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

dB representation of Frequency Response

A plot in dB makes it possible to see small values of the FRmagnitude . This is important when we want tounderstand the quality of the filter. In particular we canobserve the critical values of the frequency for which thecharacter of the filter changes.

Example: Linear plot of the low-pass filter!

|H( j") |

!

H( j") =1

1+ j"

Page 13: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

dB representation of Frequency Response

The same function in dB units has a plot:

Page 14: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

dB representation of Frequency Response

Linear plot of the low-pass filter

!

H( j") =1

(1+ j")(100 + j")

Page 15: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

dB representation of Frequency Response

… and the plot of the same filter in dB:

Page 16: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response of Systems to Co-sinusoids

The FR of an LTI system has the following properties:

Because of this, the response of the LTI system to real sinusoidor co-sinusoid is as follows:

Knowledge of is enough to know how the systemresponds to real co-sinusoidal signals

This property is what allows compute the FR experimentally

!

|H(" j#) |=|H( j#) |

!

"H(# j$) = #"H( j$)

!

cos("t + #)

!

|H( j") | cos("t + # +$H( j"))

!

H( j")

Page 17: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Response to system to multi-frequency inputs

Use linearity to generalize the response of stable LTIsystems to multi-frequency inputs

The system acts on each cosine independently

!

y(t) = A1 |H( j"1) | cos("1t + #1 +$H( j"1))

+ A2 |H( j"2) | cos("2t + #2 +$H( j"2))

!

x(t) = A1cos("

1t + #

1)

+ A2cos("

2t + #

2)

Page 18: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

CT Signals and Systems in the FD -part I

Goals

I. Frequency Response of (stable) LTI systems

-Frequency Response, amplitude and phase definition -LTI system response to multi-frequency inputs

II. (stable) LTI system response to periodic signals in the FD-The Fourier Series of a periodic signal-Periodic signal magnitude and phase spectrum-LTI system response to general periodic signals

III. Filtering effects of (stable) LTI systems in the FD

- Noise removal and signal smoothing

Page 19: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Signal decompositions in the TD and FD

In the Time Domain, a signal is decomposed as a “sum” of timeshifted and amplified rectangles

In the Frequency Domain, a signal is decomposed as a “sum” of timeshifted and amplified co-sinusoids

A Frequency Domain representation of a signal tells you how muchenergy of the signal is distributed over each cosine/sine

The different ways of obtaining a FD representation of a signalconstitute the Fourier Transform

There are 4 categories of Fourier Transforms, and we will study 2:Fourier Series: for periodic, analog signalsFourier Transform: for aperiodic, analog signals

The other 2 categories are for discrete-time signals

Page 20: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Fourier Series of periodic signals

Let be a “nice” periodic signal with period

Using Fourier Series it is possible to write as

The coefficients are computed from the originalsignal as

is the harmonic function, and is the harmonic number

!

x(t)

!

T0

!

x(t) = X[k]ejk"0t

k=#$

$

%!

x(t)

!

"0

=2#

T0

!

X[k] =1

T0

x(t)e" jk#0tdt

0

T0

$!

X[k]

!

X[k]

!

k

Page 21: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Fourier Example

Square wave

Compute coefficients

!

x(t) =0, 0 < t < 0.5

1, 0.5 < t <1

" # $

!

X[0] =1

1x(t)1dt = 0.5

0

1

"

!

X[k] = x(t)e" jk2#t

dt = e" jk2#t

dt =1

" j2k#e" jk2# " e" jk#( )

0.5

1

$0

1

$

=j

k#, k odd

0, k even

%

& '

( '

!

k = ...,"2,"1,1,2,...

Page 22: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Fourier Example

!

x(t) = 0.5 +j

(2k "1)#ej (2k"1)2#t

k=1

$

% +" j

(2k "1)#e" j (2k"1)2#t

k=1

$

%

= 0.5 "2

(2k "1)#sin 2# (2k "1)t( )

k=1

$

%

Square wave

Page 23: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series
Page 24: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

“Proof” of Fourier Series

Fact #1: For any integer

if , and if

Proof: If a Fourier Series exists then

Multiply by on both sides

!

e" ji#

0tdt

0

T0

$ = 0

!

e" ji#

0tdt

0

T0

$ = T0

!

i = 0

!

i " 0

!

i

!

x(t) = X[i]eji"0t

i=#$

$

%

!

x(t)e" jk#0t = X[i]e

ji#0te" jk#0t =

i="$

$

% X[i]ej(i"k )#0t

i="$

$

%!

e" jk#

0t

Page 25: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

“Proof” of Fourier Series

Proof (continued):Integrate over a period on both sides

and use Fact #1 to show that

which leads to the Fourier formula

!

x(t)e" jk#0tdt

0

T0

$ = X[i] ej( i"k )#0tdt

0

T0

$i="%

%

&

!

X[i] ej( i"k )#0tdt

0

T0

$i="%

%

& = T0X[k]

!

X[k] =1

T0

x(t)e" jk#0tdt

0

T0

$

Page 26: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Graphical description of a periodic signal as afunction of frequency

The Frequency Domain graphical representation of a periodic signal is aplot of its Fourier coefficients (FC)

Since the coefficients are in general complex numbers, the (polar)representation consists of:

1) a plot of for different (the magnitude spectrum)

2)a plot of for different (the phase spectrum)

The magnitude spectrum tells us how many frequencies are necessary to obtain a good approximation of the signalSquare wave: most of the signal can be approximated using low

frequencies, however discontinuities translate into lots of highfrequencies

!

| X[k] |

!

k

!

"X[k]

!

k

Page 27: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

System response to periodic signal

To find the response of an (stable) LTI system on aperiodic signal of period :

We use the system FR and change each signalfrequency component as follows:!

X[k] =1

T0

x(t)e" jk#0tdt

0

T0

$ , k = ...,"2,"1,0,1,2,...

!

y(t) = H(kj"0)X[k]e

jk"0t

k=#$

$

% = H[k]X[k]ejk"0t

k=#$

$

%

!

x(t) = X[k]ejk"0t

k=#$

$

%

!

"0

=2#

T0

= 2#f0

!

T0

!

y(t) = X[k] |H(kj"0) | ej(k"0t+#H (kj"0 ))

k=$%

%

& = | X[k] ||H[k] | ej(k"0t+#H [k ]+#X [k ])

k=$%

%

&

Page 28: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Graphical signal/systems interaction in the FD

In this way, the interaction of periodic signals and systems in the FDcan be seen a simple vector multiplication/vector sum:

Once we havecomputed the signal spectrumand system FR, the magnitude spectrumof the output can be computedin a simple way (compareit with convolution…)The output vector phase corresponds toa vector sum

!

| X[k] |

!

|H[k] |

!

|Y[k] |

!

"

!

=

!

"Y[k] ="X[k]+"H[k]

Page 29: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

CT Signals and Systems in the FD -part I

Goals

I. Frequency Response of (stable) LTI systems

-Frequency Response, amplitude and phase definition-LTI system response to multi-frequency inputs

II. (stable) LTI system response to periodic signals in the FD-The Fourier Series of a periodic signal-Periodic signal magnitude and phase spectrum-LTI system response to general periodic signals

III. Filtering effects of (stable) LTI systems in the FD

- Noise removal and signal smoothing

Page 30: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Noise Removal in the Frequency Domain

From our previous discussion on filters/multi-frequency inputswe observe the following: rapid oscillations “on top” of slowerones in signals can be “smoothed out” with low-pass filters

Example: In the signal the high frequencycomponent is while the low frequency component is

!

x(t) = cos(t /2) + cos("t)

!

cos("t)

!

cos(t /2)

Page 31: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Noise Removal in the Frequency Domain

The response of a low-pass filter to this signal becomes:

The output signal retains the slow oscillation of the input signalwhile almost removing the high-frequency oscillation

!

y(t) = 0.89cos(t /2 " 26.5) + 0.303cos(#t " 72.3)

Page 32: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Noise Removal in the Frequency Domain

A low-frequency periodic signal subject to noise can be seen asa low-frequency cosine superimposed with a high-frequencyoscillation. For example consider the following noisy signal:

Page 33: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Noise Removal in the Frequency Domain

The steady-state response of a low-pass filter (e.g. the RC low-pass filter) to the signal is the following:

(This has exactly the same shape as the uncorrupted signal,and we are able to remove the noise pretty well)

Page 34: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Noise Removal in the Frequency Domain

The use of low-pass filters for noise removal is awidespread technique. Theoretically, we haveseen why this technique works for periodic signals

However, the same technique works for anysignal of finite energy. This is explained throughthe theory of Fourier/Laplace transforms ofsignals and systems that we will see next

Depending of the type of noise and signal, somefilters may work better than others. This leadsto the whole subject of “filter design” in signals andsystems (…)

Page 35: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Noise removal in the Frequency Domain

The problem is that as well as the noise we may find:in audio signals: plenty of other high-frequency contentin image signals: edges contribute significantly to high-frequency components

Thus an “ideal” low-pass filter tends to blur the dataE.g. edges in images can become blurred. Observe theoutput to two different low-pass filters:

This illustrates that one has to be careful in the selection of filter (…)

Page 36: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Summary

Reasons why we study signals in the frequency domain (FD):

(a) Oscillatory inputs and sinusoids are easier to implementand reproduce in a lab than an impulse signals (which usually weneed to approximate) and even unit steps

(b) A pulse-like signal can be expressed as a combination ofco-sinusoids, so if we know how to compute the response to a co-sinusoid, then we can know what is the response to a pulse-likesignal (and to general periodic signals)

(c) Once signals and systems are in the FD, computations toobtain outputs are very simple: we don’t need convolutionanymore! This is one of the reasons why signal processing is mainlydone in the FD. For example, deconvolution (inverting convolutions)is more easily done in the FD

(d) The FD can be more intuitive than the TD. For example,how noise removal works is easier to understand in the FD

Page 37: Frequency Response and Continuous-time Fourier Seriescontrol.ucsd.edu/mauricio/courses/mae143a/lectures/5fourierseries.pdf · Frequency Response and Continuous-time Fourier Series

Summary

Important points to remember:1. The output of (stable) LTI systems to a complex exponential,

sinusoid or co-sinusoid, resp., is again another complexexponential, sinusoid or co-sinusoid, resp.,

2. These outputs can be computed by knowing the magnitude and phase ofthe Frequency Response H(jw) associated with the LTI system

3. Systems can be classified according to their Frequency Response aslow-pass, high-pass or band-pass filters

4. We can approximate a wide class of periodic signals as a sum ofcomplex exponentials or co-sinusoid via a Fourier Series (FS) expansion

5. The FS expansion allows us to see signals as functions of frequencythrough its (magnitude and phase) spectrum

6. A (stable) LTI system acts on each frequency component of the FS ofa periodic signal independently. This leads to fast computations (comparewith a possible convolution… )

7. Low-pass filters are used for signal “smoothing” and noise removal