Unit-5 Lecture Notes (Mathematics-1) (Fourier Series) 2023-24
Unit-5 Lecture Notes (Mathematics-1) (Fourier Series) 2023-24
Unit-5 Lecture Notes (Mathematics-1) (Fourier Series) 2023-24
Fourier Series is an infinite series representation of periodic function in terms of the trigonometric
sine and cosine functions.
➢ Most of the single valued functions which occur in applied mathematics can be expressed
in the form of Fourier series, which is in terms of sines and cosines.
➢ Fourier series is a very powerful method to solve ordinary and partial differential
equations, particularly with periodic functions appearing as non-homogeneous terms.
➢ Taylor’s series expansion is valid only for functions which are continuous and
differentiable. Fourier series is possible not only for continuous functions but also for
periodic functions, functions which are discontinuous in their values and derivatives.
➢ Further, because of the periodic nature, Fourier series constructed for one period is valid
for all values.
Prerequisites:
Even Function: A function 𝑓(𝑥) is said to be even, if 𝑓(−𝑥) = 𝑓(𝑥), for all 𝑥.
• Even Function is always symmetric about 𝑌 − 𝑎𝑥𝑖𝑠.
Eg: 𝑐𝑜𝑠𝑥, 𝑥𝑠𝑖𝑛𝑥, 𝑥 2 , etc
Odd Function: A function 𝑓(𝑥) is said to be odd if 𝑓(−𝑥) = −𝑓(𝑥), for all 𝑥.
• Odd function is always symmetric about 𝑋 − 𝑎𝑥𝑖𝑠.
Eg: 𝑥, 𝑥 3 , 𝑥 𝑐𝑜𝑠 𝑥, 𝑠𝑖𝑛 𝑥 , etc
Basic Trigonometry
1. 𝑠𝑖𝑛 𝑛𝜋 = 0
2. 𝑐𝑜𝑠 𝑛𝜋 = (−1)𝑛
3. 𝑐𝑜𝑠 (𝑛 + 1) 𝜋 = 𝑐𝑜𝑠 (𝑛 − 1)𝜋 = (−1)𝑛+1
4. 2𝑠𝑖𝑛𝐴 𝑐𝑜𝑠𝐵 = 𝑠𝑖𝑛 (𝐴 + 𝐵) + 𝑠𝑖𝑛 (𝐴 − 𝐵)
5. 2𝑠𝑖𝑛𝐴 𝑠𝑖𝑛𝐵 = 𝑐𝑜𝑠(𝐴 − 𝐵) – 𝑐𝑜𝑠 (𝐴 + 𝐵)
6. 2𝑐𝑜𝑠𝐴 𝑐𝑜𝑠𝐵 = 𝑐𝑜𝑠 (𝐴 + 𝐵) + 𝑐𝑜𝑠(𝐴 − 𝐵)
Periodic Functions:
A function 𝑓(𝑥) is called periodic if it is defined for all real x and if there is some positive number
𝑝 such that 𝑓(𝑥 + 𝑝) = 𝑓(𝑥) where p is known as period of 𝑓(𝑥). If a periodic function 𝑓(𝑥) has
a smallest period p is called fundamental period of 𝑓(𝑥). eg 𝑠𝑖𝑛𝑥, 𝑐𝑜𝑠𝑥 has fundamental period
of 2π. If l is a fixed number, then 𝑠𝑖𝑛( 2𝜋𝑥/ 𝑙 ) and 𝑐𝑜𝑠( 2𝜋𝑥 /𝑙) have period 𝑙.
1 𝑐+2𝑙
𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥
𝑙 𝑐
1 𝑐+2𝑙 𝑛𝜋𝑥
𝑎𝑛 = ∫ 𝑓(𝑥) cos ( ) 𝑑𝑥, 𝑛 = 1,2, …
𝑙 𝑐 𝑙
1 𝑐+2𝑙 𝑛𝜋𝑥
𝑏𝑛 = ∫ 𝑓(𝑥) sin ( ) 𝑑𝑥 𝑛 = 1,2, …
𝑙 𝑐 𝑙
Now, find
𝑐+2𝑙 2𝜋 2 2𝜋
1 1 1 𝑥
𝒂𝟎 = ∫ 𝑓(𝑥) 𝑑𝑥 = ∫ 𝑥 𝑑𝑥 = [ ] = 2𝜋
𝜋 𝑐 𝜋 0 𝜋 2 0
Also,
1 𝑐+2𝑙
𝒂𝒏 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋 𝑐
1 2𝜋
= ∫ 𝑥 cos 𝑛𝑥 𝑑𝑥,
𝜋 0
1 sin 𝑛𝑥 cos 𝑛𝑥 2𝜋
= [𝑥 ( ) − (1) (− )]
𝜋 𝑛 𝑛2 0
1 cos 2𝑛𝜋 1 1
= [0 + − 0 − ] = (0) = 0
𝜋 𝑛2 𝑛2 𝜋
1 𝑐+2𝑙
𝒃𝒏 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 𝑐
1 2𝜋
= ∫ 𝑥 sin 𝑛𝑥 𝑑𝑥
𝜋 0
1 cos 𝑛𝑥 sin 𝑛𝑥 2𝜋
= [𝑥 (− ) − (1) (− )]
𝜋 𝑛 𝑛2 0
1 2𝜋 2
= [− ] = −
𝜋 𝑛 𝑛
Sub. The value of 𝑎0 , 𝑎𝑛 𝑎𝑛𝑑 𝑏𝑛 in 𝑓(𝑥)
We get
∞
1
𝑓(𝑥) = 𝜋 − 2 ∑ sin 𝑛𝑥
𝑛
𝑛=1
Now, find
2𝜋
1
𝒂𝟎 = ∫ 𝑥 2 𝑑𝑥
𝜋 0
8𝜋 3
=
3
Also,
1 𝑐+2𝑙
𝒂𝒏 = ∫ 𝑓(𝑥) 𝑑𝑥
𝜋 𝑐
1 2𝜋 2
= ∫ 𝑥 cos 𝑛𝑥 𝑑𝑥
𝜋 0
4
=
𝑛2
1 𝑐+2𝑙
𝒃𝒏 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 𝑐
1 2𝜋 2
= ∫ 𝑥 sin 𝑛𝑥 𝑑𝑥
𝜋 0
4𝜋
=−
𝑛
Hence,
∞
4𝜋 2 1 𝜋
𝑓(𝑥) = + 4 ∑ ( 2 cos 𝑛 𝑥 − sin 𝑛𝑥)
3 𝑛 𝑛
𝑛=1
Example:3 Obtain the Fourier series to represent f(x)= 𝒆𝒂𝒙 (𝒂 ≠ 𝟎)in the interval 𝟎 < 𝑥 <
2𝝅
Solution: Given function 𝑓(𝑥) may be expanded in Fourier series as
∞ ∞
𝑎0
𝑓(𝑥) = + ∑ 𝑎𝑛 cos 𝑛𝑥 + ∑ 𝑏𝑛 sin 𝑛𝑥 … … … … . (𝑖)
2
𝑛=1 𝑛=1
1 2𝜋
Where , 𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥
𝜋 0
1 2𝜋
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋 0
1 2𝜋
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 0
1 2𝜋
Now, 𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥
𝜋 0
1 2𝜋 𝑎𝑥
= ∫ 𝑒 𝑑𝑥
𝜋 0
1 𝑒 𝑎𝑥 2𝜋
= [ ]
𝜋 𝑎 0
1
= [𝑒 2𝑎𝜋 − 1]
𝑎𝜋
𝑎0 𝑒 2𝑎𝜋 −1
=
2 2𝑎𝜋
2𝜋
1
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋
0
1 2𝜋
= ∫ 𝑒 𝑎𝑥 cos 𝑛𝑥 𝑑𝑥
𝜋 0
𝑒 𝑎𝑥
Using ∫ 𝑒 𝑎𝑥 cos 𝑏𝑥 𝑑𝑥 = {𝑎 cos 𝑏𝑥 + 𝑏 sin 𝑏𝑥} + 𝑐
𝑎2 +𝑏 2
2𝜋
1 𝑒 𝑎𝑥
= [ 2 {𝑎 cos 𝑛𝑥 + 𝑛 sin 𝑛𝑥}]
𝜋 𝑎 + 𝑛2 0
1
= [𝑒 2𝜋𝑎 {𝑎 cos 2𝑛𝜋 + 𝑛 sin 2𝑛𝜋} − 𝑒 0 {𝑎 cos 0 + 𝑛 sin 0}]
𝜋(𝑎2 + 𝑛2 )
As cos 2 𝑛𝜋 = 1 , sin 2𝑛𝜋 = 0 , cos 0 = 1 , sin 0 = 0
𝑎
∴ 𝑎𝑛 = 𝑒 2𝑎𝜋 − 1
𝜋(𝑎2 + 𝑛2 )
2𝜋
1
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋
0
2𝜋
1
= ∫ 𝑒 𝑎𝑥 sin 𝑛𝑥 𝑑𝑥
𝜋
0
2𝜋 𝑒 𝑎𝑥
Using ∫0 𝑒 𝑎𝑥 sin 𝑏𝑥 𝑑𝑥 = {𝑎 sin 𝑏𝑥 − 𝑏 cos 𝑏𝑥} + 𝑐
𝑎2 +𝑏 2
2𝜋
1 𝑒 𝑎𝑥
= [ 2 {𝑎 sin 𝑛𝑥 − 𝑛 cos 𝑛𝑥}]
𝜋 𝑎 + 𝑛2 0
1
= [𝑒 2𝑎𝜋 {𝑎 sin 2𝑛𝜋 − 𝑛 cos 2𝑛𝜋} − {𝑎 sin 0 − 𝑛 cos 0}]
𝜋(𝑎2 + 𝑛2 )
But, cos 2 𝑛𝜋 = 1 , sin 2𝑛𝜋 = 0 , cos 0 = 0 , sin 0 = 0
𝑎
= (−𝑛𝑒 2𝑎𝜋 + 𝑛)
𝜋(𝑎2 + 𝑛2 )
𝑛
∴ 𝑏𝑛 = 2 2
(1 − 𝑒 2𝑎𝜋 )
𝜋(𝑎 + 𝑛 )
Substituting the values of 𝑎0 𝑎𝑛 𝑎𝑛𝑑 𝑏𝑛 𝑖𝑛 (𝑖), 𝑤𝑒 ℎ𝑎𝑣𝑒
∞ ∞
𝑒 2𝑎𝜋 − 1 1 cos 𝑛𝑥 n sin 𝑛𝑥
𝑓(𝑥) = [ +𝑎 ∑ 2 2
−∑ 2 ]
𝜋 2𝑎 𝑎 +𝑛 𝑎 + 𝑛2
𝑛=1 𝑛=1
Example:4 Find the Fourier series representation of 𝑓(𝑥) = 𝑥 + |𝑥| in the interval −𝜋 < 𝑥 < 𝜋.
Solution:
Given function 𝑓(𝑥) may be expanded in Fourier series as
∞
𝑎0
𝑓(𝑥) = + ∑[𝑎𝑛 cos 𝑛𝑥 + 𝑏𝑛 sin 𝑛𝑥]
2
𝑛=1
Now,
𝜋
1
𝑎0 = ∫ 𝑓(𝑥) 𝑑𝑥
𝜋
−𝜋
𝜋
1
= ∫ 𝑥 + |𝑥| 𝑑𝑥
𝜋
−𝜋
𝜋 𝜋
1
= [ ∫ 𝑥 𝑑𝑥 + ∫|𝑥| 𝑑𝑥]
𝜋
−𝜋 −𝜋
𝜋
1
= [0 + 2 ∫|𝑥| 𝑑𝑥]
𝜋
0
1 2
= [𝜋 ] = 𝜋
𝜋
𝜋
1
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋
−𝜋
𝜋
1
= ∫[𝑥 + |𝑥|] cos 𝑛𝑥 𝑑𝑥
𝜋
−𝜋
𝜋 𝜋
1
= [ ∫ 𝑥 cos 𝑛𝑥 𝑑𝑥 + ∫|𝑥| cos 𝑛𝑥 𝑑𝑥]
𝜋
−𝜋 −𝜋
𝜋
2
= ∫|𝑥| cos 𝑛𝑥 𝑑𝑥
𝜋
0
2 sin 𝑛𝑥 cos 𝑛𝑥 𝜋
= [𝑥 − (−1) (− )]
𝜋 𝑛 𝑛 0
2
= [(−1)𝑛 − 1]
𝜋𝑛2
2𝜋
1
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋
0
2𝜋
1 2
= ∫ [𝑥 + |𝑥|] sin 𝑛𝑥 𝑑𝑥 = − (−1)𝑛
𝜋 𝑛
0
Solution:
𝑎0
Let 𝑓(𝑥) = + ∑∞
𝑛=1[𝑎𝑛 cos 𝑛𝑥 + 𝑏𝑛 sin 𝑛𝑥]
2
2𝜋 2
𝑎0 =
3
𝑎0 𝜋2
=
2 3
𝜋
1
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋
−𝜋
1 𝜋
= ∫ (𝑥 + 𝑥 2 ) cos 𝑛𝑥 𝑑𝑥
𝜋 −𝜋
1 𝜋 1 𝜋
= 𝜋 ∫−𝜋 𝑥 cos 𝑛𝑥 𝑑𝑥 + 𝜋 ∫−𝜋 𝑥 2 cos 𝑛𝑥 𝑑𝑥
𝜋
As 𝑥 cos 𝑛𝑥 is an odd function ∫−𝜋 𝑥 cos 𝑛𝑥 𝑑𝑥 = 0 and 𝑥 2 cos 𝑛𝑥 is an even function,
therefore
𝜋 𝜋
∫ 𝑥 2 cos 𝑛𝑥 𝑑𝑥 = 2 ∫ 𝑥 2 cos 𝑛𝑥 𝑑𝑥
−𝜋 0
𝜋
2
= ∫ 𝑥 2 cos 𝑛𝑥 𝑑𝑥
𝜋
0
2 2)
sin 𝑛𝑥 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= [(𝑥 ( ) − (2𝑥) (− )+ (2) (− )]
𝜋 𝑛 𝑛2 𝑛3 0
𝜋
2 𝑥 2 sin 𝑛𝑥 2𝑥 cos 𝑛𝑥 2 sin 𝑛𝑥
= 𝜋 [( )+( )−( )]
𝑛 𝑛2 𝑛3 0
𝜋
2 2 sin 𝑛𝜋 cos 𝑛𝜋 sin 𝑛𝜋
= [𝜋 + 2𝜋 − 2 − 0]
𝜋 𝑛 𝑛2 𝑛3 0
∫ 𝑥 sin 𝑛𝑥 𝑑𝑥 = 2 ∫ 𝑥 sin 𝑛𝑥 𝑑𝑥
−𝜋 0
𝜋
2
= ∫ 𝑥 sin 𝑛𝑥 𝑑𝑥
𝜋
0
2 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= [(𝑥) (− ) − (1) (− )]
𝜋 𝑛 𝑛2 0
2 𝑥 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= 𝜋 [(− )+( )]
𝑛 𝑛2 0
2 𝜋 cos 𝑛𝜋 sin 𝑛𝜋
= [− + − 0]
𝜋 𝑛 𝑛2
But cos 𝑛𝜋 = (−1)𝑛 𝑎𝑛𝑑 sin 𝑛𝜋 = 0
2 (−1)𝑛
∴ 𝑏𝑛 = −
𝑛
Substituting above value in 𝑓(𝑥), we get
𝜋2 (−1)𝑛 cos 𝑛𝑥 (−1)𝑛 sin 𝑛𝑥
𝑓(𝑥) = + 4 ∑∞
𝑛=1 − 2 ∑∞
𝑛=1 … … … … … … … . . (𝑖)
3 𝑛2 𝑛
Integrating by parts
1
= [(𝑥)(𝑠𝑖𝑛𝑥 ) − (1)(− cos 𝑥)]2𝜋
0
𝜋
1
= [𝑥 sin 𝑥 + cos 𝑥 ]2𝜋
0 -4
𝜋
1
= 𝜋 [2𝜋 sin 2𝜋 + cos 2𝜋 − 𝑠𝑜𝑛 0 − cos 0]
𝑎0 = 0
1 2𝜋
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋 0
1 2𝜋
= ∫ 𝑥𝑐𝑜𝑠 𝑥 cos 𝑛𝑥 𝑑𝑥
𝜋 0
1 2𝜋
= 2𝜋 ∫0 𝑥(2𝑐𝑜𝑠𝑛𝑥 cos 𝑥) 𝑑𝑥
Where 𝑛 ≠ 1
1 xsin(𝑛+1)𝑥 cos(𝑛+1)𝑥 xsin(𝑛−1)𝑥 cos(𝑛−1)𝑥 2𝜋
= 2𝜋 [ + (𝑛+1)2
+ + ]
(𝑛−1)2 0
𝑛+1 𝑛−1
∴ 𝑎𝑛 = 0
1 2𝜋
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 0
1 2𝜋
= ∫ 𝑥𝑐𝑜𝑠 𝑥 sin 𝑛𝑥 𝑑𝑥
𝜋 0
1 2𝜋
= 2𝜋 ∫0 𝑥(2𝑠𝑖𝑛𝑛𝑥 cos 𝑥) 𝑑𝑥
1 2𝜋
= ∫ 𝑥{sin(𝑛 + 1)𝑥 + sin(𝑛 − 1)𝑥}𝑑𝑥
2𝜋 0
But, 2SC=S+S,
1 2𝜋 2𝜋
= [∫0 𝑥 sin(𝑛 + 1)𝑥 𝑑𝑥 + ∫0 𝑥 sin(𝑛 − 1)𝑥 𝑑𝑥 ]
2𝜋
Where 𝑛 ≠ 1
1 xcos(𝑛+1)𝑥 sin(𝑛+1)𝑥 xcos(𝑛−1)𝑥 sin(𝑛−1)𝑥 2𝜋
= 2𝜋 [− + (𝑛+1)2
− + ]
(𝑛−1)2 0
𝑛+1 𝑛−1
Putting 𝑛 = 1
1 2𝜋
𝑎1 = 𝜋 ∫0 𝑥𝑐𝑜𝑠 2 𝑥 𝑑𝑥
1 2𝜋
= 2𝜋 ∫0 𝑥(1 + 𝑐𝑜𝑠2𝑥) 𝑑𝑥
1 2𝜋 2𝜋
= 2𝜋 [∫0 𝑥 𝑑𝑥 + ∫0 𝑥𝑐𝑜𝑠2𝑥 )]
2𝜋
1 𝑥2 sin 2𝑥 −𝑐𝑜𝑠2𝑥
= 2𝜋 [ 2 + (𝑥) ( ) − (1) ( )]
2 4 0
2𝜋
1 𝑥2 𝑥 sin 2𝑥 𝑐𝑜𝑠2𝑥
= 2𝜋 [ 2 + + ]
2 4 0
As sin 4𝜋 = 0 , cos 4𝜋 = 1
1 1 1
= 2𝜋 [2𝜋 2 + − 4]
4
𝑎1 = 𝜋
1 2𝜋
And, 𝑏𝑛 = 𝜋 ∫0 𝑥𝑐𝑜𝑠 𝑥 sin 𝑛𝑥 𝑑𝑥
Putting 𝑛 = 1
1 2𝜋
= 2𝜋 ∫0 𝑥(2 sin 𝑥 cos 𝑥) 𝑑𝑥
1 2𝜋
∫ 𝑥𝑠𝑖𝑛2𝑥
2𝜋 0
𝑑𝑥
Integrating by Parts,
1 cos 2𝑥 𝑠𝑖𝑛2𝑥 2𝜋
= [(𝑥) (− ) − (1) (− )]
2𝜋 2 4 0
1 𝑥 cos 2𝑥 sin 2𝑥 2𝜋
= [− + ]
2𝜋 2 4 0
As sin 4𝜋 = 0 , cos 4𝜋 = 1
1 2𝜋
= 2𝜋 [− ]
2
1
𝑏1 = − 2
𝑎0
Now, 𝑓(𝑥) = + 𝑎1 cos 𝑥 + ∑∞ ∞
𝑛=2 𝑎𝑛 cos 𝑛𝑥 + 𝑏1 sin 𝑥 + ∑𝑛=2 𝑏𝑛 sin 𝑛𝑥
2
sin 𝑥 2 3 4
∴ 𝑥 cos 𝑥 = 𝜋 cos 𝑥 − − 2 [3 sin 2𝑥 + sin 3𝑥 + 15 sin 4𝑥 + ⋯ .]
2 8
= ∫ 𝑓(𝑥)𝑑𝑥
−1
0 1
= ∫ 𝑥 𝑑𝑥 + ∫ 2 𝑑𝑥
−1 0
1
= − + 2 = 3/2
2
𝑐+2𝑙
1 𝑛𝜋𝑥
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑑𝑥
𝑙 𝑙
𝑐
0 1
1
= [1 − (1)𝑛 ]
𝑛2 𝜋 2
𝑐+2𝑙
1 sin 𝑛𝜋𝑥
𝑏𝑛 = ∫ 𝑓(𝑥) 𝑑𝑥
𝑙 𝑛𝜋
𝑐
1
= [2 − 3(−1)𝑛 ]
𝑛𝜋
Hence,
∞
3 1 1
𝑓(𝑥) = + ∑ [ 2 2 [1 − (1)𝑛 ] cos 𝑛𝜋𝑥 + [2 − 3(−1)𝑛 ] sin 𝑛𝜋𝑥]
4 𝑛 𝜋 𝑛𝜋
𝑛=1
Exercise:
1. Find the Fourier series of the periodic functions 𝒇(𝒙) with period 𝟐𝝅 defined as
0 −𝜋 < 𝑥 < 0
follows: f(x) ={
𝑥 0<𝑥<𝜋
𝜋 1 cos 𝑛𝑥 𝑛 sin 𝑛𝑥
Answer: 𝒇(𝑥) = + ∑∞ 𝑛
𝑛=1[(−1) − 1] 2
− ∑∞
𝑛=1(−1)
4 𝜋 𝑛 𝑛
𝟐
2. Find the Fourier Series of the function 𝒇(𝒙) = 𝟒 − 𝒙 in the interval (𝟎, 𝟐)
𝟒 𝟒 𝟒
Answer: 𝒂𝟎 = 𝟑 , 𝒂𝒏 = − 𝒏𝟐 𝝅𝟐 , 𝒃𝒏 = 𝒏𝝅
𝟏
3. Find the Fourier Series of the function 𝒇(𝒙) = 𝟐 (𝝅 − 𝒙) in the interval (𝟎, 𝟐𝝅).
𝝅 𝟏 𝟏 𝟏
Hence deduced that 𝟒 = 𝟏 − 𝟑 + 𝟓 − 𝟕 + ⋯
𝟏
Answer: 𝒂𝟎 = 𝒂𝒏 = 𝟎, 𝒃𝒏 = 𝒏
4. Find the Fourier series of periodic functions with period 2, which are given below:
; for0 x 1
f ( x) =
(2 − x); for1 x 2
3π 1 1−2(−1)𝑛
Answer∶ [𝑎0 = , 𝑎𝑛 = π𝑛2 ((−1)𝑛 − 1) , 𝑏𝑛 = ]
4 n
Example:8 Find the Fourier Series of the function 𝒇(𝒙) = |𝒙| in the interval (−𝝅, 𝝅).
Solution:
Here 𝑓(𝑥) = |𝑥| is even function, therefore for the given interval (−𝜋, 𝜋), 𝑏𝑛 = 0
2 𝐿
𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥
𝑙 0
2 𝜋
= ∫ |𝑥| 𝑑𝑥
𝜋 0
𝜋
2 𝑥2
= ( ) =𝜋
𝜋 2 0
2 𝐿 𝑛𝜋𝑥
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑑𝑥
𝑙 0 𝑙
2 𝜋
𝑎𝑛 = ∫ |𝑥| cos 𝑛𝑥 𝑑𝑥
𝜋 0
2 sin 𝑛𝑥 cos 𝑛𝑥 𝜋
= [𝑥 ( )+ ]
𝜋 𝑛 𝑛2 0
2 cos 𝑛𝑥 cos 0
= ( 2 − 2 )
𝜋 𝑛 𝑛
2
= [(−1)𝑛 − 1]
𝑛2 𝜋
Hence
∞
𝜋 2 [(−1)𝑛 − 1]
𝑓(𝑥) = |𝑥| = + ∑ cos 𝑛𝑥
2 𝜋 𝑛2
𝑛=1
Where,
1 𝜋
𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥
𝜋 −𝜋
1 𝜋
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋 −𝜋
1 cos(𝑛−1)𝑥 cos(𝑛+1)𝑥 𝜋
= 𝜋[ − ] , (Where, 𝑛 ≠ 1)
𝑛−1 𝑛+1 0
∴ 𝑎𝑛 = 0
Thus ,𝑎𝑛 = 0 ,if 𝑛 is odd
4
= − 𝜋(𝑛2−1), if 𝑛is even
When 𝑛 = 1
1 𝜋
𝑎1 = ∫ 𝑓(𝑥) cos 𝑥 𝑑𝑥
𝜋 −𝜋
2 𝜋
= ∫ |sin 𝑥|𝑐𝑜𝑠𝑥
𝜋 0
𝑑𝑥
2 𝜋
= ∫ sin 2𝑥 𝑑𝑥
𝜋 0
2 cos 2𝑥 𝜋
= [− ]
𝜋 2 0
𝑎1 = 0
∴ 𝑠𝑒𝑟𝑖𝑒𝑠 (𝑖)𝑏𝑒𝑐𝑜𝑚𝑒𝑠,
2 4 cos 𝑛𝑥
𝑓(𝑥) = 𝜋 − 𝜋 ∑∞𝑛=2 2
𝑛−𝑒𝑣𝑒𝑛 𝑛 −1
∞
𝑎0 𝑛𝜋
𝑓(𝑥) = + ∑ 𝑎𝑛 cos 𝑥
2 𝑙
𝑛=1
2 𝐿 2 𝐿 𝑛𝜋𝑥
𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥 , 𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑑𝑥
𝑙 0 𝑙 0 𝑙
The Fourier series of an odd function of period of 2L is a “Fourier sine series” (−𝒍, 𝒍)
∞
𝑛𝜋
𝑓(𝑥) = ∑ 𝑏𝑛 sin 𝑥
𝑙
𝑛=1
2 𝐿 𝑛𝜋𝑥
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑑𝑥
𝑙 0 𝑙
Example:10 Find the Fourier sine series of 𝒇(𝒙) = 𝝅 − 𝒙, 𝒇𝒐𝒓 𝟎 < 𝑥 < 𝜋
Solution: let the required half range sine series be,
𝑓(𝑥) = ∑∞
𝑛=1 𝑏𝑛 sin 𝑛𝑥 … … … … … … … . (𝑖)
2 𝜋
Where, 𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 0
2 𝜋
𝑏𝑛 = ∫ (𝜋 − 𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 0
Integrating by parts
2 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= [(𝜋 − 𝑥) (− ) − (−1) (− )]
𝜋 𝑛 𝑛2 0
2 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= − 𝜋 [(𝜋 − 𝑥) + ]
𝑛 𝑛2 0
2 𝜋
= − 𝜋 (− 𝑛)
2
𝑏𝑛 = 𝑛
Substituting above values in (i), we get
sin 𝑛𝑥
𝑓(𝑥) = 2 ∑∞
𝑛=1 𝑛
sin 𝑥 sin 2𝑥 sin 3𝑥
𝑓(𝑥) = 2 [ + + + ⋯……..]
1 2 3
𝝅
𝒙, 𝟎<𝑥< 𝟐
Example:11. Find the half range of cosine series for 𝒇(𝒙) = { 𝝅
𝝅 − 𝒙, <𝑥<𝜋
𝟐
𝑎0
Solution: 𝑓(𝑥) = + ∑∞
𝑛=1 𝑎𝑛 cos 𝑛𝑥 … … … … … … … . (𝑖)
2
2 𝜋
Where, 𝑎0 = ∫ 𝑓(𝑥)𝑑𝑥
𝜋 0
2 𝜋
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋 0
𝜋
2 𝜋
Now, 𝑎0 = [∫ 2 𝑥 𝑑𝑥 + ∫𝜋 (𝜋 − 𝑥)𝑑𝑥]
𝜋 0 2
𝜋
𝜋
2 𝑥2 2 𝑥2
= 𝜋 [( 2 ) + (𝜋𝑥 − ) 2]
0 2 𝑥
2
𝜋
1
= [(𝑥 2 )02 + (2𝜋𝑥 − 𝑥 2 )𝜋𝑥2 ]
𝜋
2
1 𝜋2 3𝜋 2
= [ 4 + 𝜋2 − ]
𝜋 4
1 𝜋2
= 𝜋[2]
𝜋
= 2
𝑎0 𝜋
∴ =
2 4
2 𝜋
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
𝜋 0
𝜋
2 𝜋
= 𝜋 [∫02 𝑥𝑐𝑜𝑠 𝑛𝑥 𝑑𝑥 + ∫𝜋 (𝜋 − 𝑥) cos 𝑛𝑥 𝑑𝑥 ]
2
𝜋
𝜋
2 sin 𝑛𝑥 cos 𝑛𝑥 2 2 sin 𝑛𝑥 cos 𝑛𝑥
= 𝜋 [((𝑥) ( ) − (1) (− ))] + [((𝜋 − 𝑥) ( ) − (−1) (− ))]𝜋
𝑛 𝑛2 𝜋 𝑛 𝑛2
0
2
𝜋 𝜋
2 𝑥 sin 𝑛𝑥 cos 𝑛𝑥 2 sin 𝑛𝑥 cos 𝑛𝑥 2
= [( + 2
)] + [((𝜋 − 𝑥) − )]
𝜋 𝑛 𝑛 0 𝜋 𝑛 𝑛2 𝜋
2
2 𝜋 𝑛𝜋 1 𝑛𝜋 1 (−1)𝑛 𝜋 𝑛𝜋 1 𝑛𝜋
= [ sin + cos − 𝑛2 − − 2𝑛 sin + 𝑛2 cos ]
𝜋 2𝑛 2 𝑛2 2 𝑛2 2 2
2 𝑛𝜋
∴ 𝑎𝑛 = [2 cos − 1 − (−1)𝑛 ]
𝑛2 𝜋 2
Where 𝑛 is odd
2 𝑛𝜋 𝑛𝜋
∴ 𝑎𝑛 = cos = 0 (cos = 0, 𝑤ℎ𝑒𝑟𝑒 𝑛 𝑖𝑠 𝑜𝑑𝑑)
𝑛2 𝜋 2 2
Solution:
Here we have to find half range sine series in (0, 𝜋)
Let the required half range sine series be
𝑓(𝑥) = ∑∞
𝑛=1 𝑏𝑛 sin 𝑛𝑥 … … … … … … … . (𝑖)
2 𝜋
Where, 𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
𝜋 0
𝜋
2 2 𝜋
= 𝜋 ∫02 𝑚𝑥 sin 𝑛𝑥 𝑑𝑥 + 𝜋 ∫𝜋 𝑚(𝜋 − 𝑥) sin 𝑛𝑥 𝑑𝑥
2
Integrating by parts
𝜋
2𝑚 cos 𝑛𝑥 sin 𝑛𝑥 2 2𝑚 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= [(𝑥) (− ) − (1) (− )] + [(𝜋 − 𝑥) (− ) − (−1) (− )]𝜋
𝜋 𝑛 𝑛2 0 𝜋 𝑛 𝑛2
2
𝜋
2𝑚 cos 𝑛𝑥 sin 𝑛𝑥 2 2𝑚 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
= − [𝑥 − ] − [(𝜋 − 𝑥) + ]
𝜋 𝑛 𝑛2 0 𝜋 𝑛 𝑛2 𝜋
2
2𝑚 𝜋 𝑛𝜋 1 𝑛𝜋 2𝑚 𝜋 𝑛𝜋 1 𝑛𝜋
=− [ cos ( ) − 2 sin ( )] + [ cos ( ) + 2 sin ( )]
𝜋 2𝑛 2 𝑛 2 𝜋 2𝑛 2 𝑛 2
4𝑚 𝑛𝜋
𝑏𝑛 = sin ( )
𝑛2 𝜋 2
Substituting above value in (i), it takes the form
4𝑚 1 𝑛𝜋
𝑓(𝑥) = ∑∞
𝑛=1 sin ( 2 ) sin 𝑛𝑥
𝜋 𝑛2
Example:13. Obtain half range sine series to represent 𝒇(𝒙) = 𝒍𝒙 − 𝒙𝟐 in the range (𝟎, 𝒍)
𝑛𝜋𝑥
Solution: Let 𝑓(𝑥) = ∑∞
𝑛=1 𝑓(𝑥) sin 𝑙
2 𝑙 𝑛𝜋𝑥
Where, 𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑑𝑥
𝑙 0 𝑙
2 𝑙 𝑛𝜋𝑥
= ∫ 𝑙𝑥 − 𝑥 2 sin 𝑑𝑥
𝑙 0 𝑙
𝑙
2 𝑙 𝑛𝜋𝑥 𝑙2 𝑛𝜋𝑥 𝑙3 𝑛𝜋𝑥
= [(𝑙𝑥 − 𝑥 2 ) (− 𝑛𝜋 cos ) − (𝑙 − 2𝑥) (− 𝑛2𝜋2 sin ) + (−2) 𝑛3 𝜋3 cos ]
𝑙 𝑙 𝑙 𝑙 0
−4𝑙2
= [cos 𝑛𝜋 − 1]
𝑛3 𝜋 3
−4𝑙2
= 𝑛3 𝜋3 [(−1)𝑛 −1]
= 0 𝑖𝑓 𝑛 𝑖𝑠 𝑒𝑣𝑒𝑛
8𝑙2
= 𝑖𝑓 𝑛 𝑖𝑠 𝑜𝑑𝑑
𝑛3 𝜋 3
2 𝑐3
= 𝑐[3]
2𝑐 2
𝑎0 = 3
𝑎0 𝑐2
=
2 3
2 𝑐 𝑛𝜋𝑥
𝑎𝑛 = ∫ 𝑓(𝑥) cos ( 𝑐 ) 𝑑𝑥
𝑐 0
2 𝑐 𝑛𝜋𝑥
= 𝑐 ∫0 𝑥 2 cos ( ) 𝑑𝑥
𝑐
4𝑐 𝑛𝜋𝑥 𝑐
= [𝑥 cos ( )]
𝑛2 𝜋 2 𝑐 0
4𝑐
= [𝑐 cos 𝑛𝜋]
𝑛2 𝜋 2
4𝑐 2 (−1)𝑛
∴ 𝑎𝑛 = 𝑛2 𝜋 2
• EXERCISE:
l
= 𝑘 (𝑙 − 𝑥) , xl
2
8
2n sin 2nx
[ANS: f ( x) = sin x − ]
(4n 2 − 1)
2
2 n =1
3. Find the Fourier sine series of 𝑓(𝑥) = 𝑒 𝑥 in the interval (0, 𝜋) [Summer 2023]