(c)
← Back to LINEAR SYSTEMS AND SIGNALS Overview (c)
In this case the angle appears in the third quadrant (see Fig. B.4c), and therefore the answer obtained by the calculator (tan−1(−3/−2) = 56.3◦) is off by 180◦. The correct answer is (56.3 ± 180)◦ = 236.3◦ or −123.7◦. We choose the principal value −123.7◦ so that (see Fig. B.4c)
(d)
In this case the angle appears in the fourth quadrant (see Fig. B.4d), and therefore the answer given by the calculator, tan−1(−3/1) = −71.6◦, is correct (see Fig. B.4d):
10 CHAPTER B BACKGROUND
We can easily verify these results using the MATLAB abs and angle commands. To obtain units of degrees, we must multiply the radian result of the angle command by 180 π . Furthermore, the angle command correctly computes angles for all four quadrants of √ the complex plane. To provide an example, let us use MATLAB to verify that −2 + j1 = 5*ej153.4◦ = 2.2361ej*153.4◦ .
abs(-2+1j) ans = 2.2361 >> angle(-2+1j)*180/pi ans = 153.4349
One can also use the cart2pol command to convert Cartesian to polar coordinates. Readers, particularly those who are unfamiliar with MATLAB, will benefit by reading the overview in Sec. B.7.
EXAMPLE B.2 Polar to Cartesian Form
Represent the following numbers in the complex plane and express them in Cartesian form: (a) 2ejπ/3, (b) 4e−j3π/4, (c) 2ejπ/2, (d) 3e−j3π , (e) 2ej4π , and (f) 2e−j4π .
(a) 2ejπ/3 = 2(cos π/3+jsin π/3) = 1+j √3 (see Fig. B.5a) (b) 4e−j3π/4 = 4(cos 3π/4−jsin 3π/4) = −2 √2−j2 √2 (see Fig. B.5b) (c) 2ejπ/2 = 2(cos π/2+jsin π/2) = 2(0+j1) = j2 (see Fig. B.5c) (d) 3e−j3π = 3(cos 3π −jsin 3π ) = 3(−1+j0) = −3 (see Fig. B.5d) (e) 2ej4π = 2(cos 4π +jsin 4π ) = 2(1+j0) = 2 (see Fig. B.5e) (f) 2e−j4π = 2(cos 4π −jsin 4π ) = 2(1−j0) = 2 (see Fig. B.5f)
We can readily verify these results using MATLAB. First, we use the exp function to represent a number in polar form. Next, we use the real and imag commands to determine the real and imaginary components of that number. To provide an example, let us use MATLAB to verify the result of part (a): 2ejπ/3 = 1+j √3 = 1+j1.7321.
>> real(2*exp(1j*pi/3)) ans = 1.0000>> imag(2*exp(1j*pi/3)) ans = 1.7321Since MATLAB defaults to Cartesian form, we could have verified the entire result in one step.
>> 2*exp(1j*pi/3) ans = 1.0000 + 1.7321iOne can also use the pol2cart command to convert polar to Cartesian coordinates.
ARITHMETICAL OPERATIONS, POWERS, AND ROOTS OF COMPLEX NUMBERS
To conveniently perform addition and subtraction, complex numbers should be expressed in Cartesian form. Thus, if
and
then
12 CHAPTER B BACKGROUND
If z1 and z2 are given in polar form, we would need to convert them into Cartesian form for the purpose of adding (or subtracting). Multiplication and division, however, can be carried out in either Cartesian or polar form, although the latter proves to be much more convenient. This is because if z1 and z2 are expressed in polar form as
and
then
and
Moreover,
and
(B.11)
This shows that the operations of multiplication, division, powers, and roots can be carried out with remarkable ease when the numbers are in polar form.
Strictly speaking, there are n values for z1/n (the nth root of z). To find all the n roots, we reexamine Eq. (B.11):
(B.12)
The value of z1/n given in Eq. (B.11) is the principal value of z1/n, obtained by taking the nth root of the principal value of z, which corresponds to the case k = 0 in Eq. (B.12).
EXAMPLE B.3 Multiplication and Division of Complex Numbers
Using both polar and Cartesian forms, determine z1z2 and z1/z2 for the numbers
and
Multiplication: Cartesian Form
Multiplication: Polar Form
Division: Cartesian Form
To eliminate the complex number in the denominator, we multiply both the numerator and the denominator of the right-hand side by 2−j3, the denominator’s conjugate. This yields
Division: Polar Form
It is clear from this example that multiplication and division are easier to accomplish in polar form than in Cartesian form.
These results are also easily verified using MATLAB. To provide one example, let us use Cartesian forms in MATLAB to verify that z1z2 = −6+j17.
>> z1 = 3+4j; z2 = 2+3j;>> z1*z2 ans = -6.0000 + 17.0000iAs a second example, let us use polar forms in MATLAB to verify that z1/z2 = 1.3868e−j3.2◦ . Since MATLAB generally expects angles be represented in the natural units of radians, we must use appropriate conversion factors in moving between degrees and radians (and vice versa).
>> z1 = 5*exp(1j*53.1*pi/180); z2 = sqrt(13)*exp(1j*56.3*pi/180);>> abs(z1/z2) ans = 1.3868>> angle(z1/z2)*180/pi ans = -3.2000EXAMPLE B.4 Working with Complex Numbers
For z1 = 2ejπ/4 and z2 = 8ejπ/3, find the following: (a) 2z1 −z2, (b) 1/z1, (c) z1/z2 2, and (d) √3 *z*2.
(a) Since subtraction cannot be performed directly in polar form, we convert z1 and z2 to Cartesian form:
Therefore,
(b)
(c)
(d) There are three cube roots of 8ej(π/3) = 8ej(π/3+2πk) , k = 0, 1, 2.
The value corresponding to k = 0 is termed the principal value.
EXAMPLE B.5 Standard Forms of Complex Numbers
Consider X(ω), a complex function of a real variable ω:
(a) Express X(ω) in Cartesian form, and find its real and imaginary parts.
(b) Express X(ω) in polar form, and find its magnitude |X(ω)| and angle X(ω).
This is the Cartesian form of X(ω). Clearly, the real and imaginary parts Xr(ω) and Xi(ω) are given by
and
(a) To obtain the real and imaginary parts of X(ω), we must eliminate imaginary terms in the denominator of X(ω). This is readily done by multiplying both the numerator and the denominator of X(ω) by 3−j4ω, the conjugate of the denominator 3+j4ω so that
This is the polar representation of X(ω). Observe that
LOGARITHMS OF COMPLEX NUMBERS
To take the natural logarithm of a complex number z, we first express z in general polar form as
Taking the natural logarithm, we see that
The value of lnz for k = 0 is called the principal value of lnz and is denoted by Lnz. In this way, we see that
In all of these cases, setting k = 0 yields the principal value of the expression.
We can further our logarithm skills by noting that the familiar properties of logarithms hold for complex arguments. Therefore, we have