JWBK080-Kuo
March 2, 2006
11:33
Char Count= 0
Appendix A
Some Useful Formulas
and Definitions
This appendix briefly summarizes some basic formulas and definitions of algebra that will be used
extensively in this book.
(A.1a)
cos() = cos
(A.1b)
(A.2a)
(A.2b)
(A.3a)
(A.3b)
cos
sin sin = 2 sin
2
2
+
cos
cos + cos = 2 cos
2
2
+
sin
cos cos = 2 sin
2
2
sin(2) = 2 sin cos
(A.3c)
(A.4b)
(A.5b)
(A.4a)
(A.4c)
(A.5a)
Real-Time Digital Signal Processing: Implementations and Applications, 2nd Edition S.M. Kuo, B.H. Lee, and
W. Tian 2006 John Wiley & Sons, Ltd ISBN: 0-470-01495-4
Appendix-A
JWBK080-Kuo
628
March 2, 2006
11:33
Char Count= 0
sin
cos
2
2
=
1
(1 cos )
2
1
(1 + cos )
2
2
sin + cos2 = 1
=
1
[1 cos(2)]
2
1
cos2 = [1 + cos(2)]
2
e j = cos j sin
sin2 =
sin =
1 j
e e j
2j
(A.6a)
(A.6b)
(A.7a)
(A.7b)
(A.7c)
(A.8a)
(A.8b)
1 j
e + e j
(A.8c)
2
In Eulers theorem given in Equation (A.8), j = 1. The basic concepts and manipulations of
complex number will be reviewed in Section A.3.
cos =
xn =
n=0
1 xN
,
1x
x = 1.
(A.9)
e jn =
n=0
N 1
e j
n=0
n
1 e jN
.
1 e j
(A.10)
If the magnitude of x is less than 1 and not equal to zero, the infinite geometric series converges to
n=0
xn =
1
,
1x
(A.11)
(A.12)
Since the complex number z represents the point (x, y) in the two-dimensional plane, it can be drawn
as a vector illustrated in Figure A.1. The horizontal coordinate x is called the real part, and the vertical
coordinate y is the imaginary part.
Appendix-A
JWBK080-Kuo
March 2, 2006
11:33
Char Count= 0
COMPLEX VARIABLES
629
Im [z]
(x, y)
y
r
Figure A.1
Re [z]
As shown in Figure A.1, the vector z can also be defined by its length (radius) r and its direction
(angle) . The x and y coordinates of the vector are given by
x = r cos ,
and
y = r sin .
(A.13)
(A.14)
where
r = |z| =
x 2 + y2
(A.15)
y
x
(A.16)
(A.17)
z 1 z 2 = (x1 x2 y1 y2 ) + j (x1 y2 + x2 y1 )
(A.18a)
= (r1 r2 ) e
j(1 +2 )
(x1 x2 + y1 y2 ) + j (x2 y1 x1 y2 )
z1
=
z2
x22 + y22
=
r1 j(1 2 )
e
r2
(A.18b)
(A.19a)
(A.19b)
Note that addition and subtraction are straightforward in rectangular form, but are difficult in polar form.
Division is simple in polar form, but is complicated in rectangular form.
The complex arithmetic of the complex number x can be listed as
z = x j y = re j ,
(A.20)
Appendix-A
JWBK080-Kuo
630
March 2, 2006
11:33
Char Count= 0
(A.21)
1
1
= e j ,
z
r
(A.22)
zN = r N e j N .
(A.23)
z 1 =
The solution of
zN = 1
(A.24)
is
z k = e jk = e j(2k/N ) ,
k = 0, 1, . . . , N 1.
(A.25)
As illustrated in Figure A.2, these N solutions are equally spaced around the unit circle |z| = 1. The
angular spacing between them is = 2/N.
dE
,
dt
(A.26)
where P is the power in watts, E is the energy in joules, and t is the time in seconds. The power associated
with the voltage and current can be expressed as
P = vi =
v2
= i 2 R,
R
(A.27)
where v is the voltage in volts, i is the current in amperes, and R is the resistance in ohms.
In engineering applications, the most popular description of signal strength is decibel (dB) defined as
N = 10 log10
Px
Py
dB.
(A.28)
Appendix-A
JWBK080-Kuo
March 2, 2006
11:33
Char Count= 0
REFERENCES
631
Therefore, the decibel unit is used to describe the ratio of two powers and requires a reference value, Py
for comparison.
It is important to note that both the current i(t) and the voltage v(t) can be considered as an analog
signal x(t), and thus the power of signal is proportional to the square of signal amplitude. For example, if
the signal x(t) is amplified by a factor g, that is, x(t) = gy(t), the signal gain can be expressed in decibel
as
Px
Gain = 10 log10
(A.29)
= 20 log10 (g),
Py
since the power is a function of the square of the voltage (or current) as shown in Equation (A.27). As the
second example, consider that the sound-pressure level, L p , in decibels corresponds to a sound pressure
Px referenced to Py = 20 Pa (pascals). When the reference signal y(t) has power Py equal to 1 mW,
the power unit of x(t) is called dBm (dB with respect to 1 mW).
Digital reference level dBm0 is the digital milliwatt as defined in ITU-T Recommendation G.168. The
method defined for measuring the input level of the signals is a root mean square (RMS) method. The
dBm0 is measured as
kN
+1 2
2
x
N
i
i=k
(A-law encoding),
Pk = 3.14 + 20 log
(A.30a)
4096
Pk = 3.17 + 20 log
2
N
kN
+1
i=k
8159
xi2
(-law encoding),
(A.30b)
where Pk is signal level in dBm0, xi is linear equivalent of the PCM encoded signal at time i, k is a
discrete time index, and N is the number of samples over which the RMS measurement is made.
References
[1] J. J. Tuma, Engineering Mathematics Handbook, New York: McGraw-Hall, 1979.
[2] ITU-T Recommendation G.168, Digital Network Echo Cancellers, 2000.