Professional Documents
Culture Documents
DIFFERENTIAL EQUATIONS
CHAPTER 4
FOURIER SERIES
___
Last update: April 2019
CHAPTER 4
FOURIER SERIES
CONTENTS PAGE
4.1 Periodic Function 2
4.2 Even and Odd Function 4
4.3 Fourier Series for Periodic Function 7
4.4 Fourier Series for Half Range Expansions 17
Exercise 21
References 24
Example 1
Show that f ( x) = cos 2 x is a periodic function and find its
period.
Solution:
Since f ( x) = cos 2 x , then
f ( x + T ) = cos 2 ( x + T ) .
What is the value of T , such that cos 2 ( x + T ) = cos 2 x ?
Note that :
Example 2
Determine whether f ( x ) = sin 5 x is a periodic function. If yes,
find the period.
Solution:
f ( x + T ) = sin 5 ( x + T )
= sin5 x cos5T + cos5 x sin5T
cos5T = 1
= sin 5x if sin 5T = 0
cos5T = cos 2 = 1
5T = 2
2
T =
5
Geometrically,
Example 3
Determine whether the following functions are even, odd, or
neither.
(i) f ( x ) = x2
(ii) h ( x ) = sin x
(iii) g ( x ) = x − sin x
1
3
(iv) f ( t ) = e
t
5
Integral properties
f ( x ) dx = 2 f ( x ) dx
l l
Example: f ( x ) = x2
2 2
−2
x 2 dx = 2 x 2 dx
0
-2 2
f ( x ) dx = 0
l
Example: f ( x) = sin x
0
= 0.
Example:
If f ( x ) is even, then
l
➢ −l
f ( x) sin nx dx = 0 .
l l
➢ −l
f ( x) cos nx dx = 2 f ( x) cos nx dx
0
If f ( x ) is odd, then
l l
➢ −l
f ( x) sin nx dx = 2 f ( x) sin nx dx .
0
l
➢ −l
f ( x) cos nx dx =0 .
1 l n x
(I) an = f ( x ) cos dx
l −l l
1 l n x
bn = f ( x ) sin dx
l −l l
T
where l = and T is period for periodic function.
2
Even X Odd→Odd.
Recall properties.
If f ( x ) is an even function, then bn = 0 .
Hence, its Fourier series is given by:
a0 n
f ( x) = + an cos x
2 n=1 l
2 l
( II )
where
a0 = f ( x ) dx Even
l 0
properties
2 l n
an = f ( x ) cos x dx
l 0 l
8
Recall
properties
Summary:
f ( x) Formula
Neither I
Even II
Odd III
9
Example 4
Solution:
i) Determine T and l .
T = 2, l = 1.
f(x)
x
-3 -2 -1 1 3 5
cos n x sin n x
1
= −2 − x + 2 2
n n 0
cos n sin n
= −2 − + 2 2 − (0 + 0)
n n Remarks:
cos n
=2 sin n = 0
n
2 cos n = (−1) n
= (−1) n
n for n = 0,1, 2,...
Therefore,
2 (−1) n
f ( x) = sin n x
n =1 n .
Note: It is not wrong to use the full range of [-1,1] when computing bn . The result
will be the same; it’s just that you may encounter a longer calculation.
11
Example 5
Find the Fourier series for
− x − x 0
f ( x) =
x 0 x
f ( x + 2 ) = f ( x )
Solution:
i) Determine T and l .
T = 2 , l = .
x
-2 π -π π 2π 3π
2 x2 1
= = ( 2 − 0) =
2 0
2 l n x
an =
l 0
f ( x ) cos
l
dx
2 n x
= x cos dx
0
2
= x cos nx dx
0
2 x sin nx cos nx
= +
n n2 0
2 sin n cos n 1
= + − 2
n n2 n
2
= 2 (cos n − 1), n = 1, 2,3,....
n
13
Example 6
Show that the Fourier series of
f ( x) = sin x , − x
2 2
f ( x) = f ( x + )
2 4 1
is given by f ( x) =
−
4n
n =1
2
−1
cos 2nx.
Solution:
i) Determine T and l .
T =, l = .
2
4
an = 2
sin x cos(2nx) dx
0
2
= 2
(sin( x + 2nx) + sin( x − 2nx)) dx
0
2 cos( x + 2nx) cos( x − 2nx) 2
= − −
1 + 2n 1 − 2n 0
2 1 1 4
= + =
1 + 2n 1 − 2n (1 − 4n 2 )
15
Example 7
Find the Fourier series of
x, − x 0
f ( x) =
0, 0 x
f ( x + 2 ) = f ( x )
Solution:
i) Determine T and l .
T = 2 , l = .
-3π
.
-π π 3π
. -2π
. . 2π 4π x
1 0
=
x
−
cos nx dx
0
1 x 1
= sin ( nx ) + 2 cos ( nx )
n n −
1 1 ( − )
sin n ( − ) + 2 cos n ( − 2 )
1
= 0 + 2 −
n n n
11 1
= 2 − 2 cos n
n n
1
= 2 1 − cos n
n
1
= 2 1 − ( −1) , n = 1, 2,3,...
n
n
17
The answer is YES, but we need to convert the non-periodic function into
a periodic function.
2 l n x
an = f ( x) cos dx, n = 1, 2,3,..
l 0 l
Example 8
Find the half range Fourier series for
f ( x) = 1− x 0 x 1.
Solution:
i) Fourier Cosine.
To get the Fourier cosine series, we need to extend f ( x ) to be an
even function as shown below:
Remember!
Even function
Symmetry about y-
axis.
0
1
x2
= 2 x − = 1
2 0
19
and
an = 2 (1 − x ) cos n x dx
1
2 l n x
bn = f ( x ) sin dx, l =1
l 0 l
= 2 (1 − x ) sin n x dx
1
(1 − x ) 2
= −2 cos n x − sin n x 0
1
n n 2 2
−2 2 2
= 0 − 2 2 sin n + cos 0 + 0
n n n
2
=
n
Exercise:
(0, 2) ( , 2)
(−,0) x
Ans. 3 + 2 1 − (−1) n cos nx + (−1) n+1 sin nx
(n ) n
2
2 n =1
Ans. 2sinh
n
(−1)
n =1
n +1
1 + n2
sin nx.
−2 − 0 2 x
−
2 n =1 2n − 1
6. Let h be a given number in the interval (0, ) . Find the Fourier cosine
series of the function
1 if 0 xh
f ( x) =
0 if h x
2 n=1 nh
END
23
REFERENCES