Professional Documents
Culture Documents
69
Fourier series for periodic functions of
period 2π
other graphs make finite jumps at a point or points
69.1 Introduction in the interval. The square wave shown in Fig. 69.1
has finite discontinuities at x = π, 2π, 3π, and so
Fourier series provides a method of analysing peri- on. A great advantage of Fourier series over other
odic functions into their constituent components. series is that it can be applied to functions which are
Alternating currents and voltages, displacement, discontinuous as well as those which are continuous.
velocity and acceleration of slider-crank mecha-
nisms and acoustic waves are typical practical exam-
ples in engineering and science where periodic
functions are involved and often requiring analysis. 69.3 Fourier series
(i) The basis of a Fourier series is that all functions
69.2 Periodic functions of practical significance which are defined in
the interval −π ≤ x ≤ π can be expressed in
A function f (x) is said to be periodic if terms of a convergent trigonometric series of
f (x + T ) = f (x) for all values of x, where T is some the form:
positive number. T is the interval between two f (x) = a0 + a1 cos x + a2 cos 2x
successive repetitions and is called the period of
the functions f (x). For example, y = sin x is peri- + a3 cos 3x + · · · + b1 sin x
odic in x with period 2π since sin x = sin (x + 2π) + b2 sin 2x + b3 sin 3x + · · ·
= sin (x + 4π), and so on. In general, if y = sin ωt
then the period of the waveform is 2π/ω. The func- when a0 , a1 , a2 , . . . b1 , b2 , . . . are real con-
tion shown in Fig. 69.1 is also periodic of period 2π stants, i.e.
and is defined by:
8
∞
−1, when −π < x < 0 f (x) = a0 + (an cos nx + bn sin nx)
f (x) = 1, when 0 < x < π
(1)
n=1
f (x)
where for the range −π to π:
1 π
1
a0 = f (x) dx
2π −π
−2π −π 0 π 2π x
1 π
−1 an = f (x) cos nx dx
π −π
(n = 1, 2, 3, . . . )
Figure 69.1 π
1
bn = f (x) sin nx dx
If a graph of a function has no sudden jumps or breaks and π −π
it is called a continuous function, examples being (n = 1, 2, 3, . . . )
the graphs of sine and cosine functions. However,
658 FOURIER SERIES
Hence a1 , a2 , a3 , . . . are all zero (since sin 0 = series is added together term by term the result
sin (−nπ) = sin nπ = 0), and therefore no cosine approximates more and more closely to the
terms will appear in the Fourier series. function it represents.
From Section 69.3(i):
If k = π in the Fourier series of Problem 1 then:
1 π
bn = f (x) sin nx dx f (x) = 4(sin x + 13 sin 3x + 15 sin 5x + · · · )
π −π
0 π 4 sin x is termed the first partial sum of the Fourier
1
= −k sin nx dx + k sin nx dx series of f (x), (4 sin x + 43 sin 3x) is termed the
π −π 0
3 4
second partial sum of the Fourier series, and
1 k cos nx 0 −k cos nx π (4 sin x + 43 sin 3x + 45 sin 5x) is termed the third
= + partial sum, and so on.
π n −π n 0
Let P1 = 4 sin x,
When n is odd: P2 = 4 sin x + 43 sin 3x
k 1 1 and P3 = 4 sin x + 43 sin 3x + 45 sin 5x .
bn = − −
π n n Graphs of P1 , P2 and P3 , obtained by drawing up
1 1 tables of values, and adding waveforms, are shown
+ − − − − in Figs. 69.4(a) to (c) and they show that the series is
n n
convergent, i.e. continually approximating towards
k 2 2 4k a definite limit as more and more partial sums are
= + =
π n n nπ taken, and in the limit will have the sum f (x) = π.
Even with just three partial sums, the waveform is
4k 4k 4k starting to approach the rectangular wave the Fourier
Hence b1 = , b3 = , b5 = , and so on. series is representing.
π 3π 5π
When n is even:
Problem 3. If in the Fourier series of Prob-
π
k 1 1 1 1 lem 1, k = 1, deduce a series for at the
bn = − + − − − =0 4
π n n n n π
point x = .
Hence, from equation (1), the Fourier series for the 2
function shown in Fig. 69.3 is given by:
If k = 1 in the Fourier series of Problem 1:
∞
9 4 1 1
f (x) = a0 + (an cos nx + bn sin nx) f (x) = sin x + sin 3x + sin 5x + · · ·
π 3 5
n=1
∞
9 π
When x = , f (x) = 1,
=0+ (0 + bn sin nx) 2
n=1 π
sin x = sin = 1,
4k 4k 4k 2
i.e. f (x) = sin x + sin 3x + sin 5x + · · · 3π
π 3π 5π sin 3x = sin = −1,
4k 1 2
i.e. f (x) = sin x + sin 3x 5π
π 3 sin 5x = sin = 1, and so on.
2
1
+ sin 5x + · · ·
5 4 1 1 1
Hence 1 = 1 + (−1) + (1) + (−1) + · · ·
π 3 5 7
Problem 2. For the Fourier series of Prob- π 1 1 1 L
i.e. = 1 − + − + ···
lem 1 let k = π. Show by plotting the first three 4 3 5 7
partial sums of this Fourier series that as the
660 FOURIER SERIES
f (x) i
4 f (x) i = 5 sin θ /2
5
π
P1
−2π 0 2π 4π θ
−π −π/2 0 π/2 π x
Figure 69.5
−π
−4 θ
i = 5 sin is a periodic function of period 2π.
2
(a) Thus
∞
9
P1 f (x) i = f (θ) = a0 + (an cos nθ + bn sin nθ)
f (x)
n=1
π
P2
In this case it is better to take the range 0 to 2π
instead of −π to +π since the waveform is continu-
−π π/2 π
ous between 0 and 2π.
−π/2 0 x
4/3 sin 3x
2π 2π
1 1 θ
−π a0 = f (θ) dθ = 5 sin dθ
2π 0 2π 0 2
2π
5 θ
(b)
= −2 cos
2π 2 0
5 2π
= −cos − (−cos 0)
f (x) P2 f (x)
π 2
π 5 10
P3 = [(1) − (−1)] =
π π
−π/2 2π
1 θ
−π 0 π/2 π x an = 5 sin cos nθ dθ
4/5 sin 5x
π 0 2
5 2π 1 θ
−π = sin + nθ
π 0 2 2
(c) θ
+ sin − nθ dθ
2
Figure 69.4
(see Chapter 40, page 400)
5 −cos θ 21 + n
= 1
2π 2 + n
Problem 4. Determine the Fourier series for
θ 2π
the full wave rectified sine wave i = 5 sin cos θ 21 − n
2 − 1
shown in Fig. 69.5. 2 −n 0
FOURIER SERIES FOR PERIODIC FUNCTIONS OF PERIOD 2π 661
3 3 1
5 −cos 2π 21 + n 5 sin 2π −n sin 2π 21 + n
= 1 = 1 2
− 1
2 +n
2π −n 2 +n
2π 2
4
cos 2π 21 − n sin 0 sin 0
− 1 − 1 − 1
2 −n 2 −n 2 +n
4
−cos 0 cos 0 When n is both odd and even, bn = 0 since sin (−π),
− 1 − 1 sin 0, sin π, sin 3π, . . . are all zero. Hence the Fourier
2 +n 2 −n series for the rectified sine wave,
When n is both odd and even, θ
i = 5 sin is given by:
3 2
5 1 1 ∞
an = 1 + 1 9
2 +n 2 −n f (θ) = a0 + (an cos nθ + bn sin nθ)
2π
4 n=1
−1 1
− 1 − 1
+n −n 10 20 20
3
2 2
4 i.e. i = f (θ) = − cos θ − cos 2θ
π 3π (3)(5)π
5 2 2
= 1 + 1 20
2 +n 2 −n − cos 3θ − · · ·
2π
3 4 (5)(7)π
5 1 1
= 1 + 1 20 1 cos θ cos 2θ cos 3θ
i.e. i= − − − − ···
2 +n 2 −n
π π 2 (3) (3)(5) (5)(7)
Hence Now try the following exercise.
5 1 1 5 2 2 −20
a1 = + = − = Exercises 240 Further problems on Fourier
π 3
2 − 21 π 3 1 3π series of periodic functions of period 2π
1. Determine the Fourier series for the periodic
5 1 1 5 2 2 −20
a2 = + = − = function:
π 5
− 23 π 5 3 (3)(5)π 3
2 −2, when −π < x < 0
f (x) =
5 1 1 5 2 2 −20 +2, when 0 < x < π
a3 = 7
+ = − =
π 2 − 25 π 7 5 (5)(7)π which is periodic outside this range of
and so on period 2π.
⎡ ⎤
8 1
⎢ f (x) = π sin x + 3 sin 3x ⎥
1 θ 2π
bn = 5 sin
sin nθ dθ ⎢ ⎥
π0 2 ⎣ 1 ⎦
+ sin 5x + · · ·
5 2π 1 1 5
= − cos θ +n
π 0 2 2
2. For the Fourier series in Problem 1, deduce a
π π
− cos θ
1
−n dθ series for at the point where x =
2 4 2
from Chapter 40 π 1 1 1
= 1 − + − + ···
2π 4 3 5 7
5 sin θ 21 − n sin θ 21 + n L
= 1 − 1 3. For the waveform shown in Fig. 69.6 deter-
2 −n 2 +n
2π
0 mine (a) the Fourier series for the function
662 FOURIER SERIES
and (b) the sum of the Fourier series at the 6. Determine the Fourier series for the periodic
points of discontinuity. function of period 2π defined by:
⎡ ⎤
1 2 1 ⎧
0, when −π < t < 0
⎢ (a) f (x) = 2 + π cos x − 3 cos 3x ⎥ ⎪
⎪
⎪
⎨
⎢ ⎥ π
⎢ 1 ⎥ f (t) = 1, when 0 < t <
⎢ + cos 5x − · · · ⎥ ⎪ 2
⎢ 5 ⎥ ⎪
⎪
⎣ 1 ⎦ ⎩−1, when
π
<t<π
(b) 2
2
The function has a period of 2π
f (x) ⎡ ⎛ ⎞⎤
1
1 ⎢ ⎜ cos t − 3 cos 3t ⎟⎥
⎢ ⎜ ⎟⎥
⎢ ⎜ ⎟⎥
⎢ ⎜ + 1 cos 5t − · · · ⎟⎥
⎢ 2 ⎜ ⎟⎥
⎢f (t) = ⎜ 5 ⎟⎥
⎢ π⎜ ⎟⎥
⎢ ⎜ + sin 2t + 1 sin 6t ⎟⎥
−3π −π −π 0 π π 3π x ⎢ ⎜ ⎟⎥
2 2 ⎢ ⎜ 3 ⎟⎥
2 2 ⎣ ⎝ 1 ⎠⎦
+ sin 10t + · · ·
Figure 69.6 5
4. For Problem 3, draw graphs of the first three 7. Show that the Fourier series for the periodic
partial sums of the Fourier series and show function of period 2π defined by
that as the series is added together term by
term the result approximates more and more 0, when −π < θ < 0
closely to the function it represents. f (θ) =
sin θ, when 0 < θ < π
5. Find the term representing the third har-
monic for the periodic function of period 2π is given by:
given by:
2 1 cos 2θ cos 4θ
0, when −π < x < 0 f (θ) = − −
f (x) = 1, when 0 < x < π π 2 (3) (3)(5)
cos 6θ
2 − − ···
sin 3x (5)(7)
3π
Fourier series
70
Fourier series for a non-periodic
function over range 2π
f(x)
70.1 Expansion of non-periodic 2π
f(x) = x
functions
If a function f (x) is not periodic then it cannot be
−2π 0 2π 4π x
expanded in a Fourier series for all values of x. How-
ever, it is possible to determine a Fourier series to
represent the function over any range of width 2π. Figure 70.1
Given a non-periodic function, a new function
may be constructed by taking the values of f (x)
in the given range and then repeating them out- f(x)
f(x) = 2x
side of the given range at intervals of 2π. Since 2π
this new function is, by construction, periodic with
period 2π, it may then be expanded in a Fourier
series for all values of x. For example, the func- −2π −π 0 π 2π 3π x
tion f (x) = x is not a periodic function. However, if a
Fourier series for f (x) = x is required then the func- −2π
tion is constructed outside of this range so that it is
periodic with period 2π as shown by the broken lines
in Fig. 70.1. Figure 70.2
For non-periodic functions, such as f (x) = x, the
sum of the Fourier series is equal to f (x) at all points
in the given range but it is not equal to f (x) at points
outside of the range. For a Fourier series:
For determining a Fourier series of a non-periodic
function over a range 2π, exactly the same for- ∞
9
mulae for the Fourier coefficients are used as in f (x) = a0 + (an cos nx + bn sin nx)
Section 69.3(i). n=1
2π
1 i.e. f (x)
an = f (x) cos nx dx
π 0 π 2 cos 3x cos 5x
= − cos x + + +···
1 π 2π 4 π 32 52
= x cos nx dx + 0 dx
π 1 1
0 π + sin x − sin 2x + sin 3x − · · ·
2 3
1 x sin nx cos nx π
= +
π n n2 0
Problem 4. For the Fourier series of Prob-
(from Problem 1, by parts) lem 3: (a) what is the sum of the series at the
point of discontinuity (i.e. at x = π)? (b) what
1 π sin nπ cos nπ cos 0 is the amplitude and phase angle of the third
= + − 0+ 2
π n n2 n harmonic? and (c) let x = 0, and deduce a series
for π2 /8.
1
= ( cos nπ − 1)
πn2
(a) The sum of the Fourier series at the point of
When n is even, an = 0. discontinuity is given by the arithmetic mean of
−2
When n is odd, an = 2 . the two limiting values of f (x) as x approaches
πn the point of discontinuity from the two sides.
−2 −2 −2
Hence a1 = , a3 = 2 , a5 = 2 , and so on Hence sum of the series at x = π is
π 3 π 5 π
1 2π π−0 π
bn = f (x) sin nx dx =
π 0 2 2
π 2π (b) The third harmonic term of the Fourier series is
1
= x sin nx dx − 0 dx 2 1
π 0 π − 2 cos 3x + sin 3x
3 π 3
1 −x cos nx sin nx π This may also be written in the form
= +
π n n2 0 c sin (3x + α),
5
6 2
(from Problem 1, by parts) 6 −2 2 1
where amplitude, c = 7 +
2
3 π 3
1 −π cos nπ sin nπ sin 0
= + − 0 +
π n n2 n2 = 0.341
and phase angle,
1 −π cos nπ −cos nπ
= = ⎛ −2 ⎞
π n n
⎜ 2 ⎟
1 1
Hence b1 = −cos π = 1, b2 = − , b3 = , and α = tan−1 ⎝ 3 π ⎠
2 3 1
so on. 3
Thus the Fourier series is:
= −11.98◦ or −0.209 radians
9∞
f (x) = a0 + (an cos nx + bn sin nx) Hence the third harmonic is given by
0.341 sin(3x − 0.209)
n=1
(c) When x = 0, f (x) = 0 (see Fig. 70.3).
π 2 2
i.e. f (x) = − cos x − 2 cos 3x Hence, from the Fourier series:
4 π 3 π
π 2 1 1
2 0= − cos 0 + 2 cos 0 + 2 cos 0 + · · · + (0)
− 2 cos 5x − · · · + sin x 4 π 3 5
5 π
π 2
1 1 1
L
1 1 − =− 1 + 2 + 2 + 2 + ···
− sin 2x + sin 3x − · · · i.e.
4 π 3 5 7
2 3
666 FOURIER SERIES
π2 1 1 1 2π 2π
Hence = 1+ 2 + 2 + 2 +··· 1 1
8 3 5 7 bn = f (θ) sin nθ dθ = θ 2 sin nθ dθ
π 0 π 0
2π
1 −θ 2 cos nθ 2θ sin nθ 2 cos nθ
= + +
Problem 5. Deduce the Fourier series for the π n n2 n3 0
function f (θ) = θ 2 in the range 0 to 2π.
by parts
1 −4π2 cos 2πn
2 cos 2πn
f (θ) = θ 2 is shown in Fig. 70.4 in the range 0 to 2π. = +0+
The function is not periodic but is constructed out- π n n3
side of this range so that it is periodic of period 2π, 2 cos 0
as shown by the broken lines. − 0+0+
n3
1 −4π2 2 2 −4π
f(θ)
2
f (θ) = θ
= + 3− 3 =
4π
2 π n n n n
4π2 1 1 4. Determine the Fourier series up to and
i.e. π2 − = 4 −1 + − including the third harmonic for the
3 4 9
function defined by:
1 3
+ − ··· − 4π(0) x, when 0 < x < π
16 f (x) =
2π − x, when π < x < 2π
π2 1 1 1
− = 4 −1 + − + − ··· Sketch a graph of the function within and
3 4 9 16 outside of the given range, assuming the
period is 2π.
π2 1 1 1 ⎡ ⎤
=4 1− + − + ··· π 4 cos 3x
3 4 9 16 f (x) = − cos x +
⎢ 2 π 32 ⎥
⎢ ⎥
π2 1 1 1 ⎣ cos 5x ⎦
Hence = 1− + − +··· + + ···
12 4 9 16 5 2
+ 13 sin 3x + 41 sin 4x + · · · 1 1 1 1 π2
1 + 2 + 2 + 2 + 2 + ··· =
2 3 4 5 6
2. Determine the Fourier series for the function
defined by: 7. Show that the Fourier series for the triangular
waveform shown in Fig. 70.5 is given by:
3
1 − t, when −π < t < 0 8 1 1
f (t) = y = 2 sin θ − 2 sin 3θ + 2 sin 5θ
1 + t, when 0 < t < π π 3 5
1
Draw a graph of the function within and − 2 sin 7θ + · · ·
7
outside of the given range.
⎡ ⎤ in the range 0 to 2π.
π 4 cos 3t
⎢f (t) = 2 + 1 − π cos t + 32 ⎥
⎢ ⎥ y
⎣ cos 5t ⎦
+ 2 + ··· 1
5
71
Even and odd functions and half-range
Fourier series
1 π
71.1 Even and odd functions and an = f (x) cos nx dx
π −π
Even functions 2 π
= f (x) cos nx dx
A function y = f (x) is said to be even if f (−x) = f (x) π 0
for all values of x. Graphs of even functions are
always symmetrical about the y-axis (i.e. is a (b) Fourier sine series
mirror image). Two examples of even functions
are y = x 2 and y = cos x as shown in Fig. 19.25, The Fourier series of an odd periodic function f (x)
page 199. having period 2π contains sine terms only (i.e.
contains no constant term and no cosine terms).
Odd functions ∞
9
Hence f (x) = bn sin nx
A function y = f (x) is said to be odd if f (−x) = n=1
−f (x) for all values of x. Graphs of odd functions are
1 π
always symmetrical about the origin. Two exam-
where bn = f (x) sin nx dx
ples of odd functions are y = x 3 and y = sin x as π −π
shown in Fig. 19.26, page 200. π
Many functions are neither even nor odd, two such 2
= f (x) sin nx dx
examples being shown in Fig. 19.27, page 200. π 0
See also Problems 3 and 4, page 200.
8 −8 8
f(x)
Hence a1 = , a3 = , a5 = , and so on.
π 3π 5π
2 Hence the Fourier series for the waveform of
Fig. 71.1 is given by:
8 1 1
f (x) = cos x − cos 3x + cos 5x
π 3 5
−3π/2 −π −π/2 0 π/2 π 3π/2 2π x
1
− cos 7x + · · ·
7
−2
Problem 2. In the Fourier series of Problem 1
let x = 0 and deduce a series for π/4.
Figure 71.1
−π
D Problem 7. Find the half-range Fourier sine
series to represent the function f (x) = 3x in the
Figure 71.5 range 0 ≤ x ≤ π.
−1 8 16 24
Hence b2 = , b4 = , b6 = and so on.
3π 15π 35π
Figure 71.6 Hence the half-range Fourier sine series for f (x) in
the range 0 to π is given by:
From para. (c), for a half-range Fourier sine series:
8 16
f (x) = sin 2x + sin 4x
∞
9 3π 15π
f (x) = bn sin nx dx 24
+ sin 6x + · · ·
n=1 35π
EVEN AND ODD FUNCTIONS AND HALF-RANGE FOURIER SERIES 675
⎡ ⎤
8 1 2 2
or f (x) = sin 2x + sin 4x (b) f (t) = sin t − sin 2t
π 3 (3)(5) ⎢ π ⎥
⎢ ⎥
⎢ 1 1 ⎥
+
3
sin 6x + · · · ⎢ + sin 3t + sin 5t ⎥
⎢ 3 5 ⎥
(5)(7) ⎣ 1 ⎦
− sin 6t + · · ·
3
Now try the following exercise.
3. Find (a) the half-range Fourier sine series and
Exercise 243 Further problems on half- (b) the half-range Fourier cosine series for the
range Fourier series function f (x) = sin2 x in the range 0 ≤ x ≤ π.
Sketch the function within and outside of the
1. Determine the half-range sine series for the given range.
function defined by: ⎡ ⎤
⎧ π 8 sin x sin 3x
⎨ x, 0 < x < ⎢ (a) f (x) = π (1)(3) − (1)(3)(5) ⎥
f (x) = 2 ⎢ ⎥
⎩ 0, π < x < π ⎢ ⎥
⎢ sin 5x ⎥
2 ⎢ − ⎥
⎢ (3)(5)(7) ⎥
⎡ ⎤ ⎢ ⎥
2 ⎢ sin 7x ⎥
f (x) =
π
sin x + sin 2x ⎢ − − · · · ⎥
⎢ ⎥ ⎢ ⎥
⎢ π 4 ⎥ ⎢ (5)(7)(9) ⎥
⎢ 1 ⎥ ⎣ 1 ⎦
⎢ − sin 3x ⎥ (b) f (x) = (1 − cos 2x)
⎢ 9 ⎥ 2
⎣ π ⎦
− sin 4x + · · · 4. Determine the half-range Fourier cosine
8 series in the range x = 0 to x = π for the
2. Obtain (a) the half-range cosine series and function defined by:
(b) the half-range sine series for the function ⎧ π
⎪
⎪
⎧ ⎨ x, 0<x<
2
⎪
⎨ 0,
π f (x) = π
0<t< ⎪
f (t) = 2 ⎩ (π − x), 2 < x < π
⎪
⎪ π
⎩ 1, <t<π
2 ⎡ ⎤
⎡ ⎤ f (x) =
π
−
2
cos 2x
(a) f (t) =
1
−
2 ⎢ 4 π ⎥
⎢
cos t
⎥ ⎢ ⎥
⎢ 2 π ⎥ ⎢ cos 6x ⎥
⎢ 1 ⎥ ⎢ + ⎥
⎢ − cos 3t ⎥ ⎢ 32 ⎥
⎢ ⎥ ⎢ ⎥
⎣
3 ⎦ ⎣ cos 10x ⎦
1 + + · · ·
+ cos 5t − · · · 52
5
L
Fourier series
72
Fourier series over any range
series expressed in terms of x is given by:
72.1 Expansion of a periodic function
of period L
8
∞ 2πnx
f (x) = a0 + an cos
(a) A periodic function f (x) of period L n=1 L
repeats itself when x increases by L, i.e.
2πnx
f (x + L) = f (x). The change from functions + bn sin
dealt with previously having period 2π to func- L
tions having period L is not difficult since it may
be achieved by a change of variable.
L L
where, in the range − to + :
(b) To find a Fourier series for a function f (x) in 2 2
L L
the range − ≤ x ≤ a new variable u is intro- L
2 2 1 2
duced such that f (x), as a function of u, has a0 = f (x) dx,
2πx L L −L
period 2π. If u = then, when x = − , 2
L 2 L
L 2 2 2πnx
u = −π and when x = , u = +π. Also, let an = f (x) cos dx
2 L −L L
Lu 2
f (x) = f = F(u). The Fourier series for L
2π 2 2 2πnx
F(u) is given by: and bn = f (x) sin dx
L −L
2
L
∞
9
F(u) = a0 + (an cos nu + bn sin nu), The limits of integration may be replaced by any
n=1 interval of length L, such as from 0 to L.
π
1
where a0 = F(u) du,
2π −π Problem 1. The voltage from a square wave
generator is of the form:
1 π
an = F(u) cos nu du 3
π −π 0, −4 < t < 0
v(t) =
10, 0 < t < 4
1 π
and bn = F(u) sin nu du and has a period of 8 ms.
π −π
Find the Fourier series for this periodic function.
(c) It is however more usual to change the formula
2πx
of para. (b) to terms of x. Since u = , then
L
The square wave is shown in Fig. 72.1. From para.
2π (c), the Fourier series is of the form:
du = dx,
L
L L ∞
9
and the limits of integration are − to + 2πnt 2πnt
2 2 v(t) = a0 + an cos + bn sin
instead of from −π to +π. Hence the Fourier L L
n=1
FOURIER SERIES OVER ANY RANGE 677
−1 1 2
1 f(t)
= 0 dx + 5 dx + 0 dx f(t ) = t
4 −2 −1 1
1 1 10 5
= [5x]1−1 = [(5) − (−5)] = =
4 4 4 2 −3 0 3 6 t
L
2 2 2πnx Period L = 3
an = f (x) cos dx
L −L L
2
Figure 72.3
2 2 2πnx
= f (x) cos dx
4 −2 4 it is periodic of period 3, as shown by the broken
−1
1 πnx lines in Fig. 72.3. From para. (c), the Fourier series
= 0 cos dx is given by:
2 −2 2
1
πnx ∞
9
+ 5 cos dx 2πnt
−1 2 f (t) = a0 + an cos
2 n=1
L
πnx
+ 0 cos dx
2 2πnt
⎡
1 + bn sin
πnx ⎤1 L
sin
5⎢ 2 ⎥ L
= ⎣ πn ⎦ 1 2 1 L
2 a0 = f (t) dx = f (t) dx
2 −1
L −L L 0
2
5 πn −πn 3 3
= sin − sin 1 1 t2 3
πn 2 2 = t dt = =
3 0 3 2 0 2
When n is even, an = 0 L
When n is odd, 2 2 2πnt
an = f (t) cos dt
L 2 −L L
5 10
a1 = (1 − (−1)) =
π π 2 L 2πnt
= t cos dt
5 −10 L 0 L
a3 = (−1 − 1) =
3π 3π
2 3 2πnt
a5 =
5
(1 − (−1)) =
10
and so on. = t cos dt
5π 5π 3 0 3
⎡ ⎤3
Hence the Fourier series for the function f (x) is 2πnt 2πnt
2⎢ ⎥
given by: t sin cos
⎢ 3 3 ⎥
= ⎢ + 2 ⎥
5 10 πx 1 3πx 3⎣ 2πn 2πn ⎦
f (x) = + cos − cos 3
2 π 2 3 2 3 0
by parts
1 5πx 1 7πx ⎡⎧ ⎫
+ cos − cos + ··· ⎪
⎪ ⎪
⎪
5 2 7 2 ⎪ ⎪
2⎢⎢
⎨ 3 sin 2πn cos 2πn ⎬
= ⎢ +
3 ⎣⎪⎪ 2πn 2πn 2 ⎪ ⎪
⎪
⎩ ⎪
⎭
Problem 3. Determine the Fourier series for 3 3
the function f (t) = t in the range t = 0 to t = 3. ⎧ ⎫⎤
⎪
⎪ ⎪
⎪
⎪
⎨ ⎪
cos 0 ⎬⎥ ⎥
The function f (t) = t in the interval 0 to 3 is shown − 0+ 2 ⎪⎥ = 0
⎪
⎪ 2πn ⎪ ⎦
in Fig. 72.3. Although the function is not periodic ⎪
⎩ ⎪
⎭
it may be constructed outside of this range so that 3
FOURIER SERIES OVER ANY RANGE 679
L
2 2 2πnt and is periodic of period 20. Show that the
bn = f (t) sin dt Fourier series for the function is given by:
L −L
2
L
2 L 2πnt 5 10 πt 1 3πt
= t sin dt v(t) = + sin + sin
L 0 L 2 π 10 3 10
2 3 2πnt 1 5πt
= t sin dt + sin + ···
3 0 3 5 10
⎡ ⎤3
2πnt 2πnt 2. Find the Fourier series for f (x) = x in the
−t cos range x = 0 to x = 5.
2⎢ ⎥
sin
⎢ 3 3 ⎥
= ⎢ + 2 ⎥ ⎡ ⎤
3⎣ 2πn 2πn ⎦ 5 5 2πx
3 ⎢ f (x) = 2 − π sin 5 ⎥
3 0 ⎢ ⎥
⎢ ⎥
by parts ⎢ 1 4πx ⎥
⎡⎧ ⎫ ⎢ + sin ⎥
⎪ ⎪ ⎢ 2 5 ⎥
⎪
⎪ ⎪
⎪ ⎢ ⎥
⎢ ⎨
2 ⎢ −3 cos 2πn sin 2πn ⎬ ⎣ 1 6πx ⎦
= ⎢ + + sin + ···
3 5
3 ⎣⎪⎪ 2πn 2πn 2 ⎪
⎪
⎪
⎩ ⎪
⎭
3 3 3. A periodic function of period 4 is defined by:
⎧ ⎫⎤
⎪
⎪ ⎪
⎪ −3, −2 < x < 0
⎪
⎨ ⎪ f (x) =
sin 0 ⎬⎥ ⎥ +3, 0<x<2
− 0+ 2 ⎪⎥
⎪
⎪ 2πn ⎪ ⎦ Sketch the function and obtain the Fourier
⎪
⎩ ⎪
⎭ series for the function.
3
⎡ ⎤ ⎡ ⎤
12 πx
2⎢ cos 2πn ⎥ ⎢ f (x) = π sin 2 ⎥
= ⎢ −3
⎥
−3 −3 ⎢ ⎥
3⎣ 2πn ⎦ = πn cos 2πn = πn ⎢
⎢ 1 3πx ⎥
⎥
⎢ + sin ⎥
3 ⎢ 3 2 ⎥
⎢ ⎥
⎣ 1 5πx ⎦
−3 −3 −3 + sin + ···
Hence b1 = , b2 = , b3 = and so on. 5 2
π 2π 3π
Thus the Fourier series for the function f (t) in the 4. Determine the Fourier series for the half
range 0 to 3 is given by: wave rectified sinusoidal voltage V sin ωt
defined by:
3 3 2πt 1 4πt ⎧ π
f (t) = − sin + sin ⎪
⎨ V sin ωt, 0 < t <
2 π 3 2 3 ω
f (t) =
1 6πt ⎪
⎩ π 2π
+ sin + ··· 0, <t<
3 3 ω ω
2π
Now try the following exercise. which is periodic of period
ω
⎡ ⎤
V V
Exercise 244 Further problems on Fourier ⎢ f (t) = + sin ωt ⎥
⎢ π 2 ⎥
series over any range L ⎢ ⎥
⎢ 2V cos 2ωt ⎥
1. The voltage from a square wave generator is ⎢ − ⎥
⎢ π (1)(3) ⎥
of the form:
⎢ ⎥
⎣ cos 4ωt cos 6ωt ⎦ L
0, −10 < t < 0 + + + ···
v(t) = 5, 0 < t < 10 (3)(5) (5)(7)
680 FOURIER SERIES
f(x)
72.2 Half-range Fourier series for f(x) = x
functions defined over range L 2
πx
(a) By making the substitution u = (see −4 −2 0 2 4 6 x
L
Section 72.1), the range x = 0 to x = L corre-
sponds to the range u = 0 to u = π. Hence a Figure 72.4
function may be expanded in a series of either L
cosine terms or sine terms only, i.e. a half-range 1 1 2
a0 = f (x) dx = x dx
Fourier series. L 0 2 0
(b) A half-range cosine series in the range 0 to L 2
1 x2
can be expanded as: = =1
2 2 0
∞
9 2 L nπx
nπx an = f (x) cos dx
f (x) = a0 + an cos L 0 L
L
n=1
2 2 nπx
1 L = x cos dx
a0 = f (x) dx and 2 0 2
where ⎡ nπx ⎤2
L 0
nπx
L ⎢
x sin
2
cos
2 ⎥
2 nπx =⎣ +
an = f (x) cos dx nπ nπ 2 ⎦
L 0 L
2 2 0
⎡⎛ ⎞
(c) A half-range sine series in the range 0 to L can
⎢⎜ 2 sin nπ cos nπ ⎟
= ⎣⎝ nπ +
nπ 2 ⎠
be expanded as:
2 2
∞
9 ⎛ ⎞⎤
nπx
f (x) = bn sin ⎜ cos 0 ⎟⎥
L − ⎝0 +
n=1 nπ 2 ⎠⎦
L
2 nπx 2
where bn = f (x) sin dx ⎡ ⎤
L 0 L
⎢ cos nπ 1 ⎥
=⎣ −
nπ 2 nπ 2 ⎦
Problem 4. Determine the half-range Fourier 2 2
2
cosine series for the function f (x) = x in the 2
range 0 ≤ x ≤ 2. Sketch the function within and = (cos nπ − 1)
πn
outside of the given range.
When n is even, an = 0
−8 −8 −8
A half-range Fourier cosine series indicates an even a1 = 2 , a3 = 2 2 , a5 = 2 2 and so on.
π π 3 π 5
function. Thus the graph of f (x) = x in the range 0
to 2 is shown in Fig. 72.4 and is extended outside Hence the half-range Fourier cosine series for f (x)
of this range so as to be symmetrical about the f (x) in the range 0 to 2 is given by:
axis as shown by the broken lines.
8 πx 1 3πx
From para. (b), for a half-range cosine series: f (x) = 1 − 2 cos + 2 cos
π 2 3 2
∞
9 1 5πx
nπx + 2 cos + ···
f (x) = a0 + an cos 5 2
L
n=1
FOURIER SERIES OVER ANY RANGE 681
−4 4
Problem 5. Find the half-range Fourier sine Hence b1 = (−1) =
series for the function f (x) = x in the range π π
0 ≤ x ≤ 2. Sketch the function within and outside −4 −4
of the given range. b2 = (1) =
2π 2π
−4 4
A half-range Fourier sine series indicates an odd b3 = (−1) = and so on.
function. Thus the graph of f (x) = x in the range 0 3π 3π
to 2 is shown in Fig. 72.5 and is extended outside of Thus the half-range Fourier sine series in the range
this range so as to be symmetrical about the origin, 0 to 2 is given by:
as shown by the broken lines.
4 πx 1 2πx
f (x) = sin − sin
π 2 2 2
f(x)
f(x) = x 1 3πx 1 4πx
2
+ sin − sin +···
3 2 4 2
−4 −2 0 2 4 6 x
Now try the following exercise.
−2
Exercise 245 Further problems on half-
Figure 72.5 range Fourier series over range L
1. Determine the half-range Fourier cosine
From para. (c), for a half-range sine series: series for the function f (x) = x in the range
0 ≤ x ≤ 3. Sketch the function within and
∞
outside of the given range.
9 nπx
f (x) = bn sin ⎡ ⎤
L 3 12 πx
n=1 ⎢ f (x) = 2 − π2 cos 3 ⎥
⎢ ⎥
L ⎢ ⎥
bn =
2 nπx ⎢ 1 3πx ⎥
f (x) sin dx ⎢ + 2 cos ⎥
L L ⎢ ⎥
0
⎢ 3 3 ⎥
2
⎣ 1 5πx ⎦
2 nπx + 2 cos + ···
= x sin dx 5 3
2 0 L
⎡ nπx nπx ⎤2 2. Find the half-range Fourier sine series
−x cos sin for the function f (x) = x in the range
⎢ 2 2 ⎥ 0 ≤ x ≤ 3. Sketch the function within and
=⎣ +
nπ nπ 2 ⎦ outside of the given range.
2 2 0 ⎡ ⎤
⎡⎛ ⎞ 6 πx 1 2πx
⎢ f (x) = π sin 3 − 2 sin 3 ⎥
⎢⎜ −2 cos nπ sin nπ ⎟ ⎢ ⎥
= ⎣⎝ + ⎢ ⎥
nπ 2 ⎠
nπ ⎢ 1 3πx ⎥
⎢ + sin ⎥
2 ⎢ 3 3 ⎥
2 ⎣ ⎦
⎛ ⎞⎤ 1 4πx
− sin + ···
4 3
⎜ sin 0 ⎟⎥
− ⎝0 +
nπ 2 ⎠⎦ 3. Determine the half-range Fourier sine series
2 for the function defined by:
−2 cos nπ −4 :
= = cos nπ
t, 0 < t < 1
f (t) = (2 − t), 1 < t < 2 L
nπ nπ
2
682 FOURIER SERIES
⎡ ⎤
8 πt is given by:
⎢ f (t) = 2
sin ⎥
⎢ π 2 ⎥ 16 64 πθ
⎢ ⎥ f (θ) = − 2 cos
⎢ ⎥ 3 π 4
⎢ 1 3πt ⎥
⎢ − 2 sin ⎥
⎢ ⎥ 1 2πθ
⎢ 3 2 ⎥ − 2 cos
⎢ ⎥
⎢ ⎥ 2 4
⎣ 1 5πt ⎦
+ 2 sin − ··· 1 3πθ
5 2 + 2 cos − ···
3 4
4. Show that the half-range Fourier cosine series Sketch the function within and outside of the
given range.
for the function f (θ) = θ 2 in the range 0 to 4
Fourier series
73
A numerical method of harmonic
analysis
area
Mean value = y10
length of base
p
1 2π 9 19
p
Voltage (volts)
80
≈ yk ≈ yk 60
2π p p 40
k=1 k=1 y1
y9 y11 y12
y2
However, a0 = mean value of f (x) in the range 20
90 180
y8
0 to 2π 0 y7 270 360 θ degrees
−20
1 9
p
−40
y3 y4 y5 y6
Thus a0 ≈ yk (1)
p −60
k=1
−80
Similarly, an = twice the mean value of f (x) cos nx
in the range 0 to 2π,
Figure 73.2
29
p
thus an ≈ yk cos nxk (2) a greater accuracy are achieved. The data is tabulated
p in the proforma shown in Table 73.1, on page 685.
k=1
and bn = twice the mean value of f (x) sin nx in the 1 8p 1
From equation (1), a0 ≈ yk = (212)
range 0 to 2π, p k=1 12
= 17.67 (since p = 12)
29
p
thus bn ≈ yk sin nxk (3) 2 8 p
p From equation (2), an ≈ yk cos nxk
k=1 p k=1
2
Problem 1. The values of the voltage v volts at hence a1 ≈ (417.94) = 69.66
12
different moments in a cycle are given by:
2
θ ◦ (degrees) V (volts) a2 ≈ (−39) = −6.50
12
30 62 2
60 35 and a3 ≈ (−49) = −8.17
90 −38 12
120 −64 2 8 p
150 −63 From equation (3), bn ≈ yk sin nxk
180 −52 p k=1
210 −28 2
240 24 hence b1 ≈ (−278.53) = −46.42
12
270 80
300 96 2
b2 ≈ (29.43) = 4.91
330 90 12
360 70 2
and b3 ≈ (55) = 9.17
Draw the graph of voltage V against angle θ and 12
analyse the voltage into its first three constituent
harmonics, each coefficient correct to 2 decimal Substituting these values into the Fourier series:
places. ∞
9
f (x) = a0 + (an cos nx + bn sin nx)
The graph of voltage V against angle θ is shown in n=1
Fig. 73.2. The range 0 to 2π is divided into 12 equal
2π π
intervals giving an interval width of , i.e. rad gives: v = 17.67 + 69.66 cos θ − 6.50 cos 2θ
◦
12 6
or 30 . The values of the ordinates y1 , y2 , y3 , . . . are − 8.17 cos 3θ + · · · − 46.42 sin θ
62, 35, −38, . . . from the given table of values. If a
larger number of intervals are used, results having + 4.91 sin 2θ + 9.17 sin 3θ + · · · (4)
Table 73.1
Ordin
ates θ◦ V cos θ V cos θ sin θ V sin θ cos 2θ V cos 2θ sin 2θ V sin 2θ cos 3θ V cos 3θ sin 3θ V sin 3θ
y1 30 62 0.866 53.69 0.5 31 0.5 31 0.866 53.69 0 0 1 62
y2 60 35 0.5 17.5 0.866 30.31 −0.5 −17.5 0.866 30.31 −1 −35 0 0
y3 90 −38 0 0 1 −38 −1 38 0 0 0 0 −1 38
y4 120 −64 −0.5 32 0.866 −55.42 −0.5 32 −0.866 55.42 1 −64 0 0
y5 150 −63 −0.866 54.56 0.5 −31.5 0.5 −31.5 −0.866 54.56 0 0 1 −63
y6 180 −52 −1 52 0 0 1 −52 0 0 −1 52 0 0
y7 210 −28 −0.866 24.25 −0.5 14 0.5 −14 0.866 −24.25 0 0 −1 28
y8 240 24 −0.5 −12 −0.866 −20.78 −0.5 −12 0.866 20.78 1 24 0 0
y9 270 80 0 0 −1 −80 −1 −80 0 0 0 0 1 80
y10 300 96 0.5 48 −0.866 −83.14 −0.5 −48 −0.866 −83.14 −1 −96 0 0
y11 330 90 0.866 77.94 −0.5 −45 0.5 45 −0.866 −77.94 0 0 −1 −90
y12 360 70 1 70 0 0 1 70 0 0 1 70 0 0
8
12 8
12 8
12 8
12 8
12 8
12 8
12
yk = (212) yk cos θk yk sin θk yk cos 2θk yk sin 2θk yk cos 3θk yk sin 3θk
k=1 k=1 k=1 k=1 k=1 k=1 k=1
= 417.94 = −278.53 = −39 = 29.43 = −49 = 55
L
686 FOURIER SERIES
Note that in equation (4), (−46.42 sin θ + 69.66 cos θ) 1. Angle θ ◦ 30 60 90 120 150 180
comprises the fundamental, (4.91 sin 2θ − 6.50 cos 2θ) Displacement y 40 43 38 30 23 17
comprises the second harmonic and (9.17 sin 3θ − Angle θ ◦ 210 240 270 300 330 360
8.17 cos 3θ) comprises the third harmonic. Displacement y 11 9 10 13 21 32
It is shown in Chapter 18 that: ⎡ ⎤
y = 23.92 + 7.81 cos θ + 14.61 sin θ
a sin ω t + b cos ω t = R sin(ω t + α) ⎣ ⎦
√ + 0.17 cos 2θ + 2.31 sin 2θ
where a = R cos α, b = R sin α, R = a2 + b2 and − 0.33 cos 3θ + 0.50 sin 3θ
b
α = tan−1 . 2. Angle θ ◦ 0 30 60 90 120 150
a
Voltage v −5.0 −1.5 6.0 12.5 16.0 16.5
For the fundamental, R = (−46.42)2 + (69.66)2
Angle θ ◦ 180 210 240 270 300 330
= 83.71 Voltage v 15.0 12.5 6.5 −4.0 −7.0 −7.5
a −46.42 ⎡ ⎤
If a = R cos α, then cos α = = v = 5.00 − 10.78 cos θ + 6.83 sin θ
R 83.71
which is negative, ⎣ − 1.96 cos 2θ + 0.80 sin 2θ ⎦
+ 0.58 cos 3θ − 1.08 sin 3θ
b 69.66
and if b = R sin α, then sin α = = 3. Angle θ ◦ 30 60 90 120 150 180
R 83.71
Current i 0 −1.4 −1.8 −1.9 −1.8 −1.3
which is positive. ◦
Angle θ 210 240 270 300 330 360
The only quadrant where cos α is negative and sin α Current i 0 2.2 3.8 3.9 3.5 2.5
is positive is the second quadrant. ⎡ ⎤
b 69.66 i = 0.64 + 1.58 cos θ − 2.73 sin θ
Hence α = tan−1 = tan−1 ⎣ − 0.23 cos 2θ − 0.42 sin 2θ ⎦
a −46.42
= 123.68◦ or 2.16 rad + 0.27 cos 3θ + 0.05 sin 3θ
Thus (−46.42 sin θ + 69.66 cos θ )
= 83.71 sin (θ + 2.16)
By a similar method it may be shown that the second 73.3 Complex waveform
harmonic considerations
(4.91 sin 2θ − 6.50 cos 2θ) = 8.15 sin (2θ − 0.92)
It is sometimes possible to predict the harmonic
and the third harmonic content of a waveform on inspection of particular
(9.17 sin 3θ − 8.17 cos 3θ) = 12.28 sin (3θ − 0.73) waveform characteristics.
Hence equation (4) may be re-written as: (i) If a periodic waveform is such that the area
above the horizontal axis is equal to the area
v = 17.67 + 83.71 sin(θ + 2.16) below then the mean value is zero. Hence a0 = 0
+ 8.15 sin(2θ − 0.92) (see Fig. 73.3(a)).
+ 12.28 sin(3θ − 0.73) volts (ii) An even function is symmetrical about the
which is the form used in Chapter 15 with complex vertical axis and contains no sine terms (see
waveforms. Fig. 73.3(b)).
(iii) An odd function is symmetrical about the
Now try the following exercise. origin and contains no cosine terms (see
Fig. 73.3(c)).
Exercise 246 Further problems on numeri- (iv) f (x) = f (x + π) represents a waveform which
cal harmonic analysis repeats after half a cycle and only even
Determine the Fourier series to represent the harmonics are present (see Fig. 73.3(d)).
periodic functions given by the tables of val- (v) f (x) = − f (x + π) represents a waveform for
ues in Problems 1 to 3, up to and including the which the positive and negative cycles are
third harmonic and each coefficient correct to 2 identical in shape and only odd harmonics are
decimal places. Use 12 ordinates in each case. present (see Fig. 73.3(e)).
A NUMERICAL METHOD OF HARMONIC ANALYSIS 687
f(x)
Problem 3. An alternating current i amperes is
shown in Fig. 73.5. Analyse the waveform into
its constituent harmonics as far as and including
−π 0 π 2π x
the fifth harmonic, correct to 2 decimal places,
by taking 30◦ intervals.
(e) Contains only odd harmonics
Figure 73.3
10
i
5 y5
−180 −120 −60 y1 y2 y3 y4 180 240 300 θ°
Problem 2. Without calculating Fourier coef-
−150 −90 −30 0 30 60 90 120 150 210 270 330 360
ficients state which harmonics will be present in y7 y8 y9
y11
the waveforms shown in Fig. 73.4. −5 y10
f (x) −10
2
Figure 73.5
−π 0 π 2π x
With reference to Fig. 73.5, the following character-
−2
(a) istics are noted:
f (x) (i) The mean value is zero since the area
5 above the θ axis is equal to the area below
it. Thus the constant term, or d.c. component,
a0 = 0.
−π 0 π 2π x
(b) (ii) Since the waveform is symmetrical about the
origin the function i is odd, which means that
Figure 73.4 there are no cosine terms present in the Fourier
series.
(a) The waveform shown in Fig. 73.4(a) is sym- (iii) The waveform is of the form f (θ) = − f (θ + π)
metrical about the origin and is thus an odd which means that only odd harmonics are
function. An odd function contains no cosine present.
terms. Also, the waveform has the characteristic L
f (x) = −f (x + π), i.e. the positive and negative Investigating waveform characteristics has thus
half cycles are identical in shape. Only odd saved unnecessary calculations and in this case the
688 FOURIER SERIES
Table 73.2
Ordinate θ i sin θ i sin θ sin 3θ i sin 3θ sin 5θ i sin 5θ
y1 30 2 0.5 1 1 2 0.5 1
y2 60 7 0.866 6.06 0 0 −0.866 −6.06
y3 90 10 1 10 −1 −10 1 10
y4 120 7 0.866 6.06 0 0 −0.866 −6.06
y5 150 2 0.5 1 1 2 0.5 1
y6 180 0 0 0 0 0 0 0
y7 210 −2 −0.5 1 −1 2 −0.5 1
y8 240 −7 −0.866 6.06 0 0 0.866 −6.06
y9 270 −10 −1 10 1 −10 −1 10
y10 300 −7 −0.866 6.06 0 0 0.866 −6.06
y11 330 −2 −0.5 1 −1 2 −0.5 1
y12 360 0 0 0 0 0 0 0
8
12 8
12 8
12
yk sin θk = 48.24 yk sin 3θk = −12 yk sin 5θk = −0.24
k=1 k=1 k=1
Fourier series has only odd sine terms present, i.e. (a) only odd cosine terms present
i = b1 sin θ + b3 sin 3θ + b5 sin 5θ + · · · (b) only even sine terms present
A proforma, similar to Table 73.1, but without
the ‘cosine terms’ columns and without the ‘even f (t )
sine terms’ columns is shown in Table 73.2 up to, 4
and including, the fifth harmonic, from which the
Fourier coefficients b1 , b3 and b5 can be determined.
Twelve co-ordinates are chosen and labelled y1 , y2 ,
y3 , . . . y12 as shown in Fig. 73.5. −2π−π 0 π 2π 4π t
y
100
80
60
40
20
Figure 73.8
3. For the waveform of current shown in
Fig. 73.7(b) state why only a d.c. compo- ⎡ ⎤
nent and even cosine terms will appear in the y = 1.83 − 27.77 cos θ + 83.74 sin θ
Fourier series and determine the series, using ⎣ − 0.75 cos 2θ − 1.59 sin 2θ ⎦
π/6 rad intervals, up to and including the sixth + 16.00 cos 3θ + 11.00 sin 3θ
harmonic.
L
Fourier series
74
The complex or exponential form of
a Fourier series
may be written as:
74.1 Introduction ∞
9 ej
2πnx
L + e−j
2πnx
L
∞
9 ej
2πnx
L + e−j
2πnx
L
f (x) = a0 + an
2
74.2 Exponential or complex notation n=1
2πnx 2πnx
ej L − e−j L
It was shown on page 264, equations (4) and (5) that: − jbn
2
Since e0 = 1, the c0 term can be absorbed into the From equations (3) and (4),
summation since it is just another term to be added L 2πnx 2πnx
to the summation of the cn term when n = 0. Thus, 1 2 e j L + e−j L
cn = f (x) dx
∞ ∞ L − L2 2
9 9 2πnx
j 2πnx 2πnx
f (x) = cn e + c−n e−j (10) L 2πnx
ej L − e−j L
L L
1 2
n=0 n=1 −j f (x) dx
L − L2 2j
The c−n term may be rewritten by changing the limits
n = 1 to n = ∞ to n = −1 to n = −∞. Since n has from which,
been made negative, the exponential term becomes L 2πnx 2πnx
2πnx 1 2 e j L + e−j L
e j L and c−n becomes cn . Thus, cn = f (x) dx
L − L2 2
∞
9 −∞
9 L 2πnx 2πnx
j 2πnx e j L − e−j L
2πnx
f (x) = cn e L + cn e j L 1 2
− f (x) dx
n=0 n=−1 L − L2 2
Since the summations now extend from −∞ to −1
and from 0 to +∞, equation (10) may be written as:
L
1 2 2πnx
i.e. cn = f (x) e−j L dx (12)
∞
9 L − L2
j 2πnx
f (x) = cn e L (11)
n=−∞ Care needs to be taken when determining c0 . If n
appears in the denominator of an expression the
Equation (11) is the complex or exponential form expansion can be invalid when n = 0. In such cir-
of the Fourier series. cumstances it is usually simpler to evaluate c0 by
using the relationship:
L
74.3 The complex coefficients 1 2
c0 = a0 = f (x)dx (from page 676). (13)
L − L2
From equation (7), the complex coefficient cn was
an − jbn
defined as: cn =
2 Problem 1. Determine the complex Fourier
However, an and bn are defined (from page 630) by: series for the function defined by:
3
2
L
2 2πnx 0, when −2 ≤ x ≤ −1
an = f (x) cos dx and f (x) = 5, when −1 ≤ x ≤1
L − L2 L 0, when 1 ≤ x ≤ 2
L The function is periodic outside this range of
2 2 2πnx
bn = f (x) sin dx period 4.
L − L2 L
⎛ L 2πnx ⎞
2 2
⎜ L −2 L f (x) cos L dx ⎟ This is the same Problem as Problem 2 on page 677
⎝ L 2πnx ⎠ and we can use this to demonstrate that the two forms
− j L L f (x) sin L dx
2 2
of Fourier series are equivalent.
−2
Thus, cn = The function f (x) is shown in Figure 74.1, where
2 the period, L = 4.
L
1 2 2πnx From equation (11), the complex Fourier series is
= f (x) cos dx given by:
L − L2 L
L ∞
9 L
1 2 2πnx 2πnx
−j f (x) sin dx f (x) = cn e j L
L − L2 L n=−∞
692 FOURIER SERIES
f(x) 5 πn
Since cn = sin , then
5 πn 2
5 π 5
c1 = sin =
π 2 π
−5 −4 −3 −2 −1 0 1 2 3 4 5 x 5
c2 = sin π = 0
2π
L=4
(in fact, all even terms will be zero since
Figure 74.1
sin nπ = 0)
where cn is given by:
5 πn 5 3π 5
c3 = sin = sin =−
1
L
2 2πnx
πn 2 3π 2 3π
cn = f (x) e−j L dx (from equation 12).
L − L2 By similar substitution,
With reference to Figure 74.1, when L = 4, 5 5
c5 = c7 = − , and so on.
5π 7π
−1 1 2
1 −j 2πnx Similarly,
cn = 0 dx + 5e 4 dx + 0 dx
4 −2 −1 1
5 −π 5
jπnx 1 c−1 = sin =
1 1
− jπnx 5 e− 2 −π 2 π
= 5e 2 dx =
4 −1 4 − jπn
2 −1 5 −2π
c−2 = − sin = 0 = c−4 = c−6 , and so on.
−5 − jπnx 1 −5 jπn jπn
2π 2
= e 2 = e− 2 − e 2 5 −3π 5
j2πn −1 j2πn c−3 = − sin =−
πn 3π 2 3π
5 e j 2 − e−j 2
πn
= 5 −5π 5
πn 2j c−5 =− sin = , and so on.
5π 2 5π
5 πn
= sin (from equation (4)). Hence, the extended complex form of the Fourier
πn 2 series shown in equation (14) becomes:
Hence, from equation (11), the complex form of the
Fourier series is given by: 5 5 πx 5 j 3πx 5 j 5πx
f (x) = + ej 2 − e 2 + e 2
∞ ∞
2 π 3π 5π
9 9 5 πn j πnx
j 2πnx 5 j 7πx 5
f (x) = cn e L = sin e 2 − e 2 + · · · + e−j 2
πx
n=−∞ n=−∞
πn 2 7π π
(14) 5 −j 3πx 5 −j 5πx
− e 2 + e 2
3π 5π
Let us show how this result is equivalent to the
5 −j 7πx
result involving sine and cosine terms determined − e 2 + ···
on page 678. 7π
From equation (13), 5 5
+ e−j
πx πx
= + ej 2 2
L 1
2 π
1 2 1
c0 = a0 = f (x)dx = 5 dx −
5 3πx 3πx
e j 2 + e−j 2
L − L2 4 −1 3π
5 5 5 5 5πx 5πx
= 1
[x]−1 = [1 − (−1)] = + e 2 + e−j 2 − · · ·
4 4 2 5π
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 693
πx
e j 2 + e−j 2
πx
5 5 f (t ) f (t ) = t
= + (2)
2 π 2
3πx 3πx
5 e j 2 + e−j 2
− (2)
3π 2
5πx 5πx
−1 0 1 2 t
5 e j 2 + e−j 2
+ (2) − ···
5π 2 Period L = 1
5 10 πx 10 3πx Figure 74.2
= + cos − cos
2 π 2 3π 2
and when the period, L = 1, then:
10 5πx
+ cos − ···
5π 2 ∞
9
(from equation (3)) f (t) = cn e j2πnt
n=−∞
5 10 πx 1 3πx
i.e. f (x) = + cos − cos where, from equation (12),
2 π 2 3 2
L L
1 5πx 1 2 2πnt 1 2πnt
+ cos −··· cn = f (t) e−j L dt = f (t) e−j L dt
5 2 L − L2 L 0
which is the same as obtained on page 678. and when L = 1 and f (t) = t, then:
∞
9 5 nπ j πnx 1 1
1 2πnt
Hence,
πn
sin
2
e 2 is equivalent to cn = t e−j 1 dt = t e−j2πnt dt
n=−∞ 1 0 0
L
2. Show that the complex Fourier series for the 4 2 2πnx
waveform shown in Figure 74.3, that has = f (x) cos dx
L 0 L
period 2, may be represented by:
∞
9 An odd function is symmetrical about the origin and
j2
f (t) = 2 + (cos nπ − 1) e jπnt contains no cosine terms, a0 = an = 0.
πn
n=−∞ For odd symmetry,
(n =0)
L
2 2πnx
f(t ) bn = f (x) sin dx
L 0 L
4 L
4 2 2πnx
= f (x) sin dx
L 0 L
an − jbn
−1 0 1 2 t From equation (7), page 690, cn =
2
Thus, for even symmetry, bn = 0 and
Period L = 2
L
an 2 2 2πnx
Figure 74.3 cn = = f (x) cos dx (15)
2 L 0 L
3. Show that the complex Fourier series of
Problem 2 is equivalent to: For odd symmetry, an = 0 and
8 1
f (t) = 2 + sin πt + sin 3πt −jbn 2
L
2 2πnx
π 3
cn = = −j f (x) sin dx (16)
1 2 L 0 L
+ sin 5πt + . . .
5 For example, in Problem 1 on page 691, the func-
4. Determine the exponential form of the tion f (x) is even, since the waveform is symmetrical
Fourier series for the function defined by: about the f (x) axis. Thus equation (15) could have
f (t) = e2t when −1 < t < 1 and has period 2. been used, giving:
∞
1 9 e(2−jπn) − e−(2−jπn) 2
L
2 2πnx
f (t) = e jπnt cn = f (x) cos dx
2 n=−∞ 2 − jπn L 0 L
2 2 2πnx
= f (x) cos dx
74.4 Symmetry relationships 4 0 4
1 2
If even or odd symmetry is noted in a function, then 1 πnx
= 5 cos dx + 0 dx
time can be saved in determining coefficients. 2 0 2 1
The Fourier coefficients present in the complex
⎡ πnx ⎤1
Fourier series form are affected by symmetry. Sum-
5⎢ sin
marising from previous chapters:
= 2 ⎥ =5 2 nπ
−0
An even function is symmetrical about the verti- ⎣ πn ⎦ sin
2 2 πn 2
cal axis and contains no sine terms, i.e. bn = 0. 2 0
For even symmetry,
5 nπ
L
= sin
1 πn 2
a0 = f (x)dx and
L 0 which is the same answer as in Problem 1; how-
2
L
2πnx
ever, a knowledge of even functions has produced L
an = f (x) cos dx the coefficient more quickly.
L 0 L
696 FOURIER SERIES
3 0 −jnx π 4
Problem 4. Obtain the Fourier series, in com- 1 −2e−jnx 2e
= +
plex form, for the square wave shown in 2π −jn −π −jn 0
Figure 74.4. :
1 2 −jnx 0 −jnx π ;
f(x ) = e −π
− e 0
2π jn
:
;
2
1 2 0
= e − e+jnπ − e−jnπ − e0
2π jn
−π 0 π 2π 3π x
1 1 2
= 1 − e jnπ − e−jnπ + 1
−2 jπn
jnπ
1 e + e−jnπ
= 2−2
Figure 74.4 jnπ 2
by rearranging
−jnπ
Method A 2 e jnπ + e
= 1−
jnπ 2
The square wave shown in Figure 74.4 is an odd
function since it is symmetrical about the origin. 2
= {1 − cos nπ} from equation (3)
The period of the waveform, L = 2π. jnπ
Thus, using equation (16): −j2
= {1 − cos nπ}
L −j( jnπ)
2 2πnx
2
cn = −j dx
f (x) sin by multiplying top and bottom by −j
0L L
2
π i.e. cn = −j (1 − cos nπ) (17)
2 2πnx nπ
= −j 2 sin dx
2π 0 2π It is clear that method A is by far the shorter of the
two methods.
2 π 2 −cos nx π From equation (11), the complex Fourier series is
= −j sin nx dx = −j
π 0 π n 0 given by:
2 ∞
9
= −j (−cos πn) − (−cos 0) f (x) = cn e j
2πnx
L
πn
n=−∞
2
i.e. cn = −j [1 − cosπn] (17) ∞
9 2
πn = −j (1 − cos nπ) e jnx (18)
n=−∞
nπ
Method B
2 j4 −j5x j4 −j7x
From equation (17) above, cn = −j (1 − cos nπ) + e + e + ···
nπ 5π 7π
When n = 1,
j4 j4
2 = − e jx + e−jx
c1 = −j (1 − cos π) π π
(1)π
j4 3x j4 −3x
2 j4 + − e + e
= −j 1 − (−1) = − 3π 3π
π π
When n = 2, j4 5x j4 −5x
+ − e + e + ···
2 5π 5π
c2 = −j (1 − cos 2π) = 0;
2π j4 jx j4 3x
in fact, all even values of cn will be zero. =− e − e−jx − e − e−3x
π 3π
When n = 3,
j4 5x
2 − e − e−5x + · · ·
c3 = −j (1 − cos 3π) 5π
3π
4 jx 4 3x
= −j
2
(1 − (−1)) = −
j4 = e − e−jx + e − e−3x
3π 3π jπ j3π
By similar reasoning, 4 5x
+ e − e−5x + · · ·
j4 j4 j5π
c5 = − , c7 = − , and so on.
5π 7π by multiplying top and bottom by j
When n = −1,
8 e jx − e−jx 8 e j3x − e−j3
2 = +
c−1 = −j (1 − cos(−π)) π 2j 3π 2j
(−1)π
2
= +j (1 − (−1)) = +
j4 8 e j5x − e−j5x
+ + ···
π π 5π 2j
When n = −3,
by rearranging
2
c−3 = −j (1 − cos(−3π)) 8 8 8
(−3)π = sin x + sin 3x + sin 5x + · · ·
π 3π 3x
2 j4
= +j (1 − (−1)) = + from equation (4), page 690
3π 3π
i.e.
By similar reasoning,
8 1 1
j4 j4 f (x) = sin x + sin 3x + sin 5x
c−5 = + , c−7 = + , and so on. π 3 5
5π 7π
1
Since the waveform is odd, c0 = a0 = 0. + sin 7x + · · ·
7
From equation (18) above,
Hence,
∞
9 2 ∞
9
f (x) = −j (1 − cos nπ) e jnx f (x) = −j
2
(1 − cos n π) e jnx
n=−∞
nπ nπ
n=−∞
Hence,
8 1 1
j4 jx j4 j3x j4 j5x ≡ sin x + sin 3x + sin 5x
f (x) = − e − e − e π 3 5
3π 5π
π 1 L
j4 j7x j4 j4 −j3x + sin 7x + · · ·
− e − · · · + e−jx + e 7
7π π 3π
698 FOURIER SERIES
9∞
j2 1
e−j
πnt
1
f (t) = cos nπ e jnt 1 −j 2πnt 20 5
n = 20e 10 dt = −jπn
n=−∞ 10 −1 10
5 −1
f(t)
20
−1 0 1 t
L = 10
Figure 74.5
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 699
20 5 Figures 74.6 to 74.8 together form the spectrum of
e−j 5 − e j 5
πn πn
= the waveform shown in Figure 74.5.
10 −jπn
− e−j
πn πn
20 ej 5 5
=
πn 2j 74.6 Phasors
20 nπ Electrical engineers in particular often need to anal-
i.e. cn = sin
πn 5 yse alternating current circuits, i.e. circuits con-
taining a sinusoidal input and resulting sinusoidal
from equation (4), page 690. currents and voltages within the circuit.
From equation (13), It was shown in chapter 15, page 157, that a
L 1
1 2 1 general sinusoidal voltage function can be repre-
c0 = f (x) dx = 20 dt sented by:
L − L2 10 −1
v = Vm sin (ωt + α) volts (19)
1 1
= [20t]1−1 = [20 − (−20)] = 4
10 10 where Vm is the maximum voltage or amplitude
of the voltage v, ω is the angular velocity (=2πf ,
20 π where f is the frequency), and α is the phase angle
c1 = sin = 3.74 and
π 5 compared with v = Vm sin ωt.
Similarly, a sinusoidal expression may also be
20 π expressed in terms of cosine as:
c−1 = − sin − = 3.74
π 5
Further values of cn and c−n , up to n = 10, are v = Vm cos(ωt + α) volts (20)
calculated and are shown in the following table.
It is quite complicated to add, subtract, multiply
and divide quantities in the time domain form of
n cn c−n equations (19) and (20). As an alternative method of
analysis a waveform representation called a phasor
0 4 4 is used. A phasor has two distinct parts—a mag-
1 3.74 3.74 nitude and an angle; for example, the polar form
2 3.03 3.03 of a complex number, say 5∠π/6, can represent a
3 2.02 2.02 phasor, where 5 is the magnitude or modulus, and
4 0.94 0.94 π/6 radians is the angle or argument. Also, it was
5 0 0 shown on page 264 that 5∠π/6 may be written as
6 −0.62 −0.62 5 e jπ/6 in exponential form.
7 −0.86 −0.86 In chapter 24, equation (4), page 264, it is shown
8 −0.76 −0.76 that:
9 −0.42 −0.42
10 0 0
e jθ = cos θ + j sin θ (21)
A graph of |cn | plotted against the number of the which is known as Euler’s formula.
harmonic, n, is shown in Figure 74.6. From equation (21),
Figure 74.7 shows the corresponding plot of cn
against n. e j(ωt+α) = cos(ωt + α) + j sin(ωt + α)
Since cn is real (i.e. no j terms) then the phase
must be either 0◦ or ±180◦ , depending on the sign
of the sine, as shown in Figure 74.8. and Vm e j(ωt+α) = Vm cos(ωt + α)
When cn is positive, i.e. between n = −4 and
n = +4, angle αn = 0◦ . + j Vm sin(ωt + α)
When cn is negative, then αn = ±180◦ ; between L
n = +6 and n = +9, αn is taken as +180◦ , and Thus a sinusoidal varying voltage such as in equa-
between n = −6 and n = −9, αn is taken as −180◦ . tion (19) or equation (20) can be considered to be
700 FOURIER SERIES
cn
4
−10 −9 −8 −7 −6 −5 −4 −3 −2 −1 0 1 2 3 4 5 6 7 8 9 10 n
Figure 74.6
cn
4
−10 −9 −8 −7 −6 6 7 8 9 10
−5 −4 −3 −2 −1 0 1 2 3 4 5 n
−1
Figure 74.7
an
180°
90°
−10 −9 −8 −7 −6
−5 −4 −3 −2 −1 0 1 2 3 4 5 6 7 8 9 10 n
−90°
−180°
Figure 74.8
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 701
either the real or the imaginary part of Vm e j(ωt+α) , From equation (11), page 691, the Fourier repre-
depending on whether the cosine or sine function is sentation of a waveform in complex form is:
being considered. 2πnt
Vm e j(ωt + α) may be rewritten as Vm e jωt e jα since cn e j L = cn e jωnt for positive values of n
a m+n = am × an from the laws of indices, page X. 2π
The e jωt term can be considered to arise from since ω =
L
the fact that a radius is rotated with an angu-
lar velocity ω, and α is the angle at which the
radius starts to rotate at time t = 0 (see Chapter 15, and cn e−jωnt for negative values of n.
page 157). It can thus be considered that these terms represent
Thus, Vm e jωt e jα defines a phasor. In a particular phasors, those with positives powers being phasors
circuit the angular velocity ω is the same for all the rotating with a positive angular velocity (i.e. anti-
elements thus the phasor can be adequately described clockwise), and those with negative powers being
by Vm ∠α, as suggested above. phasors rotating with a negative angular velocity (i.e.
Alternatively, if clockwise).
In the above equations,
v = Vm cos(ωt + α) volts
n = 0 represents a non-rotating component, since
1 jϑ e0 = 1,
and cos θ = e + e−jθ n = 1 represents a rotating component with angular
2
velocity of 1ω,
from equation (3), page 690 n = 2 represents a rotating component with angular
velocity of 2ω, and so on.
1 j(ωt+α) Thus we have a set of phasors, the algebraic sum of
then v = Vm e + e−j(ωt+α) which at some instant of time gives the magnitude
2 of the waveform at that time.
1 1
i.e. v= Vm e jωt e jα + Vm e−jωt e−jα
2 2
Problem 7. Determine the pair of phasors that
Thus, v is the sum of two phasors, each with half can be used to represent the following voltages:
the amplitude, with one having a positive value of (a) v = 8 cos 2t (b) v = 8 cos (2t − 1.5)
angular velocity (i.e. rotating anticlockwise) and a
positive value of α, and the other having a negative
value of angular velocity (i.e. rotating clockwise)
and a negative value of α, as shown in Figure 74.9.
1 1 (a) From equation (3), page 690,
The two phasors are Vm ∠α and Vm ∠−α.
2 2 1 jθ
cos θ = (e + e−jθ )
2
Hence,
Imaginary axis
1 j2t
ω v = 8 cos 2t = 8 e + e−j2t
2
m
V
1
2
α = 4e j2t + 4e−j2t
0 α Real axis
1
2 This represents a phasor of length 4 rotating anti-
Vm
Imaginary axis
Problem 8. Determine – the pair of phasors
that can be used to represent the third harmonic
ω = 2 rad/s v = 8 cos 3t − 20 sin 3t
0 2 4 Real axis
1 jt
ω = 2 rad/s Using cos t = e + e−jt
2
1 jt
and sin t = e − e−jt from page 690
Figure 74.10 2j
10
(4 + j10) = 42 + 102 ∠ tan−1
Imaginary axis
ω = 2 rad/s 4
= 10.77∠1.19
4 and (4 − j10)
1.5 rad
= 10.77∠−1.19
0 1.5 rad Real axis
L
Fourier series
Assignment 19
120 2.84
This assignment covers the material contained
in Chapters 69 to 74. 150 1.84
180 0.88
The marks for each question are shown in
brackets at the end of each question. 210 0.27
240 0.13
270 0.45
1. Obtain a Fourier series for the periodic function
f (x) defined as follows: 300 1.25
330 2.37
−1, when − π ≤ x ≤ 0 360 3.41
f (x) = 1, when 0≤x≤π
The function is periodic outside of this range with Sketch the waveform and construct a Fourier
period 2π. (13) series for the first three harmonics (23)
6. A rectangular waveform is shown in Figure
2. Obtain a Fourier series to represent f (t) = t in A19.1.
the range −π to +π. (13)
(a) State whether the waveform is an odd or even
3. Expand the function f (θ) = θ in the range function.
0 ≤ θ ≤ π into (a) a half range cosine series, and (b) Obtain the Fourier series for the waveform in
(b) a half range sine series. (18) complex form.
4. (a) Sketch the waveform defined by: (c) Show that the complex Fourier series in (b) is
equivalent to:
3
0, when −4 ≤ x ≤ −2 20 1 1
f (x) = 3, when −2 ≤ x ≤ 2 f (x) = sin x + sin 3x + sin 5x
0, when 2 ≤ x ≤ 4 π 3 5
1
+ sin 7x + · · ·
and is periodic outside of this range of period 8. 7
(18)
(b) State whether the waveform in (a) is odd,
even or neither odd nor even. f (x)
(c) Deduce the Fourier series for the function
defined in (a). (15) 5