Professional Documents
Culture Documents
5.1 Introduction:
Before starting with Fourier series expansion, you need to make sure to understand the following
concepts: (Script of this course and the Analytical principles of Mathematics course from the WS)
The following is a quick reminder of some features that will help you better understand this section.
For instance 𝑠𝑠𝑠𝑠𝑠𝑠(𝑥𝑥) is an even function while 𝑐𝑐𝑐𝑐𝑐𝑐(𝑥𝑥) is an odd function. Both have the period of 2𝜋𝜋
In general we can write 𝑐𝑐𝑐𝑐𝑐𝑐(𝑛𝑛𝑛𝑛) = (−1)𝑛𝑛 which will generate both even and odd value.
where 𝑛𝑛 = 1,2,3, …
A function 𝑓𝑓(𝑥𝑥) is periodic with period𝑝𝑝 > 0 if 𝑓𝑓(𝑥𝑥) = 𝑓𝑓(𝑥𝑥 + 𝑝𝑝) for all 𝑥𝑥 in the domain of 𝑓𝑓(𝑥𝑥)
1
• ∫ 𝑡𝑡 sin(𝑛𝑛𝑛𝑛)𝑑𝑑𝑑𝑑 = 𝑛𝑛2 (sin(𝑛𝑛𝑛𝑛) − 𝑛𝑛𝑛𝑛 cos(𝑛𝑛𝑛𝑛))
1
• ∫ 𝑡𝑡 cos(𝑛𝑛𝑛𝑛)𝑑𝑑𝑑𝑑 = 𝑛𝑛2 (cos(𝑛𝑛𝑛𝑛) + 𝑛𝑛𝑛𝑛 sin(𝑛𝑛𝑛𝑛))
For a given periodic wave form 𝑓𝑓(𝑡𝑡) with a period 𝑝𝑝 = 2𝐿𝐿 the Fourier Series is given by:
1 𝐿𝐿
• 𝑎𝑎0 = 𝐿𝐿 ∫−𝐿𝐿 𝑓𝑓(𝑡𝑡) 𝑑𝑑𝑑𝑑
1 𝐿𝐿 𝑛𝑛𝑛𝑛𝑛𝑛
• 𝑎𝑎𝑛𝑛 = 𝐿𝐿 ∫−𝐿𝐿 𝑓𝑓(𝑡𝑡) 𝑐𝑐𝑐𝑐𝑐𝑐 𝐿𝐿
𝑑𝑑𝑑𝑑
1 𝐿𝐿 𝑛𝑛𝑛𝑛𝑛𝑛
• 𝑏𝑏𝑛𝑛 = 𝐿𝐿 ∫−𝐿𝐿 𝑓𝑓(𝑡𝑡) 𝑠𝑠𝑠𝑠𝑠𝑠 𝐿𝐿 𝑑𝑑𝑑𝑑
where 𝑛𝑛 = 1,2,3, …
0, 𝑖𝑖𝑖𝑖 − 4 ≤ 𝑡𝑡 < 0
Give the function f(𝑡𝑡) = �
5, 𝑖𝑖𝑖𝑖 0 ≤ 𝑡𝑡 < 4
Solution:
𝑝𝑝
The period of the function 𝑝𝑝 = 8, so 𝐿𝐿 = =4
2
We use the above formulas to evaluate the Fourier coefficients 𝑎𝑎0 , 𝑎𝑎𝑛𝑛 and 𝑏𝑏𝑛𝑛
𝐿𝐿 4 0 4
1 1 1 1 1 1
𝒂𝒂𝟎𝟎 = � 𝑓𝑓(𝑡𝑡) 𝑑𝑑𝑑𝑑 = � 𝑓𝑓(𝑡𝑡) 𝑑𝑑𝑑𝑑 = � � 0 𝑑𝑑𝑡𝑡 + � 5 𝑑𝑑𝑑𝑑� = (0 + [5𝑡𝑡]40 ) = (20) = 5
𝐿𝐿 4 4 4 4 4
−𝐿𝐿 −4 −4 0
𝐿𝐿
1 𝑛𝑛𝑛𝑛𝑛𝑛
𝒂𝒂𝒏𝒏 = � 𝑓𝑓(𝑡𝑡) 𝑐𝑐𝑐𝑐𝑐𝑐 𝑑𝑑𝑑𝑑
𝐿𝐿 𝐿𝐿
−𝐿𝐿
4 0 4
1 𝑛𝑛𝑛𝑛𝑛𝑛 1 𝑛𝑛𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛𝑛𝑛 1 4 𝑛𝑛𝑛𝑛𝑛𝑛 4
= � 𝑓𝑓(𝑡𝑡) 𝑐𝑐𝑐𝑐𝑐𝑐 𝑑𝑑𝑑𝑑 = � �(0) 𝑐𝑐𝑐𝑐𝑐𝑐 𝑑𝑑𝑑𝑑 + �(5) 𝑐𝑐𝑐𝑐𝑐𝑐 𝑑𝑑𝑑𝑑� = �0 + �5 𝑠𝑠𝑠𝑠𝑠𝑠 � �
4 4 4 4 4 4 𝑛𝑛𝑛𝑛 4 0
−4 −4 0
𝐿𝐿
1 𝑛𝑛𝑛𝑛𝑛𝑛
𝒃𝒃𝒏𝒏 = � 𝑓𝑓(𝑡𝑡) 𝑠𝑠𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑
𝐿𝐿 𝐿𝐿
−𝐿𝐿
4 0 4
1 𝑛𝑛𝑛𝑛𝑛𝑛 1 𝑛𝑛𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛𝑛𝑛 1 4 𝑛𝑛𝑛𝑛𝑛𝑛 4
= � 𝑓𝑓(𝑡𝑡) 𝑠𝑠𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑 = � �(0) 𝑠𝑠𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑 + �(5) 𝑠𝑠𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑� = �0 + �−5 𝑐𝑐𝑐𝑐𝑐𝑐 � �
4 4 4 4 4 4 𝑛𝑛𝑛𝑛 4 0
−4 −4 0
∞
5 1 𝑛𝑛𝑛𝑛𝑛𝑛
= 2.5 − � � (cos 𝑛𝑛𝑛𝑛 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 �
𝜋𝜋 𝑛𝑛 4
𝑛𝑛=1
∞
𝑛𝑛 1 𝑛𝑛𝑛𝑛𝑛𝑛
� (cos 𝑛𝑛𝑛𝑛 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠
𝑛𝑛 4
𝑛𝑛=1
1 1 𝜋𝜋𝜋𝜋 𝝅𝝅𝝅𝝅 Odd
(cos 1𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = −𝟐𝟐 𝐬𝐬𝐬𝐬𝐬𝐬
1 4 𝟒𝟒
2 1 2𝜋𝜋𝜋𝜋 Even
(cos 2𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = 𝟎𝟎
2 4
3 1 3𝜋𝜋𝜋𝜋 𝟐𝟐 𝟑𝟑𝟑𝟑𝟑𝟑 Odd
(cos 3𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = − 𝒔𝒔𝒔𝒔𝒔𝒔
3 4 𝟑𝟑 𝟒𝟒
4 1 4𝜋𝜋𝜋𝜋 Even
(cos 4𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = 𝟎𝟎
4 4
5 1 5𝜋𝜋𝜋𝜋 𝟐𝟐 𝟓𝟓𝟓𝟓𝟓𝟓 Odd
(cos 5𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = − 𝒔𝒔𝒔𝒔𝒔𝒔
5 4 𝟓𝟓 𝟒𝟒
6 1 6𝜋𝜋𝜋𝜋 Even
(cos 6𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = 𝟎𝟎
6 4
7 1 7𝜋𝜋𝜋𝜋 𝟐𝟐 𝟕𝟕𝟕𝟕𝟕𝟕 Odd
(cos 7𝜋𝜋 − 1) 𝑠𝑠𝑠𝑠𝑠𝑠 = − 𝒔𝒔𝒔𝒔𝒔𝒔
7 4 𝟕𝟕 𝟒𝟒
Note that the all even terms will have zero value and odd terms are having the value
−5 10
𝑏𝑏𝑛𝑛 = (−1 − 1) =
𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛
Thus
10
𝑏𝑏𝑛𝑛 = 𝑤𝑤𝑤𝑤𝑤𝑤ℎ 𝑛𝑛 = 1,2,3, ….
(2𝑛𝑛 − 1)𝜋𝜋
Will generate all the odd values in the sine terms of the Fourier series. Which means we can write
the sums as:
∞ ∞
𝑎𝑎0 𝑛𝑛𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛𝑛𝑛
𝑓𝑓(𝑡𝑡) = + � 𝑎𝑎𝑛𝑛 𝑐𝑐𝑐𝑐𝑐𝑐 + � 𝑏𝑏𝑛𝑛 𝑠𝑠𝑠𝑠𝑠𝑠
2 𝐿𝐿 𝐿𝐿
𝑛𝑛=1 𝑛𝑛=1
∞ ∞
5 𝑛𝑛𝑛𝑛𝑛𝑛 10 (2𝑛𝑛 − 1)𝜋𝜋𝜋𝜋
= + �(0)𝑐𝑐𝑐𝑐𝑐𝑐 +� 𝑠𝑠𝑠𝑠𝑠𝑠
2 4 (2𝑛𝑛 − 1)𝜋𝜋 4
𝑛𝑛=1 𝑛𝑛=1
∞
1 (2𝑛𝑛 − 1)𝜋𝜋𝜋𝜋
= 2.5 + 0 + 10 � 𝑠𝑠𝑠𝑠𝑠𝑠
(2𝑛𝑛 − 1)𝜋𝜋 4
𝑛𝑛=1
∞
1 (2𝑛𝑛 − 1)𝜋𝜋𝜋𝜋
= 2.5 + 10 � 𝑠𝑠𝑠𝑠𝑠𝑠
(2𝑛𝑛 − 1)𝜋𝜋 4
𝑛𝑛=1
Evaluating the first 7 terms of the sum, we will get the same as before:
There are many functions that are defined in the range – 𝜋𝜋 to 𝜋𝜋 (i.e the period 𝑝𝑝 = 2𝜋𝜋 = 2𝐿𝐿), in this
case 𝜋𝜋 = 𝐿𝐿 and the Fourier coefficients are:
𝜋𝜋
1
𝑎𝑎0 = � 𝑓𝑓(𝑡𝑡) 𝑑𝑑𝑑𝑑
𝜋𝜋
−𝜋𝜋
𝜋𝜋 𝜋𝜋
1 𝑛𝑛𝑛𝑛𝑛𝑛 1
𝑎𝑎𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) 𝑐𝑐𝑐𝑐𝑐𝑐 𝑑𝑑𝑑𝑑 = � 𝑓𝑓(𝑡𝑡) cos(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑
𝜋𝜋 𝜋𝜋 𝜋𝜋
−𝜋𝜋 −𝜋𝜋
𝜋𝜋 𝜋𝜋
1 𝑛𝑛𝑛𝑛𝑛𝑛 1
𝑏𝑏𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) 𝑠𝑠𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑 = � 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛)𝑑𝑑𝑑𝑑
𝜋𝜋 𝜋𝜋 𝜋𝜋
−𝜋𝜋 −𝜋𝜋
∞ ∞
𝑎𝑎0
𝑓𝑓(𝑡𝑡) = + � 𝑎𝑎𝑛𝑛 cos(𝑛𝑛𝑛𝑛) + � 𝑏𝑏𝑛𝑛 sin(𝑛𝑛𝑛𝑛)
2
𝑛𝑛=1 𝑛𝑛=1
where 𝑛𝑛 = 1,2,3, ….
Example 2:
a) Sketch the waveform of the periodic function defined as:
𝑓𝑓(𝑡𝑡) = 𝑡𝑡, 𝑓𝑓𝑓𝑓𝑓𝑓 − 𝜋𝜋 ≤ 𝑡𝑡 ≤ 𝜋𝜋
𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋)𝑓𝑓𝑓𝑓𝑓𝑓 𝑎𝑎𝑎𝑎𝑎𝑎 𝑡𝑡
b) Obtain the Fourier series of 𝑓𝑓(𝑡𝑡) and write the first 4 terms of the series.
Solution:
a)
∞ ∞
𝑎𝑎0
𝑓𝑓(𝑡𝑡) = + � 𝑎𝑎𝑛𝑛 cos(𝑛𝑛𝑛𝑛) + � 𝑏𝑏𝑛𝑛 sin(𝑛𝑛𝑛𝑛)
2
𝑛𝑛=1 𝑛𝑛=1
𝜋𝜋 𝜋𝜋 𝜋𝜋
1 1 1 𝑡𝑡 2 1 𝜋𝜋 2 𝜋𝜋 2
𝒂𝒂𝟎𝟎 = � 𝑡𝑡 𝑑𝑑𝑑𝑑 = � 𝑡𝑡 𝑑𝑑𝑑𝑑 = � � = � − � = 0
𝜋𝜋 𝜋𝜋 𝜋𝜋 2 −𝜋𝜋 𝜋𝜋 2 2
−𝜋𝜋 −𝜋𝜋
𝜋𝜋 𝜋𝜋
𝜋𝜋
1 1 1 1
𝒂𝒂𝒏𝒏 = � 𝑡𝑡 cos(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 = � 𝑡𝑡 sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 = � 2 (cos(𝑛𝑛𝑛𝑛) + 𝑛𝑛𝑛𝑛 sin(𝑛𝑛𝑛𝑛))�
𝜋𝜋 𝜋𝜋 𝜋𝜋 𝑛𝑛 −𝜋𝜋
−𝜋𝜋 −𝜋𝜋
𝜋𝜋
1 1
= � 2 (cos(𝑛𝑛𝑛𝑛) + 𝑛𝑛𝑛𝑛 sin(𝑛𝑛𝑛𝑛))�
𝜋𝜋 𝑛𝑛 −𝜋𝜋
1
= 2 [ (cos(𝑛𝑛𝑛𝑛) + 𝑛𝑛𝑛𝑛 sin(𝜋𝜋𝜋𝜋)) − (cos(−𝑛𝑛𝑛𝑛) − 𝑛𝑛𝑛𝑛 sin(−𝑛𝑛𝑛𝑛))]
𝜋𝜋𝑛𝑛
𝜋𝜋
1
𝑎𝑎𝑛𝑛 = � 𝑡𝑡 cos(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 = 0
𝜋𝜋
−𝜋𝜋
𝜋𝜋
𝜋𝜋
1 1 1
𝒃𝒃𝒏𝒏 = � 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛)𝑑𝑑𝑑𝑑 = � 2 (sin(𝑛𝑛𝑛𝑛) − 𝑛𝑛𝑛𝑛 cos(𝑛𝑛𝑛𝑛))�
𝜋𝜋 𝜋𝜋 𝑛𝑛 −𝜋𝜋
−𝜋𝜋
1
= [(sin(𝑛𝑛𝑛𝑛) − 𝑛𝑛𝑛𝑛 cos(𝜋𝜋𝜋𝜋)) − (sin(−𝑛𝑛𝑛𝑛) − 𝑛𝑛𝑛𝑛 cos(−𝑛𝑛𝑛𝑛))]
𝜋𝜋𝑛𝑛2
−2 −2 cos(𝑛𝑛𝑛𝑛)
= 2
(𝑛𝑛𝑛𝑛 𝑐𝑐𝑐𝑐𝑐𝑐(𝜋𝜋𝜋𝜋)) =
𝜋𝜋𝑛𝑛 𝑛𝑛
2 (−1)𝑛𝑛
=
𝑛𝑛
∞ ∞ ∞
0 2 (−1)𝑛𝑛 𝟐𝟐 (−𝟏𝟏)𝒏𝒏
𝑓𝑓(𝑡𝑡) = + � 0 ∙ cos(𝑛𝑛𝑛𝑛) + � sin(𝑛𝑛𝑛𝑛) = � 𝐬𝐬𝐬𝐬𝐬𝐬(𝒏𝒏𝒏𝒏)
2 𝑛𝑛 𝒏𝒏
𝑛𝑛=1 𝑛𝑛=1 𝒏𝒏=𝟏𝟏
As you noticed in the previous examples, finding the Fourier coefficients could be difficult and time
consuming. If we know in advance that the function in hand is odd or even, we can spare time and
effort since one of the coefficients will be zero.
The summary for the Fourier series of even and odd functions:
Notice that we could conclude that 𝑎𝑎𝑛𝑛 = 0 in the previous example, since 𝑓𝑓(𝑡𝑡) = 𝑡𝑡 is an odd
function.