Fourier Series With Problems
Fourier Series With Problems
A function which repeats itself at regular intervals of time is known as a periodic function.
OR
A function is said to be periodic if there exists a positive integer T such that f ( x +T )=f ( x). Here
T is called the period of function f ( x ) .
Ex: 1.
Graph of y=sin x
The amplitude is 5 and the period is 1800 or π as there are 2 complete cycles in 3600 .
3600 2 π
Note: Graphs of y= A sin nx has amplitude A, period (T)= = and n cycles in 3600 .
n n
Graphs of y= A cos nx have the same characteristics.
3.
Graph of y=tan x
The period of the above function is 1800 or π .
Period= 8 ms
2.
Period= 6 ms
3.
Period= 5 ms
2.
y 2− y 1
Note: Slope of the line joining 2 points is given by m=
x 2−x 1
Equation of the line joining 2 points is given by y− y1 =m(x−x 1)
x
In the previous example in b) we get y=3− by making use of the above formulas. Between x=2
2
and x=6 the end points of the line correspond to (2, 2) and (6, 0). So the slope,
0−2 −2 −1
m= = = .
6−2 4 2
−1
The equation of line joining (2, 2) and (6, 0) with m= is
2
−1 −x
y−2= ( x−2 )= +1
2 2
x
⇒ y =3−
2
Exercise:
Define analytically the following periodic functions shown:
1.
2.
3.
4.
Even and odd functions:
A function f (x) is said to be even if f (−x )=f ( x ) . The graph of an even function is therefore
symmetrical about the y axis.
Ex:
A function is said to be odd if f (−x )=−f ( x ) . The graph of an odd function is symmetrical about
the origin i.e. the function is unchanged when rotated 1800 about the origin.
Ex:
Few more examples:
1.
f (x) shown by the waveform is an odd function as it is symmetrical about the origin.
2.
f (x) shown by the waveform is an even function as it is symmetrical about the y axis.
3.
f (x) shown by the waveform is neither even nor odd as it is not symmetrical about
either the y axis or the origin.
Exercise:
State whether the following functions is odd, even, or neither.
1.
2.
3.
4.
1.
2.
3.
4.
1. Odd
2. Even
3. Even
4. Neither
Fourier series
• Joseph Fourier was a French Mathematician who developed Fourier series and
transform to model heat-flow problems
• Many of the phenomena studied in engineering and science are periodic in nature
eg. The current and voltage in an alternating current circuit
• Fourier series enable us to approximate various periodic function(square, saw tooth,
etc waveforms) using trigonometric functions for that occur in electronics.
• This is done by adding more and more trigonometric functions in sine and cosine terms
• The sum of these special trigonometric functions is called the Fourier Series
• Idea of Fourier series is to represent complicated functions in terms of simple periodic
functions namely sine and cosine
• Big advantage that Fourier series have over Taylor series: the function f(x) can have
discontinuities!
c +T
2
a n=
T
∫ f ( x ) cos ( 2 nπx
T )
dx n=1 ,2 , …
c
c +T
2
b n=
T
∫ f ( x ) sin ( 2 nπx
T )
dx n=1, 2 , …
c
These conditions are sufficient but not necessary because there are functions that do not
satisfy these conditions which still possess a convergent Fourier series.
Note: The knowledge of odd and even functions can save a lot of unnecessary calculations
Product of odd and even functions:
Odd × Odd=Even, Even × Even=Even, Odd × Even =Odd
c
0 if f ( x) is odd
c
f ( x) dx
c 2 f ( x) dx if f ( x) is even
Also, 0
If the function f ( x ) defined on the interval (−c , c ) , is odd then the Fourier series of f (x)
contains only sine terms i.e., a 0=0 and a n=0 .
Problems:
x
1. Determine the Fourier series for the function f ( x )= , 0< x <2 π and f ( x +2 π )=f ( x ) .
2
Sol.
c +T
2
a 0= ∫ f ( x ) dx
T c
2π
2 x
a 0= ∫ dx
2π 0 2
2
2
1 x
a0 .
2 2
0
2
1 4π
a 0=
2π 2 [
−0 ]
∴ a0=π
c +T
2
a n=
T
∫ f ( x ) cos( 2 nπx
T )
dx
c
2π
2 x
a n= ∫ cos nx dx
2π 0 2
2π
1
a n= ∫ x cos nx dx
2π 0
2π 2π
a n=
1
2π {[ x sin nx
n ] 0
1
− ∫ sin nx dx
n0 }
1 1
a n=
2π {
( 0−0 )− ( 0 ) =0
n }
∴ an=0.
c +T
2
b n=
T
∫ f ( x ) sin ( 2 nπx
T )
dx
c
2π
2 x
b n= ∫ sin nx dx
2π 0 2
2π
1
b n= ∫ x sin nx dx
2π 0
2π 2π
b n=
1
2π {[ −x cos nx
n ]0
−
1
∫−cos nx dx
n 0 }
1
b n=
2π ({ −2n π cos 2 nπ −0)+ 1n ( 0) }= −1n ∵ cos 2 nπ=1
−1
∴ bn=
n
The Fourier series is given by,
a0 ∞ 2 nπx
∞
2 nπx
f ( x )= + ∑ a n cos
2 n=1 T( ) (
+ ∑ bn sin
n=1 T )
∞
π
f ( x )= + ∑ bn sin ( nx )
2 n=1
π 1 1 1
f ( x )= +{− sin x− sin 2 x− sin 3 x−… }
2 1 2 3
π 1 1
∴ f ( x )= −{sin x+ sin 2 x+ sin3 x +… }
2 2 3
2. Obtain the Fourier series expansion for the function f ( x )=x 2 ,−π < x < π .
Sol. We have f ( x )=x 2 . f ( x ) is an even function. Therefore f ( x ) contains only cosine terms. Hence b n=0.
a0 ∞
2
f ( x )=x = + ∑ a n cos ( nx )−−(1)
2 n=1
c +T π
2 2
a 0= ∫ f ( x ) dx= ∫ x 2 dx
T c 2 π −π
π
1 x3 1 3 2 π3
a 0= [ ]
2
=
π 3 −π 3 π
[ π −(−π 3 ) ]=
3π
2π
∴ a0 =
3
c +T
2
a n=
T
∫ f ( x ) cos( 2 nπx
T )
dx
c
π π
2 2
a n= ∫ x2 cos nx dx= ∫ x2 cos nx dx
2 π −π π 0
π
2 sin nx −cos nx −sin nx
a n= x 2
π { n (
−2 x
n 2 ) (
+2
n3 ) ( )}
0
2
a n= ¿
π
4
∴ an = 2
(−1 )n
n
Let,
a0 ∞
f ( x )=| x|= + ∑ a cos nx
2 n=1 n
We have,
π π
1 2
a 0= ∫ f ( x)dx= ∫ f ( x ) dx
π −π π 0
π π π
2 2 2 x2 2 π 2−0
a 0= ∫ |x| dx= ∫ x dx=
π 0 π 0
=
π 2 0 π 2
=π [ ] [ ]
and
π π
1 2
a n= ∫ |x|cos nx dx= ∫ x cos nx dx
π −π π 0
π
2 sin nx −cos nx
a n=
π
x
[ n (
−1
n2 ) ( )] = 2π [ 0+ n1 ( cos nx ) ]= 2π n1 ( cos nπ−cos 0)
0
2
π
0 2
2
⟹ an = 2
[ (−1 )n−1 ]
n π
−4
Clearly a n=0, when n is even and a n= , when n is odd
πn2
∴ The required Fourier series expansion is,
∞
π 4 cos nx
|x|= − ∑ ( n is odd )
2 π n=1 n2
π 4 cos 3 x cos 5 x
i. e .|x|= − cos x +
2 π 32
+
[
52
+… …
]
Note: Determining if the function is even or odd.
f ( x )= ϕ 1 ( x ) ,−a< x <0
{
ϕ2 ( x ) , 0< x <a
If ϕ 1 (−x )=ϕ 2 ( x ) → even function and ϕ 1 (−x )=−ϕ2 ( x ) →odd function
f ( x )= ϕ 1 ( x ) ,0< x< a
{
ϕ 2 ( x ) ,a< x< b
If ϕ 1 ( b−x )=ϕ2 ( x ) → even function and ϕ 1 ( b−x )=−ϕ 2 ( x ) → odd function
Sol.
Here ϕ 1 ( x )=−1 , ϕ2 ( x ) =1
b n=
−2
( (−1 )n−1) = 2 ( 1−(−1 )n )
nπ nπ
∞ n
2
f ( x )= ∑
[ 1−(−1 ) ] sin nx= 2 [2sin x + 2 sin 3 x+ 2 sin5 x +… …]
π n=1 n π 3 5
−x ,−π < x <0
5. Obtain the Fourier series of the function f ( x )=
+ x ,0< x< π {
Sol. Here ϕ 1 ( x )=−x , ϕ2 ( x )=x
ϕ 1 (−x )=x=ϕ2 ( x)
1 1 0 1
2 2
a 0= ∫ f ( x ) dx= ∫ f ( x ) dx =∫ f ( x ) dx+∫ f ( x ) dx
T −1 2 −1 −1 0
0 1 0
a 0=∫ 2(1+ x )dx +∫ 0 dx=∫ (2+2 x)dx
−1 0 −1
0
x2
[
a 0= 2 x+ 2.
2
1
]−1
=[ 2 ( 0+1 ) + ( 0−1 ) ] =2−1=1
0
2 2nπx 2
a n= ∫ f ( x ) cos
T −1 T ( )
dx= ∫ 2(1+ x)cos ( nπx ) dx
2 −1
0
sin ( nπx ) −cos ( nπx )
[
a n=2 ( 1+ x )
nπ
−1.
n2 π 2 ( )]−1
1
[
a n=2 ( 0−0 ) + 2 2
( 1−(−1 )n ) = 22 2 [ 1− (−1 )n ]
]
n π n π
4
a n=0 when n is even and a n= when n is odd.
n π2
2
1 0
2
b n= ∫ f ( x ) sin 2 nπx
T −1 T
2
( )
dx= ∫ 2(1+ x )sin ( nπx ) dx
2 −1
0
−cos ( nπx ) −sin ( nπx )
[
b n=2 ( 1+ x ) .
nπ ( −1.
n2 π 2 ) ( )] −1
−1 −2
b n=2 [ nπ
( 1−0 ) +0 =
nπ ]
The Fourier series of the given periodic function is,
∞ ∞
1 2 n −2
f ( x )= + ∑ 2 2 [ 1− (−1 ) ] cos ( nπx ) + ∑ sin ( nπx )
2 n=1 n π n =1 nπ
1 4
f ( x )= + 2 ¿
2 π
Sol. The given function is even as ϕ 1 ( x )=kx ∧ϕ1 (l−x )=k ( l−x )=ϕ2 ( x ) . Hence b n=0.
[ ]
l
2 l 2 l
( l−x )2
a 0=
2
l 0 l
2
2k
∫ kx dx +∫ k ( l−x ) dx = l {[ ] [ ] }
x
2
2
0
−
2 l
2
2k 1 l2 l2 k 2l 2 kl
a 0= .
l 2 4 { ( )}
− 0−
4
= .
l 4
=
2
2
l
a n= ∫ f ( x ) cos
T 0
2k
2 nπx
l (
dx=
2
l ) [
0
2
2 nπx
l
( )
l
2 nπx
∫ kx . cos l dx+∫ k ( l−x ) . cos l dx
2
( ) ]
a n= {x ¿
l
l2 l2 l2 l2
a n=
2k
l [ (
0+ cos nπ . 2 2 − 2 2 +
4n π 4n π
2k
l )] [ (
0− cos 2 nπ . 2 2 −cos nπ . 2 2
4n π 4n π )]
2k l2 kl(2 (−1 )n−2) kl
a n= 2 2
l 4n π [ n n
( (−1 ) −1−1+ (−1 ) ) = ]
2 2
2n π n π
n
= 2 2 [ (−1 ) −1 ]
Cosine series:
∞
a nπx
f ( x )= 0 + ∑ a n cos
2 n=1 T ( )
where
T
2
a 0= ∫ f ( x ) dx
T 0
T
2 nπx
a n= ∫
T 0 ( )
f ( x ) cos
T
dx
∞
f ( x )=∑ bn sin
n=1
( nπx2 )
where
T
2 nπx
b n= ∫ f ( x ) sin
T 0 T ( )
dx
2
2 nπx
b n= ∫ x sin
20 2
dx ( )
2
−2 x nπx 4 nπx
b n=
[
nπ
cos
2
− 2 2 −sin
n π 2( )]
0
−4
∴ bn = (−1 )n
nπ
4 −4 4 −4
Thus b 1= ,b 2= , b3 = , b 4= …
π 2π 3π 4π
Hence the Fourier sine series for f(x) over the half range (0 , 2) is
4
f ( x )= ¿
π
∞
Sol. f ( x )=∑ bn sin
n=1
( nπxT )
∞ ∞
nπx
f ( x )=∑ bn sin
n=1
( )
π
=∑ bn sin ( nx )
n =1
where
T π
2 nπx 2
b n= ∫ f ( x ) sin
T 0 T ( )
dx= ∫ (πx−x 2) sin ( nx ) dx
π 0
π
2 −cos nx −sin nx cos nx
π [
b n= ( πx−x 2)
n (
−( π −2 x )
n 2) + (−2 )
n3 ( ) ( )] 0
−4 4
b n= 3 [ (−1 )n−1 ]= 3 [1− (−1 )n]
n π n π
∞ n
4
f ( x )=πx−x = ∑ 2 [ 1−(−1 ) ] sin ( nx )
π n=1 n3
π
4. Obtain the Fourier cosine series of f ( x )=
{ x , 0< x <
π
π−x , < x< π
2
2
2
T
2
π
a 0= ∫ f ( x ) dx= ∫ f ( x ) dx =
T 0
π
T 0
2
π [ 2 π
∫ f ( x ) dx +∫ f ( x ) dx
0 π
2
]
a 0=
2
π [ 2 π
2
∫ x dx +∫(π −x) dx = π
0 π
2
] ([ ] [
2 π
x
2
2
0
+ πx−
x
2
2 π
])
π
2
a 0=
π 2 4[ ( ) {(
2 1 π2 2
+ π−
π2
2
−
π2 π2
−
2 8 )( )}] [ =
2 π2 π2 π2 π2
+ − +
π 8 2 2 8 ]
2 2 π2 π
a 0= . =
π 8 2
T
2
a n= ∫ f ( x ) cos n ππ x dx
T 0 ( )
π
2
a n= ∫ f ( x ) cos (nx )dx
π 0
π
2 π
2 2
a n= ∫ x cos (nx) dx + ∫ ( π −x ) cos (nx) dx
π 0 π π
2
π π
2 sin nx −cos nx 2 sin nx −cos nx
a n=
π
x
n[ −1.
n2 ( )]
0
2
+
π [
( π−x ) .
n
−(−1 ) .
n2 ( )] π
2
2
a n= ¿
π
2
a n= ¿
π
2
a n= ¿
n2 π
Put n=1 ,2 , 3 …
2
a 1=0 , a2= ¿
4π
2
a 3= ¿
9π
2
a 4= ¿
16 π
−8 −2
a 5=0 , a6 == ….
36 π 9 π
The half-range Fourier cosine series is,
a0 ∞ n π x a0
∞
f ( x )= + ∑ a n cos
2 n=1 π( )
= + ∑ an cos ( nx )
2 n=1
π 2 1 1
f ( x )= −
4 π 12 [
. cos 2 x + 2 .cos 6 x+ …
3 ]
1 1
5. Obtain the half range sine series of f ( x )=
4
{
−x , 0< x <
3 1
x− , < x <1
4 2
2
∞
Sol. f ( x )=∑ bn sin
n=1
( nπxT )
∞
f ( x )=∑ bn sin ( nπx )
n=1
where
T
2
b n= ∫ f ( x ) sin nπx
T 0 T( )
dx
1
b n=2∫ f ( x ) sin ( nπx ) dx
0
1
b n=2
[(
∫
2
0
1
4 ) 3
1
( )
−x sin ( nπx ) dx+∫ x− sin ( nπx ) dx
1
4
2
]
1 1
b n=2
{[( 1
4
−x
−cos nπx
)(nπ
−(−1 )
−sin nπx
) 2 2
n π ( )] [( )(
2
0
+ x−
3 −cos nπx
4 nπ ) (
−( 1 ) .
−sin nπx
2 2
n π )] }
1
2
b n=2
{[ 1
4 nπ
nπ 1 nπ
cos − 2 2 sin −
2 n π 2
−1
4 nπ
+
−1
4 nπ
cos nπ −0 −
1
( )] [(
4 nπ
nπ 1
cos + 2 2 sin
2 n π
nπ
)(
2 ) ]}
1 nπ 1 nπ 1 1 1 nπ 1 nπ
b n=2
{ 4 nπ
cos − 2 2 sin +
2 n π
−
2 4 nπ 4 nπ
cos nπ−
4 nπ
cos − 2 2 sin
2 n π 2 }
2 4 nπ
b n= [ 1−(−1 )n ] − 2 2 sin
4 nπ n π 2
Hence Fourier sine series is,
∞ ∞
2 4 nπ
f ( x )=∑ bn sin ( nπx )=∑
n=1 n=1 4 nπ
([ n
1−(−1 ) ]− 2 2 sin
n π 2 )
sin ( nπx )
∴ f ( x )=
( 1π − π4 )sin πx+( 31π + 94π )sin 3 πx+ …
2
Practice Problems
l 2l
∞
nπx nπx
{ 0 , 0≤ x ≤
l
l−x , ≤ x ≤ l
2
2
.
Ans :f ( x )= + ∑
4 n=1 ( nπ ) 2
2 cos
2 { n
−1−(−1 ) cos
l }
3) Obtain cosine and sine series for f ( x )=x in the interval 0< x < π.
π 4 1 1
2 π 3 [
Ans :f ( x )= − cos x+ 2 cos 3 x + 2 cos 5 x+ … … ,
5 ]
f ( x )=2 ¿
4) Find the half-range cosine series for the function f ( x )=x 2 in the range 0< x < π.
π2 1 1 1
3 [
Ans :f ( x )= −4 cos x − 2 cos 2 x + 2 cos 3 x− 2 cos 4 x+ …
2 3 4 ]
2k L
5) Find the half range cosine series expansion of the function f ( x )=
k 16 k
{
2k
L
L
x , 0< x <
L
(L−x) , < x< L
2
2
.
Ans : f ( x )= − 2 ¿
2 π
An alternative to the trigonometric form of the Fourier series considered so far in the
complex or exponential form
What we have studied so far are called real Fourier series: where we decompose a given
periodic function into terms of the form sin( nωx) and cos (nωx ).
As an alternative, where a function is instead decomposed into terms of the form e inx
Recall Euler’s formula, which is the basic bridge that connects exponential and
trigonometric functions, by way of complex numbers, given by e ix =cos x+ isin x
1 −inωx 1
Since cos nωx= ( e ¿ ¿ inωx+ e ),sin nωx = (e ¿ ¿ inωx−e−inωx )¿ ¿ , (1) becomes
2 2i
∞ ∞
a a b
f ( x )= 0 + ∑ n (e ¿ ¿ inωx+e−inωx )+ ∑ n (e ¿ ¿ inωx−e−inωx ) ¿ ¿
2 n=1 2 n=1 2 i
a0 ∞ 1 ∞
1
f ( x )= + ∑ ( a n−i bn ) einωx + ∑ ( an +ib n ) e−inωx
2 n=1 2 n =1 2
∞ ∞
f ( x )=c 0+ ∑ c n e inωx + ∑ c−n e−inωx
n=1 n=1
a0 an−i bn an +i bn
where c 0= , c n= , c−n=
2 2 2
∞ −∞
inωx
f ( x )=c 0+ ∑ c n e + ∑ c n e inωx
n=1 n=−1
∞
f ( x )= ∑ c n e inωx , since c0 e 0=c 0
n =−∞
Thus the Fourier series (1) becomes simply
∞
f ( x )= ∑ c n e inωx
n =−∞
which is referred to as the complex or exponential form of the Fourier series expansion of
the function f (x), where c n is called complex coefficient.
In order that we can apply this result directly, it is necessary to obtain a formula for
calculating the complex coefficient c n
The complex Fourier coefficients c n can be readily obtained as follows using, firstly
a 1 c+T
c 0= 0 = ∫ f ( x ) dx
2 T c
c +T c+T
1
c n= (a ¿ ¿ n−ib n)=
2
1
T
c+T
[∫c
]
f ( x ) cos ( nωx ) dx−i ∫ f ( x ) sin ( nωx ) dx ¿
c
1
c n= ∫ f ( x ) [ cos ( nωx )−i sin ( nωx ) ] dx
T c
c+T
1
c n= ∫ f ( x ) e−inωx dx
T c
Thus the complex form of the Fourier series expansion of a periodic function f (t), of period T , is
∞
f ( x )= ∑ c n e inωx
n =−∞
where
c+T
1
c n=
T
∫ f ( x ) e−inωx dx
c
a n−i b n
c n=
2
an +ib n
c−n =
2
• To compute real coefficients from complex coefficients, the following formulas can be
used
a 0=2 c 0
a n=c n +c−n
b n=i(c ¿ ¿ n−c−n) ¿
1. Obtain the complex form of the Fourier series of f ( x )=e−x in −1< x <1.
∞ ∞
2π 2 π
f ( x )= ∑ c n e = ∑ c n e inπx
inωx
Sol. We have T =2 , ω= = =π
T 2 n =−∞ n=−∞
where
c+T 1
1 1
c n= ∫ f ( x ) e−inωx dx= ∫ e−x e−inπx dx
T c 2 −1
1 1
1 e−(1+inπ ) x
1
c n= ∫ e−(1+inπ) x dx=
2 −1 [ =
2 − (1+inπ ) −1 2 ( 1+inπ )
e ]
−1 [ −(1 +inπ ) 1+ inπ ]
−e
1
c n= [ e1 +inπ −e−(1 +inπ ) ]
2(1+inπ)
c n=e ¿ ¿
0
dx=
1
2π
π
[∫
−π
−1. e
−inx
dx +∫ e
0
−inx
dx
]
c n=
1
2π {[ ] [ ] }
−e−inx
−¿ −π
e−inx
+ −¿
0
=
i
2 πn
[ − ( 1−e inπ ) +e−inπ −1 ]
inπ
i
[ e inπ + e−inπ −2 ]= i e + e −1
−inπ
c n=
2 πn πn 2 [ ]
i
c n= ¿
πn
−2 i
If n=2 k ,then c 2 k =0. If n=2 k−1 , thenc 2 k−1=
( 2 k−1 ) π
3. Obtain the complex form of the Fourier series of f ( x )=cos ax in −π < x <π
∞ ∞
2π 2π inωx
Sol. We have T =2 π , ω= =
T 2π
=1 f ( x ) = ∑ n c e = ∑ c n e inx
n =−∞ n=−∞
where
c+T π
1 1
c n= ∫ f ( x ) e−inωx dx= ∫ cos ax . e−inx dx
T c 2 π −π
1
c n= .¿ ¿
2π
1
c n= ¿
2 π (a2−n2)
Since e inπ =cos nπ +isin nπ =(−1 )n , e−inπ =cos (−nπ )+ isin (−nπ ) =(−1 )n,
1
c n= ¿
2 π ( a2−n2 )
1
c n= 2 2
[−¿ cos aπ (−1 )n +a sin aπ (−1 )n +¿ cos aπ (−1 )n+ a sin aπ (−1 )n ]
2 π ( a −n )
1
c n= ¿
2 π ( a2−n2 )
a
c n= 2 2
sin aπ (−1 )n
π ( a −n )
2. Obtain the complex form of the Fourier series of f ( x )=sin x in 0< x < π .
2 e 2it + e−2it e 4 it +e−4 it e 6 it +e−6 it
Ans :
π {
1−
1.3
−
3.5
−
5.7
−… }
x
3. Obtain the complex form of the Fourier series of f ( x )=cos in −π < x <π .
2
−2 (−1 )n ∞
2 (−1 )n+1 inx
Ans :c n= , f ( x ) = ∑ 2 e
( 4 n2−1 ) π n=−∞ ( 4 n −1 ) π
Practice Problems:
2. Obtain the Fourier series of the function f ( x )=x + x 2 for −π < x <π .
n ∞ n ∞ n
2π2 4 (−1 ) −2 n π2 4 (−1 ) 2 (−1 )
Ans :a0= , an = 2
, b n = (−1 ) ∧f ( x ) = +∑ 2
cos nx−∑ sin nx
3 n n 3 n=1 n n =1 n
π 4 cos x cos 3 x
Ans :f ( x )= +
2 π 12
+
(32
+………
)
4. Find the Fourier series of the function f ( x ) in the interval (−π , π ) where
2
f ( x )= −x 2 ,−π < x< 0
{ x , 0< x < π
4 2 4 π
(
Ans :f ( x )=2 π−
π )
sin x−π sin 2 x+ π−
3 9π ( )
sin 3 x− sin 4 x +… … .
2
π 4 cos 3 x cos 5 x
Ans :f ( x )= − cos x +
2 π (9
+
25
+… )
6. Obtain the Fourier series of the function f ( x ) given by
f ( x )= 2+ x ,−2< x <0
{ 2−x , 0< x< 2
f (x+ 4)=f (x )
4
Ans :a0=2 , a n= 2 2
[ 1− (−1 )n ] , b n=0 ,
n π
8
f ( x )=1+ ¿
π2
∞
[ (−1 )n−1 ] (−1 )n+ 1
1
f ( x )= + ∑
4 n=1 [ n2 π 2
cos ( nπx )+
nπ ]
sin(nπx )