Gate - Notes - Fourier Series
Gate - Notes - Fourier Series
nl
GATE - NOTES - FOURIER SERIES
O
R.Dhanaraj
n
April 19, 2020
io
at
1 Fourier Series
ul
Fourier series was developed by Jean-Baptiste Joseph Fourier (1768-1830),
rc
French mathematician and physicist in 1807. It has been used to solve vari-
eties of engineering problems.It is one of the powerful methods considered to
Ci
solve ordinary and partial differential equations. Fourier series is basically
an infinite series similar to Taylor’s series expansion. While Taylor’s series is
applicable only for functions which are continuous and differentiable, Fourier
series is used not only for continuous functions but also for for functions that
e
are discontinuous in nature and differentiable and periodic functions.
at
riv
Trignometric functions cos x sin x sec x cosecx are periodicic functions with period 2π
f (x + n T ) = f (x) n 6= 0
By
1
• If T is the period of function f (x), then period of the function
y
T
f (n x) with n 6= 0, is .
nl
n
• The period of sum of several periodic functions is the least com-
O
mon multiple of the periods of the functions considered.
• For any positive value of T, a constant function is periodic.
n
2. Fourier Series. The periodic function related to many engineering
io
problems will be complex in nature. This complex periodic functions
can be represented as a combination of several simple harmonic func-
at
tions. Consider a periodic function f (x) possessing period 2 π in the
interval θ and θ + 2 π. This periodic function can be expressed in a
ul
trigonometric series of the form
rc
∞
a0 X
f (x) = + (an cos nx + bn sin nx) (1)
2
n=1 Ci
where an and bn are the constants of the trigonometric series. The
constants of equation 1 can be determined using the following simpli-
e
fications. Integrate equation 1 in the specified interval
at
∞
!
Z θ+2π Z θ+2π Z θ+2π
a0 X
f (x) dx = dx + an cos nx + bn sin nx dx
riv
θ θ 2 θ n=1
Z θ+2π Z θ+2π
cos nx dx = sin nx dx = 0
IT
θ θ
Z θ+2π Z θ+2π
a0 1
f (x) dx = 2π a0 = f (x) dx
-M
θ 2 π θ
Multiply both sides of equation 1 with cos m x and integrate in the
specified interval
RD
∞
!
Z θ+2π Z θ+2π Z θ+2π
a0 X
f (x) cos mxdx = cos mxdx + an cos nx cos mxdx dx
θ θ 2 θ n=1
∞
!
By
Z θ+2π X
+ bn sin nx cos mx dx
θ n=1
2
For m 6= n, the values of the integrals in the second and third term
y
on the right side of the expression become
nl
Z θ+2π Z θ+2π
cos nx cos mxdx = sin nx cos mxdx = 0
O
θ θ
For m = n
n
Z θ+2π Z θ+2π
io
cos nx cos mxdx = cos2 nx dx = π
θ θ
at
Z θ+2π
sin nx cos nxdx = 0
ul
θ
Using the values of the above integrals, the expression for constant an
rc
is Z θ+2π
1
an = f (x) cos nx dx n = 1, 2, 3 · · ·
π θ Ci
Multiply both sides of equation 1 with sin m x and integrate in the
specified interval
e
∞
!
Z θ+2π Z θ+2π Z θ+2π
a0
at
X
f (x) sin mxdx = sin mxdx + an cos nx sin mxdx dx
θ θ 2 θ n=1
riv
∞
!
Z θ+2π X
+ bn sin nx sin mx dx
θ
-P
n=1
For m 6= n, the values of the integrals in the second and third term
on the right side of the expression become zero.For m = n
IT
Z θ+2π Z θ+2π
sin nx sin mxdx = sin2 nx dx = π
-M
θ θ
Z θ+2π
sin nx cos nxdx = 0
RD
θ
Using the values of the above integrals, the expression for constant bn
is Z θ+2π
1
bn = f (x) sin nx dx n = 1, 2, 3 · · ·
π θ
By
The above expressions for the constants in the Fourier series are known
Euler’s formulae. If the interval is 2 π, the constants in The Fourier
3
series can be obtained in any interval of 2 π. The expressions for the
y
arbitrary constants will be written as
nl
Z 2π
1
a0 = f (x) dx
O
π 0
Z 2π
1
an = f (x) cos nx dx
π 0
n
Z 2π
1
io
bn = f (x) sin nx dx
π 0
at
3. Dirichlet Conditions.The conditions for a function to expand it in
Fourier series are known as Dirichlet Conditions. Consider s function
ul
f (x) with period 2 π Let it be piecewise continuous and bounded in
the specified interval. The conditions required for expansion of f (x)
rc
in Fourier series are:
Ci
• f (x) has finite number of extrema, minima and maxima, in the
interval 2 π. At the points of continuity the Fourier series of f (x)
converges to f (x).
e
• At the point of discontinuity , Fourier series of f (x) converges
at
to arithmatic mean left side and right side limits of f (x) at the
point of discontinuity.
riv
tinuity the series converges to the average of the left limit and right
limit of the function f (x).
IT
Z a Z a
For even function f (x) dx = 2 f (x) dx
−a 0
Z a
For odd function f (x) dx = 0
−a
By
4
• Product two even functions or two odd function is an even func-
y
tion. The product of an even function and an odd function is an
nl
odd function.
• Let f (x) be an even function. The constants in the Fourier series
O
are expressed as:
Z π Z π
1 2
n
a0 = f (x) dx = f (x) dx
π −π π 0
io
Z π Z π
1 2
an = f (x) cos nx dx = f (x) cos nx dx
π −π π 0
at
Z π
1
bn = f (x) sin nx dx = 0
ul
π −π
rc
are expressed as:
a0 =
1
Z π
π −π
f (x) dx = 0
Ci
Z π
1
e
an = f (x) cos nx dx = 0
π −π
at
Z π Z π
1 2
bn = f (x) sin nx dx = f (x) sin nx dx
π −π π 0
riv
5. Leibnitz’s Rule.
-P
Z
000
u v dx = u v1 − u0 v2 + u00 v3 − u v4 + · · ·
IT
d2 u
Z Z
du
where u0 = v1 = v dx u00 = v2 = v1 dx
dx dx2
-M
d3 u d4 u
Z Z
000 0000
u = v3 = v2 dx u = v4 = v3 dx · · ·
dx3 dx4
RD
6.
eax
Z
eax cos bx dx = (a cos bx + b sin bx)
a2 + b2
eax
Z
eax sin bx dx (a sin bx − b cos bx)
By
=
a2 + b2
5
ea x
Z Z
ax b
eax sin bx dx
y
e cos bx dx = cos b x + Using By-parts formula
a a
nl
ea x b ea x
Z
b ax
= cos b x + sin b x − e cos bx dx
a a a a
O
a2 + b2 ea x
Z
eax cos bx dx = (a cos b x + b sin b x)
a2 a2
n
ea x
Z
eax cos bx dx = (a cos b x + b sin b x)
a2 + b2
io
Similarly it can be shown that
at
eax
Z
eax sin bx dx = 2 (a sin bx − b cos bx)
a + b2
ul
1.2 Fourier Series of Function with Arbitrary Period
rc
The procedure for generating Fourier series of function with period 2 π in
Ci
the interval θ < x < (θ + 2 π). The given function may be a periodic
function with arbitrary period 2T in the interval t < x < (t + 2 T ). To
define the Fourier series for the function with arbitrary period, the following
substitution and related simplification is used to convert the function with
e
arbitrary period to that with period of 2 π.
at
x z T z πx
= x = z =
riv
2T 2π π T
πt
x = t z = = θ
T
-P
πt
x = t + 2T z = + 2π= θ + 2π
T
IT
T z
f (x) = f = F (z)
π
The expressions for constants in the Fourier series sre :
RD
Z θ+2π
1
a0 = F (z) dz
π θ
Z θ+2π
1
an = F (z) cos nz dz
By
π θ
Z θ+2π
1
bn = F (z) sin nz dz
π θ
6
The expressions for the constants in the Fourier series can be expressed in
y
terms of x. First consider the expression for a0 .
nl
Z θ+2π
1
a0 = F (z) dz
O
π θ
T z T z
Using x = f (x) = f = F (z)
n
π π
io
πx π
z = dz = dx
T T
at
Also using the substitution it is known that as x varies from t to t + 2T ,
z varies from θ to θ + 2 π. Using the above simplifications, the expression
ul
for the constant a0 is simplified as
rc
Z θ+2π
1
a0 = F (z) dz
π θ
a0 =
1
π t
Z t+2T Ci π
f (x) dx
T
Z t+2T
1
e
a0 = f (x) dx
T t
at
The same way the simplification for an is carried out as shown here.
riv
Z θ+2π
1
an = F (z) cos nz dz
π θ
-P
Z t+2T
1 n π x π
an = f (x) cos dx
π t T T
IT
Z t+2T
1 n π x
an = f (x) cos dx
T t T
-M
T t T
7
Fourier series. It is possible to have the half range expansion containing
y
only cosine terms and this is referred as half range Fourier cosine series or
nl
even periodic expansion. Similarly if the expansion containes sine terms it
is known as half range Fourier sine series or odd periodic expansion.
O
1.4 Examples
n
E-1
io
Find the Fourier series expansion of ex in the range 0 to 2 π.
at
ul
Z 2π
1
a0 = f (x) dx
rc
π 0
Z 2π
1
= ex dx
Ci
π 0
1 x 2π e2 π − 1
= [e ]0 =
π π
e
at
Z 2π
1
an = f (x) cos nx dx
π 0
riv
Z 2π
1
= ex cos nx dx
π 0
-P
Z 2π
Let In = ex cos nx dx Using By-parts formula
0
IT
Z 2π
x 2π
= [e cos n x]0 + n ex sin nx dx
0 Z 2π
-M
2π
x 2π x
= e − 1 + n (e sin n x)0 − n e cos nx dx
0
e2 π − 1 − n2 In
In =
RD
e2 π − 1
In =
n2 + 1
1 e2 π − 1
an =
π n2 + 1
By
8
Z 2π
1
y
bn = f (x) sin nx dx
π 0
nl
Z 2π
1
= ex sin nx dx
π 0
O
Z 2π
Let In = ex sin nx dx Using By-parts formula
0
n
Z 2π
= [ex sin n x]20 π − n ex cos nx dx
io
0
Z 2π
at
x 2π x
= − n (e cos n x)0 + n e sin nx dx
0
− n e2 π − 1 − n2 In
In =
ul
( )
n e2 π − 1
In = −
rc
(n2 + 1)
( )
n e2 π − 1 Ci
bn = −
π (n2 + 1)
e
The Fourier series for the given function is
at
∞
a0 X
ex = + (an cos nx + bn sin nx)
2
riv
n=1
∞
" ( ) #
e2 π − 1 1 e2 π − 1 n e2 π − 1
X
= + cos n x − sin n x
2π π n2 + 1 π (n2 + 1)
-P
n=1
∞ ∞
" #
e 2 π − 1 1 X cos n x X n sin n x
ex = + + −
IT
π 2 n2 + 1 n2 + 1
n=1 n=1
E-2
-M
9
y
Z π
nl
1
a0 = f (x) dx
π −π
O
Z π
1
= ex dx
π −π
1 xπ eπ − e− π
n
= [e ]− π =
π π
io
2 sinh π
a0 =
π
at
Z π
1
ul
an = f (x) cos nx dx
π −π
Z π
rc
1
= ex cos nx dx
π −π
=
1
π 1 + n2
ex
Ci
(cos n x + n sin n x)
π
−π
Using S.No.6 of Section 9.1
1
eπ cos n π − e− π cos n π
e
= 2
π (n + 1)
at
cos n π
eπ − e− π
= 2
π (n + 1)
riv
(− 1)n 2 sinh π
an =
π (n2 + 1)
-P
Z π
1
bn = f (x) sin nx dx
IT
π −π
Z π
1
= ex sin nx dx
π −π
-M
π
ex
1
= (sin n x − n cos n x) Using S.No.6 of Section 9.1
π 1 + n2 −π
RD
1
− n eπ cos n π + n e− π cos n π
= 2
π (n + 1)
n cos n π π −π
= − e − e
π (n2 + 1)
(− 1)n + 1 2 n sinh π
By
bn =
π (n2 + 1)
10
The Fourier series for the given function is
y
nl
∞
x a0 X
e = + (an cos nx + bn sin nx)
2
O
n=1
∞ ∞
sinh π 2 sinh π X (−1)n cos nx 2 sinh π X n (−1)n+1 sin nx
= + +
π π n2 + 1 π n2 + 1
n
n=1 n=1
∞
" ( )#
sinh π (−1)n cos nx n (−1)n + 1 sin nx
io
X
ex = 1 + 2 +
π n2 + 1 n2 + 1
n=1
at
E-3
ul
rc
If f (x) = −c for − π < x 0
= c for Ci0 < x π
3 5 7 4
Since the given function is an odd function, a0 = 0 and an = 0. The
riv
bn = f (x) sin nx dx
π −π
Z π
2
= f (x) sin nx dx
IT
π 0
Z π
2
= c sin nx dx
-M
π 0
2c
= − [cos n x]π0
nπ
2c 2c
RD
11
The Fourier series for the given function is
y
nl
∞
a0 X
f (x) = + (an cos nx + bn sin nx)
2
O
n=1
4 c sin x sin 3 x sin 5 x π
= + + + ··· Using at x = 2 f (x) = c
π 1 3 5
n
4c 1 1 1 1
c = − + − + ···
io
π 1 3 5 7
π 1 1 1
1 − − + ···
at
= +
4 3 5 7
π
Only for x = the series defined in the statement of problem is obtained.
ul
2
E-4
rc
Find the Fourier series of f (x) = x
Ci in − π < x < π
The given function is an odd function. Hencea0 = 0 and an = 0 for
e
n > 0. The constant bn is determined as given below.
at
Z π
2
bn = f (x) sin nx dx
π 0
riv
Z π
2
= x sin nx dx Using By-parts formula
π 0
-P
sin nx π
2 x cos nx
= − +
π n n2 0
IT
2
= − (π cos n π)
nπ
2 (− 1)n 2 (− 1)n + 1
-M
= − =
n n
Hence the Fourier series for the given function is
RD
∞
X (− 1)n + 1 sin n x
x = 2
n
n=1
sin x sin 2 x sin 3 x
x = 2 − + − ······
By
1 2 3
12
1.5 Problems
y
nl
P-1-G2011-Q2
O
Which of the following function is periodic?
n
(c) f (x) = ex
io
(d) f (x) = constant
at
Refer Section 1.1, last point of S.No.1.
ul
Answer: (d)
rc
P-2-G2014-Q27
1 1 1
s = 1 − + − + ······ converges to
3 5 7
-P
π π π
(a) 1 (b) 3 (c) 4 (d) 5
Answer: (c)
-M
RD
By
13