Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s...

28
1 Fourier Series Fourier Transform Filtering

Transcript of Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s...

Page 1: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

1

Fourier SeriesFourier Transform

Filtering

Page 2: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

2

• Let’s consider a set of orthogonal functions, βi(x)• And a real-valued function f(x)• Then the function f(x) can be represented in terms of βi(x)

• A generalized Fourier Series of f(x)

• αi are called the Fourier constants of f(x)• βi are called a set of “basis” functions• This can be viewed as signal expansions or signal

decomposition

baxxi ,)},({ Îb

i

xxxf

i

iii

++== å¥

=

,0 where

...)()()( 22111

a

bababa

Page 3: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

3

• In real life, however, we cannot represent a function f(x) exactly with the bases

• So we approximate the function with the bases in the mean-squared error sense.

• Find αi such that is minimized => approximation principle

i

xxxxf

i

nn

n

iii

+++== å=

,0 where

)(...)()()( 22111

a

babababa)

2)()( xfxf

)-

Page 4: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

4

Signal Decomposition and Synthesis

Lecture No. 6

Page 5: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

5

Fourier Representation of Signals• Fourier basis

– Orthogonal basis

frequency lfundamenta,

],[,...}cos,sin,...,cos,sin,{

T

Rttktktt

pw

wwww

2

0

1

0

0000

=

Î

k-th harmonics

Page 6: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

6

Basic Idea of Signal Representation

Sum of Fourier basis represents any signal

Page 7: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

7

Fourier Series Approximation

of a Square Wave

Page 8: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

8

Approximating Sawtooth Wave

• First five successive partial Fourier series.

Page 9: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

9

Historical Note• Fourier series and integral is known as a most beautiful (?) development.• It is indispensable in problem solving in math, science, and engineering.• Maxwell once called it a great mathematical poem.• Some key words of Fourier: a tailor’s son, math genius, French Revolution,

Napoleon, Institute of Egypt, Rosetta Stone, …• Fourier claimed that an arbitrary function defined in a finite interval by an

arbitrarily capricious graph can always be expressed as a sum of sinusoids (i.e., Fourier series).

• But Fourier could not publish his results as a paper.• Why? Mostly opposition by Lagrange. Even Fourier unable to prove his

claim because the tools required for operations with infinite series were unavailable at that time.

• Fifteen years later, after several attempts and disappointments, Fourier finally published his results as a text (now it is a classic).

Page 10: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

10

Fourier Representations for Four Classes of Signals

• Describe complicated signals as a function of frequency

• The weight associated with a sinusoid of a given frequency represents the contribution of that sinusoid to the overall signal

• Fourier representations for four classes of signals– Continuous-time, periodic → Fourier Series (F.S.)– Continuous-time, non-periodic → Fourier Transform (F.T.)– Discrete-time (D.T.), periodic → D.T.F.S– Discrete-time, non-periodic → D.T.F.T

Page 11: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

11

Continuous-Time Periodic Signals: The Fourier Series

• Trigonometric Fourier Series: A signal can be constructed as a linear combination of harmonically related sinusoid signals

• CT periodic signals can be represented by the FS

Page 12: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

12

Trigonometric FS• Trigonometric FS for real-valued periodic signals

)(sin][)cos(][]0[)( 01

0 tkkAtkkBBtxk

wwå¥

=

++=

Fourier Coefficients or FS Coefficients (a.k.a a frequency domain representation of x(t))

dttktxT

kA

dttktxT

kB

dttxT

B

T

T

T

)sin()(2][

)cos()(2][

)(1]0[

00

00

0

w

w

ò

ò

ò

=

=

=

Page 13: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

13

Page 14: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

14

Guitar String Harmonics and Chords

• http://www.youtube.com/watch?v=q9D6ceOWa3g

Page 15: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

15

Fourier Spectrum• Compact FS indicates a periodic signal f(x) can be expressed

as a sum of sinusoids of frequencies 0 (i.e., dc), , 2, …, ,… whose amplitude are , , , …, , … and whose phases are 0, , , …, , …

• Amplitude spectrum: vs. • Phase spectrum: vs. • These frequency spectra provide an alternative description of

f(x), the frequency domain description of f(t). • A signal has a dual identity: the time domain identify and its

frequency domain identity.• The two identities complement each other and provide a

better understanding of a signal.

Page 16: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

16

Page 17: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

17

Complex Fourier Series Expansion

tkjtke

jetjk

j

00 sincos

sincos0 ww

qqw

q

+=

+=

Tke tjk pww 2,...,2,1,0},{ 00 ==

åå¥

-¥=

¥

-¥=+==

kk

tjk tkjtkkXekXtx )sin](cos[][)( 000 www

Complex sinusoidsBases

Def.

ò -= T tjk dtetxT

kX 00)(1][ w

Continuous-time periodic signals are represented by the FS

The FS coefficients of the signal x(t)

FS Pair

Page 18: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

18

Magnitude and Phase

c=a+jbMagnitude |c|=sqrt(a2+b2)Phase Arg{c}=arctan(b/a)

c=a+jbIn a polar form c=|c|ejarg{c}

For X[k]|X[k]|=magnitude of spectrum X[k]Arg{X[k]}=phase of X[k] or phase spectrum of X[k]

Page 19: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

19

Why the FS?• In some problems, it is advantageous to represent the

signal in the time domain as x(t), but in others the FS coefficients X[k] offers a more convenient description

• The FS coefficients are known as a frequency-domain representation of x(t) because each FS coefficient is associated with a complex sinusoid of a different frequency

• The variable k determines the frequency of the complex sinusoid associated with X[k].

• The FS representation is used in engineering to analyze the effect of systems on periodic signals.

Page 20: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

20

Discrete-Time Periodic Signals:The Discrete-Time Fourier Series

• A periodic signal x[n] with fundamental period of N and fundamental frequency N

p20 =W

å-

=

W=1

0

0][][N

k

njkekXnx

where å-

=

W-=1

0

0][1][N

k

njkenxN

kX DTFS coefficients of the signal x[n]

No infinity, Why?

Page 21: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

21

Continuous-Time Nonperiodic Signals: The Fourier Transform

- The FT is used to represent a CT nonperiodic signal as a superposition of complex sinusoids- The signal is represented as a weighted integral of complex sinusoids where the variable of integration is the sinusoid’s frequency- An integral over the entire frequency interval

dtetxjX

dejXtx

tj

tj

ò

ò¥¥-

-

¥¥-

=

=

w

w

w

wwp

)()(

)(21)(FT Pair

FT

Inverse FT

- X(jω) describes the signal x(t) as a function of frequency ω- Therefore called as the frequency-domain representation of x(t)

Page 22: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

22

Page 23: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

23

Page 24: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

24

Page 25: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

25

Back to Convolution Properties

)()()(][*][][)()()()(*)()(WWW =Û=

=Û=jjj eXeHeYnxnhny

jXjHjYtxthty www

Filtering

Page 26: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

26

Frequency response of ideal continuous- (left panel) and discrete-time (right panel) filters. (a) Low-pass characteristic. (b) High-pass

characteristic. (c) Band-pass characteristic.

Ideal Filters (1)

Note the difference between and

Page 27: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

27

Ideal Filters (2)• Low-pass filter: filter out high-frequency components of the input.

Passes lower frequency components• High-pass filter: filter out low frequency parts. Passes high frequency

parts• Band-pass filter: passes signals within a certain frequency band

• Pass band=the band of frequencies that are passed by the system• Stop band=the range of frequencies that are attenuated by the system• Decibel (dB)=a common unit for the magnitude response of a filter.

dB=20log|H(jω)|• -3dB corresponds to 1/sqrt(2) of a magnitude response• -3dB corresponds to frequencies of which the filter only passes half of

the input power.

Page 28: Fourier Series Fourier Transform Filteringweb.khu.ac.kr/~tskim/NE Lect 17-2 FT.pdf2 •Let’s consider a set of orthogonal functions, βi(x) •And a real-valued function f(x) •Then

28

Why Elementary Signals & Systems?

Lego Blocks

Systems Systems