You are on page 1of 48

Fourier series

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

(ii) a0 , an and bn are called the Fourier coefficients


of the series and if these can be determined, 69.4 Worked problems on Fourier
the series of equation (1) is called the Fourier series of periodic functions of
series corresponding to f (x). period 2π
(iii) An alternative way of writing the series is by
using the a cos x + b sin x = c sin(x + α) rela- Problem 1. Obtain a Fourier series for the
tionship introduced in Chapter 18, i.e. periodic function f (x) defined as:
f (x) = a0 + c1 sin(x + α1 ) + c2 sin(2x + α2 ) 
−k, when −π < x < 0
f (x) = +k, when 0 < x < π
+ · · · + cn sin(nx + αn ),

where a0 is a constant, The function is periodic outside of this range


* * with period 2π.
c1 = (a12 + b12 ), . . . cn = (an2 + bn2 )
are the amplitudes of the various components, The square wave function defined is shown in
and phase angle Fig. 69.3. Since f (x) is given by two different expres-
an sions in the two halves of the range the integration
αn = arctan is performed in two parts, one from −π to 0 and the
bn other from 0 to π.
(iv) For the series of equation (1): the term f(x)
(a1 cos x + b1 sin x) or c1 sin(x + α1 ) is called
the first harmonic or the fundamental, the k
term (a2 cos 2x + b2 sin 2x) or c2 sin(2x + α2 )
is called the second harmonic, and so on.
For an exact representation of a complex wave, an −π 0 π 2π x
infinite number of terms are, in general, required. In
many practical cases, however, it is sufficient to take −k
the first few terms only (see Problem 2).
The sum of a Fourier series at a point of dis-
continuity is given by the arithmetic mean of the Figure 69.3
two limiting values of f (x) as x approaches the point From Section 69.3(i):
of discontinuity from the two sides. For example,  π
for the waveform shown in Fig. 69.2, the sum of the 1
a0 = f (x) dx
Fourier series at the points of discontinuity (i.e. at 2π −π
π  0  π 
, π, . . . is given by: 1
2 = −k dx + k dx
2π −π 0
8 + (−3) 5 1 1
= or 2 = {[−kx]−π + [kx]0 } = 0
0 π
2 2 2 2π
[a0 is in fact the mean value of the waveform over
f(x) a complete period of 2π and this could have been
8 deduced on sight from Fig. 69.3.]
From Section 69.3(i):

1 π
an = f (x) cos nx dx
π −π
−π −π/2 0 π/2 π 3π/2 x  0  π 
1
−3
= −k cos nx dx + k cos nx dx
π −π 0
3 0   4
1 −k sin nx k sin nx π
= + =0
Figure 69.2 π n −π n 0
FOURIER SERIES FOR PERIODIC FUNCTIONS OF PERIOD 2π 659

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θ)

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θ − · · ·

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

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)

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

From Section 69.3(i),


70.2 Worked problems on Fourier
series of non-periodic functions  π
1
over a range of 2π a0 = f (x) dx
2π −π
 π  π
Problem 1. Determine the Fourier series to 1 2 x2
= 2x dx = =0
represent the function f (x) = 2x in the range 2π −π 2π 2 −π
−π to +π.  
1 π 1 π
an = f (x) cos nx dx = 2x cos nx dx
The function f (x) = 2x is not periodic. The function π −π π −π
is shown in the range −π to π in Fig. 70.2 and is   π
2 x sin nx sin nx
then constructed outside of that range so that it is = − dx L
periodic of period 2π (see broken lines) with the π n n −π
resulting saw-tooth waveform. by parts (see Chapter 43)
664 FOURIER SERIES
 
2 x sin nx cos nx π Thus, from the Fourier series of equation (1):
= +
π n n2 −π 
   π π 1 2π 1 3π
2 cos nπ cos n(−π) 2 = 4 sin − sin + sin
= 0+ − 0+ =0 2 2 2 2 3 2
π n2 n2 1 4π 1 5π
  − sin + sin
1 π 1 π 4 2 5 2
bn = f (x) sin nx dx = 2x sin nx dx 
π −π π −π 1 6π
 − sin + ···
   π 6 2
2 −x cos nx −cos nx  
= − dx 1 1 1
π n n −π π = 4 1 − 0 − − 0 + − 0 − − ···
3 5 7
by parts
 π π 1 1 1
2 −x cos nx sin nx i.e. = 1− + − +···
= + 4 3 5 7
π n n2 −π
 
2 −π cos nπ sin nπ Problem 3. Obtain a Fourier series for the
= + function defined by:
π n n2
  :
−(−π) cos n(−π) sin n(−π) x, when 0 < x < π
f (x) = 0, when π < x < 2π.
− +
n n2
 
2 −π cos nπ π cos (−nπ) −4
= − = cos nπ The defined function is shown in Fig. 70.3 between
π n n n 0 and 2π. The function is constructed outside of this
range so that it is periodic of period 2π, as shown by
4 4 the broken line in Fig. 70.3.
When n is odd, bn = . Thus b1 = 4, b3 = ,
n 3
4
b5 = , and so on. f(x) f (x) = x
5
−4 4 π
When n is even, bn = . Thus b2 = − ,
n 2
4 4
b4 = − , b6 = − , and so on. −2π −π 0 π 2π 3π x
4 6
4 4
Thus f (x) = 2x = 4 sin x −
sin 2x + sin 3x Figure 70.3
2 3
4 4 4
− sin 4x + sin 5x − sin 6x + · · · For a Fourier series:
4 5 6
 ∞
9
1 1 1
i.e. 2x = 4 sin x − sin 2x + sin 3x− sin 4x f (x) = a0 + (an cos nx + bn sin nx)
2 3 4
 n=1
1 1
+ sin 5x − sin 6x + · · · (1)
5 6 It is more convenient in this case to take the limits
from 0 to 2π instead of from −π to +π. The value
for values of f (x) between −π and π. For values of the Fourier coefficients are unaltered by this
of f (x) outside the range −π to +π the sum of the change of limits. Hence
series is not equal to f (x).
 2π  π  2π 
1 1
Problem 2. In the Fourier series of Problem 1, a0 = f (x) dx =
x dx + 0 dx

0 2π 0 π
by letting x = π/2, deduce a series for π/4.
 2 π  2
1 x 1 π π
= = =
When x = π/2, f (x) = π from Fig. 70.2. 2π 2 0 2π 2 4
FOURIER SERIES FOR A NON-PERIODIC FUNCTION OVER RANGE 2π 665

 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 =

2 π n n n n

−4π −4π −4π


−4π −2π 0 2π 4π θ
Hence b1 = , b2 = , b3 = , and so on.
1 2 3

Figure 70.4 Thus f (θ) = θ 2


∞  
4π2 9 4 4π
= + cos nθ − sin nθ
For a Fourier series: 3 n2 n
n=1

9 i.e. θ2 =
f (x) = a0 + (an cos nx + bn sin nx)  
n=1 4π2 1 1
  2π + 4 cos θ + 2 cos 2θ + 2 cos 3θ + · · ·
1 2π 1 3 2 3
a0 = f (θ)dθ = θ 2 dθ  
2π 2π 0 1 1
0 − 4π sin θ + sin 2θ + sin 3θ + · · ·
 2π   2 3
1 θ3 1 8π3 4π2
= = −0 =
2π 3 0 2π 3 3 for values of θ between 0 and 2π.
 2π
1
an = f (θ) cos nθ dθ
π 0 Problem 6. In the Fourier series of Problem 5,
 π2
1 2π 2 let θ = π and determine a series for .
= θ cos nθ dθ 12
π 0
 2π
1 θ 2 sin nθ 2θ cos nθ 2 sin nθ When θ = π, f (θ) = π2
= + −
π n n2 n3 0 
by parts 4π2 1
Hence π = + 4 cos π + cos 2π
2
   3 4
1 4π cos 2πn 
= 0+ − 0 − (0) 1 1
π n2 + cos 3π + cos 4π + · · ·
9 16
4 4 
= cos 2πn = 2 when n = 1, 2, 3, · · · 1
n 2 n − 4π sin π + sin 2π
2

4 4 4 1
Hence a1 = , a2 = 2 , a3 = 2 and so on + sin 3π + · · ·
12 2 3 3
FOURIER SERIES FOR A NON-PERIODIC FUNCTION OVER RANGE 2π 667


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

π2 1 1 1 5. Expand the function f (θ) = θ 2 in a Fourier


or = 1− 2 + 2 − 2 +···
12 2 3 4 series in the range −π < θ < π.
Sketch the function within and outside of the
Now try the following exercise. given⎡range. ⎤

π2 1
Exercise 241 Further problems on Fourier ⎢ f (θ) = 3 − 4 cos θ − 22 cos 2θ ⎥
⎢ ⎥
series of non-periodic functions over a range ⎢  ⎥
of 2π ⎣ 1 ⎦
+ 2 cos 3θ − · · ·
1. Show that the Fourier series for the func- 3
tion f (x) = x over the range x = 0 to x = 2π 6. For the Fourier series obtained in Problem 5,
is given by: 8∞ 1
 let θ = π and deduce the series for
f (x) = π − 2 sin x + 21 sin 2x n=1 n
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

3. Find the Fourier series for the function


f (x) = x + π θ
 −π < x < π.⎤
0 2π
⎡ π within the range
1
⎢ f (x) = π + 2 sin x − 2 sin 2x ⎥ −1
⎢ ⎥ L
⎣ 1 ⎦
+ sin 3x − · · ·
3 Figure 70.5
668 FOURIER SERIES
⎡  ⎤
8. Sketch the waveform defined by: 8 1
⎢ f (x) = cos x + cos 3x ⎥
⎢ π2 32 ⎥
⎧ ⎣ 1 1 ⎦


2x
1+ , when −π < x < 0 + 2 cos 5x + 2 cos 7x + · · ·

⎪ 5 7
⎨ π
f (x) = 9. For the Fourier series of Problem 8, deduce a

⎪ π2


⎩ 1 − 2x , when 0 < x < π
series for
π  2 8 
π 1 1 1 1
=1 + 2 + 2 + 2 + 2 + ···
8 3 5 7 9
Determine the Fourier series in this range.
Fourier series

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.

Problem 1. Determine the Fourier series for


71.2 Fourier cosine and Fourier sine the periodic function defined by:
series ⎧ π

⎪ −2, when −π < x < −

⎪ 2
(a) Fourier cosine series ⎨ π π
f (x) = 2, when − < x <
The Fourier series of an even periodic function ⎪
⎪ 2 2


f (x) having period 2π contains cosine terms only ⎩ −2, when π < x < π.
(i.e. contains no sine terms) and may contain a 2
constant term. and has a period of 2π
9∞
Hence f (x) = a0 + an cos nx
The square wave shown in Fig. 71.1 is an even
n=1
function since it is symmetrical about the f (x) axis.
 π
1 Hence from para. (a) the Fourier series is given by:
where a0 = f (x) dx
2π −π

9

1 π f (x) = a0 + an cos nx
= f (x) dx L
π 0 n=1

(due to symmetry) (i.e. the series contains no sine terms)


670 FOURIER SERIES

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

From para. (a), When x = 0, f (x) = 2 (from Fig. 71.1).


 Thus, from the Fourier series,
1 π 
a0 = f (x) dx 8 1 1
π 0 2= cos 0 − cos 0 + cos 0
 π/2  π  π 3 5
1 
= 2 dx + −2 dx 1
π 0 π/2 − cos 0 + · · ·
7
1: π/2
;
= [2x]0 + [−2x]ππ/2 2π 1 1 1
π Hence = 1 − + − + ···
8 3 5 7
1
= [(π) + [(−2π) − (−π)] = 0 π 1 1 1
π i.e. = 1− + − +···
 4 3 5 7
2 π
an = f (x) cos nx dx
π 0
 π/2  π 
2 Problem 3. Obtain the Fourier series for the
= 2 cos nx dx + −2 cos nx dx
π 0 π/2
square wave shown in Fig. 71.2.
3    4
4 sin nx π/2 −sin nx π f (x)
= +
π n 0 n π/2
2
 
4 sin (π/2)n
= −0 −π 0 π 2π 3π x
π n
 
− sin (π/2)n −2
+ 0−
n
 
4 2 sin (π/2)n 8 nπ Figure 71.2
= = sin
π n πn 2
The square wave shown in Fig. 71.2 is an odd
When n is even, an = 0 function since it is symmetrical about the origin.
8 Hence, from para. (b), the Fourier series is
When n is odd, an = for n = 1, 5, 9, . . . given by:
πn

9
−8 f (x) = bn sin nx
and an = for n = 3, 7, 11, . . .
πn n=1
EVEN AND ODD FUNCTIONS AND HALF-RANGE FOURIER SERIES 671

The function is defined by: f(θ)


3 f(θ) = θ
2

−2, when −π < x < 0 π2


f (x) =
2, when 0 < x < π
 −2π −π π
2 π 0 2π θ
From para. (b), bn = f (x) sin nx dx
π 0
 π
2 Figure 71.3
= 2 sin nx dx
π 0
   π
4 −cos nx π 2
= and an = f (θ) cos nθ dθ
π n 0
π 0
    
4 −cos nπ 1 2 π
= − − = θ 2 cos nθ dθ
π n n π 0
4  π
= (1 − cos nπ) 2 θ 2 sin nθ 2θ cos nθ 2 sin nθ
πn = + −
π n n2 n3 0
When n is even, bn = 0.
by parts
4 8   
When n is odd, bn = (1 − (−1)) = 2 2π cos nπ
πn πn = 0+ − 0 − (0)
π n2
8 8 8
Hence b1 = , b3 = , b5 = , 4
π 3π 5π = cos nπ
n2
and so on −4 −4
When n is odd, an = 2 . Hence a1 = 2 ,
Hence the Fourier series is: n 1
 −4 −4
8 1 1 a3 = 2 , a5 = 2 , and so on.
f (x) = sin x + sin 3x + sin 5x 3 5
π 3 5 4 4 4
 When n is even, an = 2 . Hence a2 = 2 , a4 = 2 ,
1 n 2 4
+ sin 7x + · · · and so on.
7
Hence the Fourier series is:

Problem 4. Determine the Fourier series for π2 1 1
the function f (θ) = θ 2 in the range −π < θ < π. f (θ) = θ 2 = − 4 cos θ − 2 cos 2θ + 2 cos 3θ
3 2 3
The function has a period of 2π. 
1 1
− 2 cos 4θ + 2 cos 5θ − · · ·
4 5
A graph of f (θ) = θ 2 is shown in Fig. 71.3 in the range
−π to π with period 2π. The function is symmetrical
about the f (θ) axis and is thus an even function. Thus Problem 5. For the Fourier series of Problem 4,
a Fourier cosine series will result of the form: 8∞ 1 π2
∞ let θ = π and show that =
9 n=1 n
2 6
f (θ) = a0 + an cos nθ
n=1
From para. (a), When θ = π, f (θ) = π2 (see Fig. 71.3). Hence from
  the Fourier series:
1 π 1 π 2 
a0 = f (θ)dθ = θ dθ π2 1 1
π 0 π 0 π =
2
− 4 cos π − 2 cos 2π + 2 cos 3π
 π 3 2 3
1 θ3 π2 1 1
 L
= = − 2 cos 4π + 2 cos 5π − · · ·
π 3 0 3 4 5
672 FOURIER SERIES
⎡ ⎤
i.e. f (t) = −2( sin t + 1
2 sin 2t
⎢ ⎥
  ⎢ + 13 sin 3t ⎥
π2 1 1 1 1 ⎢ ⎥
π2 − = −4 −1 − 2 − 2 − 2 − 2 − · · · ⎣ ⎦
3 2 3 4 5 + 41 sin 4t + · · · )
 
2π2 1 1 1 1 3. Determine the Fourier series defined by
= 4 1 + 2 + 2 + 2 + 2 + ··· 3
3 2 3 4 5
1 − x, −π < x < 0
f (x) =
2π2 1 1 1 1 1 + x, 0 < x < π
i.e. = 1 + 2 + 2 + 2 + 2 + ···
(3)(4) 2 3 4 5
which is periodic of period 2π.
π2 1 1 1 1 1 ⎡ π ⎤
i.e. = 2 + 2 + 2 + 2 + 2 + ··· f (x) = + 1
6 1 2 3 4 5 ⎢ 2  ⎥
⎢ 4 1 ⎥
⎢ − cos x + 2 cos 3x ⎥
Hence ⎢ ⎥
⎢ π 3  ⎥
⎣ 1 ⎦

9 1 π2 + 2 cos 5x + · · ·
= 5
n2 6
n=1 4. In the Fourier series of Problem 3, let x = 0
and deduce a series for π2 /8.
Now try the following exercise.  2 
π 1 1 1
=1 + 2 + 2 + 2 + ···
8 3 5 7
Exercise 242 Further problems on Fourier
cosine and Fourier sine series
1. Determine the Fourier series for the function
defined by: 71.3 Half-range Fourier series
⎧ π

⎪ −1, −π < x < − (a) When a function is defined over the range say 0

⎪ 2

⎨ to π instead of from 0 to 2π it may be expanded
π π
f (x) = 1, − < x < in a series of sine terms only or of cosine terms

⎪ 2 2 only. The series produced is called a half-range

⎪ π

⎩ −1, <x<π Fourier series.
2
(b) If a half-range cosine series is required for the
which is periodic outside of this range of function f (x) = x in the range 0 to π then an even
period 2π. periodic function is required. In Figure 71.4,
⎡  ⎤ f (x) = x is shown plotted from x = 0 to x = π.
4 1
⎢ f (x) = cos x − cos 3x ⎥ Since an even function is symmetrical about the
⎢ π 3 ⎥ f (x) axis the line AB is constructed as shown. If
⎢ ⎥
⎢ 1 ⎥ the triangular waveform produced is assumed to
⎢ + cos 5x ⎥
⎢ 5 ⎥ be periodic of period 2π outside of this range
⎢  ⎥ then the waveform is as shown in Fig. 71.4.
⎣ 1 ⎦
− cos 7x + · · · When a half-range cosine series is required then
7 the Fourier coefficients a0 and an are calculated
2. Obtain the Fourier series of the function
f(x)
defined by: f(x) = x
⎧ B π
⎨ t + π, −π < t < 0
f (t) = t − π, A
⎩ 0<t<π
−2π −π 0 π 2π x

which is periodic of period 2π. Sketch the


given function. Figure 71.4
EVEN AND ODD FUNCTIONS AND HALF-RANGE FOURIER SERIES 673

as in Section 71.2(a), i.e. When f (x) = 3x,


 

9 1 π 1 π
f (x) = a0 + an cos nx a0 = f (x)dx = 3x dx
π 0 π 0
n=1  π
 3 x2 3π
1 π = =
where a0 = f (x) dx π 2 0 2
π 0  π
2
 π an = f (x) cos nx dx
2 π 0
and an = f (x) cos nx dx 
π 0 2 π
= 3x cos nx dx
(c) If a half-range sine series is required for the π 0
 
function f (x) = x in the range 0 to π then an 6 x sin nx cos nx π
odd periodic function is required. In Figure 71.5, = + by parts
π n n2 0
f (x) = x is shown plotted from x = 0 to x = π.    
Since an odd function is symmetrical about the 6 π sin nπ cos nπ cos 0
origin the line CD is constructed as shown. If = + − 0+ 2
π n n2 n
the sawtooth waveform produced is assumed to  
be periodic of period 2π outside of this range, 6 cos nπ cos 0
= 0+ − 2
then the waveform is as shown in Fig. 71.5. π n2 n
When a half-range sine series is required then
6
the Fourier coefficient bn is calculated as in = (cos nπ − 1)
Section 71.2(b), i.e. πn2

9 When n is even, an = 0
f (x) = bn sin nx 6 −12
n=1 When n is odd, an = 2 (−1 −1) =
πn πn2

2 π
−12 −12 −12
where bn = f (x) sin nx dx Hence a1 = , a3 = 2
, a5 = , and so on.
π 0 π π3 π52
Hence the half-range Fourier cosine series is
given by: 
f(x) 3π 12 1
f(x) = x f (x) = 3x = − cos x + 2 cos 3x
π 2 π 3

1
C + 2 cos 5x + · · ·
−2π −π 0 π 2π 3π x 5

−π
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 ≤ π.

From para. (c), for a half-range sine series:



9
Problem 6. Determine the half-range Fourier
cosine series to represent the function f (x) = 3x f (x) = bn sin nx
in the range 0 ≤ x ≤ π. n=1
When f (x) = 3x,
 
From para. (b), for a half-range cosine series: 2 π 2 π
bn = f (x) sin nx dx = 3x sin nx dx
π 0 π 0

9   L
6 −x cos nx sin nx π
f (x) = a0 + an cos nx = + by parts
n=1 π n n2 0
674 FOURIER SERIES
   
6 −π cos nπ sin nπ 2 π
= + − (0 + 0) bn = f (x) sin nx dx
π n n2 π 0
6  π
= − cos nπ 2
n = cos x sin nx dx
π 0
6
When n is odd, bn = .  π
n 2 1
= [ sin (x + nx) − sin (x − nx)] dx
6 6 6 π 0 2
Hence b1 = , b3 = , b5 = and so on.  
1 3 5 1 −cos [x(1 + n)] cos [x(1 − n)] π
6 = +
When n is even, bn = − . π (1 + n) (1 − n) 0
n  
6 6 6 1 −cos [π(1 + n)] cos [π(1 − n)]
Hence b2 = − , b4 = − , b6 = − and so on. = +
2 4 6 π (1 + n) (1 − n)
Hence the half-range Fourier sine series is given by:  
−cos 0 cos 0
 − +
1 1 (1 + n) (1 − n)
f (x) = 3x = 6 sin x − sin 2x + sin 3x
2 3 When n is odd,

1 1  
− sin 4x + sin 5x − · · · 1 −1 1
4 5 bn = +
π (1 + n) (1 − n)
 
−1 1
Problem 8. Expand f (x) = cos x as a half-range − + =0
(1 + n) (1 − n)
Fourier sine series in the range 0 ≤ x ≤ π, and
sketch the function within and outside of the When n is even,
given range.
 
1 1 1
bn = −
When a half-range sine series is required then an π (1 + n) (1 − n)
odd function is implied, i.e. a function symmetrical  
−1 1
about the origin. A graph of y = cos x is shown in − +
Fig. 71.6 in the range 0 to π. For cos x to be sym- (1 + n) (1 − n)
metrical about the origin the function is as shown  
by the broken lines in Fig. 71.6 outside of the given 1 2 2
= −
range. π (1 + n) (1 − n)
 
1 2(1 − n) − 2(1 + n)
f(x) =
y = cos x π 1 − n2
1
 
1 −4n 4n
= =
−π 0 π 2π x
π 1−n 2 π(n − 1)
2

−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

v(t ) When n is even, bn = 0


10 −10 20
When n is odd, b1 = (−1 − 1) = ,
π π
−8 −4 0 4 8 12 t (ms) −10 20
b3 = (−1 − 1) = ,
3π 3π
Period L = 8 ms
20
Figure 72.1 b5 = , and so on.

Thus the Fourier series for the function v(t) is
 L  given by:
1 2 1 4     
a0 = v(t) dt = v(t) dt 20 πt 1 3πt
L −L
2
8 −4 v(t) = 5 + sin + sin
 0  4  π 4 3

4
 
1 1
= 0 dt + 10 dt = [10t]40 = 5 1
+ sin
5πt
+ ···
8 −4 0 8 5 4
 L  
2 2 2πnt
an = v(t) cos dt
L −L L

2
  Problem 2. Obtain the Fourier series for the
2 4 2πnt function defined by:
= v(t) cos dt ⎧
8 −4 8 ⎨0, when −2 < x < −1
 0  
1 πnt f (x) = 5, when −1 < x < 1
= 0 cos dt ⎩
4 −4 4 0, when 1<x<2
 4   
πnt The function is periodic outside of this range of
+ 10 cos dt
0 4 period 4.
⎡   ⎤4
πnt
10 sin The function f (x) is shown in Fig. 72.2 where period,
1⎢⎢ 4 ⎥ ⎥ = 10 [ sin πn − sin 0] L = 4. Since the function is symmetrical about the
=
4⎣ πn ⎦ πn f (x) axis it is an even function and the Fourier series
4 0 contains no sine terms (i.e. bn = 0).
= 0 for n = 1, 2, 3, . . .
 L   f(x)
2 2 2πnt
bn = v(t) sin dt 5
L −L 2
L
  
2 4 2πnt
= v(t) sin dt
8 −4 8 −5 −4 −3 −2 −1 0 1 2 3 4 5 x
 0  
1 πnt
= 0 sin dt L= 4
4 −4 4
 4    Figure 72.2
πnt
+ 10 sin dt
0 4
⎡   ⎤4 Thus, from para. (c),
πnt
−10 cos ∞
9  
1⎢⎢ 4 ⎥ ⎥ 2πnx
= ⎣ πn ⎦ f (x) = a0 + an cos
4 L
n=1
4  L 
0
1 2 1 2 L
−10 a0 = f (x) dx = f (x) dx
= [cos πn − cos 0] L −L 4 −2
πn 2
678 FOURIER SERIES

 −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 ω ω

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

However, irregular waveforms are not usually


73.1 Introduction defined by mathematical expressions and thus the
Fourier coefficients cannot be determined by using
Many practical waveforms can be represented by calculus. In these cases, approximate methods, such
simple mathematical expressions, and, by using as the trapezoidal rule, can be used to evaluate the
Fourier series, the magnitude of their harmonic com- Fourier coefficients.
ponents determined, as shown in Chapters 69 to 72. Most practical waveforms to be analysed are
For waveforms not in this category, analysis may be periodic. Let the period of a waveform be 2π and
achieved by numerical methods. Harmonic analysis be divided into p equal parts as shown in Fig. 73.1.
is the process of resolving a periodic, non-sinusoidal 2π
quantity into a series of sinusoidal components of The width of each interval is thus . Let the ordi-
ascending order of frequency. p
nates be labelled y0 , y1 , y2 , . . . yp (note that y0 = yp ).
The trapezoidal rule states:

73.2 Harmonic analysis on data given 1
in tabular or graphical form Area = (width of interval) (first + last ordinate)
2

The Fourier coefficients a0 , an and bn used in + sum of remaining ordinates
Chapters 69 to 72 all require functions to be
integrated, i.e.  
2π 1
 π  2π ≈ (y0 + yp ) + y1 + y2 + y3 + · · ·
1 1 p 2
a0 = f (x)dx = f (x) dx
2π −π 2π 0 1
Since y0 = yp , then (y0 + yp ) = y0 = yp
= mean value of f (x) 2
in the range −π to π or 0 to 2π 2π 9p
 π Hence area ≈ yk
1 p
an = f (x) cos nx dx k=1
π −π
 2π f(x)
1 y0 y1 y2 y3 y4
= f (x) cos nx dx
π 0
= twice the mean value of f (x) cos nx
yp
in the range 0 to 2π
 π 0 π 2π x
1
bn = f (x) sin nx dx 2π/p
π −π
 2π
1
= f (x) sin nx dx
π 0 Period = 2π
= twice the mean value of f (x) sin nx L
in the range 0 to 2π Figure 73.1
684 FOURIER SERIES

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) f(x) harmonics can be present in such a waveform.


Thus the waveform shown in Fig. 73.4(a) con-
tains only odd sine terms. Since the area above
0 π 2π x −π 0 π 2π x the x-axis is equal to the area below, a0 = 0.

(b) The waveform shown in Fig. 73.4(b) is symmet-


(a)
ao = 0 (b) Contains no sine terms rical about the f (x) axis and is thus an even
function. An even function contains no sine
f(x) terms. Also, the waveform has the characteristic
f(x) f (x) = f (x + π), i.e. the waveform repeats itself
after half a cycle. Only even harmonics can be
−2π −π 0 π 2π x
present in such a waveform. Thus the waveform
−2π −π 0 π 2π x shown in Fig. 73.4(b) contains only even cosine
terms (together with a constant term, a0 ).
(c) Contains no cosine terms (d) Contains only even harmonics

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

From equation (3), Section 73.2, −4


29
p
(a)
bn = ik sin nθk , where p = 12
p
k=1 y
2 10
Hence b1 ≈ (48.24) = 8.04,
12
π 2π
2 −π
b3 ≈ (−12) = −2.00, 0 x
12
2 −10
and b5 ≈ (−0.24) = −0.04 (b)
12
Thus the Fourier series for current i is given by: Figure 73.6
i = 8.04 sin θ − 2.00 sin 3θ − 0.04 sin 5θ
2. Analyse the periodic waveform of displace-
ment y against angle θ in Fig. 73.7(a) into
Now try the following exercise. its constituent harmonics as far as and
including the third harmonic, by taking 30◦
Exercise 247 Further problems on a num- intervals.
erical method of harmonic analysis ⎡ ⎤
y = 9.4 + 13.2 cos θ − 24.1 sin θ
1. Without performing calculations, state which ⎣ + 0.92 cos 2θ − 0.14 sin 2θ ⎦
harmonics will be present in the waveforms
shown in Fig. 73.6. + 0.83 cos 3θ + 0.67 sin 3θ
A NUMERICAL METHOD OF HARMONIC ANALYSIS 689
 
I = 4.00 − 4.67 cos 2θ + 1.00 cos 4θ
− 0.66 cos 6θ
4. Determine the Fourier series as far as the third
harmonic to represent the periodic function y
given by the waveform in Fig. 73.8. Take 12
intervals when analysing the waveform.

y
100
80
60
40
20

−90° 0 90° 180° 270° 360° θ°


−20
−40
−60
−80
Figure 73.7 −100

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

The form used for the Fourier series in Chapters 69 to f (x) = a0 + an


2
73 consisted of cosine and sine terms. However, there n=1
 2πnx 2πnx

is another form that is commonly used—one that ej L − e−j L
directly gives the amplitude terms in the frequency + bn
spectrum and relates to phasor notation. This form 2j
involves the use of complex numbers (see Chapters Multiplying top and bottom of the bn term by −j
23 and 24). It is called the exponential or complex
form of a Fourier series. (and remembering that j2 = −1) gives:


 
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

e jθ = cos θ + j sin θ (1) Rearranging gives:


and e −jθ
= cos θ − j sin θ (2) ∞ 
9 
an − jbn 2πnx
f (x) = a0 + ej L

Adding equations (1) and (2) gives: 2


n=1
  
an + jbn 2πnx
e jθ
+e −jθ
= 2 cos θ + e−j L (5)
2
e jθ + e−jθ The Fourier coefficients a0 , an and bn may be
from which, cos θ = (3)
2 replaced by complex coefficients c0 , cn and c−n such
that
Similarly, equation (1) – equation (2) gives:
c 0 = a0 (6)
e jθ − e−jθ = 2j sin θ an − jbn
cn = (7)
2
e jθ − e−jθ
from which, sin θ = (4) an + jbn
2j and c−n = (8)
2
Thus, from page 676, the Fourier series f (x) over where c−n represents the complex conjugate of cn
any range L, (see page 251).
Thus, equation (5) may be rewritten as:
∞ 
9     ∞
9 ∞
9
2πnx 2πnx 2πnx 2πnx
f (x) = a0 + an cos + bn sin f (x) = c0 + cn e j L + c−n e−j L (9)
L L
n=1 n=1 n=1
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 691

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

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

   Using integration by parts (see Chapter 43), let u = t,


5 10 πx 1 3πx du
+ cos − cos from which, = 1, and dt = du, and
2 π 2 3 2 dt
  
1 5πx let dv = e−j2πnt , from which,
+ cos −···
5 2 
e−j2πnt
v = e−j2πnt dt =
−j2πn
Problem 2. Show that the complex Fourier  1 
series for the function f (t) = t in the range t = 0 Hence, cn = t e−j2πnt = uv − v du
to t = 1, and of period 1, may be expressed as: 0
 1 
1

j 9 e j2πnt e−j2πnt 1 e−j2πnt
f (t) = + = t − dt
2 2π n=−∞ n −j2πn 0 0 −j2πn
 1
e−j2πnt e−j2πnt
= t −
The saw tooth waveform is shown in Figure 74.2. −j2πn (−j2πn)2 0
 −j2πn 
From equation (11), the complex Fourier series is e e−j2πn
given by: = −
−j2πn (−j2πn)2

9   L
f (t) = cn e j
2πnt
e0
L
− 0−
n=−∞ (−j2πn)2
694 FOURIER SERIES

From equation (2), From equation (12),


  
cos 2πn − j sin 2πn cos 2πn − j sin 2πn 1
L
cn = − cn =
2
f (x) e−j
2πnx
dx
−j2πn (−j2πn)2 L
L
− L2
1   
+ 1 0 4
(−j2πn)2 = 0 e−j
πnx
4 dx + 10 e −j
πnx
4 dx
8 −4 0
However, cos 2πn = 1 and sin 2πn = 0 for all posi-
4  
e−j 4
πnt
tive and negative integer values of n. 10 10 4  −jπn 
= = e −1
1 1 1 8 −j πn 8 −jπn
Thus, cn = − + 4 0
−j2πn (−j2πn) 2 (−j2πn)2
1 1( j) 5j  −jπn  5j  −jπn 
= = = e −1 = e −1
−j2πn −j2πn( j) −j πn
2 πn

j From equation (2), e−jθ = cos θ − j sin θ, thus


i.e. cn = e−jπn = cos πn − j sin πn = cos πn for all integer
2πn
values of n. Hence,
From equation (13),
 L 5j  −jπn  5j
1 2 cn = e −1 = (cos nπ − 1)
c 0 = a0 = f (t) dt πn πn
L − L2
From equation (11), the exponential Fourier series
  is given by:
1 L 1 1
= f (t) dt = t dt ∞
L 0 1 0 9 2πnx
f (x) = cn e j L
 2 1  
t 1 1 n=−∞
= = −0 =
2 0 2 2 9∞
5j nπx
Hence, the complex Fourier series is given by: = (cos nπ − 1) e j 4
n=−∞


9 2πnt
f (t) = cn e j L from equation (11) Now try the following exercise.
n=−∞

9
1 j Exercise 248 Further problems on the com-
i.e. f (t) = + e j2πnt plex form of a Fourier series
2 n=−∞ 2πn
∞ 1. Determine the complex Fourier series for the
1 j 9 e j2πnt function defined by:
= + 
2 2π n=−∞ n 0, when −π ≤ t ≤ 0
f (t) = 2, when 0 ≤ t ≤ π
The function is periodic outside of this range
Problem 3. Show that the exponential form of of period 2π.
the Fourier series for the waveform described ∞
by: 9
j
 f (t) = (cos nπ − 1) e jnt

0 when −4 ≤ x ≤ 0 n=−∞
 
f (x) = 10 when 0 ≤ x ≤ 4
2 1 j3t 1 j5t
= 1−j e + e + e + ...
jt
and has a period of 8, is given by: π 3 5
8∞ 5j nπx
 
f (x) = (cos nπ − 1) e j 4 2 −jt 1 −j3t 1 −j5t
+j e + e + e + ···
n=−∞ nπ π 3 5
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 695

 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=−∞

Method B

If it had not been noted that the function was odd,


equation (12) would have been used, i.e. Problem 5. Show that the complex Fourier
series obtained in problem 4 above is equiva-
 L lent to
1 2 2πnx 
cn = f (x) e−j L dx 8 1 1
L − L2 f (x) = sin x + sin 3x + sin 5x
π 3 5
 π 
1 2πnx 1
= f (x) e−j 2π dx + sin 7x + · · ·
2π −π 7
 0  π  (which was the Fourier series obtained in terms
1
= −2 e−jnx dx + 2 e−jnx dx of sines and cosines in Problem 3 on page 671).
2π −π 0
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 697

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π

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

4. Show that the complex Fourier series in


Now try the following exercise. problem 3 above is equivalent to:

1 1
Exercise 249 Further problems on symme- f (t) = 4 sin t − sin 2t + sin 3t
try relationships 2 3

1. Determine the exponential form of the 1
Fourier series for the periodic function − sin 4t + · · ·
4
defined by:
⎧ π

⎪ −2, when −π ≤ x ≤ −

⎪ 2


⎨ π π 74.5 The frequency spectrum
f (x) = 2, when − ≤ x ≤ +

⎪ 2 2 In the Fourier analysis of periodic waveforms seen



⎪ in previous chapters, although waveforms physically
⎩−2, when + π ≤ x ≤ + π
exist in the time domain, they can be regarded as
2
comprising components with a variety of frequen-
and has a period of 2π cies. The amplitude and phase of these components
∞   are obtained from the Fourier coefficients an and bn ;
9 4 nπ this is known as a frequency domain. Plots of ampli-
f (x) = sin e jnx tude/frequency and phase/frequency are together
n=−∞
nπ 2
known as the spectrum of a waveform. A simple
example is demonstrated in Problem 6 following.
2. Show that the exponential form of the Fourier
series in problem 1 above is equivalent to:
 Problem 6. A pulse of height 20 and width 2
8 1 1 has a period of 10. Sketch the spectrum of the
f (x) = cos x − cos 3x + cos5x waveform.
π 3 5

1
− cos 7x + · · · The pulse is shown in Figure 74.5.
7
The complex coefficient is given by equation (12):
3. Determine the complex Fourier series to rep-  L
resent the function f (t) = 2t in the range −π 1 2 2πnt
cn = f (t)e−j L dt
to +π. L − L2

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

clockwise (i.e. in the positive direction) with an


ω
angular velocity of 2 rad/s, and another phasor
of length 4 and rotating clockwise (i.e. in the
negative direction) with an angular velocity of L
2 rad/s. Both phasors have zero phase angle.
Figure 74.9 Figure 74.10 shows the two phasors.
702 FOURIER SERIES

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

gives: v = 8 cos 3t − 20 sin 3t


(b) From equation (3), page 690,
 
1  1  j3t 
cos θ = e jθ + e−jθ =8 e + e−j3t
2 2

Hence, v = 8 cos(2t − 1.5)  


1  j3t 
  − 20 e − e−j3t
1 j(2t−1.5) 2j
−j(2t−1.5)
=8 e +e
2
10 j3t 10 −j3t
= 4e j3t + 4e−j3t − e + e
j j
= 4e j(2t−1.5) + 4e−j(2t−1.5)

i.e. v = 4e2t e−j 1.5 + 4e−j2t e j1.5 = 4e j3t + 4e−j3t −


10( j) j3t 10( j) −j3t
e + e
j( j) j( j)
This represents a phasor of length 4 and phase
angle −1.5 radians rotating anticlockwise (i.e. in
= 4e j3t + 4e−j3t + 10j e j3t − 10j e−j3t
the positive direction) with an angular velocity
of 2 rad/s, and another phasor of length 4 and
phase angle +1.5 radians and rotating clockwise since j2 = −1
(i.e. in the negative direction) with an angular
velocity of 2 rad/s. Figure 74.11 shows the two
phasors. = (4 + j10) e j3t + (4 − j10) e−j3t

  
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

Hence, v = 10.77 ∠ 1.19 + 10.77 ∠ −1.19


4

Thus v comprises a phasor 10.77∠1.19 rotating anti-


ω = 2 rad/s clockwise with an angular velocity if 3 rad/s, and
a phasor 10.77∠−1.19 rotating clockwise with an
angular velocity of 3 rad/s.
Figure 74.11
THE COMPLEX OR EXPONENTIAL FORM OF A FOURIER SERIES 703

2. Determine the pair of phasors that can repre-


Now try the following exercise. sent the harmonic given by:
v = 10 cos 2t − 12 sin 2t
Exercise 250 Further problems on phasors
[(5 + j6)e j2t + (5 − j6)e−j2t , 7.81∠0.88
1. Determine the pair of phasors that can be used rotating anticlockwise, 7.81 ∠−0.88
to represent the following voltages: rotating clockwise, each with ω = 2 rad/s]
(a) v = 4 cos 4t (b) v = 4 cos (4t + π/2)
3. Find the pair of phasors that can represent the
[(a) 2e j4t + 2e−j4t , 2∠0◦ anticlockwise, fundamental current: i = 6 sin t + 4 cos t
2∠0◦ clockwise, each with ω = 4 rad/s
[(2 − j3) e jt + (2 + j3) e−jt , 3.61∠−0.98
(b) 2e j4t e jπ/2 + 2 e−j4t e−jπ/2 , 2∠π/2 rotating anticlockwise, 3.61 ∠ 0.98 rotat-
anticlockwise, 2∠ −π/2 clockwise, each ing clockwise, each with ω = 1 rad/s]
with ω = 4 rad/s]

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

5. Displacement y on a point on a pulley when


turned through an angle of θ degrees is given by:
−2π −π 0 π 2π 3π x
θ y
30 3.99
−5
60 4.01
90 3.60
Figure A19.1

You might also like