Professional Documents
Culture Documents
DR. ISDORY A
E-mail: isdorya@maths.udsm.ac.tz
Office: Room #306, Department of Mathematics
Lecture #1
November 9, 2021
Fourier Series
Topics:
1 Fourier Series
Introduction
Fourier Series
Convergence of Fourier Series
Fourier Series
Introduction
Fourier series has its origin from the theory of oscillations and
the theory of heat conductions.
Important definitions
f (x + T ) = f (x),
Example 1
It is clearly known that if f (x) = sin x then,
Example 2
The period of sin nx and cos nx where n ∈ Z+ (is a positive integer)
is
2π
,
n
2π
that is a period of sin 2x is π, sin 3x is , etc.
3
|f (x) − L| <
when
0 < |x − a| < δ.
This is denoted by
lim f (x) = L.
x→a
|f (x) − L| <
when
a − δ < x < a + δ.
This is denoted by
lim f (x) = L.
x→a−
Figure 5:
Definition
Example 1
1
If f (x) = x sin , find lim+ f (x) and lim− f (x). Hence show that
x x→0 x→0
1
the limit of f (x) = x sin as x approaches 0 is 0.
x
1
lim f (x) = lim (0 + h)) sin
x→0+ h→0 0+h
1
= lim h sin
= 0 also
h→0 h
1
lim f (x) = lim (0 − h)) sin
x→0− h→0 0−h
1
= lim h sin = 0
h→0 h
1
Therefore, the limit of f (x) = x sin as x approaches 0 is 0.
x
Example 2
Use the − δ definition of limits to prove that
lim (3x − 2) = 4
x→2
We must show that for each > 0 there exists a δ > 0 such that
Note:
Definition (Continuous Function)
A function f (x) is said to be continuous at x = a if given > 0,
however small, we can find a number δ such that |f (x) − f (a)| <
when |x − a| < δ and is denoted by lim f (x) = f (a).
x→a
That is lim f (x) exists if lim− f (x) and lim+ f (x) exists and are
x→a x→a x→a
equal.
π π
Figure 8: A discontinuous periodic function at x = −π, − , , π
2 2
Definition (Harmonics)
A function f (x) is sometimes expressed as a series of numbers of
different sine components. The component with the largest period is
the first harmonic or fundamental of f (x).
For instance,
Sinusoidal functions
A Sinusoidal function is a one with smooth, repititive oscillation...
Sinusoidal comes from sine, because the sine function is smooth.
The above conditions (i), (ii) and (iii) imposed on f (x) are
sufficient but not necessary because there are functions that do not
satisfy these conditions which still possess a convergent Fourier
series. However, The conditions above are generally satisfied in
cases which arise in science and engineering.
Fourier Series
∞ ∞
a0 X X
f (x) = + an cos nx + bn sin nx (1)
2 n=1 n=1
were
1 c+2π
Z
a0 = f (x)dx
π c
1 c+2π
Z
an = f (x) cos nxdx
π c
1 c+2π
Z
bn = f (x) sin nxdx
π c
DR. ISDORY A E-mail: isdorya@maths.udsm.ac.tzOffice: Room #306,
MT Department
226:Partial Differential
of Mathematics
Equations
Lecture #1
Fourier Series
The above result can be obtained from the fact that the integral of
a sine or cosine function over a complete period is zero.
Similarly,it follows that
Z π
cos nxdx = 0
−π
π
1 π
Z Z
∴ sin mx sin nxdx = [cos(m − n)x − cos(m + n)x] dx
−π 2 −π
= 0 if m 6= n
If m = n, we have
Z π Z π
sin mx sin nxdx = sin2 nxdx
−π
Z−π
π
= sin nx sin nxdx
−π
1 π
Z
= [cos(nx − nx) − cos(nx + nx)] dx
2 −π
Z π
1 − cos 2nx
= dx
−π 2
Z π
1 cos 2nx
= − dx
−π 2 2
π
1 sin 2nx
= x− =π
2 2 −π
Z π
0 if m 6= n
Hence , we have sin mx sin nxdx =
−π π if m = n
Similarly,Z
π
0 if m 6= n
cos mx cos nxdx =
−π π if m=n
Finally,
Z π
1 π
Z
sin mx cos nxdx = [sin(m + n)x + sin(m − n)x] dx
−π 2 −π
= 0, for all m and n.
Z π Z π ∞
X
f (x) cos mxdx = an cos nx cos mxdx
−π −π n=1
∞ Z π
X
= an cos nx cos mxdx.
n=1 −π
∞
X
= an πδn,m
n=1
= an π
1 π
Z
⇒ an = f (x) cos mxdx
π −π
1 π
Z
an = f (x) cos nxdx as m = n.
π −π
Z π Z π ∞
X
f (x) sin mxdx = bn cos nx sin mxdx
−π −π n=1
∞ Z π
X
= bn sin nx sin mxdx.
n=1 −π
∞
X
= bn πδn,m
n=1
= an π
1 π
Z
⇒ bn = f (x) sin mxdx
π −π
1 π
Z
bn = f (x) sin nxdx as n = m.
π −π
Example 1:
Expand
f (x) = (π − x)2
in
(−π, π)
Example 1:
We know that a Fourier series for the function f (x) in the interval
(−π, π) is given by
∞ ∞
a0 X X
f (x) = + an cos nx + bn sin nx (4)
2 n=1 n=1
1 π 1 π
Z Z
an = f (x) cos nxdx = (π − x)2 cos nxdx
π −π π −π
π
1 2 sin nx − cos nx − sin nx
= (π − x) − 2(π − x)(−1) +2
π n n2 n3 −
1 − cos nπ
= (0 + 0 + 0) − 0 − 2(2π)(−1) +0
π n2
1 −4π cos nπ
= 0−
π n2
1 4π cos nπ
=
π n2
4
= 2
(−1)n Note cos nπ = (−1)n
n
1 π 1 π
Z Z
bn = f (x) sin nxdx = (π − x)2 sin nxdx
π −π π −π
cos nx π
1 2 − cos nx − sin nx
= (π − x) − 2(π − x)(−1) +2
π n n2 n3
2
−π
1 2 cos nx −(2π) cos nπ 2 cos nπ
= 0−0+ 3
− 2
−0+
π n n n3
−4π 2 cos nπ 2 cos nπ
1 2 cos nπ
= − +
π n3 n n3
2
1 4π cos nπ
=
π n
4π
= (−1)n Note cos nπ = (−1)n
n
Example 2
Express
f (x) = x sin x
as a Fourier Series in 0 ≤ x ≤ 2π.
Solution example 2
We know that a Fourier series for the function f (x) in the interval
[0, 2π] is given by
∞ ∞
a0 X X
f (x) = + an cos nx + bn sin nx (5)
2 n=1 n=1
Here f (x)
x sin x =
1 2π 1 2π
Z Z
Now a0 = f (x)dx = x sin xdx
π 0 π 0
Z Z
Itegration by parts i.e udv = uv − vdu gives
1
a0 = [x(− cos x) − 1 · (−sinx)]2π
0
π
1
= (−2π) = −2 [∵ sin 2π = 0, cos 2π = 1]
π
DR. ISDORY A E-mail: isdorya@maths.udsm.ac.tzOffice: Room #306,
MT Department
226:Partial Differential
of Mathematics
Equations
Lecture #1
Fourier Series
1 2π
Z Z 2π
1
an = f (x) cos nxdx = x sin x cos nxdx
π 0 2π 0
Z 2π
1
= x [sin(n + 1)x − sin(n − 1)x] dx
2π 0
1
∵ cos A sin B = [sin(A + B) − sin(A − B)]
2
1 cos(n + 1)x cos(n − 1)x
∴ an = x − + −
2π n+1 n−1
2π
sin(n + 1)x sin(n − 1)x
− +
(n + 1)2 (n − 1)2 0
1 cos 2(n + 1)π cos(2(n − 1))π
= 2π − +
2π n+1 n−1
1 2π
Z Z 2π
1
bn = f (x) sin nxdx = x sin x sin nxdx
π 0 2π 0
Z 2π
1
= x [cos(n − 1)x − cos(n + 1)x] dx
2π 0
∵ 2 sin A sin B = [cos(A − B) − cos(A + B)]
1 sin(n − 1)x sin(n + 1)x
∴ bn = x − − −
2π n−1 n+1
2π
cos(n − 1)x cos(n + 1)x
− +
(n − 1)2 (n + 1)2 0
1 cos 2(n − 1)π cos(2(n + 1))π
= − −
2π (n − 1)2 (n + 1)2
1 1
+ .
(n − 1)2 (n + 1)2
DR. ISDORY A E-mail: isdorya@maths.udsm.ac.tzOffice: Room #306,
MT Department
226:Partial Differential
of Mathematics
Equations
Lecture #1
Fourier Series
1 1 1 1 1
bn = − − +
2π (n − 1)2 (n + 1)2 (n − 1)2 (n + 1)2
= 0 provided n 6= 1.
when n = 1,
Z 2π
1
b1 = x sin x sin xdx
2π 0
Z 2π
1
= x(1 − cos 2x)dx
2π 0
2 2π
1 sin 2x x cos 2x
= x x− −1· +
2π 2 2 4 0
2
1 4π 1 1
= 2π (2π) − − + =π
2π 2 4 4
Note: Note that f (x0 +) and f (x0 −) need not be values of the
function f .
If both Left and the right hand limit exist and are equal, the
ordinary limit exists and is equal to one hand limits.
1
(2) For example, the function f (x) = can not be sectionally
x
continuous on any interval that contain x = 0 or even has as an
end point, because the function is not bounded at x = 0.
Definition
A function is sectionally smooth (also, piecewise smooth) in an
interval a < x < b if: f is sectionally continuous; f 0 (x) exists,
except perhaps at a finite number of points; and f 0 (x) is sectionally
continuous.
Examples
1
(1) f (x) = |x| 2 is continuous but not sectionally smooth in any
0
interval that contains 0, because f (x) −→ ∞ as x −→ 0.
(2) The square wave is sectionally smooth but not continuous.
Most of the functions useful in mathematical modeling are
sectionally smooth. Fortunately, we can also give a positive
statement about the Fourier series of such functions.
DR. ISDORY A E-mail: isdorya@maths.udsm.ac.tzOffice: Room #306,
MT Department
226:Partial Differential
of Mathematics
Equations
Lecture #1
Fourier Series
Theorem
If f (x) is sectionally smooth and periodic with period 2π, then at
each point x the Fourier series corresponding to f (x) converges, and
its sum is
∞
a0 X f (x+) + f (x−)
+ an cos nx + bn sin nx =
2 n=1
2
∞
1 X
f (x) = a0 + {an cos nx + bn sin nx}
2 n=1
y1 = f (x0 +)
y2 = f (x0 −)
f (x0 +) + f (x0 −)
2
Example 1
0 if − π < x < 0
Consider the function f (x) =
a if 0 < x < π
f (x + 2π) = f (x).
Determine the Fourier series representing this function. Find the
sum of series at the the point of discontinuity.
Figure 17:
1 π 1 π
Z Z
1
a0 = f (x)dx = adx = [ax]π0 = a
π −π π 0 π
Z π Z π
1 1
an = f (x) cos nxdx = a cos nxdx
π −π π 0
π
a sin nx
= =0
π n 0
1 π 1 π
Z Z
bn = f (x) sin nxdx = a sin nxdx
π −π π 0
π
a − cos nx a a
= = (1 − cosnπ) = (1 − (−1)n )
π n 0 nπ nπ
= 0 if n even and
2a
= if n odd.
nπ
∞
1 X
∴ f (x) = a0 + bn sin nx
2 n=1
a 2a 1 1
= + sin x + sin3x + sin 5x + ...
2 π 3 5