Chapter 2

Complex Numbers and Exponentials

Abstract

This chapter introduces the importance of complex numbers and exponentials which are an integral part of digital communications and digital signal processing (DSP). The reason of delving deep into this area leads the readers to two-dimensional number plane, which help to understand DSP. The operators such as addition, subtraction, and multiplication take people through the complex side of numbers which are explained in two dimensions. The use of complex conjugate and complex exponential—in the number plane—allows readers understand the relationship of basic characteristics of numbers and its treatment. The chapter further looks into measuring angles in radians, which leads to the use of pi and the equivalence of the degrees and radians in measuring angles. DSP therefore uses this concept in later stages to understand the clockwise and anticlockwise movement around the circle.

Keywords

Complex conjugate; Complex exponential; Digital signal processing; Euler equation; Polar representation
Complex numbers are one of those things many of us were taught a long time ago and have long since forgotten. Unfortunately, they are important in digital communications and digital signal processing (DSP), so we need to resurrect them.
What we were taught and some of us vaguely remember is that a complex number has a “real” and “imaginary” part, and the imaginary part is the square root of a negative number, which is really a nonexistent number. This right away sounds fishy, and while it's technically true, there is a much more intuitive way of looking at it.
The whole reason for “complex numbers” is that we are going to need a two dimensional number plane to understand DSP. The traditional number line extends from plus infinity to minus infinity, along a single line. To represent many of the concepts in DSP, we need two dimensions. This requires two orthogonal axes, like a North–South line and an East–West line. For the arithmetic to work out, one line, usually depicted as the horizontal line, is the real number line. The other vertical line is the imaginary line. All imaginary numbers are prefaced by “j”, which is defined as the square root of 1. Do not get confused by this imaginary number stuff, but rather view “j” as an arbitrary construct we will use to differentiate the horizontal axis (normal) numbers from those on the vertical axis. This is the essence of this whole chapter.
As depicted in Fig. 2.1, any complex number Z has a real and imaginary part, and is expressed as X + j·Y, or just X + jY. The value of X and Y for any point is determined by the distance one must travel in the direction of each axis to arrive at the point. It can also be visualized as a point on the complex number plane, or as a vector originating at the origin and terminating at the point. We need to be able to do arithmetic with complex numbers. There has to be a way to keep track the vertical and horizontal components. That is where the “j” comes in (in some texts, “i” is used instead).
image
Figure 2.1 I-Q complex number plane.

2.1. Complex Addition and Subtraction

Adding and subtracting is simple—just add and subtract the vertical and horizontal components separately. The “j” helps us keep from mixing the vertical and horizontal components. For example:

(3+j4)(1j6)=2+j10

image
Scaling a complex number is just simply scaling each component:

4·(3+j4)=12+j16

image

2.2. Complex Multiplication

Multiplication gets a little trickier and is harder to visualize graphically. Here is the way the mechanics of it work:

(A+jB)·(C+jD)=A·C+jB·C+A·jD+jB·jD=AC+jBC+jAD+j2BD

image
Now remember that j2 is by definition equal to 1. After collecting terms:

AC+jBC+jAD+j2BD=AC+jBC+jADBD=(ACBD)+j(BC+AD)

image
The result is another complex number, with ACBD being the real part, and BC + AD being the imaginary part (remember, imaginary just means the vertical axis, while real is the horizontal axis). This result is just another point on the complex plane.
This mechanics of this arithmetic may be simple, but we need to be able to visualize what is really happening. To do this, we need to introduce polar (R-Ω) representation. Up until now, we have been using Cartesian (X-Y) coordinates, which means each location on the complex number plane is specified by the distance along each of the two axes (like longitude and latitude on the earth's surface). What polar representation does is to replace these two parameters, which can specify any point on the complex plane, with another set of two parameters, which also can specify any point on the complex plane. The two new parameters are the magnitude and angle. The magnitude is simply the length of the line or vector from the origin to the point. The angle is defined as the angle of this line starting at the positive X axis and arcing counterclockwise.
image
Figure 2.2 Magnitude-angle complex number plane.
This is shown in Fig. 2.2, where the same point Z = X + jY is identified by having radius R (length of vector from origin to the point) with angle Ω specified a counterclockwise from positive real axis.
Any point Z on the graph may be specified as X + jY or R with angle Ω.
The relationships between these go back to basic high school math. Consider the right triangle formed in Fig. 2.3, with sides X, Y, R, and angle Ω.
Remember the Pythagorean theorem? For any right triangle, X2 + Y2 = R2.
Also, remember that sine is defined as length of opposite side divided by hypotenuse, and cosine is defined as length of adjacent side divided by hypotenuse (but must be a right triangle). Tangent is defined as opposite over adjacent side. So we get the following relationships, which can be used to convert between Cartesian (X, Y) and polar (R, Ω):
image
Figure 2.3 Cartisian and polar conversion relationships.

2.3. Polar Representation

sin(Ω)=(Y/R)Y=R·sin(Ω)

image

cos(Ω)=(X/R)X=R·cos(Ω)

image

X2+Y2=R2R=sqrt(X2+Y2)

image

tan(Ω)=(Y/X)Ω=arctan(Y/X)

image
The reason for this little foray into polar representation is that multiplication (and division) of complex numbers is very easy in polar form, and that angles in the complex plane can be easily visualized in polar form.

2.4. Complex Multiplication Using Polar Representation

We will define two points, Z1 and Z2.

Z1=R1angle(Ω1)Z2=R2angle(Ω2)

image

Z1·Z2=(R1·R2)angle(Ω1+Ω2)

image
What this means is that with any two complex numbers, the magnitude, or distance from the origin to the radius, gets multiplied together to form the new magnitude. This makes sense intuitively. The angles of the two complex numbers get added together to form the new angle. Not so intuitive, so let us try a few examples to get the hang of it.
Let us use real numbers to start–a real number is just a complex number with the “j” part equal to zero. Real numbers are “simplified” version of complex numbers, so any arithmetic rules on a complex number had better work with the real numbers.

Z=Rangle(Ω)forrealnumber,theanglemustbeequalto0

image
Then X = R·cos(0) or X = R and Y = R·sin(0) or Y = 0. This is what we expect–the Y portion must be zero for the number to lie on the X (real number) axis.
Now consider two complex numbers, both with angle zero.

Z1=R1angle(0),Z2=R2angle(0)withtheproduct

image

Z1·Z2=R1·R2angle(0+0)=R1·R2(revertstotraditionalmultiplication)

image
Now consider another set complex numbers, both with angles of 180°degrees.

Z1=R1angle(180),Z2=R2angle(180)

image
From relation above, Y = R·sin (Ω), X = R·cos (Ω). With angle of 180°degrees, Y = 0, X = R, meaning the point Z lies on the negative part of real axis. Z is simply a negative real number. If we multiply two real negative numbers, we know that we should get a real positive number. Let us check using complex multiplication.

Z1·Z2=R1·R2angle(180+180)=R1·R2angle(360).

image
The angle 360°degrees is all the way around the circle and equal to 0°degree.

Z1·Z2=R1·R2angle(360)=R1·R2angle(0)=R1·R2=X1·X2

image
The result is a real positive number.
There is another point to all these exercises, which is to explain why we chose something strange like j equals square root of 1 to designate the vertical axis in the complex number plane. Be a little more patient—we are almost there.
There are 4 “special” angles—0, 90, 180, and 270 degrees. Notice that:
Z = R angle (0) = X degrees is a positive real number on positive real axis
Z = R angle (90) = Y degrees is a positive imaginary number on positive imaginary axis
Z = R angle (180) = X degrees is a negative real number on negative real axis
Z = R angle (270) = Y degrees is a negative imaginary number on negative imaginary axis
If we add 360 degrees to any complex number, it wraps all the way around the circle. Or we can have a negative angle, which means just going backwards (clockwise) around the circle.
Z = R angle (0) = R angle (360) = R angle (720)…
Z = R angle (120) = R angle (480) = R angle (840)…
Z = R angle (90) = R angle (270) = R angle (630)…
Z = R angle (53) = R angle (307) = R angle (667)…
We now know when multiplying two complex numbers, the magnitudes R are multiplied and the angles Ω are summed. Now let us consider a few example cases to illustrate how this imaginary “j” operator helps us.
Imagine two complex numbers with only an imaginary component. They are both located on the positive imaginary axis.

Z1=jY1,Z2=jY2(realpartsX1=X2=0)

image

Z1·Z2=jY1·jY2=j·j·Y1·Y2

image
Recall we defined j = sqrt(1), so j2 = 1

Z1·Z2=(Y1·Y2),anegativerealnumber

image
Or equivalently,

Z1=R1angle(90),Z2=R2angle(90)

image

Z1·Z2=R1·R1angle(180)=(R1·R2)=(Y1·Y2)sinceX1=X2=0

image
You can experiment with other combinations, but what you will find is that the arithmetic of adding angles around the circle when multiplying complex numbers works out perfectly when we designate the positive imaginary axis with j, and the negative imaginary axis with–j.
By visualizing this business of going round the circle, you can see by inspection that:
Multiply two positive real numbers, both angles = 0, result has angle of zero.

3·5=15

image
Multiply two negative real numbers, both angles = 180 (or 180), result has angle of zero (or 360).

3·5=15

image
Multiply a positive real number (angle 0) with a negative real number (angle 180), result has angle of 180—a negative real number.

3·5=15

image
Multiply a positive real number (angle 0) with a positive imaginary number (angle 90), result has angle of 90—an imaginary number.

j3·5=j15

image
Multiply a positive imaginary number (angle 90) with a positive imaginary number (angle 90), result has angle of 180—a negative real number.

j3·j5=j2·15=15

image
Multiply a negative imaginary number (angle 90) with a negative imaginary number (angle 90), result has angle of 180—a negative real number.

j3·j5=(j)·(j)·15=(((15)))=15

image
Multiply a positive imaginary number (angle 90) with a negative imaginary number (angle 90), result has angle of 0—a positive real number.

j3·j5=j·(j)·15=((15))=15

image

2.5. Complex Conjugate

The last example illustrates a special case. Every number Z = R angle (Ω) has, what is called, a complex conjugate, Z∗ = R angle (Ω). In the example above, Ω = 90, but Ω can be any angle. The “∗” symbol is the complex conjugate symbol and means to take the point Z and mirror it across the X axis as shown in Fig. 2.4.
So Z = X + jY has conjugate Z∗ = X–jY. We just negate or reverse sign of imaginary part of a number to get its conjugate, or if in polar form, just negate the sign of the angle.

Z=Rangle(Ω),Z=Rangle(Ω)

image
A special property of the complex conjugate is that for any complex number:

Z·Z=Rangle(Ω)·Rangle(Ω)=R2angle(0).

image
In other words, when you multiply a number by its conjugate, the product is a real number, equal to the magnitude squared. This will become important in digital communication, because it can be used to compute the power of a complex signal.
To summarize, we have tried to show that the imaginary numbers which are used to form things called complex numbers are really not so complex, and imaginary is really a very misleading description. What we have really been after is to create a two dimensional number plane, and define a set of expanded arithmetic rules to manipulate the numbers in it. Now we are ready to move onto the next topic, the complex exponential.
image
Figure 2.4 Complex conjugate diagram.

2.6. The Complex Exponential

The complex exponential has an intimidating sound to it, but in reality, it is very simple to visualize. It is simply the unit circle (radius = 1) on the complex number plane (Fig. 2.5).
Any point on the unit circle can be represented by “e” or raised to the power (j·angle) or more also expressed e, which is called a complex exponential function. A few examples should help.
Let the angle Ω = 0°degree. Anything raised to the power 0 is equal to 1. This checks out, since this is the Point 1 on the positive real axis.
Let angle Ω = 90°degrees. The complex exponential is ej90. This is the point j on the positive imaginary axis. We need a way to evaluate the complex exponential to show this. This leads to the Euler equation. This equation can easily be derived using series Taylor expansion for exponential, but we have promised to minimize the math. But the result is:

ejΩ=cos(Ω)+jsin(Ω)

image
Let us try exp(j90) again. Using Euler equation

ej90=cos(90)+jsin(90)=0+j·1=j

image
Imagine the point Z = e with the angle Ω starting at 0°degree and gradually increasing to 360°degrees. This will start at the point +1 on real axis, and move counter-clockwise around the circle until it ends up where it started, at 1 again. If the angle starts at 0 and gradually decreases until it reached 360, the point will do exactly the same thing, except rotate in a clockwise fashion.
image
Figure 2.5 Complex exponetial diagram.
Now we know that from the Euler equation that the complex exponential has a real and imaginary component. Try to imagine the movement of the point on the unit circle as reflected on the real axis (imagine a second point, allowed to move only on the real axis, trying to follow the first point as it moves about the circle). The movement of the second point on the real axis will equal to cos(Ω). So if we continually rotate in either direction about the unit circle, the real component will move back and forth between +1 and 1 using the motion of the cosine function. Similarly, the movement of the point on the unit circle as reflected on the imaginary axis will be similar, except instead of starting at value of +1, it will start with value 0. The pattern of motion will lag by 90°degrees. The imaginary axis movement is equal to j·sin(Ω), and the imaginary component will move back and forth between j and j using the sine function.
This is shown in Fig. 2.6, where the dashed line represents the imaginary axis movement j·sin(Ω) and the dotted line represents the real axis movement of cos(Ω).

X=cos(Ω)(realaxismovement)

image

Y=sin(Ω)(imaginaryaxismovement)

image
This gives us better way to express a complex number in polar coordinates.
Recall Z = X + jY = R angle (Ω)
As we saw before,

X=Rcos(Ω)

image

Y=Rsin(Ω)

image
image
Figure 2.6 Graphing of complex exponetial.
So we can see that angle (Ω) has the same meaning as exp(jΩ). Also, for the unit circle, R = 1 by definition. So our new way to express a number in polar form using the complex exponential is:

Z=Rangle(Ω)=RejΩ(anypointincomplexplane)

image

Z=angle(Ω)=ejΩ(forR=1,anypointontheunitcircle)

image
This is the way you will often see it in the textbooks and industry literature.

2.7. Measuring Angles in Radians

The last curve ball in this chapter involves measuring angles in radians. You will have to get used to this, because you will see it everywhere in DSP. In our discussion, to make things more familiar, we started measuring angles in degrees, where 360°degrees describes a full circle. More commonly, the angle measurement in radians is based upon π, which is a number defined to have a value of about 3.141592 (it actually is an irrational number, with infinite number of digits, like 1/3 = 0.3333….). It takes exactly 2π radians to describe a full circle (Table 2.1).
Just like angle measurements are periodic in 360°degrees, they are also periodic in 2π radians. Using π is really no different than getting used to meters rather than using feet for measuring distances (or the reverse if you did not grow up in the United States).
We are going to see this same concept later in sampling theory, where everything tends to wraps around or behave periodically. We can visualize this as traveling either clockwise (negative rotation) or counter-clockwise (positive rotation) around the circle.
There is one more DSP convention to be aware of. The real component (we used X in discussion above) is usually called the “I” or in-phase component, and the imaginary component (we used Y in discussion above) is usually referred to as the “Q” or quadrature phase component. In many DSP algorithms, the digital signal processing must be performed simultaneously on both I and Q data streams, which we now know simply represents the signal's movement, over time, within the two dimensions of our complex number plane.

Table 2.1

Mapping Between Degrees and Radians

Angle in DegreesAngle in Radians
00 π
45π/4
90π/2
180 = 180π = π
270 = 90(3/2) π = π/2
360 = 0 = 
360 = 0 = 
540 = 180 = π
540 = 180 = 180 = π = π
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.26.118