Fourier Series Lecture 1 23-2-2023
Fourier Series Lecture 1 23-2-2023
Contents
• Periodic Functions.
• Types of functions.
• Fourier Series.
ODD 0 0 2 𝐿
FUNCTIONS න 𝑓 𝑥 sin 𝑛𝑥 𝑑𝑥
𝐿 0
EVEN 2 𝐿 2 𝐿 0
FUNCCTION න 𝑓 𝑥 𝑑𝑥 න 𝑓 𝑥 cos 𝑛𝑥 𝑑𝑥
𝐿 0 𝐿 0
2. Piecewise continuous function
A function 𝑓(𝑡) is said to be piecewise continuous in an interval if
(1) 𝑓(𝑡) can be divided into finite number of subintervals.
(2) The limits of 𝑓(𝑡) at end points are finite.
3. Types of functions (Three types)
Even Odd
Has no Symmetry
Even and Odd functions
A fnction f ( x ) even function if it is symmetric about y - axis A fnction f ( x) Odd function if it is symmetric about the origin
y
cos x, x2 , x4 , x sin x, x, x3 , x5
What is the definition of Fourier Series?
𝒂𝟎 ∞ 𝑛𝜋𝑡 ∞ 𝑛𝜋𝑡
𝑓 𝑡 = + 𝒂𝒏 𝑐𝑜𝑠 + 𝒃𝒏 𝑠𝑖𝑛
2 𝑛=1 𝐿 𝑛=1 𝐿
where
𝟏 𝑳 𝟏 𝑳 𝒏𝝅 𝒕 𝟏 𝑳 𝒏𝝅 𝒕
𝒂𝟎 = න 𝒇 𝒕 𝒅𝒕 𝒂𝒏 = න 𝒇 𝒕 𝒄𝒐𝒔 𝒅𝒕 𝒃𝒏 = න 𝒇 𝒕 𝒔𝒊𝒏 𝒅𝒕
𝑳 −𝑳 𝑳 −𝑳 𝑳 𝑳 −𝑳 𝑳
Important Rules
𝑳
න 𝒐𝒅𝒅 𝒇𝒖𝒏𝒄𝒕𝒊𝒐𝒏 = 𝟎
−𝑳
Calculating Fourier constants by type of function
𝟏 𝑳
𝒃𝒏 = 𝟎 𝒂𝟎 = න 𝒇(𝒕)𝒅𝒕
𝑳 −𝑳
𝟐 𝑳 𝒂𝟎 = 𝒂𝒏 = 𝟎
𝒂𝟎 = න 𝒇(𝒕)𝒅𝒕 𝟏 𝑳 𝒏𝝅 𝒕
𝑳 𝟎 𝒂𝒏 = න 𝒇(𝒕) 𝒄𝒐𝒔 𝒅𝒕
𝟐 𝑳 𝒏𝝅 𝒕 𝑳 −𝑳 𝑳
𝒃𝒏 = න 𝒇(𝒕) 𝒔𝒊𝒏 𝒅𝒕
𝑳 𝟎 𝑳
𝟐 𝑳 𝒏𝝅 𝒕
𝒂𝒏 = න 𝒇(𝒕) 𝒄𝒐𝒔 𝒅𝒕 𝟏 𝑳 𝒏𝝅 𝒕
𝑳 𝟎 𝑳 𝒃𝒏 = න 𝒇(𝒕) 𝒔𝒊𝒏 𝒅𝒕
𝑳 −𝑳 𝑳
Steps to find the Fourier series
Solution: the general interval [ − L,L] L = = =1
L أوال نرسم الداله و نكررها
على اليمني و اليسار
ألن مفكوك فوريري يتعامل
مع الدوال التكرارية
a0
F(x) is even function , thus bn = 0 f ( x) = + an cos nx
2 n=1
2L
where a = f ( x ) dx
0
L0
2 2 2 x 2 2 3 3 2
= f ( x ) dx = x dx = = =
2
0 0 3 0 3 3
2 2 2 sin nx cos nx sin nx
an = f ( x) cosnx dx =
2
x cos nx dx = ( x 2 ) − (2 x) − + (2) −
0
0
n n
2
n 3 0
2 cos n 4(−1)
n
= (2 ) =
n
2
n2
Example 2: Find the Fourier series of the function f ( x) = x on the interval 0,2
a0
f ( x) = + an cos nx + bn sin nx
From the graph, general function ( not even , not odd) 2 n =1
2 2 2
1 1 1 x2 1 2
1 2
a0 =
0
f ( x) dx =
0
x dx = = 2
2 0
b =
n
f (x ) sin nx dx =
0
x sin nx dx
0
2
1
2
1
2
1 − cos nx − sin nx
an = f ( x) cosnx dx = x cos nx dx = (x ) + (1)
0
0
diff int n n
2
0
2 x cos nx
1 sin nx cos nx + 1 cos 2n
diff int
= ( x) + (1) sin nx = −2 − 0
n n 2
0 1
n n
x
+
sin nx
- cos nx
1 cos 2n 1 cos nx 1 −2 2 1
-
-
= − 0 - = = − n
n2 n 2 n2
n n sin nx
0 - 2
1 ( −1) 2 n − 1 n
= =0
n2
Example (3)
−3 −2<𝑡 <0 1 1 1 𝜋
Find Fourier series for 𝑓 𝑡 = ቊ , period = 4, Then prove that 1 − + − +. . . =
3 0<𝑡<2 3 5 7 4
Solution
from the graph we found the symmetry about the origen 𝑡ℎ𝑒𝑟𝑒 𝑓𝑜𝑟 𝑡ℎ𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑖𝑠 𝑜𝑑𝑑 𝐿 = 2
2
𝐿 2
2 𝑛𝜋𝑡 2 𝑛𝜋𝑡 2 𝑛𝜋𝑡 6
𝑏𝑛 = න 𝑓 𝑡 𝑠𝑖𝑛 𝑑𝑡 = න 3 𝑠𝑖𝑛 𝑑𝑡 = − 3 ∗ 𝑐𝑜𝑠 อ =− 𝑐𝑜𝑠 𝑛𝜋 − 1
𝐿 0 𝐿 2 0 2 𝑛𝜋 2 𝑛𝜋
0
2
2 𝐿 𝑛𝜋𝑡 2 2 𝑛𝜋𝑡 2 𝑛𝜋𝑡 6
𝑏𝑛 = න 𝑓 𝑡 𝑠𝑖𝑛 𝑑𝑡 = න 3 𝑠𝑖𝑛 𝑑𝑡 = − 3 ∗ 𝑐𝑜𝑠 อ =− 𝑐𝑜𝑠 𝑛𝜋 − 1
𝐿 0 𝐿 2 0 2 𝑛𝜋 2 𝑛𝜋
0
Note that
𝑐𝑜𝑠 𝑛𝜋 = −1 𝑛 , 𝑐𝑜𝑠(2𝑛𝜋) = 1, 𝑠𝑖𝑛 𝑛𝜋 = 0, 𝑛 = 1,2. . .
6 0 𝐹𝑜𝑟 𝑛 𝑒𝑣𝑒𝑛
∴ 𝑏𝑛 = 1 − −1 𝑛 = ቐ 12
𝑛𝜋 𝐹𝑜𝑟 𝑛 𝑜𝑑𝑑
𝑛𝜋
∞ 𝟎 𝑭𝒐𝒓 𝒏 𝒆𝒗𝒆𝒏
𝟔 𝒏
𝒏𝝅𝒕 ∞ 𝟏𝟐 𝒏𝝅𝒕
𝒇 𝒕 = 𝟏 − −𝟏 𝒔𝒊𝒏 = ቐ 𝒔𝒊𝒏
𝒏=𝟏 𝒏𝝅 𝟐
𝒏=𝟏,𝟑,𝟓,... 𝒏𝝅 𝟐
12 𝜋𝑡 12 3𝜋𝑡 12 5𝜋𝑡
𝑓 𝑡 = 𝑠𝑖𝑛 + 𝑠𝑖𝑛 + 𝑠𝑖𝑛 +. . .
𝜋 2 3𝜋 2 5𝜋 2
We take a common factor
12 𝜋𝑡 1 3𝜋𝑡 1 5𝜋𝑡
𝑓(𝑡) = 𝑠𝑖𝑛 + 𝑠𝑖𝑛 + 𝑠𝑖𝑛 +. . .
𝜋 2 3 2 5 2
From comparing the terms from the above equations, and we get
𝜋𝑡 3𝜋𝑡 5𝜋𝑡
𝑠𝑖𝑛 = 1, 𝑠𝑖𝑛 = −1, 𝑠𝑖𝑛 = 1, . . .
2 2 2
We get the suitable value for t and we found 𝑡 = 1
We substitute in Fourier series about t and we found
12 𝜋(1) 1 3𝜋(1) 1 5𝜋(1) 12 1 1
𝑓(1) = 𝑠𝑖𝑛 + 𝑠𝑖𝑛 + 𝑠𝑖𝑛 +. . . = 1 − + ...
𝜋 2 3 2 5 2 𝜋 3 5
half interval Fourier expansion
In this case we give the function f (x ) defined on half interval [0,L] and we want to expand it to the full interval [-L,L]
Solution: in this case, we extend the function f (x ) so that the new function defined over − ,
is odd function as shown
= = 1.
L
2 2
where bn =
0
f ( x) sinnx dx =
0
x 2 sin nx dx Integrating by parts
2 cos nx sin nx cos nx
bn = ( x 2 ) − + (2 x) − + ( 2 )
n n 2
n 3
0
2 2 (−1) n (−1) n 1
= ( ) − + (2 )(0 ) + (2) 3 − (2) 3
n n n
Example 4: Expand in Fourier cosine series the function
f (x ) = x , x [0, ]
Solution: in this case, we extend the function f (x ) so that the new function defined over − ,
is even function as shown
a0
f ( x ) = + an cos nx
2 n =1
2 L
a = f (x ) dx
0
L 0
2
2 2 x 2 2
= x dx = =
0 2 2 0
=
2 2
a = f (x ) cos nx dx = x cos nx dx Integrating by parts
n
0 0
2 sin nx cos nx
= (x ) − (1) −
n n 2
0
2 ( −1) 1 n
= −
n 2
n 2