Академический Документы
Профессиональный Документы
Культура Документы
Fourier Series
Importance, Definitions of Fourier series
Euler’s formulae
Prepared by:
Dr. Sunil
NIT Hamirpur (HP)
(Last updated on 13-01-2011)
Latest update available at: http://www.freewebs.com/sunilnit/
Fourier series introduced in 1807 by Fourier (after works by Euler and Danial Bernoulli)
was one of the most important developments in applied mathematics. Fourier series is
an infinite series representation of periodic function in terms of the trigonometric sine
and cosine functions.
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 2
Heat Equation:
The heat equation is an important partial differential equation which
describes the distribution of heat (or variation in temperature) in a given region
over time. For a function u(x,y,z,t) of three spatial variables (x,y,z) and the time
variable t, the heat equation is
or equivalently
where α is a constant.
Note: The heat equation predicts that if a hot body is placed in a box of cold water,
the temperature of the body will decrease, and eventually (after infinite
time, and subject to no external heat sources) the temperature in the box
will equalize.
Solution of heat equation prior to Fourier's work:
Prior to Fourier's work, there was no known solution to the heat equation in
a general situation, although particular solutions were known if the heat source
behaved in a simple way, in particular, if the heat source was a sine or cosine
wave. These simple solutions are now sometimes called eigensolutions. Fourier's
idea was to model a complicated heat source as a superposition (or linear
combination) of simple sine and cosine waves, and to write the solution as a
superposition of the corresponding eigensolutions. This superposition or linear
combination is called the Fourier series.
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 3
Additional validity:
As we know, Taylor’s series expansion is valid
valid only for functions, which
are continuous and differentiable. But Fourier series is possible not only for
continuous functions, but for periodic functions, functions discontinuous in their
values and derivatives.
Further, because of periodic nature, Fourier
Fourier series constructed for one
period is valid for all values.
Drawbacks in Fourier’s days:
From a modern point of view, Fourier's results are somewhat informal, due
to the lack of a precise notion of function and integral in the early nineteenth
century.
Periodic functions:
A function f(x) which satisfies the relation f x T f x for all x and for some
positive number T, is called a periodic function.. The smallest positive number T, for
which this relation holds, is called the period of f(x).
If T is the period, then f x f x T f x 2T ........... f x nT .....
Aperiodic functions:
A function that is not periodic is called aperiodic.
Trigonometric series:
Trigonometric series is a functional series of the form
1
a 0 a1 cos x a 2 cos 2 x .......... .... b1 sin x b 2 sin 2 x .......... ..
2
a0
or a n cos nx b n sin nx ,
2 n 1 n 1
Fourier series:
Most of the single valued functions, which occur in many physical and
engineering problems, can be expressed in the form
1
a 0 a1 cos x a 2 cos 2 x .......... .... b1 sin x b 2 sin 2 x .......... ..
2
within a desired range of values of the variable.
Then, such a series is known as the Fourier series.
The individual terms in Fourier series are known as harmonics.
a0
f x a n cos nx b n sin nx ,
2 n 1 n 1
2
1
where a 0
f x dx ,
2
1
an
f x cos nxdx ,
2
1
bn
f x sin nxdx .
Leonhard Paul Euler
(17-04-1707 to 18-09-1783)
These formulae of a 0 , a n , b n are known as Euler’s Formulae.
a0
Note: For getting more symmetric formulae for the coefficients, we write instead of a 0 .
2
2 2
cos nx
2. sin nxdx 0 n 0
n
2 2
1
3. cos mx cos nxdx
2 cosm n x cosm n x dx
1 sin m n x sin m n x
2
0 m n
2 mn mn
2 2
x sin 2nx
4.
2
cos nxdx n 0
2 4n
1 cosm n x cosm n x
2
5. sin mx cos nxdx 0 m n
2 mn m n
2 2
sin 2 nx
6. sin nx cos nxdx 0 n 0
2n
1 sin m n x sin m n x
2
7. sin mx sin nxdx 0 m n
2 m n m n
2 2
x sin 2nx
8.
2
sin nxdx n 0
2 4n
a0
f x a n cos nx b n sin nx . (i)
2 n 1 n 1
In finding the coefficients a 0 , a n and b n , we assume that the series on the RHS of (i)
1
a 0 2 0 0 a 0 . [ by integrals (1) and (2) above]
2
2
1
Hence a 0 f x dx .
2 2 2
1 1 1
Thus a 0 f x dx , a n f x cos nxdx and b n f x sin nxdx .
Remarks:
1.: Putting 0 , the interval becomes 0 x 2 , and the formula (1) reduce to
2 2 2
1 1 1
a0
f ( x )dx , a n
f ( x ) cos nx dx , b n
f ( x ) sin nx dx .
0 0 0
2.: Putting , the interval becomes x and the formula (1) take the form
1 1 1
a0
f ( x )dx , a n f ( x ) cos nx dx , b n f ( x ) sin nx dx .
a0
direction. Furthermore, is the mean value of the function represented by the series,
2
taken over the interval 0, 2 .
Note: Practically all interesting functions with period 2 may be written in this form.
Interpreting x as time, the coefficients a n , b n may be interpreted as representing the
contributions of frequency n to a given signal.
Now let us expand the following functions as a Fourier series. In all these
problems, f(x) is assumed to have the period 2 .
1
Sol.: Let f ( x ) a 0 a n cos nx b n sin nx (i)
2 n 1
1
2
1
2
f x dx xdx
1 x2
2
1 4 0
2
Here a 0
0
0 2
2
2. .
0
2 2
1 1
an f x cos nxdx x cos nx dx
0
0
I II
2
1 sin nx cos nx 1 cos 2n 1
x 1 20 0 2
n n
2
0 n 2
n
1 1 1
0.
n 2 n 2
2 2
1 1
f x sin nxdx vdx .v1 v 2 .v3 .v4 ....
bn x sin nx dx
I II
0 0
2
1 cos nx sin nx
x . 1
n n
2
0
Hence, the required Fourier series is f (x) b n sin nx.
n 1
1 1 1
Now b n f x sin nxdx x sin nxdx (i)
2
1
x sin nxdx 2 x sin nxdx
0 I
x sin nx dx 0
x sin nx is even function
1 cos nx sin nx
x 1
n n 2 0
1
n
1 1n 1n 1
sin n 0, n Z
cosn 1 , n Z
n n
n n
sin 2x sin 3x
f (x) sin x ......... , is the required Fourier series.
2 3
2 cos nx
Q.No.3.: Prove that x 2 4 1n , x .
3 n 1 n2
1 2
Hence, show that (i) n2
6
,
1n 1 2
(ii) n2 12
,
1 2
(iii) 2n 12
8
.
or
Develop a Fourier series for the function f (x) x 2 in the interval x .
2
1 1n 1 2 1 2
Hence, show that (i) n 2 6 , (ii) n2 12
, (iii) 2n 12
8
.
a0
f (x) x 2 a n cos nx b n sin nx . (i)
2 n 1 n 1
1 1 1 x3 1 23 22
Here a 0 f x dx x dx
2
.
3 3 3
1
1 1 x 2 sin nx 2
a n f x cos nxdx x cos nxdx
2
x sin nxdx
n n
1 x 2 sin nx 2 x cos nx 1
cos nxdx
n n n n
1 x 2 sin nx 2x 2
2 cos nx 3 sin nx
n n n
2 4 1 4 1
n n
1 2 .0 2 2 2 .0 2
2 1 3 0
n
2 1 3 .0
n
.
n n n n n n n 2 n2
1 1 1 x 2 cos nx 2
b n f x sin nxdx x sin nxdx
2
x cos nxdx
n n
1 x 2 cos nx 2 x sin nx
1
sin nxdx
n n n n
1 x 2 cos nx 2x 2
2 sin nx 3 cos nx
n n n
1 2
1n 22.0 23 1n 1 22.0 231 0 .
2 n n
n n n n n n
bn 0 .
Substituting the values of ai’s and bi’s in (i), we get the required Fourier series of
f ( x ) x 2 for x as
a0
x2 a n cos nx b n sin nx
2 n 1 n 1
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur13
2 2 4 1n
x 2
cos nx 0
3.2 n 1 n 2
x2
2
4
1n cos nx
. (ii)
3 n 1 n2
1 2
To show (i): n2
6
.
2 1 1 1 1
2 4 2 2 2 2 ..............
3 1 2 3 4
1 1 1 1 2 2 2
4 2 2 2 2 .............. 2
1 2 3 4 3 3
1 1 1 1 2
.............
12 22 32 42 6
1 2
,which is the required result.
n2 6
1n 1 2
To show (ii): n2 12
.
2 1 1 1 1 1 1 1 1 2
0 4 2 2 2 2 ......... 4 2 2 2 2 .........
3 1 2 3 4 1 2 3 4 3
1
n 1
2
4
n2 3
1
n 1
2
, which is the required result.
n2 12
1 2
To show (iii): 2n 12
8
.
1 1 1 1 1 1 1 1 2 2
2 2 2 2 ............. 2 2 2 2 .........
1 2 3 4 1 2 3 4 6 12
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur14
1 1 2 1 1 2
2 2 2 ............. 2 2 .............
1 3 4 1 3 8
1 2
, which is the required result.
2n 12 8
2 4 2
x x2 1n 2 cos nx sin nx .
3 n 1 n n
1 1 1 2
Hence, show that ...... .
12 22 32 12
Sol.: The Fourier series is given by
a0
f x x x 2 a n cos nx b n sin nx . (i)
2 n 1 n 1
1
2
1 x 2 x3
Here a 0 x x dx
2
3
1 2 3 2 3 2 2
2 3
2
3 3
.
1 sin nx
an
1
x x2
cos nxdx
x x
2 sin nx
n
1 2 x
n
dx
2 x 1 cos nx
1 2 cos nx
x x 2 sin nx
n n n
n2
dx
1
x x
2 sin nx
1 2 x cos nx
2 sin nx
n n2 n 3
1 2 sin n 1 2 cos n 2 sin n
n n2 n 3
1 2 sin n 1 2 cos n 2 sin n
n n2 n3
1 1 2 1 2
2
1n 1 42 1n 42 1n .
n n n
1 cos nx
bn
1
x x 2
sin
nxdx
x x 2 cos nx
n
1
2 x
n
dx
1 2 x sin nx
1 2 sin nx
x x
2 cos nx
n
n2
n 2
dx
1 x x 2 cos nx 1 2x sin nx 2 cos nx
n n2 n 3
1 2 cos n 1 2x sin n 2
cos n
n n2 n3
1 2 cos n 1 2 sin n 2
cos( n )
n n2 n3
1 1n 2
2 n
3 1
1n 2 2
3 1n
n n
n n
1 1n 2
2
3 1n
2
1n 23 1n
n n n n
1
1 2
2 2 1n
n
1n .
2
bn 1n .
n
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
f x x x 2 , in the range x , as
1 2 2 4
2
x x2 2 1n cos nx 1n sin nx
2 3 n 1 n n 1 n
2 4 2
1
n
x x2 n 2 cos nx n sin nx .
3 n 1
Deduction: Put x = 0, in above, we get
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur16
0
n2
4
1n
0
2 1 1 1
4 2 2 2 ........
3 2 3
n 1 n 1 2 3
2 1 1 1
2 2 2 ......
12 1 2 3
1 1 1 1 2
Hence, show that ....... .
12 22 32 42 12
Sol.: The Fourier series is given by
a0
f (x) x x 2 a n cos nx b n sin nx . (i)
2 n 1 n 1
1
Here a 0 x x 2 dx
1 x 2 x3
2
3
22
3
.
1
1
a n x x 2 cos nxdx x x 2
sin nx
n
sin nx
1 2x n dx
1 cos nx
x x2
sin nx
n
cos nx
1 2x
n2
2
dx
n 2
4 1n
1
x x2
sin nx
n
cos nx
1 2x
n2
2 sin nx
n 3
n2
.
cos n 1
n
4 4 4 4
a1 2
, a2 2
, a3 2
, a4 ,……. etc.
1 2 3 42
1
Finally, b n x x 2 sin nxdx
1
cos nx
x x2
n
sin nx
n
cos nx
1 2x 2 2 3
n
2 1n
.
n
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur17
2 2 2 2
b1 , b2 , b3 , b 4 ,……. etc.
1 2 3 4
Substituting the values of ai’s and bi’s in (i), we get the required Fourier series of
f ( x ) x x 2 from x to x as
2 1 1 1 1
0 4 2 2 2 2 .....
3 1 2 3 4
1 1 1 2 1
2 2 2 2 ..... , which is the required result.
1 2 3 4 12
Remarks:
In the above example, we have used the result sin n 0 and cos n 1n .
1 1
Also sin n 1n and cos n 0 .
2 2
2
1 cos nx 1 1 1
x
sin nx
an 1 2 0 n 2 0 n 2 0.
2 n n
2
0
2 2
1 1 1
Also b n
f ( x ) sin nxdx
2 I x sinIInx dx
0 0
1 1 1 1
0 0 .
2 n n 2n n n n
Hence, from (i), we get
1 1 sin nx
f (x) .0 sin nx , is the required Fourier series.
2 n 1 n n 1 n
1 1 1
2nd Part: Deduce 1 ........
4 3 5 7
Put x , then Fourier series becomes
2
2 1
2
4 n 1 n
sin n
2
1 1 1
1 ........
4 3 5 7
2
x 2 cos nx
Q.No.7.: If f x in the range 0 to 2 , then show that f ( x ) .
2 12 n 1 n 2
1 2
Also, deduce that (i).
n 1 n2
6
.
1 1 1 1 2
(ii). ...... ,
12 22 32 42 12
1 1 1 2
(iii). ...... .
12 32 52 8
Sol.: The Fourier series is given by
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur19
2
x a0
f x a cos nx b n sin nx . (i)
2
n
2 n 1 n 1
2 2 2 2 2
1
2
1 1 x
Here a 0 f x dx dx 2
dx 2 xdx x 2dx
0
0 2 4 0 0 0
2 2
1 2 2 x2 x3
x 0 2
4 2 3
0 0
1 3 3 83 2 2 2
2
2
2 4 .
4 3 2 3 6
2 2 2
1 1 x
an f x coxnxdx cos nxdx
0
0 2
2 2 2
1 2
4 cos nxdx 2 x cos nxdx x 2 cos nxdx
0 0 0
2 2 2
1 2 sin nx
2 x cos nxdx x 2 cos nxdx .
4 n 0 0 0
2 2 2
x sin nx 1 x sin nx 1
Let I1 x cos nxdx
n
n sin nxdx
n
2 cos nx
n 0
0 0
2
Let I3 x sin nxdx
0
2 2 2
x cos nx 1
I3 x sin nxdx
1
cos nx dx x cos nx 1 sin nx
0
n n 0
n n n n 0
2
x 2 sin nx 2 x cos nx 1 sin nx 4
I2 .
n n n n n
0
n2
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur20
1 4 4 1 1
Thus a n 0 2 0 2 2.
4 n n 4 n
2 2
1 x
It is clear that bn 0
sin nxdx 0 .
2
0
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
2
x
f x in the range 0 to 2 , as
2
2 cos nx
f x . (ii)
12 n 1 n 2
2nd Part:
2 1
(i) To show: 2 .
6 n 1 n
2 2 1 1 1 1
2 2 2 2 .........
4 12 1 2 3 4
2 2 1 1 1 1
2 2 2 2 .........
4 12 1 2 3 4
2 1
2 , which is the required result.
6 n 1 n
1 1 1 1 2
(ii) To show: ...... .
12 22 32 42 12
Put x in (ii), we get
2 1n 2 1 1 1
0 2
1 2 2 2 ..........
12 n 1 n 12 2 3 4
2 1 1 1
1 2 2 2 ......, which is the required result.
12 2 3 4
1 1 2 1
(iii) To show: 2 2 2 ...... .
1 3 5 8
Adding (i) and (ii), we get
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur21
2 2 1 1 1 1 1 1
1 2 2 2 .......... 1 2 2 2 ..........
6 12 2 3 4 2 3 4
2 1 1
21 2 2 ......
4 3 5
2 1 1
1 2 2 ...... , which is the required result.
8 3 5
Sol.: f ( x )
x 2 x 2
, x .
12
Now f ( x ) x
2
x2
f ( x ) f(x) is odd function.
12
a 0 0 , a n 0.
Let f ( x ) b n sin nx (i)
n 1
1
1 2 x 2
Now b n f ( x ) sin nxdx x sin nxdx
12
1
12
2 x x 3 sin nxdx
1
6 0
2 x x 3 sin nx dx
II
I
1
2
1 2 e 2
1.
Now a 0 e dx e x
x
0
n 0
2 2
1 1
an
f ( x ) cos nxdx
e x cos nxdx
0 0
2
1 ex e ax
cos nx n sin nx e cos bxdx 2
ax
a cos bx b sin bx
1 n 2
a b 2
0
1 e 2 1 e 2 1
1 0 1 0
1 n 2 1 n2 1 n
2
.
2 2
1 1
bn
f ( x ) sin nxdx
e x sin nxdx
0 0
2
1 ex e ax
sin nx n cos nx e sin bxdx 2
ax
a sin bx b cos bx
1 n 2 a b2
0
1 2
1 1
n 1 e 2
e 0 n 1 n 2 n .
1 n2 1 n2
f x
1 2x
2
e 1
e 2 1 cos nx n sin nx
n 1 1 n 2
1 n2
.
1 1 1
Now a 0 f ( x )dx e x dx e x
1
2
e e sinh sinh
e e
2
1 1 1 x
an
f (x) cos nxdx
e cos nxdx
e ax
1 ex
e ax
cos bxdx a cos bx b sin bx
cos nx n sin nx a 2 b2
1 n 2 Here a 1, b n
1 ex
1 n 2
1n
0
e x
1 n2
1n
0
1 1n
cos( n) cos n 1n
e e
1 n2
Also sinn 0, n Z
2sinh 1
n
e e
. sinh
1 n2 2
Further,
1 1
bn
f (x) sin nxdx e x sin nxdx
e ax
1 ex e cos bxdx 2
ax
a cos bx b sin bx
sin nx n cos nx a b2
1 n 2 Here a 1, b n
1 2 2 sinh 2n 1n
f x . sinh n
2 n 1
1 n2
1
cos nx
1 n 2
sinh
x
sin nx
1 2 3
sin x sin 2x sin 3x ..... .
2 5 10
2 2
1 1 1 2 1 e 2
Here a 0 f x dx e x dx e x .
0
0
0
2 2
1 1
an f x cos nxdx e x cos nxdx
0
0
1 2 1 e 2 1
e x cos nx n sin nx .
n2 1 0 n2 1
.
1 e 2 1 1 e 2 1 2 1
a1 , a2 , a3 1 e .......etc.
2 5 10
2 2
1 1
Finally, b n f x sin nxdx e x sin nxdx
0
0
1 2 1 e 2 n
e x sin nx n cos nx .
n2 1 0 n2 1
.
1 e 2 1 2 2 3
b1 . , b 2 1 e . 2 , b 3 1 e . ,…. etc.
2 5 10
Substituting the values of ai’s and bi’s in (i), we get the required Fourier series of
f x e x in the interval 0 x 2 as
1 1 1 1
2 cos x cos 2x cos 3x .......... ....
1 e 2 2 5 10
e x . Ans.
1 sin x 2 sin 2x 3 sin 3x ..............
2 5 10
Hence, derive series for .
sinh
Sol.: The Fourier series is given by
a0
f x e ax a n cos nx b n sin nx . (i)
2 n 1 n 1
e ax
1 1
Here a 0 f x dx e ax dx
1 ax
e
1 a
e e a
a a a
e a e a 2 sinh a
.
a a
e x e x
Since we know that sinh x 2 sinh x e x e x ea e a 2 sinh a .
2
1
e ax cos nxdx I (say).
Also a n
1 e ax e ax
n sin nx dx
Then I cos nxdx
a
a
e a cos nx n e ax e ax
sin nx .n cos nxdx
a
a a a
a n a n sin nxe
a2 1 ax
2 2
2
e ax a cos nx
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur26
a n
2
ne sin n ae cos n n sin ne ae
1
2
a a a a
cos n
1
a n
2
0 ae 1 0 ae 1
2
1
a
a n
ae n a n
2 2
a
ae a 1n
1n a 2 sinh a .
2
n a 2
Now put n 1, 2, 3, .......... .......... , we get
2a sinh a 2a sinh a 2a sinh a
a1
a 12 2
, a2
a 2 2 2
, a3
a 2 32 , ...........etc.
1
Similarly, b n eax sin nxdx I (say).
1 eax e ax ax
.n cos nxdx e sin nx n e ax cos nxdx
I sin nx
a
a a a
e ax sin nx n e ax e ax
n sin nxdx
a
cos nx
a a a
e ax sin nx ne ax cos nx n2
2 2 e ax sin nxdx .
a a a
n 2 e ax sin nx ne ax cos nx
Thus I 2 .I
a a a 2
e ax sin nx neax cos nx
a2
I 2
a n 2 a a 2
a n a ae sin x ne cos nx
a2 1 ax ax
I 2 2
2
1
a n
ae sin n ne cos n ae
2 2
a a a
sin n nea cos n
0 ne 1n 0 nea 1n 2 1 2 ne
n
1 a a
nea
a n
2 2
a n
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur27
e b
n 1n a a n 1n 2 sinh a
e I
a2 n2
n
a 2 n2 .
2 sinh a e a
e a
Now putting n 1, 2, 3,........ .. , we get
2 sinh a 22 sinh a 3 2 sinh a
b1 , b2 b3
a 1 2 2
a 2 2 2
,
a 2 32 ..... etc.
Substituting the values of ai’s and bi’s in (i), we get the required Fourier series of
f ( x ) e ax from x to x as
2 sinh 1 1 1 1
1 2 2 2 2 ........ 0
2 2 2 1 3 1
1 1 1
2 2 2 ........ ,
2 sinh 2 1 3 1 4 1
which is the required result.
Q.No.13.: Obtain the Fourier series expansion of f (x) e ax in (0, 2 ) .
Sol.: The Fourier series is given by
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur28
a0
f x e ax a n cos nx b n sin nx . (i)
2 n 1 n 1
2 2 2
1 1 e ax e 2ax 1
ax
Here a 0 f ( x )dx e dx .
0
0
0
2 2
1 1
an
f ( x ) cos nxdx
e ax cos nxdx
0 0
a cos bx b sin bx
Using e ax cos bxdx e ax
a 2
b2
2
1 ax a cos nx n. sin nx 1
ae 2ax cos 2n e 0 . cos 0
an
e 2
a n 2
0
2
a n 2
ae
1 2a
1 .
a n 2 2
2 2
1 1 ax a sin nx n cos nx
ax
bn sin nxdx
0
e
e
a2 n2 0
ax a sin bx b cos bx
e sin bxdx e
ax
a 2 b2
e a 1 e .
n 2 a n 2 a
bn cos 2n 1
a n 2 2 2
n 2
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
f x e ax , in the range 0 x 2 , as
e 2a 1 1 1 ae 2a 1
f (x) cos nx . Ans.
2
2 2
n 1 a n
n sin nx
2
n 1 a n
2
Q.No.14.: Find the Fourier series to represent e ax in the interval x .
Sol.: The Fourier series is given by
a0
f x e ax a n cos nx b n sin nx . (i)
2 n 1 n 1
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur29
1
1
1 e ax
Here a 0 f x dx e ax dx
a
1 ax
a
e e ax
2 sinh a
a
.
1 1 1 e ax
a n f ( x ) cos nxdx e ax cos nxdx a cos nx n sin nx
a 2 2
2n 1n sinh a
Similarly, b n
a2 n2 .
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
a0
Sol.: The Fourier series is given by f x x sin x a n cos nx b n sin nx .(i)
2 n 1 n 1
2
Here a 0
1
x sin xdx
1
x cos x cos x dx
2
0
0
2
x cos x sin x 1
sin x x cos x 02
0
1
0 2 1 0 0 2 x 2 .
2 2 2
1 1 2 1
an
x sin x. cos nxdx
2
.x sin x cos nxdx
2 x.2 sin x cos nxdx
0 0 0
2 2 2
1 1 1
xsin x nx sin x nx dx x sin x 1 n dx x sin x 1 n dx
2 0
2 0
2 0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur30
1 cos x 1 n cos x 1 n dx
2
x
2 1 n
1 n
0
1 cos x 1 n cos x 1 n dx
2
x
2 1 n
1 n
0
2 2
x cos x 1 n sin x 1 n x cos x 1 n sin x 1 n
21 n 2n 12 0 21 n 2n 12 0
1 x cos 2x sin 2x
2 2 2
1 1 x
a1
x sin x cos xdx
2
sin 2 xdx
2 2
2 0
0 0
1 2 1 0 1 2 1
.
2 2 2 2 2
2
1
Also b n x sin x sin nxdx 0 . x sin x sin nx is odd function
0
When n = 1, then
2 2
1 1
b1
x sin x. sin xdx
x sin 2 xdx
0 0
2
1
2
1 cos 2x dx 1 x2 sin 2x
2
x
2
2 2
2 0
0 0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur31
1 4 2 1 4 2
0 0 .
2 2 2 2
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
f x x sin x , in the range 0 x 2 , as
1 cos nx
x sin x 1 sin x cos x 2 2 .
2 n 2 n 1
cosh ax
2a 1
sinh ax 2 2
1n cos n .
2
2a n 1 n a
Sol.: The Fourier series is given by
a0
f x cosh ax a n cos nx b n sin nx . (i)
2 n 1 n 1
1 1 2 1
Here a 0 f x dx cosh axdx
0
cosh axdx
1 eax e ax 2 ax
2 dx e dx e ax dx
0 2 2 0 0
1 eax e ax
a
a
1 a a
e e
a
2 e a e a
2
sinh a .
a
0
2 a
2 2a 2 1
Thus a 0 sinh a sinh a 2 .
a a
eax eax
1 1
a n cosh ax cos nxdx cos nxdx
2
1
e cos nxdx e ax cos nxdx .
ax
(i)
2
eax n
Let I1 e cos nxdx
ax
cos nx eax sin nx dx
a a
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur32
eax n eax n
cos nx sin nx I1
a a a a
I n2 a2 e ax
cos nx
neax
sin nx
a2 a a2
eax
I1 2
n a
2
a cos nx n sin nx 2 1 2 ea .a 1n ea.a 1n
n a
2a 1 e a e a 2a 1n sinh a
n 2 a 2 2
a2 n2
.
e ax
Similarly, I 2 e ax
cos nxdx 2 2
a cos nx n sin nx
n a
n a 2
1
2
e a
a 1n ea a 1n
a
e a
n2 a2
a 1 ne
n
2
a 2
a 1n
4a 1n
Thus I1 I 2
n 2
a2 sinh a .
On keeping the values of I1 I2 in equation (i), we get
2a 1n sinh a
an
n2 a2 .
1
Also b n
eax e ax
sin nxdx 0 .
[as odd function]
2
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
f x cosh ax , in the range x , as
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur33
2a sinh a 1
1n cos nx
2 2
cosh ax
2a n 1 a n
2
.
Q.No.17.: Obtain the Fourier series for 1 cos 2x in the interval 0, 2 .
x x
Also f (x) 2 sin(x) 2 sin x 2 sin x f (x) .
1 1
f ( x ) is even function
b n 0n
1
Let f ( x ) a 0 a n cos nx , (i)
2 n 1
x, x 0
x
2 -x, x 0
2
sin xdx sin x dx For 0 x , sinx ve and
0
For x 2, sinx ve
2
2
cos x 0 cos x
2
cos cos 0 cos 2 cos
2
1 1 1 1 4 2 . (ii)
2 2
1 2
Also a n
f ( x ) cos nxdx
sin x cos nxdx
0 0
2
2
sin x cos nxdx sin x cos nxdx
0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur34
2
21 2 1
20 2 cos nx sin xdx .
2 2 cos nx sin xdx
2
1 1
2 0
sinn 1x sinn 1x dx 2
sin n 1x sin n 1x dx
2
1 cosn 1x cosn 1x 1 cosn 1x cosn 1x
n 1
2 n 1 0 2 n 1
n 1
1 cosn 1 cosn 1 1 1
2 n 1 n 1 n 1 n 2
cos 2n 1 cos 2n 1 cosn 1 cosn 1
n 1 n 1 n 1 n 1
2 1n 1 1n 1 1 1
2 n 1 n 1 n 1 n 1
1 1 1 1
; n is even
2 n 1 n 1 n 1 n 1
1 1 1 1
; n is odd
n 1 n 1 n 1 n 1
2 2
2 , n is even
n 1 n 1
0, n is odd
4 2
n2 1 , n is even.
4 2
Take n = 2m, we get a n
, m =1, 2, …..
4m 2 1
(iii)
Putting the values of a0 from (ii) and an from (iii) in (i), we get
1 4 2 4 2 2 2 4 2 cos 2mx
f (x)
.
2 2
m 1 4m 1
cos 2 mx
2
m 1 4m 1
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur35
2 2 4 2 cos nx
Thus 1 cos x
4n 2 1
.
n 1
x x
Sol.: Here f (x) 1 cos x 2sin 2 2 sin .
2 2
x x
Now f (x ) 2 sin 2 sin sin sin
2 2
x
2 sin f (x ) . x x
2
f ( x ) is even function. bn 0 .
a0
Let f ( x ) a n cos nx (i)
2 n 1
x, x 0
3/ 2 x
2 x x, x 0
sin dx
2 x x x
0 For 0 x , sin is positive sin sin
2 2 2
x
cos
23 / 2 2 0 2 3/ 2 4. 2
.2 0 1 .
1/ 2
1 x x
Also a n 2 sin cos nxdx sin 2 cos nx is even function
2
2 x 2 x
. 2 sin cos nxdx 2. sin cos nxdx { For 0 x , sinx is positive}
0
2 0
2
2 1 1
sin 2 n x sin 2 n x dx 2 sin A cos B sin(A B) sin(A B
0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur36
1 1
cos n x cos n x
2 2 2
1 1
n n
2 2
0
1 1
cos n cos n
2 2 2 1 1
1 1 1 1
n n n n
2 2 2 2
x a0 1 4 2 4 2
a n cos nx .
2 sin
2 2 n 1 2 2
n 1 4n 1
. cos nx
x 2 2 4 2 cos nx
2 sin
2
n 1 4n 2 1
,
a a
1
1
2
f ( x )dx 2 f (x )dx
Now a 0
f (x)dx cos wxdx cos wxdx
0
a 0
if f ( x) is even
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur37
2 sin wx 2
sin w .
w 0 w
1 1
a n f ( x ) cos nxdx cos wx cos nxdx
2 1
cos wx cos xdx 2 cos wx cos nxdx cos wx cos x is even function
0 0
1
cosw n x cosw n x dx
0
sin w cos n 1 1
w n w n
n x, x 0
f (x) .
n x, 0x
n x, x 0
Sol.: f ( x)
n x, 0 x
x, 0x
1 2 4 1 2 4
x, x 0
0
1 x2 1 x2 1 2 2 1 2 2
x nx 0 0
2 2 2 2
0
1 2 1 2
. . .
2 2 2 2
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur39
0
1 1 1
a n f x cos nx x cos nxdx x cos nxdx
0
0
1 sin nx cos nx 1 sin nx cos nx
x 1 x 1
n n 2
n n 2 0
1 1 cos nx 1 cos nx 1
0 2 0 0 0 2
n n
2 2
n n
1 2 2 cos n 2
2 2 1 cos n
n n 2
n
0, n is even
4
2 , n is odd
n
Hence, from (i), we get
4 cos x cos 3x cos 5x
4
f (x ) 2 cos nx 2 ........ .
2 n odd n 2 1 3 2
5 2
Q.No.21.: Define Fourier series over the interval to .
Is it possible to write the Fourier sine series for the function f x cos x , over
a0
f (x ) a n cos nx b n sin nx
2 n 1
1 1 1
where a 0 f ( x ) , a n f ( x ) cos nxdx , b n f ( x ) sin nxdx
Hence, we cannot find the Fourier half range sine series for f x cos x , over the
interval , .
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur40
Home Assignments
No assignment
(Students are advised to solve each problem before moving next topic)
*** *** *** *** ***
*** *** ***
***