Fourier Series Unit-1
Fourier Series Unit-1
Unit - 1
FOURIER SERIES
a b
a0
f ( x) n cos nx n sin nx
2 n 1 n 1
2 2 2
1 1 1
where, a 0 f ( x) dx, a n f ( x) cos nx dx, and bn f ( x) sin nx dx.
0 0 0
(ii) Taking interval ( , 2l ) ( , ) i.e., Fourier series of f (x) over the interval ( , ) :
b
a0
f ( x) an cos nx n sin nx
2 n 1 n1
1 1 1
where, a0 f ( x) dx, an f ( x) cos nx dx, and bn f ( x) sin nx dx.
c 2 c 2
sin nx
c
cos nx dx
n c
0, n 0
c 2
(ii)
c
sin mx cos nx dx 0, m n
c 2
(iii)
c
cos mx cos nx dx 0, m n
c 2
(iv) c
sin mx sin nx dx 0, m n
c 2
(v) c
cos 2 nx dx , n 0 (i.e. m n)
c 2
c
sin 2 nx dx , n 0 (i.e. m n)
c 2 c 2
1
(vi) sin nx cos nx dx sin 2nx dx 0, n 0
c 2 c
e ax
(vii) e ax sin bx dx
a2 b2
(a sin bx b cos bx)
e ax
(viii) e ax cos bx dx
a2 b2
(a cos bx b sin bx)
a b
a0
Any functions f (x) can be expressed as a Fourier series n cos nx n sin nx
2 n 1 n 1
b
a0
Let the Fourier series a n cos nx n sin nx.
2 n 1 n 1
If f (x) converges uniformly to f (x) at every point of the interval (0, 2 ), then
2 a0 2
(a
1
{ f ( x)} 2 dx 2
bn 2 ).
n
0 2 n 1
b
1
f ( x) a0 a n cos nx n sin nx (where l ) …(1)
2 n 1 n 1
2 2 1 e 2
1 1 1
Then, a0 f ( x) dx e x dx [e x ]02 .
0 0
1 e 2
i.e., a0 …(2)
2 2
1 1
Now, an f ( x) cos nx dx e x cos nx dx
0 0
1
[e x ( cos nx n sin nx)]02 [ use formula (viii)]
(n 2 1)
1
[e 2 ( cos 2n n sin 2n ) e0 ( cos 0 n sin 0)]
(n 1)
2
4 Engineering Mathematics-II
1 1 e 2
[e 2 (1 0) 1 (1 0)]
(n 2 1) (n 2 1)
[ cos 2n 1, and sin 2n 0]
2
1 e
i.e., an , n 1, 2, 3, .......... . …(3)
(n 2 1)
2 2
1 1
Finally, bn f ( x) sin nx dx e x sin nx dx
0 0
1
[e x ( sin nx n cos nx)]02 [ use formula (vii)]
(n 1)2
1 n(1 e 2 )
[e 2 (0 n) 1 (0 n)] [ sin 2n 0, and cos 0 1]
(n 2 1) (n 2 1)
n (1 e 2 )
i.e., bn , n 1, 2, 3, .......... . …(4)
(n 2 1)
Putting values of a0 , an , bn in Fourier Series (1), we get
(1 e 2 ) (1 e 2 ) n (1 e 2 )
ex
2
(n 1)
n1
2 cos nx (n
n 1
2
1)
sin nx
1 e 2 1 1 1 1
or e x
cos x cos 2 x cos 3x ........
2 2 5 10
1 2 3
sin x sin 2 x sin 3x ........ Ans.
2 5 10
Example. 1.2 (a) : Find a Fourier series to represent x x 2 from x π to x π . Hence show
1 1 1 π2 1
. .........
12 22 32 4 2 12
[RGPV Feb. 2005, June 2006, Feb. 2010 & June 2012, Dec. 2013]
Solution. Let f ( x) x x 2 , x ( , )
We know that Fourier Series of f (x) over the interval ( , )
b
a0
f ( x) an cos nx n sin nx . ….(1)
2 n 1 n 1
1 x 2 x3
1
We have, a0 ( x x ) dx
2
2 3
1 2 3 2 3 2 2 2 2
a .
2 3 2 3
0
3 3
Fourier Series 5
1 sin (nx) sin (nx)
1
Now, an ( x x 2 ) cos nx dx ( x x 2 ) (1 2 x) dx
n n
1 sin nx cos nx sin nx
( x x 2 ) (1 2 x) (2)
n n
2
n 3
[ Integrating by parts]
1 cos n cos n 1 cos n
(1 2 ) (1 2 ) 4
n 2
n 2
n2
(1) n
a n 4 [ sin n 0 and cos n (1) n ]
n2
1 cos (nx) sin nx cos nx
1
bn ( x x ) sin nx dx ( x x 2 )
2
(1 2 x) (2)
n n
2
n
3
[ Integrating by parts]
1 cos n cos n cos n cos n
( 2 ) 2 ( 2 ) 2
n n 3 n n3
2
cos x cos 2 x cos 3x sin x sin 2 x sin 3x
4 2 ....... 2 ......
3 1 22 32 1 2 3
2 cos x cos 2 x cos 3 x sin x sin 2 x sin 3 x
or x x 2 4 2 ....... 2 ....... ...(2) Ans.
3 1 2 2
3 2
1 2 3
2 1 1 1 1
Putting, x = 0 in (2) we get, 0 4 2 2 2 2 ......
3 1 2 3 4
1 1 1 1 2
. ...... Proved.
12 2 2 3 2 4 2 12
Example 1.2 (b) : Find a Fourier series to represent the function
f ( x ) = x x 2 in the internal x .
21 1 1
Hence, show that 2
= 1
2 2 ............... [RGPV Feb. 2006]
6 2 3 4
Solution. Proceed in a similar manner of above example.
1.5 FOURIER SERIES FOR EVEN AND ODD FUNCTIONS
A function f (x) is said to be even, if
6 Engineering Mathematics-II
f ( x) f ( x) , for all x
A function f (x) is said to be odd, if
f ( x) f ( x) , for all x
Remarks :
(i) If f (x) is even function i.e., f ( x) f ( x) , then in Fourier series of f (x) in the interval
( , ) or (0, 2 ), the Fourier coefficient bn =0, for n 1, 2, 3............... .
i.e., Fourier series :
a0
f ( x) a n cos (nx).
2 n 1
2 2
where a 0 f ( x)dx and a n = f ( x) cos(nx)dx
0 0
(ii) If f (x) is odd function i.e., f ( x) f ( x) in the interval ( , ) , then in Fourier Series. The
Fourier coefficients a 0 0 and a n 0, n 1, 2, 3........ .
i.e., Fourier series :
2
f ( x) bn sin (nx) , where bn f ( x) sin( nx) dx
n 1
0
(iii) If f (x) is odd function in interval (0, 2 ), then in Fourier Series. The Fourier coefficient
an 0, n 1, 2, 3,................ .
i.e., Fourier Series :
a0
f ( x) bn sin (nx) .
2 n 1
2 2
Where a 0 f ( x) dx and bn f ( x) sin( nx) dx
0
Example 1.3 : Obtain the Fourier Series for the function f(x) x 2 , π x π. Hence show that
2
1 1 1 1
(i) ...... [RGPV June 2009]
12 22 32 n 1 n2 6
( 1) n 1 2
1 1 1 1
(ii) 2
2
2
2
......... 2
1 2 3 4 n 1 n 12
2
1 1 1 1
(iii) 2 2 .......
12
3 5 n 1 ( 2n 1)2 8
4
1 1 1 1
(iv) 4
4
4
....... 4
. [RGPV June 2008 (N)]
1 2 3 n1 n 90
a cos (nx)
a0
f ( x) n …(1)
2 n 1
2 x3
2 2 2
Then a0 f ( x) dx x dx 2 .
2
x 2 dx 2 x 2 dx
0 0 3 3
0
0
2 x 2 sin (nx)
2 2 2 x.sin (nx) dx
Now an f ( x) cos nx dx x 2 cos nx dx
0 0 n
0 n
0
2 sin nx cos nx sin nx 2 cos n (1) n
x 2 2x 2 2 4
n n2 n 3 0 n2 n2
[ sin n 0]
Hence (1) becomes :
2 (1) n
x2
3
4 n 1 n2
cos nx
2
cos x cos 2 x cos 3 x cos 4 x
or x2 4 2 ....... . …(2)
3 1 22 32 42
(i) Putting x in (2), we get
2 1 1 1 1 2 2 1 1 1 1
x2 4 2 2 2 2 ....... 4 2 2 2 2 .......
3 1 2 3 4 3 1 2 3 4
1 1 1 1 2
....... . Proved. …(3)
12 22 32 42 6
2 1 1 1 1
(ii) Putting x 0 in (2), we get, 0 4 2 2 2 2 .......
3 1 2 3 4
1 1 1 1 2
....... . Proved. …(4)
12 22 32 42 12
1 1 1 2
(iii) Adding (3) and (4), we get, 2 2 2 2 ......... .
1 3 5 4
1 1 1 2
....... . Proved.
12 3 2 5 2 8
(iv) Using Parseval’s theorem :
2
f ( x)2 dx a0
2
(a
n 1
2
n bn2 )
…(5)
8 Engineering Mathematics-II
2 2 4
where f ( x) x 2 , a 0 , a n 2 (1) n and bn 0 .
3 n
4 4 16
Hence,
x 4 dx 4
2.9 n 1 n
x5 2 5 16
or
5 9
4
n 1 n
2 5 2 5 1 1 4
or
5
9
16 4 or
n 1 n
n
n 1
4
90
. Proved.
2 l n x
=
n
0 2 0 x sin
l
dx
4 l n x
=
n 0
x sin
l
dx
n x
l
n x
x cos cos
4
l
l dx
l
=
n n / l 0 ( n / l )
0
n x
l
sin
4l l 0
= 2 2
l cos n 0
n (n / l )
Fourier Series 9
=
n
4l
2 2
(1) l 0
n
4l 2
= (1) n n 1, 2, 3, .......
n 2 2
l n x l
1
Now, bn = x 2 . sin dx 0 odd fun. 0
l l l l
Hence Fourier series is
l 2 4l 2 (1) n n x
x2 = cos Ans.
3 2 n 1 n2 l
Example 1.5 (a) : Find the Fourier Series to represent the function, if
π, π x o
f(x) [RGPV Dec. 2004, Dec. 2008, Dec. 2011 & Dec. 2014]
x, o xπ
Solution. Given interval ( , ) , then Fourier Series of f (x) over ( , ) :
a0
f ( x) a n cos (nx) bn sin (nx) . …(1)
2 n 1 n 1
1
0
1
We have a0 f ( x) dx f ( x) dx f ( x) dx
0
1
0
dx x dx
0
1 x2 1 2
( x) 0 ( 0 )
2
2 0
1 2 1 ( 2 )
2 . a0 .
2 2 2 2
1 0
1
Now, an f ( x) cos nx dx f ( x) cos nx dx f ( x) cos nx dx
0
1
0
1 0 sin nx x sin nx sin nx
cos nx dx
x cos nx dx
n n
1.
0 0 n
dx
Since sin n = 0, so that
1 cos nx 1 cos n 1 1 (1) n 1
an [ cos n (1) n ]
n 0 n
2 2
n 2
10 Engineering Mathematics-II
0, n is even,
an 2
, n is odd.
n 2
1 0
1
Finally, bn f ( x) sin nx dx f ( x) sin nx dx f ( x) sin nx dx
0
1 0 1
1
bn sin nx dx x sin nx dx [1 2 cos n ] [1 2 (1) n ]
n n
1
, n is even,
or bn n
3
, n is odd.
n
Hence (1) becomes :
1 (1) n 1
1
f ( x) cos nx {1 2(1) n } sin nx
4 n 1
n 2 n 1
n
2 cos 3x cos 5 x sin 2 x 3 sin 3x sin 4 x
or f ( x)
cos x ... 3 sin x ... . Ans.
4 3 2
5 2
2 3 4
Example 1.5 (b) Expand the following function f(x) in a Fourier series in interval ( , ) , if
0, x 0
f ( x ) x [RGPV June 2013]
4 , 0 x
Solution. We know that the Fourier series of f (x) in ( , ) :
b
a0
f ( x) a1 cos nx n sin nx …(1)
2 n 1 n 1
1 0 x
f ( x) dx 0.dx
1
We have, a0 = dx
0 4
1 x2 2
=
4 2 8
0
f ( x) cos nx dx
1
Now an =
1 0 x
0. cos nxdx
1
= cos nx dx = x cos nx dx
0 4 4 0
1 sin x sin nx
= x.
4
n 0 0
1.
n
dx
1 cos nx 1
= 0 2 (cos n cos 0)
4n n 0 4n
Fourier Series 11
1
= 2
[(1) n 1] for n = 1, 2, 3, …
4n
1
and bn = f ( x) sin nxdx
1 0 x
=
0. sin nxdx 0 4
sin nx dx
1
=
4 0 x sin nx dx
1 cos nx ( cos nx)
= x.
4 n
0 0 n
dx
1 sin nx
= cos n 0
4n n 0
= (1) n for n = 1, 2, 3, …
4n
Hence (1) becomes
2 [(1) n 1] (1) n
1
f (x) = cos nx sin nx
16 4 n 1 n2 4 n 1 n
2 1 2 2 2
= cos x 2 cos 3x 2 cos 5 x ...
16 41 2
3 5
1 1 1
sin x sin 2 x sin 3x ....
4 1 2 3
2 11 1 1
= cos x 2 cos 3x 2 cos 5 x ...
16 2 12
3 5
1 1
sin x sin 2 x sin 3x .... Ans.
4 2 3
Example 1.5 (c) Expand in Fourier series of the function :
0, if x 0
f ( x) [RGPV June 2013]
1, if 0 x
Deduce that sum of the Gregory series
1 1 1
1 ....
3 5 7 4
Solution. We know that the Fourier series of f (x) in ( , ) :
a0
f ( x) a n cos nx bn sin nx …(1)
2 n 1 n 1
1 0
f ( x) dx
1
We have, a0 = 0.dx 1.dx
0
=
1
x0
1
( 0) 1
12 Engineering Mathematics-II
1
Now an = f ( x) cos nxdx
1 0
=
0. cos nxdx
0
1. cos nx dx
1 sin nx 1
= [0 0] 0
n 0 n
1
and bn =
f ( x) sin nxdx
1 0
=
0. sin nxdx
0
1. sin nx dx
1 cos nx 1
= [cos n cos 0]
n 0 n
1 1
= [(1) n 1] [1 (1) n ] for n = 1, 2, 3, …
n n
Hence series (1) becomes
[(1) n 1]
1 1
f (x) = 0 sin nx
2 n 1
n
1 1 2 2 2
= 1 sin x 3 sin 3x 5 sin 5 x ....
2
1 2 1 1
= sin x 3 sin 3x 5 sin 5 x .... …(2)
2
Put x (0, ) in (1), we get
2
1 2 1 1 1
f ( / 2) = 1 3 (1) 5 (1) 7 (1) ...
2
1 2 1 1 1
1 = 1 ... [ f ( / 2) 1]
2 3 5 7
1 2 1 1 1
Or = 1 ...
2 3 5 7
1 1 1
1 .... Proved.
3 5 7 4
Example 1.6 : Find the Fourier series to represent the function
0 x 0
f ( x) =
sin x , 0 x
1 1 1
Hence show that .......... ..... = . [RGPV, June 2008(O)]
1.3 3.5 2
Solution. We know that Fourier series of f (x) over the interval ( , ) :
b
a0
f (x) = a n cos n x + n sin nx …(1)
2 n 1 n 1
Fourier Series 13
1
0
1 2
we have, a o = f ( x)dx = 0dx sin x dx =
0
f
1
an = cos n x dx
( x)
1 0
=
0
0. cos n x dx sin x cos n x dx
=
1 2(1) n
2 n 2 1
2
2 =
1
1 (1) n
n 1 (n 1)
2
an =
1 (1) , n 1 , and n = 2, 3, 4 ………..
n
(n 2 1)
To find a1 :
f ( x) cos1xdx
1
a1 =
1
0
=
0dx sin x cos xdx
0
1 cos 2 x
1 1
= sin 2 x dx = = [1 1] = 0.
2 2 2 0 4
0
1
0
1
Now, bn =
f ( x) sin nx dx =
0
0. sin nx dx sin x sin nx dx
1
b1 =
f ( x) sin 1.x dx =
0
0. sin x dx sin x. sin x.dx
(1 cos 2 x) 1 sin 2 x
1 1
= dx = x = .
2 2 2 0 2
0
Hence series (1) becomes
a0
f (x) = a1 cos x a n cos nx b1 sin x b n sin nx
2 n2 n2
1 (1) n
1 1
= cos nx sin x 0
n2 ( n 2
1)
2
1 2 1 1 1
= cos 2 x cos 4 x ........ sin x …(2)
3 15 2
Also put, x = 0 in (2), we get
1 2 1 1
f (0) = ........ 0
3 15
1 2 1 1
0= ........ [ f (0) 0]
1.3 3.5
1 1 1
........ = . Proved.
1.3 3.5 2
Example 1.7 : Find the Fourier series expansion of the periodic function of period 2π, defined by
π π
f(x) x, x if
2 2
π 3π
π x, if x .
2 2
Solution. Let the Fourier series expansion for f(x) with period 2 is
b
1
f ( x) a0 a n cos nx n sin nx …(1)
2 n 1 n 1
3 / 2 /2 3 / 2
1 1 1
Then, a0 f ( x) dx x dx ( x) dx
/2 /2 /2
/2 3 / 2
1 x2 1 x2 1 2 2 1 3 2 9 2 2 2
x
2 / 2
2
/2
8 8 2 8 2 8
3 9 1 1
0 0 0 0
2 8 2 8
i.e., a0 0 . …(2)
3 / 2 /2 3 / 2
1 1 1
Now, an f ( x) cos nx dx x cos nx dx ( x) cos nx dx
/ 2 / 2 /2
Fourier Series 15
/2 3 / 2
1 sin nx cos nx 1 sin nx cos nx
x. (1) . ( x). (1) .
n n 2
/ 2 n n 2 / 2
1 1 1
Finally, bn f ( x) sin nx dx x sin nx dx ( x) sin nx dx
/2 /2 /2
/2 3 / 2
2 1
x sin nx dx ( x) sin nx dx; [ x sin nx is an even function]
0 /2
/2 3 / 2
2 cos nx sin nx 1 cos nx sin nx
x. (1) . ( x). (1) .
n n 2 0 n n 2 / 2
2 cos (n / 2) sin (n / 2)
.
2 n n2
1 cos (3n / 2) sin (3n / 2) cos (n / 2) sin (n / 2)
. .
2 n n2 2 n n2
1 cos (n / 2) 3 sin (n / 2) cos (3n / 2) sin (3n / 2)
. .
2 n n2 2 n n2
1 3 1
.{cos (3n / 2) cos (n / 2)} 2 . sin (n / 2) 2 sin (3n / 2)
2n n n
1 3 1
. 2 sin (n / 2) sin (n ) 2 sin (n / 2) 2 sin (3n / 2)
2n n n
1 1
[0 3 sin (n / 2) sin (3n / 2)] [3 sin (n / 2) sin (3n / 2)]
n 2
n 2
1
i.e., bn [3 sin (n / 2) sin (3n / 2)] . …(4)
n 2
Putting, n 1, 2, 3, ... in (4), we get
1 4
b1 [3 sin ( / 2) sin (3 / 2)] ,
16 Engineering Mathematics-II
1
b2 [3 sin sin 3 ] 0,
2 2
1 4
b3 [3 sin (3 / 2) sin (9 / 2)] ,
3 2
3 2
1
b4 [3 sin 2 sin 6 ] 0, and so on.
42
Now, substituting the values of a0 , a n , bn in (1), we get
4 sin x sin 3x sin 5 x
f ( x) 2 2 ... . Ans.
1 2
3 5
Example 1.8 : Find Fourier Series representation of f(x) x.sin x, 0 x 2π
[RGPV June 2004, June 2007, Dec. 2008, Dec. 2012 & June 2015]
Solution. We know that Fourier Series of f (x) in (0, 2 )
b
a0
f ( x) a n cos (nx) n sin (nx) …(1)
2 n 1 n 1
2 2
x( cos x) 1. ( sin x)02
1 1 1
We have a0 f ( x) dx x sin x dx 2 a0 2.
0 0
2 2 1 2
1 1
Now, an f ( x) cos nx dx x sin x cos nx dx x(2 cos nx sin x) dx
0 0 2 0
[ 2 sin A cos B sin ( A B) sin ( A B)]
1 2
2 0 x[sin (n 1) x sin (n 1) x] dx [ sin ( ) sin ]
cos 2 (n 1) cos 2 (n 1)
1
2 , for n 1
2
n 1 n 1
1 1 2
or an 2 , if n 1, and n 2, 3, 4, ...... .
n 1 n 1 n 1
Since a n does not exist for n 1, so in order to find a1 separately.
2
1
a1 f ( x) cos (1. x) dx, for n = 1
0
2 2
1 1
x sin x. cos x dx x sin 2 x dx [ 2 sin x cos x sin 2 x]
0 2 0
2
1 cos 2 x sin 2 x 1 1 1
x 1. [ ] a1
2 2 4 0 2 2 2
Fourier Series 17
2 2
1 1
Finally, bn f ( x) sin nx dx x sin x sin nx dx
0 0
1 2 2
1
x (2 sin nx sin x) dx x [cos (n 1) x cos (n 1) x] dx
2 0 2 0
Now integrating by parts, we get
2
1 sin (n 1) x sin (n 1) x cos (n 1) x cos (n 1) x
x 1. , for n 1
2 n 1 n 1 (n 1) 2 (n 1) 2 0
1 cos 2 (n 1) cos 2 (n 1) 1 1
0 , for n 1
2 (n 1) 2 (n 1) 2 (n 1) 2 (n 1) 2
1 1 1 1 1
or bn , 0, if n 1 and n = 2, 3, 4,……
2 (n 1) 2
(n 1) 2
(n 1) 2
(n 1) 2
Since bn does not exist for n =1, so in order to find b1 separately.
2
1
b1 f ( x) sin (1. x) dx for n =1
0
2 2 2
1 1 1
x sin x sin x dx 2 x sin 2 x dx x (1 cos 2 x) dx
0 2 0 2 0
2
x 2 cos 2 x 1
sin 2 x 1 2 (2 ) 4 1
2
1 1
x x 1. (2 2 ) .
2
2 2 4 2 2 4 4 2
0
Now Fourier series (1) may be written as
a0
f ( x) a1 cos x b1 sin x a n cos nx 0 [ bn 0 for n 1]
2 n2
1 2
or f ( x) 1 cos x sin x cos nx
n 2 ( n 1)
2
2
1 2 2 2
or x sin x 1 sin x
cos x 2 cos 2 x 2 cos 3x 2 cos 4 x .... Ans.
2 2 1 3 1 4 1
Example 1.9 : Find the Fourier Series representation of
sin 2x, π x 2
f(x) 0, x0
2
sin 2x, 0 x π
by differentiation of the Fourier series of f(x).
Also find f (x)
Solution. The Fourier series of f (x) over the interval ( , )
b
a0
f ( x) a n cos (nx) n sin (nx) …(1)
2 n 1 n 1
18 Engineering Mathematics-II
1 / 2 0
1
We have, a0 f ( x) dx sin 2 x dx 0 dx sin 2 x dx
/ 2 0
/ 2
1 cos 2 x cos 2 x 1 1
(1 0) .
2 2 0
1
Similarly, an f ( x) cos nx dx
1 / 2
. sin 2 x cos nx dx 0
sin 2 x cos nx dx
/ 2 1
1
2 sin 2 x cos nx dx 2 sin 2 x cos nx dx
2 2 0
[ 2 sin A cos B sin ( A B) sin ( A B)]
/ 2
1 1
[sin (2 n) x sin (2 n) x] dx [sin (2 n) x sin (2 n) x] dx
2 2 0
/ 2
1 cos (2 n) x cos (2 n) x 1 cos (2 n) x cos (2 n) x
for n 2
2 ( 2 n) ( 2 n) 2 ( 2 n) ( 2 n) 0
2 cos n cos (n / 2) 2 cos n 1
2 , for n 2
n2 4 n 4
2 (1 cos (n / 2))
an , for n 2 and n = 1, 3, 4, 5, …….
(n 2 4)
Since a n does not exist for n 2, so in order to find a 2 separately :
1
i.e., a2 f ( x) cos 2 x dx for n =2
/ 2
1 1
sin 2 x cos 2 x dx sin 2 x cos 2 x dx
0
/ 2
1 1
sin 4 x dx sin 4 x dx 0 0 0 a2 0.
2 2 0
1
Now, bn f ( x) sin (nx) dx
/ 2 0
1 1
sin 2 x sin nx dx sin 2 x sin nx dx f ( x) dx 0
0 /2
[ 2 sin A sin B cos ( A B) cos ( A B)]
/ 2
1
cos (n 2) x cos (n 2) xdx 1
cos (n 2) x cos (n 2) xdx
2 2 0
/ 2
1 sin (n 2) x sin (n 2) x 1 sin (n 2) x sin (n 2) x
, for n 2
2 (n 2) (n 2) 2 (n 2) (n 2) 0
Fourier Series 19
2 sin (n / 2)
bn , for n 2 and n = 1, 3, 4, 5, ….. .
(n 2 4)
Since bn does not exist for n 2, so in order to find b2 separately.
1
b2 f ( x). sin 2 x dx, for n=2
/ 2
1 1
sin 2 2 x dx sin 2 2 x dx
0
/ 2 (1 cos 4 x) (1 cos 4 x)
1 1
dx dx
2 0 2
/ 2
1 sin 4 x 1 sin 4 x
x x
2 4
2 4 0
1 1 1 1 3
( )
2 2 2 4 2 4
3
b2 .
4
Thus the first few Fourier coefficients are :
1 2 2 1
a 0 , a1 , a 2 0, a3 , a4 ,
3 5 3
2 3 2 2
b1 , b2 , b3 , b4 0, b5 , ...... and so on.
3 4 5 21
Hence required Fourier series (1) becomes:
1 12 2 1
f ( x) cos x cos 3x cos 4 x ...........
2 3 5 3
1 2 3 2 2
sin x sin 2 x sin 3x sin 5 x ..... …(2) Ans.
3 4 5 21
For f (x), differentiation of Fourier series (2), we get
1 2 6 1 2 3
f ( x) sin x sin 3x ...... cos x cos 2 x ...... …(3) Ans.
3 5 3 2
1.6 HALF RANGE FOURIER SERIES
1. If f (x) is an even function defined on the interval l x l , i.e., it reduces to Cosine Fourier
Series in half range interval (0, l ) .
nx
a
a0
f ( x) n cos
2 n 1 l
l
2
with a0 f ( x) dx ,
l 0
20 Engineering Mathematics-II
l nx
2
an f ( x) cos dx , for n = 1, 2, 3, …… .
l 0 l
2. If f (x) is odd function defined on the interval l x l , i.e., it reduces to Sine Fourier Series
in half range interval (0, l ) .
nx
f ( x) b
n 1
n sin
l
l nx
2
with bn f ( x) sin dx , for n = 1, 2, 3, …… .
l 0 l
Example 1.10 : Find Fourier Series representation of f(x) | x | in interval l x l.
[RGPV 2001]
Or
Find Cosine Fourier Series of f(x) | x | in (0, l) .
Solution. Here f ( x) | x | , which is an even function in interval (l , l )
Cosine Fourier Series of f (x) in half range interval (0, l )
nx
a
a0
f ( x) n cos . …(1)
2 n 1 l
l l
2 2
We have a0 f ( x) dx | x | dx
l 0 l 0
l
2
x dx [ | x | x, 0 x l ]
l 0
2 l2
or a0 . l a0 l
l 2
nx
l l nx
2 2
and an f ( x) cos dx x . cos dx ,
0 l l l 0 l
Now integrating by parts, we get
nx
l
nx
sin sin
an x.
l l
l
2
1. dx
l n 0 nx
l 0 l
nx
l
cos
2 l l
. 0 [ sin n 0]
l n n
l 0
2
n
l
n
. cos n cos 0 2 2 (1) 1
2l
n
n
[ cos n (1) n ]
Fourier Series 21
4l
, when n odd,
a n n 2 2
0, when n even.
Hence Fourier Series (1) becomes :
l 2l
| x | n
2 n 1 n 2 2
a b
a0
Let, f ( x) n cos nx n sin nx. …(1)
2 n 1 n1
1 0
1
We have a0 f ( x) dx x dx 2 x dx
0
0
1 x2 2
( x 2 )0 1 0 2 0 1 . a 0 .
2
2 2 2 2 2
1 0
1
Now, an f ( x) cos nx dx x cos nx dx 2 x cos nx dx
0
0
1
x cos nx dx x cos nx dx x cos nx dx, because put x x
0 0
1 sin nx 1. ( cos nx) 1 1
x. [cos n 1] 2 [(1) n 1] …(2)
n n 2
0 n 2
n
[ sin n 0]
22 Engineering Mathematics-II
1 0
1
Finally, bn f ( x) sin nx dx x sin nx dx 2 x sin nx dx
0
0
3
x sin nx dx x sin nx dx x sin nx dx
0 0
3 ( cos nx) ( sin nx) 3 3
x 1. cos n (1) n . [ cos n (1) n ]
n n 2
0 n n
Hence Fourier Series (1) becomes :
1 3
f ( x) {(1) n 1} cos (nx) (1) n sin (nx).
4 n 1 n 2
n 1
n
21 1 1 1
cos x 2 cos 3x .... 3 sin x sin 2 x sin 3x .... . Ans.
4 12 3 2 3
1.7 FOURIER SINE AND COSINE SERIES IN INTERVAL 0 x l
(i) The Sine Fourier Series on the interval 0 x l :
nx
f ( x) b
n 1
n sin
l
. …(1)
l nx
2
where bn f ( x). sin dx, for n =1, 2, 3, …..
l 0 l
The series (1) is called Sine Fourier Series of f (x) on the interval (0, l ) or sometimes the half-
range Sine Fourier expansion of f (x).
(ii) The Cosine Fourier Series on the interval 0 x l.
nx
a
a0
f ( x) n cos , …(2)
2 n 1 l
l l nx
2 2
where a0 f ( x) dx and an f ( x). cos dx, for n = 1, 2, 3, ….. .
l 0 l 0 l
The series (2) is called Cosine Fourier Series of f (x) on the interval (0, l ) or sometimes the half-
range Cosine Fourier expansion of f (x).
Example 1.13 (a) : Find the half range sine Fourier series for the function f ( x ) = x in interval
0 x . [RGPV June 2007]
Solution. We know that half range sine series of f (x) in (0, l )
n x
f (x) = n 1
bn . sin
l
= b
n 1
n sin nx …(1)
f ( x) sin nx dx = x sin nx dx
2 2
where bn =
0 0
Fourier Series 23
2 cos nx cos nx
= x
n 0
0
n
dx
2
= cos n 0
cos n x dx 0
n 0
2
= (1) n ,
n
Hence series (1) becomes
n (1)
2 n
x = sin nx
n 1
1 1
= 2sin x sin 2 x sin 3x........ . Ans.
2 3
Example 1.13 (b) Determine half range sine series for the function f ( x ) x 2 x , 0 x .
[RGPV Dec. 2012]
Solution. We know that the half range sine Fourier series of f (x) in (0, l ) (0, ) .
n x
f (x) = bn sin
n 1 l
or f (x) = bn sin (n x) [ Here l ] …(1)
n1
l nx 2
2
Where, bn = f ( x) sin ( x 2 x). sin nxdx
l 0 l, 0
2 2 cos nx cos (nx)
( x x)
=
n
(2 x 1)
0 0 n
dx
2
=
n ( 2 ) cos n 0
0
(2 x 1) cos nx dx
2 sin nx sin n x
= (1) n ( 2 ) (2 x 1)
n n 0
0
2.
n
dx
2 2 cos nx
= (1) ( ) 0
n
n n n 0
=
2
n n
2
(1) n ( ) 2 (1) n 1]
n 1, 2, 3, .....
l nx 2 nx
2 2
where bn f ( x) sin dx x. sin dx
l 0 l 2 0 2
2
nx
x. cos nx cos
2
= 2 2
n 1 n
dx
0 2
nx
2
sin
2 2
= (2 cos n 0)
n n
2 0
2 4(1) n
= [2(1) n 0 0]
n n
Hence series (1) becomes
(1) n nx
4
x sin Ans.
n 1
n 2
Example 1.15 : Find the Fourier series representation of f(x) x . cos x, π x π
Or
Obtain sine Fourier series of f(x) x .cos x, x (0, π) .
Solution. Here f ( x) x cos x is an odd function over the interval ( , ), then a0 0, and a n 0 .
Therefore, It reduces to Sine Fourier series in half range interval (0, ).
f ( x) b
n 1
n sin (nx) …(1)
2 2
where bn f ( x) sin nx dx x cos x sin nx dx
0 0
1 cos (n 1) x sin (n 1) x cos (n 1) x sin (n 1) x
x (1) x (1) , for n 1
(n 1) (n 1)
2 (n 1) (n 1) 2 0
Fourier Series 25
1 cos (n 1) cos (n 1)
0 0 , for n 1
(n 1) (n 1)
2 /2
2
where, bn f ( x) sin nx dx x sin nx dx ( x) sin nx dx
0 0 /2
/2
2 cos nx sin nx 2 cos nx sin nx
x 1. 2 ( x) (1) . 2
n n 0 n n / 2
2 n 1 n 2 n 1 n
cos 2 sin cos 2 sin
2n 2 n 2 2 n 2 n 2
4 n
bn sin .
n2 2
4 4 4
For n =1, 2, 3, ……. : b1 , b3 , b5 and so on
.32 .5 2
and b2 b4 b6 ... 0.
Putting all values in (1), the required Fourier Sine series in (0, ) is :
4 sin x sin 3x sin 5 x
f ( x) 2 2 ... .
1 2
3 5
To express f(x) as a Cosine Fourier Series :
a
a0
f ( x) n cos nx …(2)
2 n 1
26 Engineering Mathematics-II
2 /2
2
where, a0 f ( x) dx x dx ( x) dx
0 0 /2 2
/2
2 2 2
and an f ( x) cos nx dx x cos nx dx ( x) cos nx dx
0 0 /2
/2
2 sin nx cos nx
2 sin nx cos nx
x ( x)
1 (1)
n
n 2 0 n n 2 / 2
2 n 1 n 1 2 1 n 1 n
sin cos 2 2 cos n sin 2 cos
2n 2 n 2 2 n n 2 n 2 n 2
2 n
an 2
1 cos (n ) 2 cos , n = 1, 2, 3, 4, ………….
n 2
for n =1, a1 0 [ cos 1, cos / 2 1]
8
for n =2, a2 [ cos 2 1, cos 1]
.2 2
for n =3, a3 0 [ cos 3 1, cos 3 / 2 0]
for n =4, a4 0 [ cos 4 1, cos 2 1]
for n =5, a5 0
8 8
for n =6, a6 , a10 ,............
.6 2
.10 2
Putting all values in (2) then required Fourier Cosine series in (0, ) is
8 cos 2 x cos 6 x cos10 x
f ( x) ..... Ans.
4 2 2 62 10 2
1 4l x 1 3 x
Example 1.17 : Prove that in 0 < x < l : x = cos l 2 cos l ........ and deduce that :
2 2 3
1 1 1 4
4
4
4
......... = . [RGPV Dec. 2003]
1 3 5 96
Solution. Here f (x) = x, x (0, l ) , then cosine fourier series in (0, l) is
nx
a
a0
f (x) = n cos ...(1)
2 n 1 l
l
f ( x) dx
2
Here a0 =
l
0
l
2 l2
2
= x dx = . = l a0 = l
l l 2
0
l
n x
f ( x) . cos
2
and an = dx
l l
0
Fourier Series 27
l
n x
2
= x cos dx [sin n 0]
l
0
l
nx
l
nx
x sin l sin
2 l dx
= l
n n
l
0
l 0 l
l
nx
sin
2 l
= . dx
l n l
0
l
nx
cos
=
2 l
n n
l
0
2 l
= . [cos n cos 0]
n n
2l
an = 2 2 [(1) n 1]
n
4l
, if n is odd
or an = n 2 2
0,
if n is even
Hence (1) becomes :
nx
l 4l 1
x = 2 cos
2 n odd n l
2
l 4l x 1 3x 1 5x
or x = 2 cos 2 cos 2 cos ...... …(2)
2 l 3 l 5 l
Further, using Parseval’s theorem :
b a a0
a
b 2
[ f ( x)] 2 dx = bn2
2
n
a
2 2 n 1
(l 0) l 2 4l
l 2
2
x dx =
2 2 n odd n 2 2
0
l3 l l 2 16l 2 1 1 1
= 4 4 4 4 ......
3 2 2 1 3 5
2l 2 l 2 16l 2 1 1 1
= 4 4 4 5 ......
3 2 1 3 5
28 Engineering Mathematics-II
2l 2 l 2 16l 2 1 1 1
= 4 4
4 5 .......
3 2 1 3 5
l 2 16l 2 1 1 1
= 4 4 .......
6 1
4 4
3 5
4 1 1 1
= 4 4 4 ...... Proved.
96 1 3 5
Example 1.18 : Obtain Fourier series for the expansion of f(x) x sin x in the interval π x π.
π 1 1 1 1
Hence deduce that ..... [RGPV June 2014]
4 2 1.3 3.5 5.7
Or
Obtain Cosine Fourier Series for f(x) x sinx in interval (0, π) .
a b
a0
Solution. Let f ( x) n cos nx n sin nx, x …(1)
2 n 1 n 1
1 1
We have, a0 f ( x) dx x sin x dx ,
[Since x sin x is even function i.e.,
2 0
]
2
0
x sin x dx
2
x cos x sin x
0
2
( cos ) 2. [ cos 1] a0 2.
1 1
Now, an
f ( x) cos nx dx
x sin x cos nx dx
2
0 x sin x cos nx dx, [ x sin x cos (nx) is even function i.e.,
2 0
]
1
x [sin (n 1) x sin (n 1) x] dx [ 2 cos A sin B sin( A B) sin ( A B)]
0
1 cos (n 1) cos (n 1)
, for n 1 [ cos (n 1) (1) n1 (1) n ]
n 1 n 1
1 1
(1) n , for n 1
n 1 n 1
2 (1) n 1
or an , if n 1, & n = 2, 3, 4, ……
n2 1
Fourier Series 29
Since a n does not exist for n=1, hence we calculate a1 separately.
1 1
a1 f ( x) cos x dx x sin x cos x dx
2 1
x sin x cos x dx x sin 2 x dx even function 2 even function
0 0 0
1 x cos 2 x sin 2 x cos 2 1
or a1 . [ cos 2 1]
2 4 2 2
1
Finally, bn x sin x sin (nx) dx
bn 0 , for n = 1, 2, 3, ……. .
odd function 0
Now putting values, the required Fourier series is
b
a0
f ( x) a1 cos (1.x) a n cos (nx) n sin (nx)
2 n2 n 1
(1) n 1
1
or f ( x) 1 cos x 2 cos (nx) 0
n 2 ( n 1)
2 2
1 2 2 2
f ( x) 1
cos x cos 2 x cos 3x cos 4 x ...... .
2 3 8 15
1 2 cos 2 x 2 cos 3 x 2 cos 4 x
x. sin x 1 cos x ...... . …(2) Ans.
2 1.3 2.4 3.5
Deduction : Put x ( , ) in (2), we get
2
cos cos 2 cos 3
1 0 2 0 0 ....
2 1.3 3.5 5.7
1 1 1 1
or .............. Proved.
4 2 1.3 3.5 5.7
Example 1.19 : Expand f (x) = | cos x | in a Fourier series in the interval ( π, π) .
Solution. Here f ( x) | cos x | is even function in ( , )
bn 0 and hence reduce to Fourier cosine series in interval (0, ), i.e.,
a
a0
f ( x) n cos (nx). …(1)
2 n 1
2
We have a0 cos x dx
0
2
/2
0
cos x dx
/2
2
cos x dx sin x 0 / 2 sin x / 2
30 Engineering Mathematics-II
or a0
2
1 0 0 1 4
.
2
Now an cos x . cos nx dx
0
2 /2
0
cos x . cos nx dx /2
cos x . cos nx dx
[ 2 cos A cos B cos ( A B) cos ( A B)]
1 /2
cos (n 1) x cos (n 1) xdx cos (n 1) x cos (n 1) xdx
0 /2
/2
1 sin (n 1) x sin (n 1) x sin (n 1) x sin (n 1) x
, for n 1
n 1 n 1 0 n 1 n 1 / 2
1 sin (n 1) / 2 sin (n 1) / 2 sin (n 1) / 2 sin (n 1) / 2
, for n 1
n 1 n 1 n 1 n 1
2 sin (n 1) / 2 sin (n 1) / 2
, for n 1
n 1 n 1
2 cos (n / 2) cos(n / 2)
, for n 1 sin ( / 2 ) cos and sin ( / 2 ) cos
n 1 n 1
2 cos (n / 2) 1 1 2 cos (n / 2) 2
n 1 n 1 2 , for n 1,
n 1
4 n
or an cos , for n 1, and n 2, 3, 4, ........
(n 1) 2
2
Since a n does not exist for n =1, hence we calculate a1 separately,
2
a1 cos x . cos x dx, for n =1
0
2 /2
0
cos x. cos x dx /2
( cos x) cos x dx
2 /2 2 /2 (1 cos 2 x) (1 cos 2 x)
0
cos 2 x dx /2
cos 2 x dx
0 2
dx /2 2
dx
/2
1 sin 2 x sin 2 x
x x
2 0 2 / 2
1 1
0.
2 2 2 2
Hence Fourier series (1) becomes :
a
cos x 0 a1 cos x a 2 cos 2 x a3 cos 3 x .....
2
Fourier Series 31
2 4 4
cos x cos 2 x cos 4 x .........
3 15
4 cos 2 x cos 4 x
2
..... . Ans.
3 15
Example 1.20 : Obtain a half-range cosine series for
l
kx, for 0 x
f(x) 2 [RGPV Dec. 2004 & Feb. 2006, Dec. 2013,
l
k(l x), for x l.
2 June 2014 & Dec. 2014]
1 1 1 π2
Deduce the sum of the series .....
12 32 52 8
n x
a
a0
Solution. Let f ( x) n cos , x (0, l ) …(1)
2 n 1 l
l 2 l/2 l
2
We have a0 f ( x) dx kx dx k (l x) dx
l 0 l 0 l/2
l/2
2
l
2 kx 2
k lx x
l 2 0 2
l/2
2 kl 2 l2 l 2 l 2 2 kl 2 kl
k l 2 k
2
l 8 2 2 8 l 4
l nx 2 l/2 nx l nx
2
Now, an f ( x) cos dx kx . cos dx k (l x). cos dx
l 0 l l 0 l l/2 l
l/2
2 l nx l2 nx
kx. sin k . 2 2 cos
l n l n l 0
l
l nx l2 nx
k (l x) sin k . 2 2 cos
n l n l l / 2
2 kl 2 n kl 2 n kl
2
kl 2 n kl 2 n
sin 2 2 cos 1 2 2 cos n sin 2 2 cos
l 2n 2 n 2 n 2n 2 n 2
2 2kl 2 n kl 2 kl 2 2kl n
an 2 2 cos 2 2 2 2 cos n 2 2 2 cos 1 cos(n ).
l n 2 n n n 2
For n 1, a1
2kl
2 cos / 2 1 cos 0 cos 1, & cos / 2 0
1 . 2
2
8kl
For n 2, a2
2kl
2 cos 1 cos 2 cos 2 1
2 .
2 2
2 2. 2
32 Engineering Mathematics-II
For n 3, a3
2kl
2 cos 3 / 2 1 cos 3 0 cos 3 / 2 0 & cos 3 1
3 . 2
2
For n 4, a4
2kl
2 cos 2 1 cos 4 0
4 2. 2
For n = 5, a5 0
8kl 8kl
For n 6, a6 , a 7 0, a8 0, a9 0, a10 and so on.
6 .2 2
10 2. 2
Fourier cosine series (1) becomes.
kl 8kl 1 2x 1 6x
f ( x) 2 2 . cos 2 . cos ..... . ….(2) Ans.
4 2 l 6 l
Deduction : At x l , then f (l ) 0.
From (2), at x l , we get
kl 8kl 1 1 1
0 .....
4 2 2 2 6 2 10 2
kl 8kl 1 1 1
2 ......
4 (1.2) 2
(2.3) 2
(2.5) 2
2 1 1 1
...... Proved.
8 12 3 2 5 2
Example 1.21 (a) : Obtain the Fourier series for the function :
πx, 0 x1
f(x) [RGPV June 2002, Dec. 2004, June 2008 (O) & June 2011]
π(2 x), 1 x2
Solution. Here interval (0, 2l ) (0, 2) l 1
Fourier series of f (x) in (0, 2) is
nx nx
b
a0
f ( x) a n cos n sin . …(1)
2 n 1 l n 1 l
2 1 2
We have, a0 0
f ( x) dx 0
x dx 1
(2 x) dx
1 2
x2 x2
2 x
2 0 2
1
1 1
(4 2) 2
2 2
i.e., a0
2 1 2
Now, an 0
f ( x) cos (nx) dx 0
x cos (nx) dx 1
(2 x) cos (nx) dx
Now integrating by parts, we get
Fourier Series 33
1 2
sin nx cos nx sin nx cos nx
x . (2 x) . ( )
n n 2 2
0 n n 2 2 1
sin n 0
cos n 1 cos 2n cos n
2 2
2
2 2 [cot n 1] cos 2n 1
n n n 2
n n
2
2 (1) n 1
n
[ cos n (1) n ]
0, if n is even
i.e., an - 4
, if n is odd
n 2
2 1 2
Finally, bn 0
f ( x) sin (nx) dx 0
x sin (nx) dx
1
(2 x) sin (nx) dx
On integrating by parts, we get
1 2
cos nx sin nx cos nx sin nx
x . 2 2 (2 x) . ( ) 2 2
n n 0 n n 1
cos n cos n
n 0
n
i.e., bn 0
Putting all values in (1), the required Fourier series :
=
2
x x sin (nx) dx
0
2
2 cos(nx) cos (nx)
= (x x 2 )
n 0
0
( 2 x)
n
dx
2
= ( 2 x) cos(nx) dx
n 0
2 sin( n x) sin (n x)
= ( 2 x)
n n 0
( 2)
0 n
dx
2 2
= 2
n
0
n 0
sin (n x) dx
4 cos (nx)
=
n2 n 0
=
n
4
3
(1) n
1 ; n 1, 2, 3, .....
8
when n 1, b1 = ,
12
when n 2, b2 = 0,
8
when n 3, b3 = ,
33
when n 4, b4 = 0,
8
when n 5, b5 = and so on.
.5 3
Hence (1) becomes
x x 2 = b1 sin (1 x) b2 sin (2 x) b3 sin (3 x) ....
8 sin (1 x) sin(3 x) sin (5 x)
= ..... Ans.
12 32 52
Example 1.23 : Obtain the Fourier series for the function
l, for 2l x l,
x, for l x 0,
f(x)
x, for 0 x l,
l, for l x 2l.
Solution. Here given interval is (2l , 2l ).
nx nx
a b Because, l 2l here
a0
Let f ( x) n cos n sin …(1)
2 n 1 2l n 1 2l
Fourier Series 35
2l
1
We have, a0 f ( x) dx
(2l ) 2l
1 l 0 l 2l
a0
2l 2l
l dx l
( x) dx 0
x dx 0
l dx
[ As given f (x) ]
x 2
0
x 2
l
lx2l lxl2l 3 l a 0 3l .
1 l
2l 2 l 2 0 2 2
2l nx
1
Now, an f ( x) cos dx
2l 2l 2l
1 l nx 0 nx l nx 2l nx
2l 2l
l cos
2l
dx l
( x) cos
2l
dx 0
l cos
2l
dx
l
l cos dx
2l
4l n
an cos 1 , n = 1, 2, 3, ………
n
2 2 2
4l
For n =1, 3, 5, …… an 2 2 [Because cos / 2 cos 3 / 2 .... 0]
n
8l
For n =2, 6, 10, …… an 2 2 [Because cos cos 3 .... 1]
n
For n =4, 8, 12, …… an 0 [Because cos 2 cos 4 .... 1]
nx
2l
1
Finally, bn f ( x) sin dx = 0 for n = 1, 2, 3, ………..
2l 2l 2l
Putting all values in (1), the required Fourier series :
3l 4l 1 x 1 3x 1 5x
f ( x) 2 cos 2 cos 2 cos .......
4 2 1 3
2l 2l 5 2l
2 2x 2 6x
2 cos 2 cos ....
2 2l 6 2l
3l 2l x 1 2x x 1 3x
or f ( x)
2 2 cos 2 cos .... cos 2 cos ..... . Ans.
4 2l 3 2l l 3 l
Example 1.24 : Find the Fourier expansion of the periodic function f(x) defined by
k, π x 0
f(x)
k, 0 x π,
and f (x + 2) = f(x). Sketch the graph of f(x).
Solution. Since f ( x) k f ( x) for x ( , 0) and
f ( x) k f ( x) for x (0, )
f ( x) f ( x) for x ( , )
f (x) is an odd function in ( , )
36 Engineering Mathematics-II
a 0 0 and a n 0
It reduces to Fourier sine series of f ( x) k in half range interval (0, ) .
f ( x) b
n 1
n sin nx [ l ] …(1)
2 2
We have, bn f ( x) sin nx dx k sin nx dx
0 0
2k cos nx
n 0 n
2k
1 (1) n . [ cos n (1) n and cos 0 1]
2k
f ( x) 1 (1) n sin nx
n 1
n
4k sin x sin 3x sin 5 x
or f ( x) ...... . Ans.
1 3 5
Graph of Series :
y
k
-x x
-3 -2 - O 2 3 4
–k
–y
Example 1.25 : Expand f(x) in a Fourier series in the interval (0, 2) if
x, 0 x 1
f(x)
0, 1 x 2.
Solution. Here interval (0, 2l ) (0, 2) l 1
Fourier series of f (x) in (0, 2) is
nx nx
b .sin
a0
f ( x) a n . cos n [ l 1] ….(1)
2 n 1 1 n 1
1
2l 2
1 1
We have, a0 f ( x) dx f ( x) dx [ l 1]
l 0 1 0
1
1 2 x2
1 1
x dx 0 dx a0 .
2 2
0 1
0 2
2 nx
1
Now, an f ( x) cos dx [ l 1]
1 0 1
1 2
0
f ( x) cos nx dx 1
f ( x) cos nx dx
Fourier Series 37
1
1 sin nx cos nx
0
x cos nx dx 0 x
n
1. 2 2
n 0
1 1
(cos n 1) [(1) n 1] [ sin n 0]
n 2 2
n 2 2
2
, when n is odd
n 2 2
0 , when n is even
2 2
a1 , a3 , ............
2
3 2
a2 0, a 4 0, ........... and so on
2 nx
1
Finally, bn f ( x) sin dx
1 0 1
1 2
0
f ( x) sin nx dx 1
f ( x) sin nx dx
1
1 cos nx sin nx
0
x sin nx dx 0 x
n
1. 2 2
n 0
cos n (1) n
or bn [ cos n (1) n ]
n n
1 1 1
b1 , b2 , b3 , ......
2 3
Hence the required series (1) is
1 2 1 cos 5x
f ( x) 2 cos x 2 cos 3x ....
4 3 5 2
1 sin 2x sin 3x
sin x .... . Ans.
2 3
Example 1.26 : Obtain the Fourier series for f ( x ) :
0, x 0
f ( x) = 2 [RGPV Dec. 2003]
x 0 x
Solution. The Fourier series of f (x) in ( , ) is
a0
f (x) = a n cos(nx) bn sin( nx) [ l ] …(1)
2 n 1 n 1
1 2
0
1
we have, a 0 =
0dx x 2 dx =
f ( x)dx =
0
3
1
0
1
Now, an =
f ( x) cos nxdx = 0 cos nxdx x 2 cos nxdx
0
38 Engineering Mathematics-II
1 2 sin nx sin nx
= x
n 0
2x
0
n
dx
cos nx
2 2 cos nx
=
n
x sin nx dx = x
n n 0
n
dx
0 0
=
2
cos n = 2 (1) n .
2
n2 n
1
0
1
Also bn = f ( x) sin nx dx = 0. sin nx dx x 2 . sin nx dx
0
x
1 2
bn = sin nx dx
0
1 2 cos nx cos nx
= x
n 0 0
2x
n
dx
1 2
=
n
( cos n 0) 2 0
x cos nx dx
1 2 x sin n x sin nx
cos n 2
=
n n
0 0 n
dx
1 2 1 cos n x
= (1) n 2 0
n n n 0
1 2 2
= (1) n 2 (cos n x cos 0)
n n
1 2 2
= (1) n 2 [(1) n 1]
n n
2
= (1) n [(1) n 1]
n n3
Putting the values of a0 , a n ' s and bn ' s in (1), we get
2 (1) n 2
f (x) = 2 cos n x 3 [(1) n 1] (1) n sin nx
6 n 1 2 n 1 n n
n
Ans.
1.9 PRACTICAL HARMONIC ANALYSIS
In many engineering problems function f(x) is not given by a mathematical formula, but it is given
by a tabular form for corresponding values of x or it is given by a graph. the process of finding Fourier
series for such type functions is called Harmonic Analysis.
In this case the Fourier constants are evaluated numerically by the following formulae :
Fourier Series 39
2 1 2
(i) a0 =
0
f ( x) dx 2.
(2 0) 0
f ( x) dx
= 2.[mean value of f(x) in (0, 2 )]
b
1
[ As using Mean value of f(x) in (a, b) is f ( x) dx]
(b a )
a
2 1 2
1
(ii) an = f ( x). cos nx dx 2 f ( x). cos nx dx
(2 0) 0
0
= 2. [Mean value of f ( x). cos nx in (0, 2 )]
2 1 2
1
(iii) bn = f ( x). sin nx dx 2 f ( x). sin nx dx
(2 0) 0
0
= 2.[Mean value of f ( x). sin nx in (0, 2 )]
Here mean value is also known as ‘average’.
From the above process:
The term (a1 cos x b1 sin x) in Fourier series is called the first harmonic or fundamental harmonic.
The term (a2 cos 2 x b2 sin 2 x) in Fourier series is called the second harmonic and so on.
x: 0 1 2 3 4 5
y f (x) : 4 8 15 7 6 2
Solution. Here the interval (0, 2l) has been divided into n 6 points, so that l 3 [(0, 2l ) (0, 6) ]
a0 x x x x
or f (x) = a1 cos a2 cos .... b1 sin b2 sin ... ...(1)
2 3 3 3 3
f ( x)
where a0 = 2[Mean of f (x) in (0, 5)] = 2.
6
x
f ( x) sin
x 3
a1 = 2[Mean of f (x). cos in (0, 5)] = 2.
3 6
40 Engineering Mathematics-II
x
f ( x) sin
x 3
b1 = 2[Mean of f (x). cos in (0, 5)] = 2.
3 6
2x
f ( x). cos
2x 3
a2 = 2[Mean of f (x). cos in (0, 5)] =
3 6
2x 2x
b2 = 2[Mean of f (x). cos in (0, 5)]= 2f ( x) sin
3 3
Let us form the following table :
2x 2x
y= x x 2x x x sin y. sin
x cos y. cos cos sin y. sin 3 3
f(x) 3 3 3 3 3
0 4 1 4.0 4.0 0 0 0 0.
1 8 0.5 4.0 –4.0 0.866 6.928 0.866 6.928
2 15 –0.5 –7.5 –7.5 0.866 12.990 –0.866 –12.990
3 7 –1 –7.0 7.0 0 0 0 0
4 6 –0.5 –3.0 –3.0 –0.866 –5.196 0.866 5.196
5 2 0.5 1.0 –1.0 –0.866 –1.732 –0.866 –1.732
f ( x) y 42
Hence, a0 = 2 2 2 14
6 6 6
y. cos (x / 3) 8.5
a1 = 2 2 2.83
6 6
y. cos (2x / 3) 4.5
a2 = 2 2 1.5
6 6
y .sin (x / 3) 12.990
b1 = 2 2 2.165
6 6
y.sin (2x / 3) 2.598
b2 = 2 2 0.433
6 6
Required Fourier series (1) becomes :
x x x 2x
y 7 2.83 cos 1.5 cos 2.165 sin 0.433sin Ans.
3 3 3 3
Fourier Series 41
Example 1.30 : Find the Fourier series as for as the first harmonic to represent the function given by
the following table:
x° : 0 30 60 90 120 150 180 210 240 270 300 330
y = f(x) 2.34 3.01 3.69 4.15 3.69 2.20 0.83 0.51 0.88 1.09 1.19 1.64
Solution. Here the interval (0, 2l) has been divided into n 12 points, so that
(0, 2l ) (0, 360) (0, 2 ) l
a0
Then Fourier series of f(x): y = (a1 cos x b1 sin x) (a1 cos 2 x b2 sin 2 x) ...(1)
2
y
where a0 = 2[Mean of y] 2
12
ycos x
a1 = 2[Mean of y cos x] 2
12
y sin x
b1 = 2 Mean of y sin x 2
12
Let us form the following table:
x° y = f(x) cos x y cos x sin x y sin x
0 2.34 1 2.340 0 0
30 3.01 0.87 2.619 0.5 1.505
60 3.69 0.50 1.845 0.87 3.210
90 4.15 0 0 1.0 4.15
120 3.69 –0.50 –1.845 0.87 3.210
150 3.20 –0.87 –1.914 0.57 1.10
180 0.83 –1.0 –0.830 0 0
210 0.51 –0.87 –0.444 –0.5 –0.255
240 0.88 –0.5 –0.440 –0.87 –0.766
270 1.09 0 0 –1.0 –1.09
300 1.19 0.5 0.595 –0.87 –1.035
330 1.64 0.87 1.427 –0.5 –0.820
y 25.22 y cos x 3.353 y sin x 9.209
y 25.22
Hence a0 = 2 2 4.203
n 12
y cos x 3.353
a1 = 2 2 0.559
n 12
y sin x 9.209
b1 = 2 2 1.535
n 12
42 Engineering Mathematics-II
Required Fourier series (1) becomes:
y 2.1015 (0.559 cos x 1.535 sin x) .... Ans.