696 FOURIER SERIESProblem 4. Obtain the Fourier series, in com-
plex form, for the square wave shown in
Figure 74.4.f(x)x20− 2−π π 2 π 3 πFigure 74.4Method AThe square wave shown in Figure 74.4 is anodd
functionsince it is symmetrical about the origin.
The period of the waveform,L= 2 π.
Thus, using equation (16):
cn=−j2
L∫ L
20f(x) sin(
2 πnx
L)
dx=−j2
2 π∫π02 sin(
2 πnx
2 π)
dx=−j2
π∫π0sinnxdx=−j2
π[
−cosnx
n]π0=−j2
πn(
(−cosπn)−(−cos 0))i.e.cn=−j2
πn[1−cosπn] (17)Method BIf it hadnotbeen noted that the function was odd,
equation (12) would have been used, i.e.cn=1
L∫L
2−L 2f(x)e−j2 πnx
L dx=1
2 π∫π−πf(x)e−j2 πnx
2 π dx=1
2 π{∫ 0−π−2e−jnxdx+∫π02e−jnxdx}=1
2 π{[
−2e−jnx
−jn] 0−π+[
2e−jnx
−jn]π0}=1
2 π(
2
jn){
[
e−jnx] 0
−π−[
e−jnx]π
0}=1
2 π(
2
jn){
[
e^0 −e+jnπ]
−[
e−jnπ−e^0]}=1
jπn{
1 −ejnπ−e−jnπ+ 1}=1
jnπ{
2 − 2(
ejnπ+e−jnπ
2)}by rearranging=2
jnπ{
1 −(
ejnπ+e−jnπ
2)}=2
jnπ{ 1 −cosnπ} from equation (3)=−j 2
−j(jnπ){ 1 −cosnπ}by multiplying top and bottom by−ji.e.cn=−j2
nπ(1−cosnπ) (17)It is clear that method A is by far the shorter of the
two methods.
From equation (11), the complex Fourier series is
given by:f(x)=∑∞n=−∞cnej2 πnx
L=∑∞n=−∞−j2
nπ(1−cosnπ)ejnx (18)Problem 5. Show that the complex Fourier
series obtained in problem 4 above is equiva-
lent tof(x)=8
π(
sinx+1
3sin 3x+1
5sin 5x+1
7sin 7x+···)(which was the Fourier series obtained in terms
of sines and cosines in Problem 3 on page 671).