Module-2 Fourier Series
Module-2 Fourier Series
Contents:
Introduction
Periodic Functions
Fourier series are suitable for the expansion of periodic functions. Since Voltage,
Current, flux density, Vibrations etc are often periodic therefore the study of Fourier
series is very important for engineers.
The Fourier series has many applications in electrical engineering, vibration analysis,
acoustics, optics, signal processing, image processing, quantum mechanics,
econometrics, etc.
The Fourier transforms are mainly used to solve ordinary differential equations, partial
differential equations and integral equations.
Fourier analysis has its applications in solving boundary and initial value problems in
mechanics, heat flow, etc.
The Z-transform is used in the manipulation of discrete data sequences.
It has attained lot of significance in the formulation and analysis of discrete-time
systems.
Used extensively digital signal processing, control theory, population science,
economics etc.
These discrete models are solved with difference equations and the role played by the
Z-transform in the solution of difference equations is similar to that played by the
Laplace transforms in the solution of differential equations.
Introduction:
In differential calculus, we are familiar with the expansion of a differentiable function f (x)
in the form a power series. Taylor’s series of f (x) about x a is an infinite series in ascending
powers of ( x a ) and Maclaurin’s series is an infinite series in ascending powers of x . In many
engineering problems it becomes necessary to expand a given function f (x) in a cosine and sine
terms which belongs to a class of functions called periodic functions.
Periodic functions:
A real valued functions f (x) is said to be periodic of period T if f ( x T ) f ( x), T 0.
Examples: k (constant), sin x, cos x are periodic functions of period 2 as we know from
trigonometry that sin( x 2 ) sin x, cos( x 2 ) cos x .
Also if f ( x) k then f ( x 2 ) k .
Further we also have a property stating that ‘A linear combination of periodic functions having
period T is also periodic of period T’.
Trigonometric series and Euler’s formulae:
The functions k , cos nx, sin nx (n 1,2,3...) are all periodic functions of period 2 . Taking the
constant k a0 / 2, the linear combination of all the periodic functions is of the form:
a0
an cos nx bn sin nx (1)
2 n1 n1
Where 𝑎 , 𝑎 , 𝑏 (𝑛 = 1,2,3 … ) are all constants is called a Trigonometric series. Hence any
function f (x) expressible as trigonometric series of the above form must also be periodic with
period 2
We shall assume that f (x) is defined in an interval of length 2 , say (c, c 2 ) and can be
considered as periodic function with period 2 . Then we have,
1 c2
a0 f ( x)dx, (2)
c
1 c2
an f ( x) cos nx dx, (3)
c
1 c2
bn f ( x) sin nx dx (4)
c
The expression for finding 𝑎 , 𝑎 , 𝑏 are called Euler’s formulae.
Fourier series of period 2 :
Suppose we form the trigonometric series from 𝑓(𝑥) defined in (𝑐, 𝑐 + 2𝜋) with the help of
Euler’s formula we cannot conclude that the series will converge to 𝑓(𝑥). We can only say that
when 𝑓(𝑥) is of the form (1) the coefficients of the terms in the series are given by the formula
(2), (3), (4).
We now proceed to state the conditions known as Dirichlet’s Conditions under which the
expansion of f (x) as a trigonometric series will converges to f (x) at every point of continuity.
1. f (x) is a single valued and finite in the interval (c, c 2 )
2. f (x) is periodic with period 2 .
3. f (x) has only finite number of discontinuities in (c, c 2 )
4. f (x) has at the most a finite number of maxima and minima in (c, c 2 ) .
Thus we can say that, if 𝑓(𝑥) is defined in (𝑐, 𝑐 + 2𝜋) and satisfies Dirichlet’s conditions, then
the trigonometric series (1) is called Fourier series of f (x) in (c, c 2 ) . The constants a0 , an , bn
as given by (2), (3), (4) respectively are called Fourier coefficients.
Note:
1. The following integrals will be useful in problems:
e ax
e cos bx dx ( a cos bx b sin bx)
ax
a2 b2
e ax
( a sin bx b cos bx)
ax
e sin bx dx
a2 b2
2. The following values will have frequent reference in problems when n is an integer.
sin n 0, cos n (1) n , cos 2n 1, cos(2n 1) 1 .
3. Bernoulli’s generalized rule of integration by parts:
While finding the Fourier coefficients, in most of the problems we have to perform
integration of a product with the first function as a polynomial in x. In such cases
Bernoulli’s rule as a given below will be highly helpful.
( x) in 0 x
A function f ( x) is said to be even if (2 x) ( x) and odd if
( x) in x 2
(2 x) ( x) .
x ; 0 x
Example: i) f ( x) is an even function.
2 x ; x 2
x2 in 0 x
ii ) f ( x ) is an Odd function.
(2 x ) in x 2
2
If f (x) is an even function then the Fourier coefficients bn 0 and a0 & an can be
2 2
calculated by using the formula a0
0
f ( x ) dx, a n
f ( x) cos nx dx .
0
If f (x) is an odd function then the Fourier coefficients a0 & an 0 and bn can be
2
calculated by using the formula bn
f ( x) sin nx dx .
0
Worked Examples:
1. Obtain the Fourier series for the function x 2 in x and hence deduce that
1 1 1 1 2
i) ...
12 2 2 32 4 2 12
1 1 1 1 2
ii) ...
12 2 2 32 4 2 6
1 1 1 2
iii ) ...
12 32 5 2 8
Solution: The Fourier series of f (x) having period 2 is given by
a0
f ( x) an cos nx bn sin nx
2 n 1 n 1
Where,
1 c2 1 c2 1 c2
a0 f ( x)dx, an f ( x) cos nx dx, bn f ( x) sin nx dx
c c c
1 1 1
a0 f ( x)dx, an f ( x) cos nx dx, bn f ( x) sin nx dx
Here f ( x) x 2 and f ( x) ( x) 2 x 2 f ( x).
2 2 sin nx cos nx sin nx
x ( 2 x ) 2
n n
2
n
3
0
4 4(1) n
( cos n 0) .
n2 n2
By substituting theses values of a0 , an , bn in the Fourier series is given by
2
4(1) n
f ( x) x 2
cos nx
3 n1 n 2
(1)
Deductions:
putting 𝑥 = 0 in (1), we get
( )
𝑓(0) = +∑ cos 0
( )
0= +∑ , since 𝑓(0) = 0; cos 0 = 1
− =4 − + − + −⋯
= − + − −⋯ (2)
𝜋 − =∑
=∑
= + + + −⋯ (3)
=2 + + +⋯
= + + +⋯
𝟏
2. Obtain Fourier series for 𝒇(𝒙) = |𝒙| in the range −𝝅 ≤ 𝒙 ≤ 𝝅. Hence deduce that +
𝟏𝟐
𝟏 𝟏 𝝅𝟐
+ +⋯= .
𝟑𝟐 𝟓𝟐 𝟖
a0
f ( x) an cos nx bn sin nx
2 n 1 n 1
𝑎 = ∫ 𝑥𝑑𝑥 = = (𝜋 − 0) = 𝜋.
= .
𝑎 = ∫ 𝑥 cos 𝑛𝑥 𝑑𝑥
𝑎 =− {1 − (−1) }
0= − ∑ {1 − (−1) }.
− =− ∑ {1 − (−1) }
=∑ {1 − (−1) }
1 − (+1) = 0 𝑖𝑓 𝑛 𝑖𝑠 𝑒𝑣𝑒𝑛
But {1 − (−1) } =
1 − (−1) = 2 𝑖𝑓 𝑛 𝑖𝑠 𝑜𝑑𝑑
= + + +⋯
𝟐𝒙
𝟏+ 𝒊𝒏 − 𝝅 < 𝑥 ≤ 0
𝝅
3. Find the Fourier series of 𝒇(𝒙) = 𝟐𝒙 .
𝟏− 𝒊𝒏 𝟎≤𝒙<𝜋
𝝅
𝝅𝟐 𝟏 𝟏 𝟏
Hence deduce that = + + +⋯
𝟖 𝟏𝟐 𝟑𝟐 𝟓𝟐
Solution: The Fourier series of f (x) defined in (−𝜋, 𝜋) having period 2 is given by
a0
f ( x) an cos nx bn sin nx
2 n 1 n 1
1 1 1
Where, a0
f ( x )dx, an
f ( x ) cos nx dx, bn
f ( x) sin nx dx
1+ 𝑖𝑛 − 𝜋 < 𝑥 ≤ 0
Let 𝑓(𝑥) = be the given function.
1− 𝑖𝑛 0 ≤ 𝑥 < 𝜋
1 − (+1) = 0 𝑖𝑓 𝑛 𝑖𝑠 𝑒𝑣𝑒𝑛
But 1 − (−1) =
1 − (−1) = 2 𝑖𝑓 𝑛 𝑖𝑠 𝑜𝑑𝑑
Therefore 𝑓(𝑥) = ∑ , , … cos 𝑛𝑥
𝑓(0) = ∑ , , …
1= + + +⋯
𝝅𝟐 𝟏 𝟏 𝟏
= + + +⋯
𝟖 𝟏𝟐 𝟑𝟐 𝟓𝟐
𝑏 = ∫ 𝑓(𝑥) sin 𝑛𝑥 𝑑𝑥
Putting 𝑛 = 1 we get,
𝑏 = ∫ 𝑥 sin 𝑥 cos 𝑥 𝑑𝑥 = ∫ 𝑥 𝑑𝑥
= ∫ 𝑥 sin 2𝑥 𝑑𝑥
𝑏 =− (𝜋𝑐𝑜𝑠2𝜋 − 0) = − ; ∵ 𝑐𝑜𝑠2𝜋 = 1
𝑏 =−
𝟏 𝟐𝒏( 𝟏)𝒏
𝒙𝒄𝒐𝒔 𝒙 = − 𝒔𝒊𝒏𝒙 + ∑𝒏 𝟐 𝒏𝟐 𝟏 𝐬𝐢𝐧 𝒏𝒙 .
𝟐
𝒂𝒙
5. Obtain the Fourier series to represent 𝒆 from 𝒙 = −𝝅 to 𝒙 = 𝝅. Hence derive the
𝝅
series for .
𝐬𝐢𝐧 𝒉𝝅
Solution: Period of 𝑓(𝑥) = 𝜋 − (−𝜋) = 2𝜋 and the Fourier series of period 2𝜋 is given by
𝑓(𝑥) = +∑ 𝑎 cos 𝑛𝑥 + ∑ 𝑏 sin 𝑛𝑥 (1)
Now 𝑎 = ∫ 𝑒 𝑑𝑥 = =− [𝑒 −𝑒 ]= [𝑒 −𝑒 ]
= = .
𝑎 = ∫ 𝑒 cos 𝑛𝑥 𝑑𝑥
=− {𝑒 cos 𝑛𝜋 − 𝑒 cos(−𝑛𝜋)}
( )
( )
=− ( )
cos 𝑛𝜋 {𝑒 −𝑒 }=
( )
{𝑒 −𝑒 }
( )
𝑎 = ( )
.
𝑏 = ∫ 𝑒 sin 𝑛𝑥 𝑑𝑥
=− [𝑒 𝑐𝑜𝑠𝑛𝑥] ,
( )
= 1+2 − + − + −⋯
= 1−1+2 − + − ⋯.
=2 − + −⋯ .
𝝅 𝒙
6. Obtain the Fourier series of 𝒇(𝒙) = 𝒊𝒏 𝟎 < 𝑥 < 2𝝅. Hence deduce that
𝟐
𝟏 𝟏 𝟏 𝝅
𝟏 − + − + ⋯.= .
𝟑 𝟓 𝟕 𝟒
Now, 𝑏 = ∫ sin 𝑛𝑥 𝑑𝑥 .
𝑏 = (𝜋 − 𝑥) − (−1)
𝑏 =− (0 − 𝜋) =
[Note: at 𝒙 = 𝟎 𝒐𝒓 𝟐𝝅, 𝒙 = 𝝅 R.H.S of the Fourier series becomes zero and deduce we try
𝝅
𝒙= ∈ (𝟎, 𝟐𝝅)]
𝟐
∴𝑓 =∑ sin .
( / ) ( )
= + + + + +⋯
= 1 − + − ….
𝒙 𝒊𝒏 𝟎 ≤ 𝒙 ≤ 𝝅 𝝅
7. If 𝒇(𝒙) = show that the Fourier series of 𝒇(𝒙) in [𝟎, 𝟐𝝅] is −
𝟐𝝅 − 𝒙 𝒊𝒏 𝝅 ≤ 𝒙 ≤ 𝟐𝝅 𝟐
𝑥 𝑖𝑛 0 ≤ 𝑥 ≤ 𝜋 𝜙(𝑥) = 𝑥 𝑖𝑛 0 ≤ 𝑥 ≤ 𝜋
here 𝑓(𝑥) = =
2𝜋 − 𝑥 𝑖𝑛 𝜋 ≤ 𝑥 ≤ 2𝜋 𝜓(𝑥) = 2𝜋 − 𝑥 𝑖𝑛 𝜋 ≤ 𝑥 ≤ 2𝜋
𝜙(2𝜋 − 𝑥) = 2𝜋 − 𝑥 = 𝜓(𝑥)
∴ 𝑓(𝑥) is even in (0, 2𝜋) and hence 𝑏 = 0.
Now, 𝑎 = ∫ 𝑓(𝑥)𝑑𝑥
= ∫ 𝑥𝑑𝑥 =
= −0 = (𝜋 ) = 𝜋.
𝒂𝟎 𝝅
= .
𝟐 𝟐
𝒂𝒏 = ∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
= ∫ 𝑥 cos 𝑛𝑥 𝑑𝑥
𝟐 𝒔𝒊𝒏 𝒏𝒙 𝒄𝒐𝒔 𝒏𝒙 𝝅
= 𝒙 − (𝟏)
𝝅 𝒏 𝒏𝟐 𝟎
𝑎 =− {1 − (−1) } .
∴ 𝑓(𝑥) = − ∑ , , ,… 2 cos 𝑛𝑥
Thus 𝑓(𝑥) = − + + + ⋯.
𝑎 𝑛𝜋𝑥 𝑛𝜋𝑥
𝑓(𝑥) = + 𝑎 cos + 𝑏 sin
2 𝑙 𝑙
Working procedure:
1. If the period of the given function is other than 2𝜋 we first equate the period to 2𝑙 and
obtain the value 𝑙.
2. We then write the appropriate Fourier series and compute 𝑎 , 𝑎 , 𝑏 associated with it.
3. However if 𝑓(𝑥) is defined in an interval of the form (−𝑙, 𝑙) 𝑜𝑟 (0,2𝑙) we can compute
𝑎 , 𝑎 , 𝑏 using the concept of even and odd functions taking the following table into
consideration.
Nature & condition
𝑎 𝑎 𝑏
of 𝑓(𝑥)
Even function:
2 2 𝑛𝜋𝑥
𝑓(−𝑥) = 𝑓(𝑥) 𝑓(𝑥) 𝑑𝑥 𝑓(𝑥) cos 𝑑𝑥 0
𝑙 𝑙 𝑙
𝑓(2𝑙 − 𝑥) = 𝑓(𝑥)
Odd function:
2 𝑛𝜋𝑥
𝑓(−𝑥) = −𝑓(𝑥) 0 0 𝑓(𝑥) sin 𝑑𝑥
𝑙 𝑙
𝑓(2𝑙 − 𝑥) = −𝑓(𝑥)
Worked Examples:
1. Obtain the Fourier series of 𝒇(𝒙) = |𝒙| in (−𝒍, 𝒍). Hence show that
𝟏 𝟏 𝟏 𝝅𝟐
+ + +⋯=
𝟏𝟐 𝟑𝟐 𝟓𝟐 𝟖
Solution: The period of 𝑓(𝑥) = 𝑙 − (−𝑙) = 2𝑙 = 2𝑙 and the Fourier series of period 2𝑙 is
Now 𝑎 = ∫ 𝑥 𝑑𝑥 = = (𝑙 − 0) = 𝑙
𝑎 =𝑙
= .
To deduce the series we shall put 𝑥 = 0 which gives 𝑓(𝑥) = 0 and the Fourier series becomes,
0= − ∑ {1 − (−1) }
=∑
∴ =∑ , , … .2
𝝅𝟐 𝟏 𝟏 𝟏
= + + +⋯.
𝟖 𝟏𝟐 𝟑𝟐 𝟓𝟐
𝟒𝒙 𝟑
𝟏+ 𝒊𝒏 − < 𝑥 ≤ 0
𝟑 𝟐
2. Obtain Fourier series for the function 𝒇(𝒙) = 𝟒𝒙 𝟑 . Hence deduce that
𝟏− 𝒊𝒏 𝟎 ≤ 𝒙 <
𝟑 𝟐
𝝅𝟐 𝟏 𝟏 𝟏
= + + +⋯
𝟖 𝟏𝟐 𝟑𝟐 𝟓𝟐
2𝑙 = 3 𝑜𝑟 𝑙 = 3/2 .
We shall check 𝑓(𝑥) for even or odd nature.
𝑎 = 1− − − −
/
𝑎 = − 𝑐𝑜𝑠
= .
𝑎 =∫ 𝑒 cos 𝑛𝜋𝑥 𝑑𝑥
=− [𝑒 cos 2𝑛𝜋 − 1]
𝑎 =− −1 = .
( )
𝑏 =∫ 𝑒 sin 𝑛𝜋𝑥 𝑑𝑥
𝑏 =− [𝑒 cos 𝑛𝜋𝑥]
( )
𝑏 =− −1 = .
( )
Sine half range Fourier series for 𝑓(𝑥) in (0, 𝑙) is defined as 𝑓(𝑥) = ∑ 𝑏 sin where
Note: Similar consideration hold good for (0, 𝜋) as it is a particular case when 𝑙 = 𝜋.
The following table summarizes the Half range Fourier series and will be useful for working
problems.
𝑓(𝑥) Required series Fourier Coefficients
series
(0, 𝑙) Cosine series +∑ 𝑎 cos 𝑎 = ∫ 𝑓(𝑥) 𝑑𝑥, 𝑎 =
∫ 𝑓(𝑥) cos 𝑑𝑥
∫ 𝑓(𝑥) cos 𝑛𝑥 𝑑𝑥
Worked Problems:
1. Obtain the sine half range Fourier series of 𝒇(𝒙) = 𝒙𝟐 in 𝟎 < 𝑥 < 𝜋.
Solution: The sine half range Fourier series of the function 𝑓(𝑥) in (0, 𝜋) is
𝑏 = 𝑥 – − 2𝑥 – +2
= − (𝜋 𝑐𝑜𝑠𝑛𝜋 − 0) + (0 − 0) + (cos 𝑛𝜋 − cos 0)
( )
𝑏 = − [1 − (−1) ]
2. Obtain the cosine half range Fourier series of 𝒇(𝒙) = 𝟐𝒙 − 𝟏 in 𝟎 < 𝑥 < 𝟏.
Solution: Comparing the given interval (0,1) with (0, 𝑙) we have 𝑙 = 1. The corresponding
= ((−1) − 1)
𝑎 =− {1 − (−1) }
3. Show that the sine half range series for the function 𝒇(𝒙) = 𝒍𝒙 − 𝒙𝟐 in 𝟎 < 𝑥 < 𝑙 is
𝟖𝒍𝟐 𝟏 𝟐𝒏 𝟏
∑𝟎 𝒔𝒊𝒏 𝝅𝒙.
𝝅𝟑 (𝟐𝒏 𝟏)𝟑 𝒍
Solution: The sine half range series of 𝑓(𝑥) in (0, 𝑙) is given by 𝑓(𝑥) = ∑ 𝑏 sin
=− cos
But 1,3,5 … are odd numbers represented in general as (2𝑛 + 1) where 𝑛 = 0,1,2,3, … Thus we
have, 𝑓(𝑥) = ∑
( )
sin 𝜋𝑥.
𝟏
− 𝒙 𝒊𝒏 𝟎 < 𝑥 < 1/2
𝟒
4. Obtain the sine half range series of 𝒇(𝒙) = 𝟑 .
𝒙− 𝒊𝒏 𝟏/𝟐 < 𝑥 < 1
𝟒
Solution: 𝑓(𝑥) is defined in (0,1). Comparing with half the range (0, 𝑙) we have 𝑙 = 1. The
corresponding sine half range series is given by
/
=2 − − 𝑥 cos 𝑛𝜋𝑥 − [sin 𝑛𝜋𝑥] − 𝑥− cos 𝑛𝜋𝑥 + [sin 𝑛𝜋𝑥]
/
1 1 𝑛𝜋 1 1 𝑛𝜋 1 1 1 𝑛𝜋 1 𝑛𝜋
=2 − − cos − − sin − cos 𝑛𝜋 + cos + 0 − sin
𝑛𝜋 4 2 4 𝑛 𝜋 2 𝑛𝜋 4 4 2 𝑛 𝜋 2
=2 cos + 1 − cos 𝑛𝜋 − cos − sin
𝑏 = {1 − (−1) } − sin
Here = 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡,
Note: All these formulas are holds good for half range Fourier series also.
Worked Examples:
1. Obtain the Fourier series of 𝒚 upto the second harmonics for the following values.
𝒙𝟎 45 90 135 180 225 270 315 360
𝒚 4.0 3.8 2.4 2.0 -1.5 0 2.8 3.4
Solution: The interval of 𝑥 is 0 < 𝑥 ≤ 2𝜋 and period of 𝑦 = 𝑓(𝑥) is 2𝜋 we have to compute
𝑎 ,𝑎 ,𝑏 ,𝑎 ,𝑏 .
𝑎 = ∑ 𝑦, 𝑎 = ∑ 𝑦 cos 𝑥 , 𝑏 = ∑ 𝑦 sin 𝑥.
2. Compute the first two harmonics of the Fourier series of 𝒇(𝒙) given the following table.
𝒙 0 𝝅 𝟐𝝅 𝝅 𝟒𝝅 𝟓𝝅 𝟐𝝅
𝟑 𝟑 𝟑 𝟑
𝒚 1.0 1.4 1.9 1.7 1.5 1.2 1.0
Solution: we have values of 𝑓(𝑥) = 𝑦 in the interval 0 ≤ 𝑥 ≤ 2𝜋 and hence we omit the last
value for 𝑥 = 2𝜋 which is same for 𝑥 = 0. i.e., 𝑓(2𝜋) = 1.0 = 𝑓(0).
𝒙𝟎 𝒚 𝒄𝒐𝒔 𝒙 𝒚 𝒄𝒐𝒔 𝒙 𝒔𝒊𝒏 𝒙 𝒚𝒔𝒊𝒏 𝒙 𝒄𝒐𝒔 𝟐𝒙 𝒚 𝒄𝒐𝒔 𝟐𝒙 𝒔𝒊𝒏 𝟐𝒙 𝒚 𝒔𝒊𝒏 𝟐𝒙
0 1 1 1 0 0 1 1 0 0
60 1.4 0.5 0.7 0.866 1.2124 -0.5 -0.7 0.866 1.2124
120 1.9 -0.5 -0.95 0.866 1.6454 -0.5 -0.95 -0.866 -1.6454
180 1.7 -1 -1.7 0 0 1 1.7 0 0
240 1.5 -0.5 -0.75 -0.866 -1.299 -0.5 -0.75 0.866 1.299
300 1.2 0.5 0.6 -0.866 -1.0392 -0.5 -0.6 -0.866 -1.0392
Total -1.1 0.5196 -0.3 -0.1732
The first two harmonics are (𝑎 cos 𝑥 + 𝑏 sin 𝑥) + (𝑎 cos 2𝑥 + 𝑏 sin 2𝑥). Thus they are
(−0.367 cos 𝑥 + 0.1732 sin 𝑥) + (−0.1 cos 2𝑥 − 0.0577 sin 2𝑥).
3. Obtain the constant term and the coefficients of 𝒔𝒊𝒏 𝜽 and 𝒔𝒊𝒏 𝟐𝜽 in the Fourier expansion
of 𝒚 given the following data.
𝒙𝟎 0 60 120 180 240 300 360
𝒚 0 9.2 14.4 17.8 17.3 11.7 0
Solution: Here the interval of 𝜃 is (0, 360 ). That is 0 ≤ 𝜃 ≤ 2𝜋 and the value of 𝑦 at 𝑥 =
0 & 𝑥 = 2𝜋 must be the same by the periodic property 𝑓(𝑥 + 2𝜋) = 𝑓(𝑥). When the values are
given both 𝑥 = 0 𝑎𝑛𝑑 𝑥 = 2𝜋. We must omit one of them. We need to compute the coefficient of
sin 𝑥 𝑏𝑒𝑖𝑛𝑔 𝑏 𝑎𝑛𝑑 sin 2𝑥 𝑏𝑒𝑖𝑛𝑔 𝑏 int he Fourier expansion of 𝑦 using the formulae.
4. Obtain the constant term and the coefficients of the first cosine and sine terms in the Fourier
expansion of 𝒚 from the table.
𝒙 0 1 2 3 4 5
𝒚 9 18 24 28 26 20
Solution: The value at 0,1,2,3,4,5 are given (𝑁 = 6) and hence the interval of 𝑥 should be 0 ≤
𝑥 < 6.
∴ the length of the interval is 6 − 0 = 6. Comparing with 2𝑙 we have2𝑙 = 6 𝑜𝑟 𝑙 = 3.
The Fourier series of period 2𝑙 is given by
𝑦 = 𝑓(𝑥) = +∑ 𝑎 cos 𝑛𝜃 + ∑ 𝑏 sin 𝑛𝜃
5. The following values of y and x given. Find the Fourier series of y up to second harmonics.
𝒙 0 2 4 6 8 10 12
𝒚 9 18 24 28 26 20 9.0
Solution: here the values of 𝑦 at 𝑥 = 0 𝑎𝑛𝑑 𝑥 = 12 are same. Hence the interval of 𝑥 is (0,12).
That is 0 ≤ 𝑥 ≤ 12 and we shall omit the value of 𝑦 for 𝑥 = 12 in the process of calculation.
The Fourier series of period 2𝑙 is given by
𝑦 = 𝑓(𝑥) = +∑ 𝑎 cos 𝑛𝜃 + ∑ 𝑏 sin 𝑛𝜃 𝑤ℎ𝑒𝑟𝑒 𝜃 =
6. Obtain the constant term and the first three coefficients of the Fourier cosine series for 𝒚
using the following table.
𝒙 0 1 2 3 4 5
𝒚 4 8 15 7 6 2
Solution: Here the interval of 𝑥 is 0 ≤ 𝑥 < 6 and since the coeeficients of the Fourier cosine
series are to be found we have to conclude that it should be the cosine half range Fouriere series
of 𝑦 = 𝑓(𝑥) in (0,6). Comparing with half the range (0, 𝑙) we get 𝑙 = 6 and the Fourier cosine
series is of the form
𝑦= +∑ 𝑎 cos 𝑛𝜃 where 𝜃 = =
𝑦= +∑ 𝑎 cos
The first three coefficients of the Fourier cosine series along with Fourier constant are as follows
Here 𝑁 = 6.
𝝅𝒙
𝒙 𝜽= 𝒚 𝐜𝐨𝐬 𝜽 𝒚 𝐜𝐨𝐬 𝜽 𝒄𝒐𝒔𝟐𝜽 𝒚𝒄𝒐𝒔𝟐𝜽 𝒄𝒐𝒔𝟑𝜽 𝒚𝒄𝒐𝒔𝟑𝜽
𝟑
0 0 4 1 4 1 4 1 4
1 30 8 0.866 6.928 0.5 4 0 0
2 60 15 0.5 7.5 -0.5 -7.5 -1 -15
3 90 7 0 0 -1 -7 0 0
4 120 6 -0.5 -3 -0.5 -3 1 6
- 0.5 1 0 0
5 150 2 -1.732
0.866
42 13.696 -8.5 -5
𝑎 = ∑ 𝑦 = (42) = 14 and = 7.