Docsity

Fourier Analysis: Understanding Fourier Series and Discrete Fourier Transform, Slides of Electrical Engineering

Partial preview of the text

Download Fourier Analysis: Understanding Fourier Series and Discrete Fourier Transform and more Slides Electrical Engineering in PDF only on Docsity!

FOURIER ANALYSIS

PART 1: Fourier Series

TOPICS

1. Frequency analysis: a powerful tool

2. A tour of Fourier Transforms

3. Continuous Fourier Series (FS)

4. Discrete Fourier Series (DFS)

5. Example: DFS by DDCs & DSP

Fourier analysis - applications

Applications wide ranging and ever present in modern life

  • Telecomms - GSM/cellular phones,
  • Electronics/IT - most DSP-based applications,
  • Entertainment - music, audio, multimedia,
  • Accelerator control (tune measurement for beam steering/control),
  • Imaging, image processing,
  • Industry/research - X-ray spectrometry, chemical analysis (FT

spectrometry), PDE solution, radar design,

  • Medical - (PET scanner, CAT scans & MRI interpretation for sleep

disorder & heart malfunction diagnosis,

  • Speech analysis (voice activated “devices”, biometry, …).

Fourier analysis - tools

Input Time Signal Frequency spectrum

  

N 1

n 0

N

j^2 πkn s[n]e N

1 ck ~

Discrete

Periodic DFS Discrete

(period T)

DTFT^ Continuous

Aperiodic

DFT Discrete

e j^2 πfn n

S(f) s[n] 





0 0.5^1

1.5^2

2.

(^0 2 4) time, t (^6) k 8 10 12

0.5 0

1.5 1

2.5 2

(^0 1 2) time, t 3 4 5 6 7 8 k

  

N 1

n 0

N

j^2 πkn s[n]e N

1 ck ~

Calculated via FFT

dt

j2πft S(f) s(t)e ^  

dt

T

0

s(t) e jkωt T

1

c k 

Periodic     (period T)

Discrete

Aperiodic FT Continuous

FS

Continuous

0 0.5^1

1.5^2

2.

(^0 1 2) time, t 3 4 5 6 7 8

0.5 0 1 1.5^2

2.

(^0 2 4) time, t 6 8 10 12

Note: j =-1,= 2/T, s[n]=s(tn), N = No. of samples

A little history -

19 th^ / 20th^ century : two paths for Fourier analysis - Continuous & Discrete.

CONTINUOUS

 Fourier extends the analysis to arbitrary function (Fourier Transform).

 Dirichlet, Poisson, Riemann, Lebesgue address FS convergence.

 Other FT variants born from varied needs (ex.: Short Time FT - speech analysis).

DISCRETE: Fast calculation methods (FFT)

1805 - Gauss, first usage of FFT (manuscript in Latin went unnoticed!!! Published 1866).

1965 - IBM’s Cooley & Tukey “rediscover” FFT algorithm ( “An algorithm for the machine calculation of complex Fourier series” ).

 Other DFT variants for different applications (ex.: Warped DFT - filter design & signal compression).

 FFT algorithm refined & modified for most computer platforms.

Fourier Series (FS)

***** see next slide

A periodic function s(t) satisfying Dirichlet’s conditions ***** can be expressed

as a Fourier series, with harmonically related sine/cosine terms.

^ 

 

     k 1

s(t) a 0 ak cos(kωt) bk sin(kωt)

a 0 , ak, bk : Fourier coefficients.

k : harmonic number, For all t but discontinuities T : period,  = 2/T

Note: {cos(kωt), sin(kωt) }k form orthogonal base of function space.

 

T

0

s(t)dt T

1 a 0

  

T

0

s(t) sin(kωt)dt T

2

  • bk

  

T

0

s(t)cos(kωt)dt T

2 ak

(signal average over a period, i.e. DC term & zero-frequency component.)

FS analysis - 1

*** Even & Odd functions**

Odd : s(-x) = -s(x)

x

s(x)

s(x)

x

Even :

s(-x) = s(x)

FS of odd * function: square wave.

-1.

-

-0.

0

0.

1

1.

(^0 2 4 6 8 10) t

square signal, sw(t)

0

π

0

2 π

π

dt ( 1)dt 2 π

1 a 0  

 



 

0

π

0

2 π

π

cosktdt coskt dt π

1 ak  

 



 

   

  

 



 

     1 coskπ

k π

π ... 2

0

2 π

π

sinktdt sinkt dt π

1

  • bk

 

  

   0 , k even

,kodd k π

4

T  2 π ω 1

(zero average)

(odd function)

sin 5 t ... 5 π

4 sin 3 t 3 π

4 sint π

4 sw(t)    

   

  

FS analysis - 2

  • π/

f 1 3f 1 5f 1 f

f 1 3f 1 5f 1 f

rk

θk

4/π 4/3π

fk=k /2

rK = amplitude,  K = phase

rk k ak

bk k = arctan(bk/ak)

rk = ak^2 + bk^2

zk = (rk , k)

vk = rk cos (k t +  k )

Polar

Fourier spectrum representations

 k 0

s(t) vk(t)

Rectangular

vk = ak cos(k t) - bk sin(k t)

4/π

f 1 2f 1 3f 1 4f 1 5f 1 6f 1 f

f 1 2f 1 3f 1 4f 1 5f 1 6f 1 f

4/3π

ak

-bk

Fourier spectrum of square-wave.

Gibbs phenomenon

-1.

-

-0.

0

0.

1

1.

0 2 4 6 8 10 t

square signal, sw(t)

^ 

 

79

k 1

sw 79 (t) -bk sin(kt)

Overshoot exist @

each discontinuity

  • Max overshoot pk-to-pk = 8.95% of discontinuity magnitude.

Just a minor annoyance.

  • FS converges to (-1+1)/2 = 0 @ discontinuities, in this case.
  • First observed by Michelson, 1898. Explained by Gibbs.

FS time shifting

-1.

-

-0.

0

0.

1

1.

(^0 2 4 6 8 10) t

square signal, sw(t)

FS of even function: 

/2-advanced square-wave

π

f 1 3f 1 5f 1 7f 1 f

f 1 3f 1 5f 1 7f 1 f

rk

θk

4/π

4/3π

a 0  0

  • bk 0

 

 

0 , k even.

, kodd, k 3,7,11... k π

4

, kodd, k 1,5,9... k π

4

ak

(even function)

(zero average)

Note: amplitudes unchanged BUT

phases advance by k/2.

FS properties

Time Frequency

* Explained in next week’s lecture

Homogeneity a·s(t) a·S(k)

Additivity s(t) + u(t) S(k)+U(k)

Linearity a·s(t) + b·u(t) a·S(k)+b·U(k)

Time reversal s(-t) S(-k)

**Multiplication *** s(t)·u(t)

**Convolution *** S(k)·U(k)

Time shifting

Frequency shifting S(k - m)



 m

S(k m)U(m)

t)dt

T

s(t t) u( T

e T S(k)

2 πkt j 

 

T s(t)

2 πmt j e 

s(tt)

FS - “oddities”

k = - , … -2,-1,0,1,2, …+ , ωk = kω, k = ωkt, phasor turns anti-clockwise.

Negative k  phasor turns clockwise (negative phase k ), equivalent to negative time t,

 time reversal.

Negative frequencies & time reversal

Fourier components {uk} form orthonormal base of signal space:

uk = (1/T) exp(jkωt) (|k| = 0,1 2, …+) Def.: Internal product :

uk  um = δk,m (1 if k = m, 0 otherwise). (Remember (ejt)* = e-jt^ )

Then ck = (1/T) s(t)  uk i.e. (1/T) times projection of signal s(t) on component uk

Orthonormal base

T

o

uk um uk umdt

Careful : phases important when combining several signals!

FS of main waveforms

Discrete Fourier Series (DFS)

N consecutive samples of s[n] completely describe s in time or frequency domains.

DFS generate periodic ck

with same signal period

N 1

k 0

N

2 πkn j s[n] c~k e

Synthesis: finite sum  band-limited s[n]

Band-limited signal s[n], period = N.

δk,m

N 1

n 0

N

2 πn(k-m) j e N

1 

Kronecker’s delta

Orthogonality in DFS:

N 1

n 0

N

2 πkn j s[n] e N

ck

Note: ck+N = ck  same period N

i.e. time periodicity propagates to frequencies!

DFS defined as: