Professional Documents
Culture Documents
Fourier Series
Importance, Definitions of Fourier series
Euler’s formulae
Prepared by:
Dr. Sunil
NIT Hamirpur (HP)
(Last updated on 20-02-2008)
Introduction:
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.
It is very useful in the study of heat conduction, mechanics, concentration
of chemicals and pollutants (impurities), electrostatics, acoustics and in areas
unheard of in Fourier’s days such as computing and CAT scan (computer assisted
tomography-medical technology that uses X-Rays and computers to produce 3-
dimensional images of the human body). Fourier series is very powerful method
to solve ordinary and partial differential equations particularly with periodic
functions appearing as non-homogeneous terms.
As we know, Taylor’s series expansion is 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.
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 2
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.
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 3
α + 2π
1
where a 0 =
π ∫ f (x )dx ,
α
α + 2π
1
an =
π ∫ f (x )cos nxdx ,
α
α + 2π
1
bn =
π ∫ f (x )sin nxdx .
α
a0
Note: For getting more symmetric formulae for the coefficients, we write instead of a 0 .
2
α + 2π α + 2π
cos nx
2. ∫ sin nxdx = −
n α
=0 (n ≠ 0)
α
α + 2π α + 2π
1
3. ∫ cos mx cos nxdx =
2 ∫ [cos(m + n )x + cos(m − n )x ]dx
α α
α + 2π
1 sin (m + n )x sin (m − n )x
= + =0 (m ≠ n )
2 m+n m−n α
α + 2π α + 2π
x sin 2nx
∫ (n ≠ 0)
2
4. cos nxdx = + =π
α
2 4n α
α + 2π
1 cos(m − n )x cos(m + n )x
5. ∫ sin mx cos nxdx = −
2 m−n
+
m + n
=0 (m ≠ n )
α
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 4
α + 2π α + 2π
sin 2 nx
6. ∫ sin nx cos nxdx =
2n
=0 (n ≠ 0)
α α
α + 2π
1 sin (m − n )x sin (m + n )x
7. ∫ sin mx sin nxdx =
2 m − n
−
m + n
=0 (m ≠ n )
α
α + 2π α + 2π
x sin 2nx
∫ (n ≠ 0)
2
8. sin nxdx = − =π
α
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)
is uniformly convergent for α < x < α + 2π and it can be integrated term by term in the
given interval.
To determine the coefficient a 0 :
α + 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 .
α α α
2.: Putting α = −π , the interval becomes − π < x < π and the formula (1) take the form
π π π
1 1 1
a 0 = ∫ f ( x )dx , a n = ∫ f ( x ) cos nx dx , b n = ∫ f ( x ) sin nx dx .
π −π π −π π −π
Now let us expand the following functions as a Fourier series. In all these
problems, f(x) is assumed to have the period 2π .
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 6
Q.No.1.: Expand in a Fourier series, the function f ( x ) = x in the interval 0 < x < 2π .
∞
1
Sol.: Let f ( x ) = a 0 + ∑ (a n cos nx + b n sin nx ) (i)
2 n =1
1
2π
1
2π
1 x2
2π
( 2
1 4π − 0 )
Here a 0 =
π ∫
0
f ( x ) dx =
π ∫
0
xdx =
2 2
=
π 4
= π.
0
2π 2π
1 1
an =
π ∫ f (x ) cos nxdx =
π ∫ x cos nx dx
I II
0 0
2π
1 sin nx − cos nx 1 cos 2nπ 1
= ( x ) − (1) 2 = π 2π(0) + 2
− 0 + 2
π n n 0 n n
1 1 1
= 2
− 2 = 0.
π n n
2π 2π
1 1 µvdx = µ.v1 − µ′v 2 + µ′′.v3 − µ′′′.v 4 + ....
bn =
π ∫ f (x )sin nxdx =
π ∫ x sin nx dx
I II ∫
0 0
2π
1 − cos nx − sin nx
= ( x ) . − (1) 2
π n n 0
1 1 2
= −2π + 0 − ( −0 + 0 ) = − .
2π n n
1
Sol.: Here f ( x ) = x, −π< x < π.
2
As f(x) is an odd function.
∞
Hence, the required Fourier series is f (x) = ∑ b n sin nx.
n =1
π π
1 1 1
Now b n = ∫
π −π
f (x )sin nxdx = ∫
π −π 2
x sin nxdx (i)
π π
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 π2
Hence, show that (i) ∑ n2
=
6
,
(− 1)n −1 = π2 ,
(ii) ∑ n2 12
1 π2
(iii) ∑ (2n − 1)2 =
8
.
π π π
1 1 1 x3 1 2 π3 2 π 2
Here a 0 = ∫ f (x )dx = ∫ x 2dx = = = .
π −π π −π π 3 π 3 3
−π
π π π
1 x 2 sin nx
π
1 1 2
a n = ∫ f (x )dx cos nxdx = ∫ x 2 cos nxdx = − ∫ x sin nxdx
π −π π −π π n − π n − π
π
2 − x cos nx
π
1 x 2 sin nx
π
1
= − + ∫ cos nxdx
π n n n −π n − π
−π
π
1 x 2 sin nx 2 x 2
= + 2 cos nx + 3 sin nx
π n n n − π
1 π 2 .0 2 π 2 4(− 1) π 4(− 1)
n n
2 π 2 .0 2 π
= + 2 (− 1)n − 3 (0 ) − + 2 (− 1)n + 3 .0 = = .
π n n n n n n πn 2 n2
π
1 − x 2 cos nx
π π π
1 1 2
b n = ∫ f (x )sin nxdx = ∫ x sin nxdx = + ∫ x cos nxdx
2
π −π π −π π n − π n − π
π
2 x sin nx
π
1 − x 2 cos nx
π
1
=
π n
−
− π n n − π n − π
− ∫ sin nxdx
π
1 − x 2 cos nx 2 x 2
= + 2 sin nx + 3 cos nx
π n n n − π
⇒ bn = 0 .
Substituting the values of ai’s and bi’s in (i), we get the required Fourier series of
a0 ∞ ∞
x2 = + ∑ a n cos nx + ∑ b n sin nx
2 n =1 n =1
2π 2 ∞ 4(− 1)n
⇒ x2 = +∑ cos nx + 0
3.2 n =1 n2
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur 9
⇒ x2 =
π2
+ 4∑
∞
(− 1)n 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 1 π2
⇒ + + + + ............. = ⇒∑ 2 = ,
12 22 32 42 6 n 6
which is the required result.
(− 1)n −1 = π2 .
To show (ii): ∑ n2 12
Putting x = 0 in (i), we get
π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
⇒ 4∑
(− 1)n =
π2
⇒∑
(− 1)n =
π2
,
n2 3 n2 12
which is the required result.
1 π2
To show (iii): ∑ (2n − 1)2 =
8
.
1 1 1 1 1 1 1 1 π2 π2
2 + + + + ............. 2
+ − + − + ......... = +
1 2 2 32 4 2 1 2 2 32 4 2 6 12
1 1 π2 1 1 π2
⇒ 2 2 + 2 + ............. = ⇒ 2 + 2 + ............. =
1 3 4 1 3 8
1 π2
⇒∑ = ,
(2n − 1)2 8
π2 ∞ 4 2
x + x2 = + ∑ (− 1)n 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 x 2 x3 1 π 2 π3 π 2 π3 2 π 2
π
1
π −π
(
Here a 0 = ∫ x + x 2 dx = + = +
π 2 3
)
π 2 3
−
2
+ =
3 3
.
−π
1 sin nx
π π π
2 sin nx
1 2
(
a n = ∫ x + x cos nxdx = x + x
π
) n − π −∫π
− (1(+ 2 x )) dx
π −π n
1 2 cos nx
π π π
2 sin nx − (2x + 1) cos nx
=
π
x +(x )
−
n − π n − π −∫π
−
n2
dx
n
=
( +
)
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π ) n 1 4π n 4
= 2
(− 1) = × 2
(− 1) = 2
(− 1)n .
π n π n n
1 cos nx
π π π
2 cos nx
1 2
(
b n = ∫ x + x sin nxdx = − x + x
π
) n − π −∫π
+ (1 + 2(x ) ) dx
π −π n
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur11
1 2 sin nx
π π π
2 cos nx (1 + 2x )sin nx
= − x + x
π
( +
n − π
− ) n2
+ ∫
−π −π n 2
dx
=
( −
)
1 − x + x 2 cos nx (1 + 2 x )sin nx 2 cos nx
−
π
π n n2 n 3 −π
=
( −
)
1 − π + π2 cos nπ (1 + 2 x )sin nπ 2
− cos n π
π n n2 n3
−
( )
1 − π + π 2 cos(− nπ) (1 + 2π )sin (− nπ ) 2
− − cos( − n π )
π n n2 n3
=
1 − (− 1)n π + π2
( 2 )
− (− 1)n π + π2
− 3 (− 1)n −
( 2 )
− 3 (− 1)n
π n n
n n
1 − (− 1)n π + π2
=
( 2 n
− 3 (− 1) +
)
π + π2 ( )
(− 1)n + 23 (− 1)n
π n n n n
=
1
π
[( 1 2π
− π − π 2 − π + π 2 (− 1)n = − ×
π n
) ]
(− 1)n .
−2
⇒ bn = (− 1)n .
n
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
1 2π2 ∞ 4 ∞
2
x + x2 = × + ∑ 2 (− 1)n cos nx + ∑ − (− 1)n sin nx
2 3 n =1 n n =1 n
π2 ∞ 4 2
= + ∑ (− 1)n 2 cos nx − sin nx .
3 n =1 n n
Deduction: Put x = 0, in above, we get
n2
+ 4∑
∞
(− 1)n ⇒ 0 = π 2 + 4 − 1 + 1 − 1 + ........
0= 2
3 n =1 n2 3 1 2 2 32
π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 x 2 x3 2π 2
1
π −π
(
Here a 0 = ∫ x − x 2 dx = =
π 2
−
3
) =−
3
.
−π
1
π π π
an =
1
∫
π −π
x − x(2
cos nxdx =) x − x2
π
sin nx
n
( ) −
sin nx
∫ (1 − 2x ) n dx
−π −π
1 cos nx
π π π
cos nx
π
(
= x − x2
sin nx
n
) − (1 − 2 x ) × −
+
n 2 −π −π
∫ (− 2 )−
dx
n 2
−π
π
1 cos nx sin nx − 4(− 1)n
π
(
= x − x2
sin nx
n
)
− (1 − 2x ) × −
n2
+ (− 2 )
−
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 sin nx cos nx
π
(
= x − x2 −
n
)
− (1 − 2x ) × − 2 + (− 2) 3
n n − π
− 2(− 1)n
= .
n
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 1 1 1 1 π2
0=− + 4 2 − 2 + 2 − 2 + ..... ⇒ 2 − 2 + 2 − 2 + ..... = ,
3 1 2 3 4 1 2 3 4 12
which is the required result.
Remarks:
In the above example, we have used the result sin nπ = 0 and cos nπ = (− 1)n .
1 1
Also sin n + π = (− 1)n and cos n + π = 0 .
2 2
2π
1 sin nx
( π − x ) sin xdx = ( π − x ) −
1 cos nx
bn = − ( −1) 2
2π 2π n n 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
2
π − x a0 ∞ ∞
f (x ) =
2
= + ∑ n
2 n =1
a cos nx + ∑ b n sin nx . (i)
n =1
1
2π 2π 2 2π 2π 2π
1 1 π−x
Here a 0 = ∫ f (x )dx = ∫ dx = ∫ π dx − 2π ∫ xdx + ∫ x 2dx
2
π 0
π 0 2 4π 0 0 0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur15
2π 2π
1 2 2π x2 x3
= π x 0 − 2π +
4π 2 3
0 0
1 3 3 8π3 π2 2 2π
2
π2
= 2 π − 4 π + = − π + = .
4π 3 2 3 6
2π 2π 2
1 1 π−x
an =
π ∫ f (x )coxnxdx =
π ∫ cos nxdx
2
0 0
1 2
2π 2π 2π
4π ∫0
= π cos nxdx − 2π ∫ x cos nxdx + ∫ x 2 cos nxdx
0 0
1 2 sin nx
2π 2π 2π
= π − 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 = − + = 2.
n n n n n n
0
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 b n = 0 ⇒
π ∫ sin nxdx = 0 .
2
0
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur16
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 1
⇒ =∑ 2 ,
6 n =1 n
π 2 ∞ (− 1)n π 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 1 π2
(iii) To show: + + + ...... = .
12 32 52 8
Adding (i) and (ii), we get
π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
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur17
π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
Now b n = ∫ f ( x ) sin nxdx = ∫ x
π2 − x 2
sin nxdx
π
( )
π −π π −π 12
π π
=
1
∫
12π −π
(
π 2 x − x 3 sin nxdx =
1
)
∫
6π 0
π 2 x − x 3 sin nx dx
II
( )
I
Q.No.9.: Obtain the Fourier series to represent e x in the interval 0 < x < 2π .
∞
1
Sol.: Let f ( x ) = a 0 + ∑ (a n cos nx + b n sin nx ) (i)
2 n =1
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur18
1
2π
1 2π (e 2π
−1).
∫ e dx = e x
x
Now a 0 = =
π 0
n 0 π
2π 2π
1 1
an =
π ∫ f ( x ) cos nxdx =
π ∫ e x cos nxdx
0 0
2π
1 ex e ax
( ) ∫ ( )
ax
= cos nx + n sin nx ∵ e cos bxdx = a cos bx + b sin bx
π 1 + n 2 a 2 + b2
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
( ) ∫ ( )
ax
= sin nx − n cos nx ∵ e sin bxdx = a sin bx − b cos bx
π 1 + n 2 a 2 + b2
0
=
1
e 2π
( 0 − n ) −
1 1
( − n ) n 1− e
=
2π
.
( )
π 1 + n 2
π (1 + n 2 ) 1+ n2 ( )
Hence, from (i), we get
e 2π − 1 ∞ cos nx n sin nx
f (x ) =
1 2x
2π
(
e −1 + ) ∑ −
π n =1 1 + n 2 1 + n 2
.
π 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 e−x
=
π 1 + n 2
(− (
1) n
+ 0 − )
2
(− 1)n + 0 ( )
1+ n
π e ax
1 ex ∫
∵ e ax
cos bxdx = (a cos bx + b sin bx )
= (sin nx − n cos nx ) a 2 + b2
π 1 + n 2 −π Here a = 1, b = n
n
1 eπ e −π n − (− 1)n n π −2n ( −1) sinh π
( ) ( ) )( )
n −π
= 0 − ( )
−1 − − n ( )
− 1 = e − e = .
π 1 + n 2
1+ n 2
π1+ n
2
( π 1+ n2 ( )
Hence, from (i), we get
1 2 ∞ 2 sinh π 2n (− 1)n
f (x ) = . sinh π + ∑ (− 1) n
cos nx − (sinh x ) × sin nx
2 π n =1
π1+ n2
( ) π 1+ n 2
( )
1 2 3
− sin x − sin 2x + sin 3x − ..... .
2 5 10
Q.No.11.: Obtain the Fourier series for f (x ) = e− x in the interval 0 < x < 2π .
Sol.: The Fourier series is given by
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur20
a0 ∞ ∞
e− x = + ∑ a n cos nx + ∑ b n sin nx . (i)
2 n =2 n =1
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 1 − e −2 π 1
∴ a1 = ,a = , a = .......etc.
π 2 2 π 5 3 π 10
2π 2π
1 1
Finally, b n =
π ∫ f (x )sin nxdx =
π ∫ e − x sin nxdx
0 0
1 2π 1 − e −2 π n
= −x
(− sin nx − n cos nx ) = . .
(
π n2 + 1 )e 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
1 1 1 1
+ cos x + cos 2 x + cos 3x + ..............
1 − e − 2 π 2 2 5 10
e− x
π . Ans.
=
+ 1 sin x + 2 sin 2x + 3 sin 3x + ..............
2 5 10
π π π
e − ax
1 1
Here a 0 = ∫ f (x )dx = ∫ e −ax dx = −
π −π π −π
=
− 1 − ax
e [ ] π
−π = [
− 1 − aπ aπ
e −e ]
a − π πa πa
e aπ − e − aπ 2 sinh aπ
= = .
aπ aπ
ex − e− x
Since we know that sinh x = ⇒ 2 sinh x = e x − e − x ⇒ eaπ − e −aπ = 2 sinh aπ .
2
π
1
Also a n = ∫ e −ax cos nxdx = I (say).
π −π
1 e − ax π e −ax
Then I = cos nxdx − (− n sin nx )dx
π − a ∫− π −a
− e aπ cos nx n e − ax π e − ax
= − sin nx −
∫
−a
.n cos nxdx
πa πa −a −π
a2
(a + n ) a π [n sin nxe − e a cos nx]
1 − ax − ax π
= 2 2
× 2 −π
=
1
π(a + n )
[ne sin nπ − ae cos nπ − n sin nπe + ae
2 2
− aπ − aπ + aπ + aπ
cos nπ ]
=
1
π(a + n )
[
2
0 − ae (− 1) − 0 + ae (− 1) ] =
2
− aπ n 1
π(a + n )
[ae aπ n
2 2
− aπ
]
− ae+ aπ (− 1)n
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur22
=
(− 1)n a [2 sinh aπ] .
(
πn +a 2 2
)
Now put n = 1, 2, 3, .................... , we get
− 2a sinh aπ 2a sinh aπ − 2a sinh aπ
a1 = , a2 = , a3 =
(
π a +12 2
) (
πa +2 2 2
) (
π a 2 + 32 ) , ...........etc.
π
1
Similarly, b n = ∫
π −π
e − ax sin nxdx = I (say).
a2
(a + n ) a π [− ae sin x − ne cos nx ]
1 − ax − ax π
∴I = 2 2
× 2 −π
=
1
π(a + n )
[− ae sin nπ − ne cos nπ + ae sin nπ + ne cos nπ]
2 2
− aπ − aπ aπ aπ
n
=
1
[0 − ne (− 1) + 0 + ne (− 1) ] =
(− 1) [ne − ne ]
− aπ n aπ n aπ − aπ
π(a + n ) 2 2
π(a + n ) 2 2
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.
2π 2π 2π
1 1 e ax e 2ax − 1
∫ ∫
ax
Here a 0 = f ( x )dx = e dx = = .
π 0
π 0
π π
0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur24
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
an = e = ae 2ax cos 2nπ − e 0 . cos 0
π
2
a +n 2
(0
πa +n
2 2
) (
)[ae ]
1 2 aπ
= −1 .
(
πa +n 2 2
2π 2π
1 1 ax (a sin nx − n cos nx )
∫
ax
bn = e sin nxdx = e
π 0
π
a2 + n2 (
0
)
ax [a sin bx − b cos bx ]
∵ ∫ e sin bxdx = e
ax
(
a2 + b2 )
Substituting the values of a0, an and bn in (i), we get the required Fourier series of
e 2aπ − 1 1 ∞ 1 ae 2aπ − 1 ∞
f (x ) = + ∑ (− n sin nx ) + ∑ cos nx . Ans.
π 2
2 2
n =1 a + n π 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
π π π
1 e ax
1
π −π
1
Here a 0 = ∫ f (x )dx = ∫ e dx =
π −π
ax
π a
=
1 ax
πa
e − e −ax =
2 sinh aπ
πa
. ( )
−π
π π π
1 1 1 e ax
a n = ∫ f ( x ) cos nxdx = ∫ e cos nxdx = 2
ax
(a cos nx + n sin nx )
π −π π −π π a + π 2 −π
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur25
(
a cos nπ e ax − e −ax ) = 2a(− 1) sinh aπ .n
)[ae ]
1
= ax
cos nπ − ae −ax cos nπ =
(
π a2 + n2 (
π a 2 + π2 ) π(a + n ) 2 2
2n (− 1)n 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] = − 2xπ = −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
=
2π ∫ x[sin (x + nx ) + sin (x − nx )]dx =
2π ∫ x sin x (1 + n )dx +
2π ∫ x sin x (1 − n )dx
0 0 0
1 (− cos x (1 − n )) (− cos x (1 − n )) dx
2π
+ x
2π 1− n
− ∫ 1− n
0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur26
2π 2π
− x cos x (1 + n ) sin x (1 + n ) − x cos x (1 − n ) sin x (1 − n )
= + + +
2π(1 + n ) 2π(n + 1)2 0 2π(1 − n ) 2π(n − 1)2 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π 2π
1 − x2
2π
1 (1 − cos 2x ) dx = sin 2 x
=
π ∫ x
2
2π 2
−
2 0
0 0
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
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur27
2a 1 ∞
(− 1)n
cosh ax = sinh ax 2 + ∑ 2 2
cos nπ .
π 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 2 eaπ − eaπ
=
π a
− =
πa
[
1 aπ
e − e− aπ = ]
πa
=
2
sinh aπ .
a
0
2 πa
2 2a 2 1
Thus a 0 = sinh aπ = sinh aπ 2 .
πa π a
1
π π eax + e −ax
an = ∫ (cosh ax )cos nxdx = 1 ∫
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 − π
π
eax
=
n
cos nx + sin nx
eax n
− I1 ⇒
I n2 + a2
=
eax
cos nx +
(neax
sin
)
nx
π
a a a a a2
a a2 − π
−π
π
eax
⇒ I1 = 2 2
1
[
(a cos nx + n sin nx ) = 2 2 eaπ .a (− 1)n − e−aπ .a (− 1)n ]
n + a − π n + a
π
π e − ax
∫
− ax
Similarly, I 2 = e cos nxdx = 2 2
(− a cos nx − n sin nx )
−π n + a − π
=
n +a 2
1
2
[e − aπ
(− a )(− 1)n − eaπ (− a )(− 1)n ]
− a (− π )
=
e − aπ
n2 + a2
[− a(− 1) ]− ne
n
2
+a 2
(− a )(− 1)n
2a (− 1)n 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
2a sinh aπ 1 ∞
(− 1)n cos nx .
cosh ax = 2 ∑ 2
+
π 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 = 0∀n
∞
1
Let f ( x ) = a 0 + ∑ a n cos nx , (i)
2 n =1
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur29
1
2π
1
2π
2 π 2π
Now a 0 = ∫ f ( x )dx = ∫ 2 (sin x )dx = ∫ sin x + ∫ sin x dx
π 0
π 0
π 0 π
x, x > 0
x =
π 2π -x, x < 0
2 For 0 < x < π, sinx = + ve and
= ∫ sin xdx + ∫ (− sin x )dx
π 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 π
π 2π
21 2 1
=
π 20∫ 2 cos nx sin xdx − .
π 2 ∫ 2 cos nx sin xdx
π
π 2π
1 1
=
2π 0
∫ [sin (n + 1)x − sin (n − 1)x ]dx − 2π
∫ [sin(n + 1)x − sin (n − 1)x ]dx
π
π 2π
1 − cos(n + 1)x cos(n − 1)x 1 − cos(n + 1)x cos(n − 1)x
= (n + 1) + − +
2π (n − 1) 0 2π (n + 1)
(n − 1) π
1 − cos(n + 1)π cos(n − 1)π − 1 1
= + − +
2π n +1 n −1 n + 1 n + 2
− cos 2(n + 1)π cos 2(n − 1)π − cos(n + 1)π cos(n − 1)π
− + − +
n +1 n −1 n +1 n − 1
2 − (− 1)n +1 (− 1)n −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
=
(
π n 2 −1), n is even.
−4 2
Take n = 2m, we get a n =
(
π 4m 2 − 1 ) , m =1, 2, ….. (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) = . +∑ cos 2 mx = − +∑
2 π 2
m =1 π 4m − 1 ( π )
π 2
m =1 π 4m − 1 ( )
2 2 4 2 ∞ cos nx
Thus 1 − cos x =
π
− ∑
π n =1 4n 2 − 1
.
Q.No.18.: Obtain a Fourier expansion for 1− cos x in the interval − π < x < π .
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
π π π
1 1 x 2 x
Now a 0 = ∫ f ( x )dx = ∫ 2 sin dx = ∫ 2 sin dx
π −π π −π 2 π0 2
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 − 2 3/ 2 4. 2
= 0
= .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
π
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
n −
1 1 1
n+ n− n+
2 2 2 2
2 1 1
= −
π
n −
1 1
n+
2 2
cos(nπ + θ ) = (− 1)n cos θ
π n π
∴ cos nπ + 2 = (− 1) cos 2
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur32
−4 2
=
(
π 4n 2 − 1 ).
Hence, from (i), we get
x a0 ∞ 1 4 2 ∞ −4 2
2 sin = + ∑ a n cos nx = . +∑ . cos nx
2 2 n =1 2 π 2
n =1 π 4n − 1 ( )
2 2 4 2 ∞ cos nx
=
π
− ∑
π n =1 4n 2 − 1
,
π π
2 1
= ∫ cos wx cos xdx = ∫ 2 cos wx cos nxdx [cos wx cos x is even function]
π0 π0
π
1
= ∫ [cos(w + n )x cos(w − n )x ]dx [2 cos A cos B = cos(A + B) + cos(A − B)]
π0
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur33
π
1 sin (w + n )x sin (w − n )x 1 sin (w + n )π sin (w − n )π
= + = +
π w+n w − n 0 π w + n w − n
sin wπ cos nπ 1 1
= +
π ( w + n ) ( w − n )
sin wπ cos nπ w − n + w + n 2 w sin wπ cos nπ
= (w + n )(w − n ) =
π π w2 − n2 ( )
n n +1
2w ( −1) sin wπ 2w ( −1) sin wπ
= = .
π(w − n
2 2
) π(w − n2 )
2
1 ∞
sin wπ ∞ 2w (− 1)n +1 sin wπ
f (x) = a 0 + ∑ a n cos nx = +∑ cos nx
2 n =1 w π n =1 π n 2
− w 2
( )
n +1
=
sin wπ 2w
+ sin wπ∑
∞
( −1) cos nx
wπ π n =1 (n 2
− w2 )
wπ = θ
1 2θ 2θ .
⇒ cot θ = + 2 + 2 + .....
θ θ −π 2
θ − 4π 2 w = θ
π
Q.No.20.: Find the Fourier series for f(x) in the interval (− π, π) , when
n + x , −π< x <0
f (x) = .
n − x, 0<x<π
n − x, −π< x <0
Sol.: f (− x) =
n + x, 0<x<π
π − x, 0<x<π
= [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
π 0 π
1 1 1
an = ∫
π −π
f (x ) cos nx = ∫ (π + x ) cos nxdx + ∫ (π − x ) cos nxdx
π −π π0
0 π
1 sin nx − cos nx 1 sin nx − cos nx
= (π + x ) − (1) 2
+ (π − x ) − (− 1)
π n n −π π n n 2 0
1 1 cos nx 1 cos nx 1
= 0+ 2 −0+ 2 + 0 − 2 − 0 − 2
π n n π n n
1 2 2 cos nπ 2
= 2− 2
= 2 [1 − cos nπ]
πn n n π
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur35
0, n is even
= 4
2 , n is odd
n π
Hence, from (i), we get
∞
π 4 π 4 cos x cos 3x cos 5x
f (x) = + ∑ 2 cos nx = + 2 + 2
+ 2
+ ........ .
2 n =odd n π 2 π 1 3 5
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 ( −, ) .
Home Assignments
No assignment
(Students are advised to solve each problem before moving next topic)
*** *** *** *** ***
*** *** ***
***
Fourier series: Euler’s formulae Prepared by: Dr. Sunil, NIT Hamirpur36