Professional Documents
Culture Documents
Fourier Series HKDass
Fourier Series HKDass
Fourier Series
850
Fourier Series 851
2 2 2 2 2
a0
0 f x dx 0 dx a1 cos x dx a2 cos 2x dx ..... an 0 cos nx dx
2 0 0
2 2 2
b1 0 sin x dx b2 0 sin 2 x dx bn 0 sin nx dx
2
a0
2 0 dx, (other integrals = 0 by formulae (i) and (ii) of Art. 12.5)
2
a0 1 2
0 f x dx
2
2 , a0 f x dx
0
...(2)
(ii) To find an: Multiply each side of (1) by cos nx and integrate from x 0 to
x 2 .
2 2 2 2
a0
0 f x cos nx dx
2 0 cos nx dx a1 0 cos x cos nx dx an 0 cos2 nx dx
2 2
b1 0 sin x cos nx dx b2 0 sin 2 x cos nx dx ....
2
an 0 cos2 nx dx an (Other integrals = 0, by formulae on Page 851)
1 2
0
an
f x cos nx dx ...(3)
1
Note : To get similar formula of a0, has been written with a0 in Fourier series.
2
Example 1. Find the Fourier series representing
f x x, 0 x 2
and sketch its graph from x 4 to x 4 .
a0
Solution. Let f x a1 cos x a2 cos 2 x b1 sin x b2 sin 2 x ...(1)
2
Fourier Series 853
2 2 2
1 1 1 x2
Hence a0
0 f x dx
0 x dx
2 2
0
2 2
1 1
an
0 f x cos nx dx
0 x cos nx dx
2
1 sin nx cos nx 1 cos 2 n 1 1
x 1. 2 2 1 1 0
n n2 0 n 2 n n
2 2
1 1
bn
0 f x sin nx dx
0 x sin nx dx
2
1 cos nx sin nx 1 2 cos 2 n 2
x 1. n
n n2
0 n
Substituting the values of a0, a1, a2..., b1, b2 in (1)
Example 2. Given that f x x x2 for x , find the Fourier expression of f (x).
2 1 1 1
Deduce that 1 2 2 2 (U.P. II Semester, Summer 2003)
6 2 3 4
a0
Solution. Let x x2 a1 cos x a2 cos 2 x b1 sin x b2 sin 2 x ...(1)
2
1 1
a0
f x dx
x x2 dx
1 x2 x3 1 2 3 2 3 2 2
2 3
2 3 2 3 3
1
an
f x cos nx dx x x2 cos nx dx
1 2 cos nx sin nx cos nx
x x n 2 x 1 n2 2 n3
1 cos n cos n . cos n cos n
2 2 2 2
n n 3 n n3
1 2 2
cos n 1n
n n
Substituting the values of a0, an, bn in (1) we get
2 1 1
x x2 4 cos x 2 cos 2 x 2 cos 3 x
3 2 3
1 1
2 sin x sin 2 x sin 3 x
...(2)
2 3
2
1 1 1
Put x in (2), 2 41 2 2 2 ...(3)
3 2 3 4
2 1 1 1
Put x in (2), 2 4 1 2 2 2 ...(4)
3 2 3 4
2 2 1 1 1
Adding (3) and (4) 2 2 8 1 2 2 2
3 2 3 4
4 2 1 1 1
8 1 2 2 2
3 2 3 4
2 1 1 1 1
6
1 2 2 2
2 3 4 n2
Ans.
n 1
Exercise 12.1
1. Find a Fourier series to represent, f x x for 0 x 2 .
Ans. 2 sin x sin 2 x sin 3 x sin nx
1 1 1
2 3 n
2. Find a Fourier series to represent x x2 from x to and show that
2 1 1 1 1
2 2 2 2
12 1 2 3 4 (Mysore 1997, Osmania 1995)
5. Obtain the Fourier series for f x e x in the interval 0 x 2 . (Nagpur 1997)
2
1e 1 1 cos x 1 cos 2 x 1 cos 3 x 1 sin x 2 sin 2 x 3 sin 3 x
Ans. 2 2
5 10 2 5 10
2
x 2 cos nx
6. If f (x) = , 0 < x < 2, show that f x
2 12 n 1 n2 (Madras 1998)
2
cos nx
7. Prove that x2 4 1n , < x < .
3 n1 n2
1 2
Hence show that (i) (Madras 1997, Mangalore 1997, Warangal 1996)
n 2 6
1 2 1 4
(ii) (Mangalore 1997) (iii) (Madras 1997)
2n 12 8 n 4 90
3 x 6 x 2 2
2
8. If f x is a periodic function defined over a period 0, 2 by f x .
12
cos nx 2 1 1
Prove that f x n2 and hence show that
6
1 2 2
2 3
n 1
1 /2 1 1
x x 0
/2 2 2
1
an
f x cos nx dx
/2 /2
1 1 1
1 cos nx dx
/2 0 cos nx dx
/2 1 cos nx dx
n n
sin 1 sin 2
1
/2
1 sin nx 1 sin n x 2 0
n n /2 n
n
1
bn
f x sin nx dx
/2 /2
1 1
1 sin nx dx
/2 0 sin nx dx
856 Fourier Series
/2
1 1 cos nx 1 cos nx
/2 1 sin nx dx
n n /2
1 n 1 n 2 n
cos
2
cos n cos n cos 2 n cos 2 cos n
n n
2 2 2
, b2 , b3
b1
3
Putting the values of a0, an, bn in (1) we get
1 2
f x 2 sin x 2 sin 2 x sin 3 x Ans.
3
Example 4. Find the Fourier series for the periodic function
0, x 0
f x
x, 0 x
f x 2 f x
a0
Solution. Let f x a1 cos x a0 cos 2 x b1 sin x b2 sin 2 x ...(1)
2
0
1 1 1 x2 1 2
a0
0 . dx
0 x dx
2 0
2 2
1 1 sin nx cos nx
an 0 x cos nx dx x 1
n n2 0
1 1n 1 2
2 2 , when n is odd
n 2
n n
0 , when n is even.
1 1 cos nx sin nx 1 1n 1n
bn x sin nx dx x 1
0 n n2 0 n n
Substituting the values of a0, a1, a2 b1, b2, .... in (1), we get
2 cos x cos 3 x cos 5 x
sin x sin 2 x sin 3 x
f x Ans.
4 12 32 52 1 2 3
DISCONTINUOUS FUNCTIONS
At a point of discontinuity, Fourier series gives the value of f x as the arithmetic mean
of left and right limits.
At the point of discontinuity, x c
1
At x c, f x [ f c – 0 f c 0 ]
2
–x0
Example 5. Find the Fourier series for f x, if f x = – .
x, 0x
1 1 1 2
Deduce that 2 2 2 . . . . (Warangal, 1996)
1 3 5 8
a0
Solution. Let f x a1 cos x a2 cos 2x . . . an cos nx . . . .
2
b1 sin x b2 sin 2x . . . bn sin nx . . . ... (1)
Fourier Series 857
1
a0
– f x dx
1 0 1 1
– dx x dx – x– x2 20 – 2 2 2 – ;
0
Then a0
– 0 2
1
an
– f x cos nx dx
0
1 0 1 sin nx x sin nx cos nx
an – cos nx dx x cos nx dx –
– 0 n – n n2
0
1 1 1 1 1
0 2 cos n – 2
n n n2
cos n – 1, bn f x sin nx dx
–
0
1 0 1 cos nx cos nx sin nx
bn – sin nx dx x sin nx dx – x
– 0 n
n n2
– 0
1 1
= 1 – cos n – n cos n = n 1 – 2 cos n
n
2 cos 3x cos 5x sin 2x 3 sin 3x sin 4x
f x – – cos x 2 . . . 3 sin x – – ...(2)
4
3 5 2
2 3 4
2
Putting x 0 in (2), we get f 0 = – – 1 2 2 . . . .
1 1 f(x )
(3)
4 3 5 – 0 x
1
But f 0 – 0 – and f 0 0 0 f 0 [ f 0 – 0 f 0 0] – 2
2
2 1 1 2 1 1 1
From (3), – – – 2 2 2 . . . or
1
2 2 2... Proved
2 4 1 3 5 8 1 3 5
Example 6. Find the Fourier series expansion of the periodic function of period 2 , defined by
3
f x x, if x , f x x, if x
2 2 2 2
a0
Solution. Let f x a1 cos x a2 cos 2 x b1 sin x b2 sin 2 x
2
3 3
/2 /2
1 1 1 x2 1 x2 2
/2 x dx
2
a0
/2 x dx
x
2 /2 2 /2
1 2 2 1 3 2 9 2 2 2 3 9 1 1
0
8 8 2 8 2 8 2 8 2 8
3
/2
1 1
/2 /2
2
an x cos nx dx x cos nx dx
3
1 sin nx cos nx /2 1 sin nx cos nx 2
x 1 x 1
n n 2
/2 n n2 /2
858 Fourier Series
n n n n
sin cos sin cos
1 2 2 2 2
2 n n 2 2 n n 2
3n 3n n n
sin cos sin
1 2 2 2 2
cos 2
2 n n2 2 n n
n n 3n 3n n n
cos sin cos sin cos sin
2 2 2 1 2 2 2 2
2 n n2 2 n n2 2 n n2
n n n 3n
cos 3 sin cos 3 sin
1 2 2 2 2
2 n n2 2 n n2
1 3n n 3 n 1 3n
2 n cos 2 cos 2 2 sin 2 2 sin 2
n n
1 n 3 n 1 3n 1 n 3n
n sin 2 sin n 2 sin 2 2 sin 2 2 3 sin 2 sin 2
n n n
Substituting the values of a0, a1, a2 b1, b2, we get
4 sin x sin 3x sin 5x
f x 2 Ans.
1 32 52
Example 7. Find the Fourier series of the function defined as
x for 0 x
f x and f x 2 f x.
x x 0
0
1 1 1
Solution. a0
f x dx
f x dx
0 f x dx
0 0
1 1 1 x2 1 x2
x dx
0 x dx
2
x x
2
0
1 2 2 1 2 2 1 1
2 2 2 1 2 1
Fourier Series 859
0
1 1 1
an
f x cos nx dx f x cos nx dx
0 f x cos nx dx
0
1 1
x cos nx dx 0 x cos nx dx
0
1 sin nx cos nx 1 sin nx cos nx
x 1 x n 1 n2
n
n 2
0
1 1 1n 1 1n 1 2 4
2 2 1n 1 2 if n is odd.
n2 n2 n2 n n n
0 if n is even.
0
1 1 1
bn
f x sin nx dx
f x sin nx dx
0 f x sin nx dx
0
1 1
x sin nx dx
0 x sin nx dx
0
1 cos nx sin nx
x 1
n n2
1 cos nx sin nx
x 1
n n2 0
1 1 2 1 2
1n [1 2 1n 1] [1 1n]
n n n n n
4
, if n is odd.
n
0, if n is even.
Fourier series is
a0
f x a1 cos x a2 cos 2 x b1 sin x b2 sin 2 x
2
4 cos x cos 3 x sin x sin 3 x
f x 2 4
2 1 32 1 3
Ans.
Exercise 12.2
1. Find the Fourier series of the function
x 0
f x 1
for
1 for 0 x
where f x 2 f x. 41
sin x sin 3 x sin 5 x sin 7 x
1 1 1
Ans.
1 3 5 7
2. Find the Fourier series for the function
4 for x 0
f x
for 0 x
4
and f f 0 f 0, f x f x 2 for all x.
860 Fourier Series
Deduce that
1 1 1 sin x sin 3 x sin 5 x sin 7 x
1 Ans. ........
4 3 5 7 1 3 5 7
3. Find the Fourier series of the function
0 for x0
f x 1 for 0 x
2
0 for x
2
4. Obtain a Fourier series to represent the following periodic function
f x 0 when 0 x
f x 1 when x 2
1 2 1 1
Ans. sin x sin 3 x sin 5 x
2 3 5
5. Find the Fourier expansion of the function defined in a single period by the relations.
1 for 0 x
f x
2 for x 2
1 1 1
and from it deduce that 1
4 3 5 7 3 2 1 1
Ans. sin x sin 3 x sin 5 x
2 3 5
6. Find a Fourier series to represent the function
0 for x 0
f x
1x for 0 x
4
2 1 1 1
and hence deduce that 2 2 2
8 1 3 5
2 [ 1n 1] 1n
Ans. cos nx sin nx
16 4 n 2 4n
n 1
Ans. cos 2 x
2 4 1 1 1
cos 4 x cos 6 x
3 15 35
11. An alternating current after passing through a rectifier has the form
i I sin for 0 < <
0 for < < 2
Find the Fourier series of the function.
I 2I cos 2 cos 4 I
(Delhi 1997) Ans. .... sin
3 15 2
12. If f (x) = 0 for < x < 0
= sin x for 0 < x <
1 sin x 2 cos 2mx 1 1 1 1
Prove that f x . Hence show that 2
2 m 1 4m2 1 1.3 3.5 5.7 4
X X
O O
The area under such a curve from to is double the area from 0 to .
f x dx 2 0 f x dx
f (x) f (x)
(b) Odd Function
X
X
O O
862 Fourier Series
As sin nx is an odd function so f x. sin nx is also an odd function. We need not to calculate
bn. It saves our labour a lot.
The series of the even function will contain only cosine terms.
Expansion of an odd function :
1
a0
f x dx 0
1
an
f x cos nx dx 0 [f x. cos nx is odd function.]
1 2
bn
f x sin nx dx
0 f x sin nx dx
Example 8. Find the Fourier series expansion of the periodic function of period 2
f x x2, x
1 1 1 1
Hence, find the sum of the series
12 22 32 42
(A.M.I.E.T.E., Winter 1996, Madras 1997, Mangalore 1997, Warangal 1996)
Solution. f x x2, x
Fourier Series 863
a0
Fourier series is f x a1 cos x a2 cos 2 x a3 cos 3 x an cos nx
2
2 cos x cos 2 x cos 3 x cos 4 x
x2 4 2
3 1 22 32 42
On putting x 0, we have
2 1 1 1 1
4 2 2 2 2
0
3 1 2 3 4
1 1 1 1 2
or Ans.
12 22 32 42 12
Example 9. Obtain a Fourier expression for
f x x3 for x .
Solution. f x x3 is an odd function.
a0 0 and an 0
2 2
bn
0 f x sin nx dx
0 x3 sin nx dx
uv uv1 uv2 uv3 uv4
2
x3
cos nx
3 x2
sin nx
6 x cos nx 6 sin nx
n4
n n2 n3
0
2 3 cos n 6 cos n n 2 6
2. 1
n n3
n n3
2 6 2 6 2 6
x3 2 3 sin x 3 sin 2x sin 3 x Ans.
1 1 2 2
3 33
864 Fourier Series
To expand f x as a sine series we extend the function in the interval , as an odd
function.
2
0
f x sin nx dx and an 0
bn
/2
2 cos nt sin nt 2 cos nt
t 1 2
n n 0 2 n /2
n
n n
2
cos
2
sin cos n cos 2
2
2 n
n2 n n
2 2 2
b1 cos sin cos cos [0 1] [1] 1
2 2 2 2
Example 11. Find the Fourier sine series for the function
f x eax for 0 x
where a is constant.
eax
Solution. eax sin bx dx a2 b2 [a sin bx b cos bx]
2
bn
0 eax sin nx dx
eax a
2
a2 n2 sin nx n cos nx
0
2 e a n
2 2 a sin n n cos n 2 2
a n a n
2 n 2n
1n ea 1 2 1 1n ea
a2 n2 a n2
2 1 ea 2 . 2 . 1 ea
b1 , b2
a2 12 . a2 22
2 1 ea 2 1 ea
eax 2 sin x sin 2 x Ans.
a 1 2
a 2 22
Exercise 12.3
1. Find the Fourier cosine series for the function
1
for 0<x<
2
f x
0
for <x<.
2
1 2 1 1
Ans. cos x cos 3 x cos 5 x
2 3 5
2. Find a series of cosine of multiples of x which will represent f (x) in (0, ) where
f x 0 for 0 < x <
2
f x for < x <
2 2
1 1 1 1 1
Deduce that 1 Ans. cos x cos 3 x cos 5 x
3 5 7 4 4 3 5
3. Express f x x as a sine series in 0 < x < . 1 1
Ans. 2 sin x sin 2 x sin 3 x
2 3
4. Find the cosine series for f x x in the interval 0 < x < .
4 cos 3 x cos 5 x
Ans. cos x
2 32 52
5. If f x x, for 0 < x <
2
x, for <x<
2
866 Fourier Series
Show that:
4 1 1
(i) f x sin x 2 sin 3 x 2 sin 5 x (Madras 1998, Mysore 1997, Rewa 1994)
3 5
2 1 1 1
(ii) f x cos 2 x 2 cos 6 x 2 cos 10 x (Delhi 1997, Patel 1997)
4 12 3 5
6. Obtain the half-range cosine series for f x x2 in 0 < x < .
2 4 1 1
Ans. cos x 2 cos 2 x 2 cos 3 x
3 2 3
7. Find (i) sine series and (ii) cosine series for the function
f x ex for 0 < x < .
2 1 1n e e 1 2 1 1n e
Ans. i
n
n 1
2 sin nx (ii)
n2 1
cos nx
1 1
8. If f x x 1, for 0 < x < , find its Fourier (i) sine series (ii) cosine series. Hence deduce that
1 1 1 1 1 1 2
i 1
ii 1
3 5 7 4 32 52 72 8
2 1
Ans. i 2 sin x sin 2 x 2 sin 3 x sin 4 x
2 3 4
cos 3x cos 5x
(ii) 1 4 cos x
2 32
52
9. Find the Fourier series expansion of the function
fx cos sx, x
1 2 2
where s is a fraction. Hence, show that cot 2 2 ....
2 42
(A.M.I.E.T.E., Summer 1997)
sin x 1 sin s n sin s n
Ans. cos nx
s sn sn
12.10 CHANGE OF INTERVAL AND FUNCTIONS HAVING ARBITRARY PERIOD
In electrical engineering problems, the period of the function is not always 2 but T or
2c. This period must be converted to the length 2 . The independent variable x is also to be
changed proportionally.
Let the function f x be defined in the interval c, c. Now we want to change the
function to the period of 2 so that we can use the formulae of an, bn as discussed in article
12.6.
... 2 c is the interval for the variable x.
x
1 is the interval for the variable =
2c
x2 x
2 is the interval for the variable =
2c c
x zc
so put z or x
c
Thus the function f x of period 2c is transformed to the function
cz
f or F z of period 2 .
Fourier Series 867
2c 2c
1 nx x 1 nx x
0 f x cos
c
d
c c 0 f x cos
c
dx. Put z c
1 2c nx
c 0
Similarly, bn f x sin dx.
c
Cor. Half range series [Interval (0, c)]
Cosine series:
a x 2 x n x
f x 0 a1 cos a2 cos an cos
2 c c c
c c
2 2 nx
where a0
c 0 f x dx, an
c 0 f x cos
c
dx
Sine series:
x 2x nx
f x b1 sin b2 sin bn sin
c c c
2 c nx
c 0
where f x sin bn
dx.
c
Example 12. A periodic function of period 4 is defined as
f x | x | , 2 < x < 2.
Find its Fourier series expansion.
Solution. f x | x | 2<x<2
f x x 0<x<2
x 2<x<0
c 2 0
1 1 1
a0
c c f x dx
2 0 x dx
2 2 x dx
2 0
1 x2 1 x2 1 1
4 0 0 4 2
2 2 0 2 2 2
4 4
c 2 0
1 nx 1 nx 1 nx
an
c c f x cos c
dx
2 0 x cos
2
dx
2 2 x cos
2
dx
2
1 2 nx 4 nx
x sin 1 2 2 cos
2 n 2 n 2
0
868 Fourier Series
0
1 2 nx nx
1 2 2 cos
4
x sin
2 n 2 n 2
2
1 4 4
0 2 2 1n 2 2 0 2 2 2 2 1n
4 1 4
2 n n 2 n n
1 4 4
[ 1n 1 1 1n] 2 2 1n 1
2 n2 2 n
8
2 2 if n is odd.
n
0 if n is even
bn = 0 as f(x) is even function.
Fourier series is
a0 x 2x x 2x
f x a1 cos a2 cos b1 sin b2 sin
2 c c c c
x 3x 5x
cos cos cos
8 2 2 2
f x 1 2 Ans.
1 2
3 2
52
Example 13. Find Fourier half-range even expansion of the function,
f x x/l 1, 0 x l.
l l
2 2 x 1 dx
Solution. a0
l 0 f x dx
l 0
l
l
2 x 2
2 l2 2l 1
x l 2 1 1
l 2l 0 l 2 l l
l
2 nx 2 l x n x
an 0 f x cos dx 1 cos dx
l l l 0 l l
l
2 x l nx 1 l2 nx
1 sin 2 2 cos
l l n l l n l
0
2 l l
0 2 2 cos n 2 2 2 l [ 1n 1] 2 [1 1n]
l n n l n2 2 n2 2
4
when n is odd.
n2 2
0 when n is even.
1 4 1 x 1 3x 1 5x
f x 2 2 cos 2 cos 2 cos Ans.
2 1 l 3 l 5 l
Example 14. Find the Fourier half-range cosine series of the function
f t 2 t, 0 t 1
2 2 t, 1 t 2 (Kuvempu 1996, A.M.I.E.T.E.,Summer 1997 1996)
Solution. f t 2 t, 0 t 1
2 2 t, 1 t 2
Fourier Series 869
a0 t 2t 3t
Let a1 cos f t
a2 cos a3 cos
2 c c c
t 2t 3t
b1 sin b2 sin b3 sin ...(1)
c c c
Here c = 2, because it is half range series.
c 1 2
2 2 2
Hence a0
c 0 f t dt
2 0 2 t dt
2 1 2 2 t dt
2
1 t2 2
t2 0 22t 1 4 t t2 1 1 8 4 4 1 2
2 1
c 1 2
2 nt 2 nt 2 nt
an
c 0 f t cos
c
dt
2 0 2 t cos
2
dt
2 1 2 2 t cos
2
dt
2 nt 4 n t 1
2 t sin 2 2 2 cos
n 2 n 2 0
2 nt 4 n t 2
4 2 t sin 2 2 2 cos
n 2 n 2 1
4 n 8 n 8 8 n 4 n 8 n
sin 2 2 cos 2 2 0 2 2 cos sin 2 2 cos
n 2 n 2 n n 2 n 2 n 2
8 n 8 4 n 8 n n n
2 2 cos 2 2 sin 2 2 cos 1 sin
n 2 n n 2 n 2 2 2
8 8 4
If n = 1, a1 01 2 2 .
2
8 16 4
If n = 2, a2 [ 1 1] 2 2
4 2 4
8 3 8 4
If n = 3, 0 1 2 9 2 3
a3
9 2
Putting the values of a0, a1, a2, a3 in (1) we get
8 4 t 4 2t 3t
f t 1 2 cos
8 4
2 cos cos Ans.
2 2 2
9 3
2
Example 15. Obtain the Fourier cosine series expansion of the periodic function defined by
t
f t sin , 0 t l
l
t
Solution. f t sin , 0 t l
l
l
2 l t 2 l t 2 2 4
l 0 dt l cos l cos cos 0 1 1
a0 sin
l 0
l l
2 t nt 1 t nt nt t
an
l 0 sin
l cos l dt l 0 sin l l sin l l dt
870 Fourier Series
l l
1 t 1 t
l 0 sin n 1
l
dt
l 0 sin n 1
l
dt
l l
1 l n 1 t 1 l n 1 t
cos l n 1 cos
l n 1 l 0 l 0
1 1
[cos n 1 cos 0] [cos n 1 cos 0]
n 1 n 1
1 1
[ 1n 1 1] [ 1n 1 1]
n 1 n 1
1 1 1 1
1n 1
n 1 n 1
n 1 n 1
2 2 2
1 n 1 2 2 [ 1n 1 1]
n 1 n 1 n 1
2
4
2 when n is even
n 1
0 when n is odd.
The above formula for finding the value of a1 is not applicable.
l l
2 t t 1 2t
a1
l 0 sin
l
cos
l
dt
l 0 sin
l
dt
l
1 l 2t 1 1
cos cos 2 cos 0 0 1 1 0
l 2 l 2l 2l
0
a0 t 2t 3t 4t
f t a1 cos a2 cos a3 cos a4 cos
2 l l l l
2 41 2t 1 4t 1 6t
cos cos cos Ans.
3 l 15 l 35 l
Example 16. Find the Fourier series expansion of the periodic function of period 1
1 1
f x x,. x 0
2 2
1 1
x, 0 x
2 2 (A.M.I.E.T.E., Winter 1996)
a0 x 2x
Solution. Let f x a1 cos a2 cos
2 c c
x 2x
b1 sin b2 sin ...(1)
c c
1
Here 2 c 1 or c
2
c
1 1 0 1 1 1/2 1
a0
c c f x dx
1/2 1/2
2
x dx
1/2 0 2
x dx
x x2
0
x x2 1/2 1 1 1 1 1
2 2 2 2
2 2 1/2 2 2 0 4 8 4 8 2
Fourier Series 871
c
1 nx
an
c c f x cos
c
dx
0 1/2
1 1 nx 1 1 nx
1/2 1/2
2
x cos
1/2
dx
1/2 0
2
x cos
1/2
dx
0 1/2
1 1
2 1/2
2
x cos 2 n x dx 2
0
2
x cos 2 n x dx
1 sin 2 n x cos 2 n x 0
2 x 1
2 2n 4 n2 2 1/2
1 sin 2 n x cos 2 n x 1/2
2 x 1
2 2n 4 n2 2 0
1 1 n
1n 1 1 1 1n
20 2 2
20 2 2 2 2 2 2
4n 4n
2 2
4n 4n n n2
2
if n is odd
n2 2
0 if n is even
c
1 nx
bn
c c f x sin
c
dx
0 1/2
1 1 nx 1 1 x sin n x dx
1/2 1/2
2
x sin
1/2
dx
1/2 0 2
1/2
0 1/2
2 1 x sin 2 n x dx 2 1 x sin 2n x dx
1/2 2
2
0
0
1 cos 2 n x sin 2 n x
2 x 1
2 2n 4 n2 2 1/2
1/2
1 cos 2 n x sin 2 n x
2 x 1
2 2n 4 n2 2 0
1 1
2 24n 0
4 n
Substituting the values of a0, a1, a2, a3, b1, b2, b3 in (1) we have
1 2 cos 2 x cos 6 x cos 10 x
f x ‘... Ans.
4 2 12 32 52
Example 17. Prove that
1 1 1 2nx
2
x
n
sin
1
, 0 x l.
1
1
Solution. f x x
2
l l l
1 2 1 x dx 2 lx x2 0
a0
l/2 0 f x dx
l 0 2 l 2 2 0
872 Fourier Series
l l
1 nx 2 1 x cos 2 n x dx
an
l/2 0 f x cos
l/2
dx
l 0 2 l
l
2 l 1 2nx l2 2nx
x sin 1 2 2 cos
l 2 2 n l 4 n l 0
2 l2 l2
0 2 2 cos 2 n 2 2
l 4n 4n
2 l2 l
cos 2 n 1 1 1 0
l 4 n2 2 2 n2 2
l l
1 nx 2 1 x sin 2 n x dx
bn
1/2 0 f x sin
l/2
dx
l 0 2 l
l
2 1 1 2 nx l2 2 nx
x cos 1 sin
l
2 2 n l 4n
2 2 l
0
2 l l cos 2 n 0 l . l 1 2 l 2 l
l2 2n
2 2n
l 2 n n
Fourier series is
a0 nx 2nx 3nx
f x a1 cos a2 cos a3 cos
2 l/2 l/2 l/2
nx 2nx 3nx
b1 sin b2 sin b3 sin
l/2 l/2 l/2
l l 2x l 4x l 6x
x sin sin sin
2 l 2 l 3 l
l 1 2nx
n
sin
l
Proved.
1
Example 18. Find the Fourier series corresponding to the function f (x) defined in
2, 2 as follows
f x 2 in 2 x 0
x in 0 x 2.
Solution. Here the interval is 2, 2 and c 2
1 c 1 0 2
a0
c c
f x dx 2. dx x. dx
2 2 0
0
1 x2 2 1
2 x [4 2] 3
2 2 2
0 2
c
1 nx 1 0 nx 2
nx
an
c c f x cos
c dx
2 2 cos 2 dx 0 x cos
2
dx
2
1 4 nx 0 2 nx 4 nx2
sin x sin cos
2 n
2 2 n 2 n2 2 2 0
Fourier Series 873
1 4 4 2
cos n 2 2 2 2 1n 1
2 n2 2 n n
4
2 2 when n is odd
n
0 when n is even.
c 0 2
1 nx 1 nx 1 nx
bn
c c f x sin
c
dx
2 2 2 sin
2
dx
2 0 x sin
2
dx
0 2
2
1 nx 1 2 nx 4 nx
2 n cos 2 2 x n cos 2 1 n2 2 sin 2
2
2 0
1 4 4 1 4 4 1 4 2
cos n cos n 2 2 sin n n
2 n n 2 n n 2 n
a0 x 2x 3x
f x a1 cos a2 cos a3 cos
2 c c c
x 2x 3x
b1 sin b2 sin b3 sin
c c c
3 4 1 x 1 3x
cos 2 cos
2 2 12 2 3 2
21 x 1 2x 1 3x
sin sin sin Ans.
1 2 2 2 3 2
2 1 1
Ans. sin 2 x sin 4 x sin 6 x
2 3
3. Express f x x as a cosine, half range series in 0 < x < 2.
8 1 x 1 3x 1 5x
Ans. 1 2 2 cos 2 cos 2 cos
1 2 3 2 5 2
4. Find the Fourier series of the function
2 4 x2
for
f x x 2 x 2
for
2
for 2 x 4
4 8 x 2 2x 4 8 3x 2 4x
Ans. 2 sin sin 2 sin sin
4 4 3 3 4 2 4
5. Find the Fourier series to represent
f x x2 2 from 2 x 2.
2 16 x 1 1 3x
Ans. cos 2 cos x cos
3 2 2 4 9 2
6. If f x e x c x c, show that
1 1 x 1 2x
c
f x ec e c cos cos
2c c
2 2 c c2 4 2 c
1 x 2 2x
2 sin c 2 2 sin (Hamirpur 1996, Mysore 1994)
c2
c 4 c
7. A sinusodial voltage E sin t is passed through a half wave rectifier which clips the negative portion of
the wave. Develop the resulting portion of the function
T
u t 0 when t 0
2
T 2
E sin t when 0 t T
2 (Mangalore 1997)
E E 2E 1 1 1
Ans. sin t cos 2 t cos 4 t cos 6 t ...
2 1.3 3.5 5.7
8. A periodic square wave has a period 4. The function generating the square is
f t 0 for 2 t1
k for 1 t 1
0 for 1 t 2
Find the Fourier series of the function. k 2k t 1 3t
Ans. f t cos cos
2 2 3 2
9. Find a Fourier series to represent x2 in the interval l, l. (Nagpur 1997)
l2 4l2 cos x cos 3 x
Ans. cos x
3 2 22 32
a0 nx nx
[f x]2 f x an f x cos bn f x sin ...(2)
2 n1 c n1 c
Integrating term by term from –c to c, we have
c c c
a0 nx
c [f x]2 dx
2 c f x dx an
n1
c f x cos
c
dx
c
nx
bn
n1
c f x sin
c
dx ...(3)
c ac 2
2. If 0 < x < c (Half range cosine series), [f x]2
0
a2n
0 2 2 n1
c
c a0 2
3. If 0 < x < c (Half range sine series), [f x]2 dx b2n
0 2 2 n1
1
b 2
a [f x] dx
2
4. R.M.S. =
ba
Example 20. By using the sine series for f(x) = 1 in 0 < x < show that
2 1 1 1
1 2 2 2 ...... (Hamirpur 1996)
8 3 5 7
Solution. sine series is f x bn sin nx
2
bn
0 f x sin nx dx
2 2 cos nx 2 2
0 1 sin nx dx
n 0
n
[cos n 1]
n
[ 1n 1]
4
if n is odd
n
0 if n is even
Then, the sine series is
876 Fourier Series
4 4 4 4
1 sin x sin 3x sin 5x sin 7x ......
3 5 7
c
c 2
0 [f x]2 dx b b22 b23 b24 b25 ......
2 1
2 2 2 2
4 4 4 4
0 12 dx ......
2 3 5 7
16
[x]0 2 1 2 2 2 ......
1 1 1
2
3 5 7
16 1 1 1
1 2 2 2 ......
2 2 3 5 7
2 1 1 1
1 2 2 2 ...... Proved.
8 3 5 7
x , o<x<1
Example 21. If f x
2 x , 1<x<2
using half range cosine series, show that
1 1 1 4
4 4 ......
4
1 3 5 96
Solution. Half range cosine series is
a0 nx
f x an cos
2 c
c
2 2 1 2
where a0
c 0 f x dx
2 0
x dx 2 x dx
1
1 2
2x 4 2 2
x2 x2 1
2
0 2 1 2 2
c
2 nx
an
c 0 f x cos
c
dx
2 1 nx 2
nx
2 0
x cos
2
dx 2 cos
2
dx
1
1 2
sin x n x nx n x
x cos sin
2 cos
2 2 2
2 x
1
n n
2 2 2 2
n n
2 4 2 4
0 1
2 n 4 n 4 4 2 n 4 n
sin 2 2 cos 2 2 0 2 2 cos n sin 2 2 cos
n 2 n 2 n n n 2 n 2
8 n 4 4 4 n
2 2 cos 2 2 2 2 cos n 2 cos 2 1 cos n
n 2 n n n2
Fourier Series 877
4 4
a1 0, a2 , a3 0, a4 0, a5 0, a6 ......
9
c
c a20
0 [f x]2 dx
2 2
a21 a22 a23 ......
1 2
2 2 16 16
0 x2 dx 2 2 x2 dx
2 2 2 81 2 ......
1
1 2
x3 2 x3 2 16 16
2 2 2 ......
3
0 3 1 2 81 2
2 2 16
......
1 1
2 0 1
3 3 2 2 81
22 2 16 1 1
2 1 4 4 ......
3 2 3 5
2 16 1 1
2 1 4 4 ......
6 3 5
4
1 1
1 4 4 ...... Ans.
96 3 5
Example 22. Prove that for 0 < x <
2 cos 2x cos 4x cos 6x
(a) x x ......
6 12 22 32
8 sin x sin 3x sin 5x
(b) x x 2 ......
1 32 52
Deduce from (a) and (b) respectively that
1 4 1
(c) (d)
n 1n
4 90 n1 n 6 945
Solution. Half range cosine series
2 2 x2 x3 2 3 3 2
a0
0 x x
2 3 2 3 3
0
2
an
0 x x cos nx dx
2 sin nx cos nx sin nx
x x2 2x 2 n3
n n2
0
2 1 n 2
0 0 2 2 1n 1
n2 n n
4
when n is even
n2
0 when n is odd
2
......
cos 2x cos 4x
Hence, x x 4 2
6 2 42
878 Fourier Series
By Parseval’s formula
a20
2
0 x2 x2 dx
2
a2n
2 1 4 1 1 1
0 2 x2 2 x3 x4 dx
2 9 16 24 44 64 ......
2 2 x3 2 x4 x5 4 1 1 1
3 4 5 18 14 24 34 ......
0
2 5 25 5 4 1 1 1
3 4 5 18 14 24 34 ......
4 4 1 1 4
or
15 18 n 1 n4 n 1n
4 90
(b) Half range sine series
2
bn
0 x x sin nx dx
2 2 cos nx sin nx cos nx
x x n 2x n2 2 n3
0
2 1 n
2 4
2 3 3 3 1n 1
n n n
8
3 when n is odd
n
0 when n is even
8 sin x sin 3x sin 5x
x x 3 3 3 ......
1 3 5
By Parseval’s formula
2
0 x2 x2 dx b2n
2 64 1 1 1
2 6 6 6 ......
15 1 3 5
4 1 1 1
6 6 6
960 1 3 5
1 1 1 1 1 1 1
Let S 6 6 6 6 ...... 6 6 6 ...... 6 6 6 ......
1 1 1
1 2 3 4 1 3 5 2 4 6
4 1 1 1 4 1 1 1 1
S 6 6 6 .... 6 6 6 6 ....
960 2 4 6 960 2 1 2 3
4 S
S
960 64
S 4 63s 4
S or
64 960 64 960
Fourier Series 879
4 64 4
S
960 63 945
1 4
Proved.
n 1n
6 945
Exercise 12.5
1. Prove that in 0 < x < c,
c 4c x 1 3x 1 5x
x cos c 32 cos c 52 cos c ......
2 2
and deduce that
1 1 1 4 1 1 1 1 4
(i) 4 ...... (ii) 4 4 ......
1 4 4
3 5 96 14 4
2 3 4 90
12.12. FOURIER SERIES IN COMPLEX FORM
Fourier series of a function f(x) of period 2l is
a x 2x nx
f x 0 a1 cos a2 cos ...... an cos ......
2 l l l
x 2 x nx
b1 sin b2 sin ...... bn sin ...... ... (1)
l l l
eix e ix eix e ix
We know that cos x and sin x
2 2i
On putting the values of cos x and sin x in (1), we get
ix ix 2ix 2ix ix ix 2ix 2ix
a0 e l e l e l e l e e l e l e l
f x a1 a2 .... b1 l b2 .....
2 2 2 2i 2i
a ix 2ix ix 2i x
0 a1 ib1 e l a2 ib2 e l .... a1 ib1 e l a2 ib2 e l ......
2
ix 2ix ix 2ix
c0 c1 e l c2 e l ..... c 1 e l c 2 e l .....
inx inx
c0 cn e l c n e l
n1 n1
1 1
cn
a ibn , c n a ibn
2 n 2 n
a0 1 1 2l
2 l 0
where c0 f x dx
2
1 1 2l
nx i 2l nx 1 1 2l nx nx
cn
2 l 0 f x cos
l
dx f x sin
l l
dx cn
2 l 0
f x cos
l
i sin
l
dx
0
2l
1 inx
cn
2l 0 f x e l dx
1 2l inx
2l 0
c n f x e l dx
Example 23. Obtain the complex form of the Fourier series of the function
f x x 0
0
1 0 x
880 Fourier Series
1 1
Solution. c0
2 0 dx
2
1
cn
2
f x e inx dx
1 0 1 inx 1 e inx
0 e inx dx 1 e inx dx
2
e dx
2 in 0
0 2 0
1 in 1 1
e 1 [cos n 1] 1n 1
2ni 2ni 2ni
1
, n is odd
in
0 , n is even
Fundamental of first harmonic. The term a1 cos x b1 sin x in Fourier series is called
the fundamental or first harmonic.
Second harmonic. The term a2 cos 2 x b2 sin 2 x in Fourier series is called the second
harmonic and so on.
Example 24. Find the Fourier series as far as the second harmonic to represent the
function given by table below :
x 0o 30o 60o 90o 120o 150o 180o 210o 240o 270o 300o 330o
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
f (x) . f (x) . f (x) . f (x) .
xo sin x sin 2x cos x cos 2x f (x)
sin x sin 2x cos x cos 2x
0o 0 0 1 1 2.34 0 0 2.340 2.340
o
30 0.50 0.87 0.87 0.50 3.01 1.505 2.619 2.619 1.505
o
60 0.87 0.87 0.50 – 0.50 3.69 3.210 3.210 1.845 – 1.845
o
90 1.00 0 0 – 1.00 4.15 4.150 0 0 – 4.150
o
120 0.87 – 0.87 – 0.50 – 0.50 3.69 3.210 – 3.210 – 1.845 – 1.845
o
150 0.50 – 0.87 – 0.87 0.50 2.20 1.100 – 1.914 – 1.914 1.100
o
180 0 0 –1 1.00 0.83 0 0 – 0.830 0.830
210o – 0.50 0.87 – 0.87 0.50 0.51 – 0.255 0.444 – 0.444 0.255
240o – 0.87 0.87 – 0.50 – 0.50 0.88 – 0.766 0.766 – 0.440 – 0.440
o
270 – 1.00 0 0 – 1.00 1.09 – 1.090 0 0 – 1.090
o
300 – 0.87 – 0.87 0.50 – 0.50 1.19 – 1.035 – 1.035 0.595 – 0.595
o
330 – 0.50 – 0.87 0.87 0.50 1.64 – 0.820 – 1.427 1.427 0.820
25.22 9.209 – 0.547 3.353 – 3.115
25.22
a0 2 Mean of f x 2 4.203
12
3.353
a1 2 Mean of f x cos x 2 0.559
12
3.115
a2 2 Mean of f x cos 2 x 2 0.519
12
9.209
b1 2 Mean of f x sin x 2 1.535
12
0.547
b2 2 Mean of f x sin 2 x 2 0.091
12
Fourier series is
a0
f x a1 cos x a2 cos 2 x b1 sin x b2 sin 2 x
2
2.1015 0.559 cos x 0.519 cos 2 x 1.535 sin x 0.091 sin 2 x Ans.
882 Fourier Series
Example 25. A machine completes its cycle of operations every time as certain pulley
completes a revolution. The displacement f (x) of a point on a certain portion of the machine
is given in the table given below for twelve positions of the pulley, x being the angle in degree
turned through by the pulley. Find a Fourier series to represent f (x) for all values of x.
x 30o 60o 90o 120o 150o 180o 210o 240o 270o 300o 330o 360o
f (x) 7.976 8.026 7.204 5.676 3.674 1.764 0.552 0.262 0.904 2.492 4.736 6.824
Solution.
x sin x sin 2x sin 3x cos x cos 2x cos 3x f(x) f(x) f(x) f(x) f(x) f(x) f(x)
sin x sin 2x sin 3x cos x cos 2x cos 3x
30o 0.50 087 1 0.87 0.50 0 7.976 3.988 6.939 7.976 6.939 3.988 0
o
60 0.87 0 0 0.50 –0.50 –1 8.026 6.983 6.983 0 – 4.013 4.013 –8.026
o
90 1.00 0.87 –1 0 –1 0 7.204 7.204 0 –7.204 0 –7.204 0
o
120 0.50 –0.87 0 – 0.50 – 0.50 1 5.676 4.938 – 4.939 0 –2.838 –2.838 5.676
o
150 0.50 –0.87 1 – 0.87 0.50 0 3.674 1.837 –3.196 –3.196 –3.196 1.837 0
o
180 0 0 0 –1 1 –1 1.764 0 0 –1.764 –1.764 1.764 –1.764
o
210 –0.50 0.87 –1 – 0.87 0.50 0 0.552 –0.276 0.480 0.480 – 0.480 0.276 0
240o –0.87 0.87 0 – 0.50 – 0.50 1 0.262 –0.228 0.228 – 0.131 – 0.131 0.131 0.262
270o –1.00 0 1 0 –1.00 0 0.904 –0.904 0 0 0 – 0.904 0
o
300 –0.87 –0.87 0 0.50 –0.50 –1 2.492 –2.168 –2.168 1.246 1.246 –1.296 –2.492
o
330 –0.50 –0.87 –1 0.87 0.50 0 4.736 –2.368 – 4120 4.120 4.120 2.368 0
o
360 0 0 0 1 1 1 6.824 0 0 0 6.824 6.824 6.824
50.09 19.206 0.207 0.062 14.733 0.721 0.460
50.09
a0 2 Mean value of f x 2 8.34
12
14.733
a1 2 Mean value of f x cos x 2 2.45
12
0.721
a2 2 Mean value of f x cos 2 x 2 0.12
12
0.460
a3 2 Mean value of f x cos 3 x 2 0.08
12
19.206
b1 2 Mean value of f x sin x 2 3.16
12
0.207
b2 2 Mean value of f x sin 2 x 2 0.03
12
0.062
b3 2 Mean value of f x sin 3 x 2 0.01
12
Fourier series is
a
f x 0 a1 cos x a2 cos 2 x a3 cos 3 x b1 sin x b2 sin 2 x b3 sin 3 x
2
4.17 2.45 cos x 0.12 cos 2 x 0.08 cos 3 x ..
Fourier Series 883
Find the coefficient of sin 2 x in the Fourier series representing the above variations. Ans. 0.072
2. The displacement f x of a part of a machine is tabulated with corresponding angular moment ‘x’ of
the crank. Express f x as a Fourier series upto third harmonic.
xo 0o 30o 60o 90o 120o 150o 180o 210o 240o 270o 300o 330o
f (x) 1.80 1.10 0.30 0.16 0.50 1.30 2.16 1.25 1.30 1.52 1.76 2.00
3. The following values of y give the displacement in cms of a certain machine part of the rotation x
of the flywheel. Expand f x in the form of a Fourier series.
2 3 4 5
x 0
6 6 6 6 6
f (x) 0 9.2 14.4 17.8 17.3 11.7
Ans. f x 11.733 7.733 cos 2 x 2.833 cos 4 x
1.566 sin 2 x 0.116 sin 4 x
4. Analyse harmonically the data given below and express y in Fourier series upto the second harmonic.
2 4 5
x 0 2
3 3 3 3
y 1.0 1.4 1.9 1.7 1.5 1.2 1.0