Fourier Series - Lecture 2
Fourier Series - Lecture 2
Higher Engineering Mathematics. 978-0-415-66282-6, © 2014 John Bird. Published by Taylor & Francis. All rights reserved.
Even and odd functions and half-range Fourier series 779
contains no sine terms) and may contain a constant (i.e. the series contains no sine terms.)
term.
∞ f (x)
Hence f (x) = a0 + an cos nx
n=1
π 2
1
where a0 = f (x) dx
2π −π
1 π
= f (x) dx
π 0 ⫺3/2 ⫺ ⫺/2 0 /2 3/2 2 x
(due to symmetry)
1 π ⫺2
and an = f (x) cos nx dx
π −π
2 π
= f (x) cos nx dx Figure 75.1
π 0
(b) Fourier sine series From para. (a),
The Fourier series of an odd periodic function f (x) 1 π
a0 = f (x) dx
having period 2π contains sine terms only (i.e. contains π 0
no constant term and no cosine terms). π/2 π
1
∞ = 2 dx + −2 dx
π 0 π/2
Hence f (x) = bn sin nx
1 π/2
n=1
= [2x]0 + [−2x]ππ/2
π π
1
where bn = f (x) sin nx dx 1
π −π = [(π) + [(−2π) − (−π)] = 0
π
π
2
= f (x) sin nx dx
π 0 2 π
an = f (x) cos nx dx
π
Section L
0
π/2 π
Problem 1. Determine the Fourier series for the 2
= 2 cos nx dx + −2 cosnx dx
periodic function defined by: π 0 π/2
⎧ π π/2 π
⎪
⎪ −2, when −π < x < − 4 sin nx −sin nx
⎪
⎪ = +
⎪
⎨
2
π n n
π π 0 π/2
f (x) = 2, when − < x <
⎪ 2 2
⎪
⎪ 4 sin(π/2)n
⎪
⎪ π = −0
⎩ −2, when <x <π π n
2
and has a period of 2π −sin(π/2)n
+ 0−
n
The square wave shown in Fig. 75.1 is an even function 4 2 sin(π/2)n 8 nπ
since it is symmetrical about the f (x) axis. = = sin
π n πn 2
Hence from para. (a) the Fourier series is given by:
∞
When n is even, an = 0
f (x) = a0 + an cos nx 8
When n is odd, an = for n = 1, 5, 9, . . .
n=1 πn
780 Higher Engineering Mathematics
π
−8 2
and an = for n = 3, 7, 11, . . . From para. (b), bn = f (x) sin nx dx
πn π 0
π
8 −8 8 2
Hence a1 = , a3 = , a5 = , and so on. = 2 sin nx dx
π 3π 5π π 0
Hence the Fourier series for the waveform of Fig. 75.1
is given by: 4 −cos nx π
=
8 1 1 π n 0
f (x) = cos x − cos 3x + cos 5x
π 3 5 4 −cosnπ 1
= − −
1 π n n
− cos 7x +· · ·
7 4
= (1 − cosnπ)
πn
Problem 2. In the Fourier series of Problem 1 let
x = 0 and deduce a series for π/4. When n is even, bn = 0
4 8
When x = 0, f (x) = 2 (from Fig. 75.1). When n is odd, bn = (1 − (−1)) =
πn πn
Thus, from the Fourier series,
8 8 8
8 1 1 Hence b1 = , b3 = , b5 = ,
2= cos 0 − cos 0 + cos 0 π 3π 5π
π 3 5
and so on.
1
− cos 0 + · · ·
7 Hence the Fourier series is:
2π 1 1 1
Hence = 1 − + − + ··· 8 1 1
8 3 5 7 f (x) = sin x + sin 3x + sin 5x
π 3 5
π 1 1 1
= 1− + − +··· 1
i.e.
4 3 5 7 + sin 7x +· · ·
7
Problem 3. Obtain the Fourier series for the
square wave shown in Fig. 75.2. Problem 4. Determine the Fourier series for the
f (x) function f (θ ) = θ 2 in the range −π < θ < π. The
function has a period of 2π.
Section L
Section L
− 2 cos 4θ + 2 cos 5θ − · · ·
4 5 which is periodic of period 2π. Sketch the
given function.
Problem 5. For the Fourier series of Problem 4,
3. Determine the Fourier series defined by
∞ 1 π2
let θ = π and show that 2
= 1 − x, −π < x < 0
n=1 n 6
f (x) =
1 + x, 0 < x < π
When θ = π, f (θ ) = π 2 (see Fig. 75.3). Hence from the
Fourier series: which is periodic of period 2π
π2 1 1 4. In the Fourier series of Problem 3, let x = 0
π2 = − 4 cos π − 2 cos 2π + 2 cos 3π and deduce a series for π 2 /8
3 2 3
1 1 5. Show that the Fourier series for the triangular
− 2 cos 4π + 2 cos 5π − · · · waveform shown in Fig. 75.4 is given by:
4 5
8 1 1
i.e. y = 2 sin θ − 2 sin 3θ + 2 sin 5θ
π2 1 1 1 1 π 3 5
π −
2
= −4 −1 − 2 − 2 − 2 − 2 − · · · 1
3 2 3 4 5 − 2 sin 7θ + . . .
7
2π 2 1 1 1 1 The function is periodic of period 2π .
= 4 1 + 2 + 2 + 2 + 2 + ···
3 2 3 4 5
782 Higher Engineering Mathematics
1 y 5 cos x
Problem 7. Find the half-range Fourier sine
series to represent the function f (x) = 3x in the
range 0 ≤ x ≤ π 2 0 2 x
21
From para. (c), for a half-range sine series:
∞
Figure 75.7
f (x) = bn sin nx
n=1 From para. (c), for a half-range Fourier sine series:
∞
When f (x) = 3x, f (x) = bn sin nx dx
Section L
π π n=1
2 2
bn = f (x) sin nx dx = 3x sin nx dx
π 0 π 0
π
π 2
6 −x cos nx sin nx bn = f (x) sin nx dx
= + by parts π 0
π n n2 0
2 π
6 −π cos nπ sin nπ = cos x sin nx dx
= + − (0 + 0) π
π n n2 0
π
6 2 1
= − cos nπ = [sin(x + nx) − sin(x − nx)] dx
n π 0 2
6 π
When n is odd, bn = 1 −cos[x(1 + n)] cos[x(1 − n)]
n = +
π (1 + n) (1 − n) 0
6 6 6
Hence b1 = , b3 = , b5 = and so on.
1 3 5 1 −cos[π(1 + n)] cos[π(1 − n)]
= +
6 π (1 + n) (1 − n)
When n is even, bn = −
n
6 6 6 −cos 0 cos0
Hence b2 = − , b4 = − , b6 = − and so on. − +
2 4 6 (1 + n) (1 − n)
784 Higher Engineering Mathematics
Section L
8 1 2
or f (x)= sin 2x + sin 4x
π 3 (3)(5)
3
+ sin 6x + · · ·
(5)(7)
For fully worked solutions to each of the problems in Practice Exercises 261 and 262 in this chapter,
go to the website:
www.routledge.com/cw/bird