es 240: scientific and engineering computation. introduction to fourier series trigonometric fourier...
TRANSCRIPT
![Page 1: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/1.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Trigonometric Fourier SeriesTrigonometric Fourier Series
Outline– Introduction– Visualization– Theoretical Concepts– Qualitative Analysis– Example– Class Exercise
![Page 2: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/2.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
IntroductionIntroduction
What is Fourier Series?– Representation of a periodic function with a weighted, infinite sum of
sinusoids.
Why Fourier Series?– Any arbitrary periodic signal, can be approximated by using some of the
computed weights
– These weights are generally easier to manipulate and analyze than the original signal
![Page 3: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/3.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Periodic Function Periodic Function
What is a periodic Function?– A function which remains unchanged when time-shifted by one period
• f(t) = f(t + To) for all values of t
What is To
TToo TToo
![Page 4: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/4.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties of a periodic function 1Properties of a periodic function 1
A periodic function must be everlasting– From –∞ to ∞
Why?
Periodic or Aperiodic?
![Page 5: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/5.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties of a periodic functionProperties of a periodic function
You only need one period of the signal to generate the entire signal– Why?
A periodic signal cam be expressed as a sum of sinusoids of frequency F0 = 1/T0 and all its harmonics
![Page 6: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/6.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
VisualizationVisualization
Can you represent this simple function using sinusoids?
Single sinusoid Single sinusoid representationrepresentation
![Page 7: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/7.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
VisualizationVisualization
To obtain the exact signal, an infinite number of sinusoids are required
)cos( 01 ta amplitudeamplitude Fundamental Fundamental
frequencyfrequency)3cos( 03 ta
New amplitudeNew amplitude 22ndnd Harmonic Harmonic
)5cos( 05 ta amplitudeamplitude 44thth Harmonic Harmonic
![Page 8: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/8.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Theoretical ConceptsTheoretical Concepts
(6)
,...3,2,1....)sin()(2
,...3,2,1....)cos()(2
2
)sin()cos()(
01
1
01
1
00
00
00
01
01
0
ndttntfT
b
ndttntfT
a
T
tnbtnaatf
Tt
t
n
Tt
t
n
nn
nn
PeriodPeriodCosine termsCosine terms
Sine termsSine terms
![Page 9: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/9.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Theoretical ConceptsTheoretical Concepts
(6)
n
nn
nnn
nn
n
a
b
bac
ac
tncctf
1
22
00
01
0
tan
)cos()(
![Page 10: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/10.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
DC OffsetDC OffsetWhat is the difference between these two functions?
AA
00 11 22-1-1-2-2
-A-A
AA
00 11 22-1-1-2-2
Average Average Value = 0Value = 0
Average Average Value ?Value ?
![Page 11: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/11.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
DC OffsetDC Offset
If the function has a DC value:
01
1
)(1
)sin()cos(2
1)(
00
01
01
0
Tt
t
nn
nn
dttfT
a
tnbtnaatf
![Page 12: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/12.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Qualitative AnalysisQualitative Analysis
Is it possible to have an idea of what your solution should be before actually computing it?
For SureFor Sure
![Page 13: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/13.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – DC ValueProperties – DC Value
If the function has no DC value, then a0 = ?
-1-1 11 22
-A-A
AA
DC?DC?
AA
00 11 22-1-1-2-2
DC?DC?
![Page 14: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/14.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – SymmetryProperties – Symmetry
AA
AA
00 ππ/2/2 ππ 33ππ/2/2
f(-t) = -f(t)f(-t) = -f(t)
Even function
Odd function00
-A-A
AA
ππ/2/2 ππ 33ππ/2/2
f(-t) = f(t)f(-t) = f(t)
![Page 15: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/15.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – SymmetryProperties – Symmetry
Note that the integral over a period of an odd function is?
,...3,2,1....)sin()(2 01
1
00
ndttntfT
bTt
tn
If f(t) is even:If f(t) is even:
EvenEvenOddOddXX == OddOdd
,...3,2,1....)cos()(2 01
1
00
ndttntfT
aTt
tn
EvenEvenEvenEvenXX == EvenEven
![Page 16: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/16.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – SymmetryProperties – Symmetry
Note that the integral over a period of an odd function is zero.
,...3,2,1....)cos()(2 01
1
00
ndttntfT
aTt
tn
If f(t) is odd:If f(t) is odd:
OddOddEvenEvenXX == OddOdd
,...3,2,1....)sin()(2 01
1
00
ndttntfT
bTt
tn
OddOddOddOddXX == EvenEven
![Page 17: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/17.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – SymmetryProperties – Symmetry
If the function has:
– even symmetry: only the cosine and associated coefficients exist
– odd symmetry: only the sine and associated coefficients exist
– even and odd: both terms exist
![Page 18: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/18.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – SymmetryProperties – Symmetry
If the function is half-wave symmetric, then only odd harmonics exist
Half wave symmetry: f(t-THalf wave symmetry: f(t-T00/2) = -f(t)/2) = -f(t)
-1-1 11 22
-A-A
AA
![Page 19: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/19.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Properties – DiscontinuitiesProperties – Discontinuities
If the function has – Discontinuities: the coefficients will be proportional to 1/n– No discontinuities: the coefficients will be proportional to 1/n2
Rationale:
-1-1 11 22
-A-A
AA
AA
00 11 22-1-1-2-2
Which is closer Which is closer to a sinusoid?to a sinusoid?
Which function has Which function has discontinuities?discontinuities?
![Page 20: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/20.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
ExampleExample
Without any calculations, predict the general form of the Fourier series of:
-1-1 11 22
-A-A
AA
DC?DC? No, aNo, a00 = 0; = 0;
Symmetry?Symmetry? Even, bEven, bnn = 0; = 0;
Half wave Half wave symmetry?symmetry?
Yes, only odd Yes, only odd harmonicsharmonics
Discontinuities?Discontinuities? No, falls of asNo, falls of as
1/n1/n22
Prediction aPrediction ann 1/n 1/n22
for n = 1, 3, 5, …;for n = 1, 3, 5, …;
![Page 21: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/21.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
ExampleExample
Now perform the calculation
2/
00
00
0
001
1
)cos()(4
)cos()(2
TTt
tn dttntf
Tdttntf
Ta
;20 T 2
20
...5,3,1...8
22 n
n
Aan
)cos(14
)cos(2222
1
0
nn
AdttnAtan
zero for zero for n evenn even
![Page 22: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/22.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
ExampleExample
Now compare your calculated answer with your predicted form
DC?DC? No, aNo, a00 = 0; = 0;
Symmetry?Symmetry? Even, bEven, bnn = 0; = 0;
Half wave Half wave symmetry?symmetry?
Yes, only odd Yes, only odd harmonicsharmonics
Discontinuities?Discontinuities? No, falls of asNo, falls of as
1/n1/n22
![Page 23: ES 240: Scientific and Engineering Computation. Introduction to Fourier Series Trigonometric Fourier Series Outline –Introduction –Visualization –Theoretical](https://reader034.vdocuments.mx/reader034/viewer/2022051018/56649f315503460f94c4ca86/html5/thumbnails/23.jpg)
ES 240: Scientific and Engineering Computation. Introduction to Fourier Series
Class exerciseClass exercise
Discuss the general form of the solution of the function below and write it down
Compute the Fourier series representation of the function With your partners, compare your calculations with your
predictions and comment on your solution
AA
00 11 22-1-1-2-2