Press 28 034719
Press 28 034719
Press 28 034719
Differential Equations
for non-majors – MT171
Idrissa S. A.
Amour.Idrissa@udsm.ac.tz
1 π 1 π
a0 = F (u)du, an = ∫ F (u) cos nudu
2π ∫−π π −π
1 π
bn = ∫ F (u) sin nudu n = 1, 2, . . .
π −π
If we change the variable to x, we have
πx π
u= Ô⇒ du = dx
L L
thus the series formed is
∞
nπ nπ
f (x) = a0 + ∑ (an cos x + bn sin x)
n=1 L L
ISA MT171 – 2021/2022 3 / 18
Other Periods, T = 2L
with Fourier coefficients of f (x) given by the Euler
formulas
1 L
a0 = f (x)dx (1)
2L ∫−L
1 L nπ
an = ∫ f (x) cos xdx n = 1, 2, . . . (2)
L −L L
1 L nπ
bn = ∫ f (x) sin xdx n = 1, 2, . . . (3)
L −L L
Interval of integrations: We may replace the interval
of integration by any interval of length T = 2L, for
example 0 ≤ x ≤ 2L.
ISA MT171 – 2021/2022 4 / 18
Periodic Square Wave
Example: Find the Fourier series of the function in
black
square wave and half wave rectifier
1.2
0.8
0.6
0.4
0.2
−0.2
−2 −1 0 1 2
ISA MT171 – 2021/2022 5 / 18
Periodic Square Wave
⎧
⎪ 0 if − 2 < x < −1
⎪
⎪
⎪
f (x) = ⎨k if − 1 < x < 1 , f (x + 4) = f (x)
⎪
⎪
⎪
⎩0 if 1 < x < 2
⎪
Solution: T = 2L = 4 Ô⇒ L = 2
1 L 1 1 k
a0 = ∫ f (x)dx = ∫ kdx =
2L −L 4 −1 2
1 L nπ 1 1 nπ
an = ∫ f (x) cos xdx = ∫ k cos xdx
L −L L 2 −1 2
2k nπ
= sin
nπ 2
ISA MT171 – 2021/2022 6 / 18
Periodic Square Wave
Thus an = 0 if n is even and
⎧
⎪ 2k
⎪
⎪
⎪ if n = 1, 5, 9, . . .
⎪ nπ
an = ⎨
⎪
⎪ 2k
⎪
⎪
⎪ − if n = 3, 7, 11, . . .
⎩ nπ
1 L nπ 1 1 nπ
bn = ∫ f (x) sin xdx = ∫ k sin xdx = 0 why?
L −L L 2 −1 2
Hence the Fourier series is
k 2k π 1 3π 1 5π
f (x) = + ( cos x − cos x + cos x + . . . )
2 π 2 3 2 5 2
ISA MT171 – 2021/2022 7 / 18
Half-Wave Rectifier
Example: A sinusoidal voltage E sin wt where t is time,
is passed through a half-wave rectifier that clips the
negative portion of the wave (fig. in blue print). Find
the fourier series of the resulting periodic function.
⎧ π
⎪0
⎪
⎪ if − < x < 0
w
u(t) = ⎨ π
⎪
⎪
⎪ E sin wt if 0 < x <
⎩ w
Solution: T = 2L = 2π
w Ô⇒ L = w
π
E 2 2 2E
an = ( + )=− , n = 2, 4, 6, . . .
2π 1 + n 1 − n (n − 1)(n + 1)π
0
−10 0 10 20 30
ISA MT171 – 2021/2022 16 / 18
Sawtooth Wave
Solution: We may write f = f1 + f2 , where f1 = x and
f2 = π. The Fourier coefficients of f2 are 0 except for the
first term (constant term), which is π. Hence the
Fourier coefficients of f1 + f2 ; an , bn are those of f1
except for a0 which is π. Since f1 is odd a0 = 0 = an for
n = 1, 2, . . ., and
2 π 2 π
bn = f1 (x) sin nxdx = x sin nxdx
π ∫0 π ∫0
π
2 −x cos nx 1 π 2
= [ ∣ + ∫ cos nxdx] = − cos nπ
π n 0
n 0 n
2 2 2
⇒ b1 = 2 , b2 = − , b3 = , b4 = − . . .
2 3 4
ISA MT171 – 2021/2022 17 / 18
Sawtooth Wave
The Fourier series is therefore
1 1
f (x) = π + 2( sin x − sin 2x + sin 3x − + . . . )
2 3
Fourier series with 7 terms
8
f(x)
6
FS
4
−2
−4 −2 0 2 4
ISA MT171 – 2021/2022 18 / 18