SlideShare a Scribd company logo
1 of 31
A presentation on Convolution, Fourier Series, and the
Fourier Transform
By:-
Chandan Kumar (2013UEE1203)
Sunil Kumar Yadav (2013UEE1176)
Pawan Kumar Jangid (2013UEE1166)
Manish Kumar Bagara (2013UEE1180)
Subject:- Network, Signal & Systems
Convolution, Fourier Series, and
the Fourier Transform
Convolution
 A mathematical operator which computes the
“amount of overlap” between two functions.
Can be thought of as a general moving
average
 Discrete domain:
 Continuous domain:
Discrete domain
 Basic steps
1. Flip (reverse) one of the digital functions.
2. Shift it along the time axis by one sample.
3. Multiply the corresponding values of the two digital functions.
4. Summate the products from step 3 to get one point of the
digital convolution.
5. Repeat steps 1-4 to obtain the digital convolution at all times
that the functions overlap.
 Example
Continuous domain example
Continuous domain example
LTI (Linear Time-Invariant) Systems
 Convolution can describe the effect of an LTI
system on a signal
 Assume we have an LTI system H, and its
impulse response h[n]
 Then if the input signal is x[n], the output signal
is y[n] = x[n] * h[n]
Hx[n] y[n] = x[n]*h[n]
Mathematics of Waves
 Periodic phenomena occur everywhere
– vision, sound, electronic communication, etc.
 In order to manipulate physical world, we need
mathematical tools
Fourier Series
 Any reasonable function can be expressed as a
(infinite) linear combination of sines and cosines
F(t) = a0 + a1cos (ωt) + b1sin(ωt) +
a2cos (2ωt) + b2sin(2ωt) + …
=
F(t) is a periodic function with
))sin()cos((0∑
∞
=
+n
nn tnbtna ωω
T
π
ω 2
=
Reasonable?
 F(t) is a periodic function with
 must satisfy certain other conditions
– finite number of discontinuities within T
– finite average within T
– finite number of minima and maxima
T
π
ω 2
=
Calculate Coefficients
∫=
T
k dttktf
T
a
0
)cos()(
2
ω
T
dttf
a
T
∫
= 0
0
)(
∫=
T
k dttktf
T
b
0
)sin()(
2
ω
))sin()cos(()( 0∑
∞
=
+= n
nn tnbtnatF ωω
Example
 F(t) = square wave, with T=1.0s ( )
0.1
2π
ω =
0
1
0 1 2 3 4 5 6 7
Series1
Example
ttF ω
π
sin
4
)( ≈
0
1
0 1 2 3 4 5 6 7
Series1
Series2
Example
ttttF ω
π
ω
π
ω
π
5sin
5
4
3sin
3
4
sin
4
)( ++≈
0
1
0 1 2 3 4 5 6 7
Series1
Series3
Example
 What if
– T = .01s;
– T = .05s;
– T = 50s;
ttttF ω
π
ω
π
ω
π
5sin
5
4
3sin
3
4
sin
4
)( ++≈
ttttF ω
π
ω
π
ω
π
5sin
5
4
3sin
3
4
sin
4
)( ++≈
ttttF ω
π
ω
π
ω
π
5sin
5
4
3sin
3
4
sin
4
)( ++≈
 Time
 Frequency
Time vs. Frequency Domain
0
1
0 1 2 3 4 5 6 7
Series1
Series3
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1w 3w 5w
ttttF ω
π
ω
π
ω
π
5sin
5
4
3sin
3
4
sin
4
)( ++≈
Why Frequency Domain?
 Allows efficient representation of a good approximation
to the original function
 Makes filtering easy
 Note that convolution in the time domain is equivalent
to multiplication in the frequency domain (and vice
versa)
– When you are faced with a difficult convolution (or
multiplication), you can switch domains and do the
complement operation
Fourier Family
Discrete Fourier Transform
 Rarely have closed form equation for F(t)
 Must sample at periodic intervals
– generates a series of numeric values
– apply transform to a time window of values
– N = number of sample points
– x[ ] contains sample points
DFT Notation
 ck[i] and sk [i] are the cosine and sine waves,
each N points in length
– ck is cosine wave for amplitude in ReX[k]
– sk is sine wave for amplitude in ImX[k]
 k refers to the frequency of the wave
– usually between 0 and N/2
)/2sin(][ Nkiisk π=
)/2cos(][ Nkiick π=
Complex exponentials
 Alternatively, we can use complex exponentials
 Euler’s formula: eiw
= cos(w) + i*sin(w)
Calculate DFT
 Separate sinusoids
 Complex exponentials
)/2cos(][][Re
1
0
NkiixkX
N
i
π∑
−
=
=
)/2sin(][][Im
1
0
NkiixkX
N
i
π∑
−
=
−=
Calculate Inverse DFT
 Coefficients first need to be normalized
 With two special cases
2/
][Re
][Re
N
kX
kX =
N
X
X
]0[Re
]0[Re =
2/
][Im
][Im
N
kX
kX −=
N
NX
NX
]2/[Re
]2/[Re =
Calculate Inverse DFT
 Corresponding points within the basis function
contribute to each input value
– Equation uses the normalized coefficients
 Result is exactly equal to original data (within
rounding error), ie IDFT(DFT(x[n])) = x[n]
)/2(sin][Im)/2(cos][Re][
2/
0
2/
0
NkikXNkikXix
N
k
N
k
ππ ∑∑ ==
+=
DCT (Discrete Cosine Transform)
 DCT is very similar to DFT
– Sine wave + phase shift equals cosine wave
– N coefficients of cosine basis functions
– Advantage: Result is purely real
– Most common is “Type II”
– Used in JPEG and MPEG
FFT (Fast Fourier Transform)
 FFT is an efficient algorithm for computing the DFT
– Naïve method for DFT requires O(N2
) operations
– FFT uses divide and conquer to break up problem into many 2-
point DFT’s (which are easy to compute)
– 2-point DFT: X[0] = x[0] + x[1]
X[1] = x[0] – x[1]
– log2N stages, O(N) operations per stage => O(N log N) total
operations
– Ideally, want N to be a power of 2 or close to a power of 2
4-point FFT “butterfly” diagram
Fourier Transform
 Definitions:
 Can be difficult to compute =>
Often rely upon table of transforms
Delta function
 Definition:
 Often, the result of the Fourier Transform needs
to be expressed in terms of the delta function
Fourier Transform pairs
 
 
 
 There is a duality in all transform pairs
Thank You

More Related Content

What's hot

Phase modulation
Phase modulationPhase modulation
Phase modulation
avocado1111
 

What's hot (20)

DSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-TransformDSP_FOEHU - MATLAB 03 - The z-Transform
DSP_FOEHU - MATLAB 03 - The z-Transform
 
Digital Signal Processing[ECEG-3171]-Ch1_L07
Digital Signal Processing[ECEG-3171]-Ch1_L07Digital Signal Processing[ECEG-3171]-Ch1_L07
Digital Signal Processing[ECEG-3171]-Ch1_L07
 
Multirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolationMultirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolation
 
Overview of sampling
Overview of samplingOverview of sampling
Overview of sampling
 
Lecture No:1 Signals & Systems
Lecture No:1 Signals & SystemsLecture No:1 Signals & Systems
Lecture No:1 Signals & Systems
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
 
Error control coding bch, reed-solomon etc..
Error control coding   bch, reed-solomon etc..Error control coding   bch, reed-solomon etc..
Error control coding bch, reed-solomon etc..
 
Convolution
ConvolutionConvolution
Convolution
 
Frequency modulation
Frequency modulationFrequency modulation
Frequency modulation
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
DPCM
DPCMDPCM
DPCM
 
Sns slide 1 2011
Sns slide 1 2011Sns slide 1 2011
Sns slide 1 2011
 
Signal and System, CT Signal DT Signal, Signal Processing(amplitude and time ...
Signal and System, CT Signal DT Signal, Signal Processing(amplitude and time ...Signal and System, CT Signal DT Signal, Signal Processing(amplitude and time ...
Signal and System, CT Signal DT Signal, Signal Processing(amplitude and time ...
 
digital filter design
digital filter designdigital filter design
digital filter design
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
 
Solved problems
Solved problemsSolved problems
Solved problems
 
Chapter1 - Signal and System
Chapter1 - Signal and SystemChapter1 - Signal and System
Chapter1 - Signal and System
 
Phase modulation
Phase modulationPhase modulation
Phase modulation
 
Pre emphasis and de-emphasis
Pre emphasis and de-emphasisPre emphasis and de-emphasis
Pre emphasis and de-emphasis
 
Classification of signals
Classification of signalsClassification of signals
Classification of signals
 

Viewers also liked

Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...
Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...
Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...
M GM
 
Tutorial production mixing mastering with waves
Tutorial production mixing mastering with wavesTutorial production mixing mastering with waves
Tutorial production mixing mastering with waves
AMAZINE
 
Gtps reverb ultimate guide e book
Gtps reverb ultimate guide e bookGtps reverb ultimate guide e book
Gtps reverb ultimate guide e book
jd-kid
 
Optics Fourier Transform I
Optics Fourier Transform IOptics Fourier Transform I
Optics Fourier Transform I
diarmseven
 

Viewers also liked (15)

Reverb
ReverbReverb
Reverb
 
Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...
Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...
Compare and contrast an algorithmic and convolution reverb. Demonstrate the d...
 
使用send來製造reverb效果
使用send來製造reverb效果使用send來製造reverb效果
使用send來製造reverb效果
 
fourier
fourierfourier
fourier
 
Tutorial production mixing mastering with waves
Tutorial production mixing mastering with wavesTutorial production mixing mastering with waves
Tutorial production mixing mastering with waves
 
Sound basics
Sound basicsSound basics
Sound basics
 
Convolution techiniques for dummies like me
Convolution techiniques for dummies like meConvolution techiniques for dummies like me
Convolution techiniques for dummies like me
 
Guide to mixing
Guide to mixingGuide to mixing
Guide to mixing
 
Circuit Network Analysis - [Chapter3] Fourier Analysis
Circuit Network Analysis - [Chapter3] Fourier AnalysisCircuit Network Analysis - [Chapter3] Fourier Analysis
Circuit Network Analysis - [Chapter3] Fourier Analysis
 
Circuit Network Analysis - [Chapter2] Sinusoidal Steady-state Analysis
Circuit Network Analysis - [Chapter2] Sinusoidal Steady-state AnalysisCircuit Network Analysis - [Chapter2] Sinusoidal Steady-state Analysis
Circuit Network Analysis - [Chapter2] Sinusoidal Steady-state Analysis
 
Lecture7 Signal and Systems
Lecture7 Signal and SystemsLecture7 Signal and Systems
Lecture7 Signal and Systems
 
Convolution
ConvolutionConvolution
Convolution
 
Gtps reverb ultimate guide e book
Gtps reverb ultimate guide e bookGtps reverb ultimate guide e book
Gtps reverb ultimate guide e book
 
Mixing fundamentals
Mixing fundamentalsMixing fundamentals
Mixing fundamentals
 
Optics Fourier Transform I
Optics Fourier Transform IOptics Fourier Transform I
Optics Fourier Transform I
 

Similar to 3. convolution fourier

Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdf
arihantelectronics
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLAB
ZunAib Ali
 
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdfcab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
TsegaTeklewold1
 

Similar to 3. convolution fourier (20)

Unit 2 signal &system
Unit 2 signal &systemUnit 2 signal &system
Unit 2 signal &system
 
Lecture 5: The Convolution Sum
Lecture 5: The Convolution SumLecture 5: The Convolution Sum
Lecture 5: The Convolution Sum
 
Eece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformEece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transform
 
Find the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdfFind the compact trigonometric Fourier series for the periodic signal.pdf
Find the compact trigonometric Fourier series for the periodic signal.pdf
 
unit 4,5 (1).docx
unit 4,5 (1).docxunit 4,5 (1).docx
unit 4,5 (1).docx
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLAB
 
Lect4-LTI-signal-processing1.pdf
Lect4-LTI-signal-processing1.pdfLect4-LTI-signal-processing1.pdf
Lect4-LTI-signal-processing1.pdf
 
lecture3_2.pdf
lecture3_2.pdflecture3_2.pdf
lecture3_2.pdf
 
Convolution problems
Convolution problemsConvolution problems
Convolution problems
 
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdfcab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
 
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdfcab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
cab2602ff858c51113591d17321a80fc_MITRES_6_007S11_hw04.pdf
 
Lecture6 Signal and Systems
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systems
 
5. fourier properties
5. fourier properties5. fourier properties
5. fourier properties
 
Lecture - 4.pdf
Lecture - 4.pdfLecture - 4.pdf
Lecture - 4.pdf
 
Ss 2013 midterm
Ss 2013 midtermSs 2013 midterm
Ss 2013 midterm
 
Ss 2013 midterm
Ss 2013 midtermSs 2013 midterm
Ss 2013 midterm
 
Lecture5 Signal and Systems
Lecture5 Signal and SystemsLecture5 Signal and Systems
Lecture5 Signal and Systems
 
lec07_DFT.pdf
lec07_DFT.pdflec07_DFT.pdf
lec07_DFT.pdf
 
assignment_2
assignment_2assignment_2
assignment_2
 
time_complexity_list_02_04_2024_22_pages.pdf
time_complexity_list_02_04_2024_22_pages.pdftime_complexity_list_02_04_2024_22_pages.pdf
time_complexity_list_02_04_2024_22_pages.pdf
 

More from skysunilyadav (9)

Ecm sky
Ecm skyEcm sky
Ecm sky
 
Report
ReportReport
Report
 
Report
ReportReport
Report
 
My training
My trainingMy training
My training
 
Spectrum analyzer
Spectrum  analyzerSpectrum  analyzer
Spectrum analyzer
 
Coding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding schemeCoding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding scheme
 
4. cft
4. cft4. cft
4. cft
 
2. signal & systems beyonds
2. signal & systems  beyonds2. signal & systems  beyonds
2. signal & systems beyonds
 
1. signal and systems basics
1. signal and systems basics1. signal and systems basics
1. signal and systems basics
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 

3. convolution fourier

  • 1. A presentation on Convolution, Fourier Series, and the Fourier Transform By:- Chandan Kumar (2013UEE1203) Sunil Kumar Yadav (2013UEE1176) Pawan Kumar Jangid (2013UEE1166) Manish Kumar Bagara (2013UEE1180) Subject:- Network, Signal & Systems
  • 2. Convolution, Fourier Series, and the Fourier Transform
  • 3. Convolution  A mathematical operator which computes the “amount of overlap” between two functions. Can be thought of as a general moving average  Discrete domain:  Continuous domain:
  • 4. Discrete domain  Basic steps 1. Flip (reverse) one of the digital functions. 2. Shift it along the time axis by one sample. 3. Multiply the corresponding values of the two digital functions. 4. Summate the products from step 3 to get one point of the digital convolution. 5. Repeat steps 1-4 to obtain the digital convolution at all times that the functions overlap.  Example
  • 7. LTI (Linear Time-Invariant) Systems  Convolution can describe the effect of an LTI system on a signal  Assume we have an LTI system H, and its impulse response h[n]  Then if the input signal is x[n], the output signal is y[n] = x[n] * h[n] Hx[n] y[n] = x[n]*h[n]
  • 8. Mathematics of Waves  Periodic phenomena occur everywhere – vision, sound, electronic communication, etc.  In order to manipulate physical world, we need mathematical tools
  • 9. Fourier Series  Any reasonable function can be expressed as a (infinite) linear combination of sines and cosines F(t) = a0 + a1cos (ωt) + b1sin(ωt) + a2cos (2ωt) + b2sin(2ωt) + … = F(t) is a periodic function with ))sin()cos((0∑ ∞ = +n nn tnbtna ωω T π ω 2 =
  • 10. Reasonable?  F(t) is a periodic function with  must satisfy certain other conditions – finite number of discontinuities within T – finite average within T – finite number of minima and maxima T π ω 2 =
  • 11. Calculate Coefficients ∫= T k dttktf T a 0 )cos()( 2 ω T dttf a T ∫ = 0 0 )( ∫= T k dttktf T b 0 )sin()( 2 ω ))sin()cos(()( 0∑ ∞ = += n nn tnbtnatF ωω
  • 12. Example  F(t) = square wave, with T=1.0s ( ) 0.1 2π ω = 0 1 0 1 2 3 4 5 6 7 Series1
  • 13. Example ttF ω π sin 4 )( ≈ 0 1 0 1 2 3 4 5 6 7 Series1 Series2
  • 15. Example  What if – T = .01s; – T = .05s; – T = 50s; ttttF ω π ω π ω π 5sin 5 4 3sin 3 4 sin 4 )( ++≈ ttttF ω π ω π ω π 5sin 5 4 3sin 3 4 sin 4 )( ++≈ ttttF ω π ω π ω π 5sin 5 4 3sin 3 4 sin 4 )( ++≈
  • 16.  Time  Frequency Time vs. Frequency Domain 0 1 0 1 2 3 4 5 6 7 Series1 Series3 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1w 3w 5w ttttF ω π ω π ω π 5sin 5 4 3sin 3 4 sin 4 )( ++≈
  • 17. Why Frequency Domain?  Allows efficient representation of a good approximation to the original function  Makes filtering easy  Note that convolution in the time domain is equivalent to multiplication in the frequency domain (and vice versa) – When you are faced with a difficult convolution (or multiplication), you can switch domains and do the complement operation
  • 19. Discrete Fourier Transform  Rarely have closed form equation for F(t)  Must sample at periodic intervals – generates a series of numeric values – apply transform to a time window of values – N = number of sample points – x[ ] contains sample points
  • 20. DFT Notation  ck[i] and sk [i] are the cosine and sine waves, each N points in length – ck is cosine wave for amplitude in ReX[k] – sk is sine wave for amplitude in ImX[k]  k refers to the frequency of the wave – usually between 0 and N/2 )/2sin(][ Nkiisk π= )/2cos(][ Nkiick π=
  • 21. Complex exponentials  Alternatively, we can use complex exponentials  Euler’s formula: eiw = cos(w) + i*sin(w)
  • 22. Calculate DFT  Separate sinusoids  Complex exponentials )/2cos(][][Re 1 0 NkiixkX N i π∑ − = = )/2sin(][][Im 1 0 NkiixkX N i π∑ − = −=
  • 23. Calculate Inverse DFT  Coefficients first need to be normalized  With two special cases 2/ ][Re ][Re N kX kX = N X X ]0[Re ]0[Re = 2/ ][Im ][Im N kX kX −= N NX NX ]2/[Re ]2/[Re =
  • 24. Calculate Inverse DFT  Corresponding points within the basis function contribute to each input value – Equation uses the normalized coefficients  Result is exactly equal to original data (within rounding error), ie IDFT(DFT(x[n])) = x[n] )/2(sin][Im)/2(cos][Re][ 2/ 0 2/ 0 NkikXNkikXix N k N k ππ ∑∑ == +=
  • 25. DCT (Discrete Cosine Transform)  DCT is very similar to DFT – Sine wave + phase shift equals cosine wave – N coefficients of cosine basis functions – Advantage: Result is purely real – Most common is “Type II” – Used in JPEG and MPEG
  • 26. FFT (Fast Fourier Transform)  FFT is an efficient algorithm for computing the DFT – Naïve method for DFT requires O(N2 ) operations – FFT uses divide and conquer to break up problem into many 2- point DFT’s (which are easy to compute) – 2-point DFT: X[0] = x[0] + x[1] X[1] = x[0] – x[1] – log2N stages, O(N) operations per stage => O(N log N) total operations – Ideally, want N to be a power of 2 or close to a power of 2
  • 28. Fourier Transform  Definitions:  Can be difficult to compute => Often rely upon table of transforms
  • 29. Delta function  Definition:  Often, the result of the Fourier Transform needs to be expressed in terms of the delta function
  • 30. Fourier Transform pairs        There is a duality in all transform pairs