Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » A First Course in Electrical and Computer Engineering » Complex Numbers: Algebra of Complex Numbers

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Endorsed by Endorsed (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.
  • IEEE-SPS

    This collection is included inLens: IEEE Signal Processing Society Lens
    By: IEEE Signal Processing Society

    Click the "IEEE-SPS" link to see all content they endorse.

  • College Open Textbooks display tagshide tags

    This collection is included inLens: Community College Open Textbook Collaborative
    By: CC Open Textbook Collaborative

    Comments:

    "Reviewer's Comments: 'I recommend this book as a "required primary textbook." This text attempts to lower the barriers for students that take courses such as Principles of Electrical Engineering, […]"

    Click the "College Open Textbooks" link to see all content they endorse.

    Click the tag icon tag icon to display tags associated with this content.

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Bookshare

    This collection is included inLens: Bookshare's Lens
    By: Bookshare - A Benetech Initiative

    Comments:

    "Accessible versions of this collection are available at Bookshare. DAISY and BRF provided."

    Click the "Bookshare" link to see all content affiliated with them.

  • NSF Partnership display tagshide tags

    This collection is included inLens: NSF Partnership in Signal Processing
    By: Sidney Burrus

    Click the "NSF Partnership" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

  • Featured Content display tagshide tags

    This collection is included inLens: Connexions Featured Content
    By: Connexions

    Comments:

    "A First Course in Electrical and Computer Engineering provides readers with a comprehensive, introductory look at the world of electrical engineering. It was originally written by Louis Scharf […]"

    Click the "Featured Content" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • UniqU content

    This collection is included inLens: UniqU's lens
    By: UniqU, LLC

    Click the "UniqU content" link to see all content selected in this lens.

  • Evowl

    This collection is included inLens: Rice LMS's Lens
    By: Rice LMS

    Comments:

    "Language: en"

    Click the "Evowl" link to see all content selected in this lens.

  • Busbee's Math Materials display tagshide tags

    This module is included inLens: Busbee's Math Materials Lens
    By: Kenneth Leroy Busbee

    Click the "Busbee's Math Materials" link to see all content selected in this lens.

    Click the tag icon tag icon to display tags associated with this content.

  • Lens for Engineering

    This module and collection are included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
Reuse / Edit
x

Collection:

Module:

Add to a lens
x

Add collection to:

Add module to:

Add to Favorites
x

Add collection to:

Add module to:

 

Complex Numbers: Algebra of Complex Numbers

Module by: Louis Scharf. E-mail the author

Note:

This module is part of the collection, A First Course in Electrical and Computer Engineering. The LaTeX source files for this collection were created using an optical character recognition technology, and because of this process there may be more errors than usual. Please contact us if you discover any errors.

The complex numbers form a mathematical “field” on which the usual operations of addition and multiplication are defined. Each of these operations has a simple geometric interpretation.

Addition and Multiplication.

The complex numbers z 1 z 1 and z 2 z 2 are

added according to the rule

z 1 + z 2 = ( x 1 + j y 1 ) + ( x 2 + j y 2 ) = ( x 1 + x 2 ) + j ( y 1 + y 2 ) . z 1 + z 2 = ( x 1 + j y 1 ) + ( x 2 + j y 2 ) = ( x 1 + x 2 ) + j ( y 1 + y 2 ) .
(1)

We say that the real parts add and the imaginary parts add. As illustrated in Figure 1, the complex number z1+z2z1+z2 is computed from a “parallelogram rule,” wherein z1+z2z1+z2 lies on the node of a parallelogram formed from z1 z1 and z 2 z 2 .

Exercise 1

Let z1=r1ejθ1z1=r1ejθ1 and z2=r2ejθ2z2=r2ejθ2. Find a polar formula z3=z3=r3ejθ3r3ejθ3 for z3=z1+z2z3=z1+z2 that involves only the variables r1,r2,θ1r1,r2,θ1, and θ 2 θ 2 . The formula for r 3 r 3 is the “law of cosines.”

The product of z1 and z2 is

z 1 z 2 = ( x 1 + j y 1 ) ( x 2 + j y 2 ) = ( x 1 x 2 - y 1 y 2 ) + j ( y 1 x 2 + x 1 y 2 ) . z 1 z 2 = ( x 1 + j y 1 ) ( x 2 + j y 2 ) = ( x 1 x 2 - y 1 y 2 ) + j ( y 1 x 2 + x 1 y 2 ) .
(2)
Figure 1: Adding Complex Numbers
This cartesian graph has a three line segments extending from the origin. The middle line follow a positive slope to a point labeled z_1+z_2. The upper line follows a more positive slope to a point labeled a_2 and then from that point to point z_1+z_2 there is a dashed line. The bottom line segment has the the least positive but still positive slope and ends at a point labeled z_1. from that point a dashed line proceeds up to point z_1+z_2. Together the lines form a diamond bisected by the middle line that extends from the origin to the point z_1+z_2.

If the polar representations for z 1 z 1 and z 2 z 2 are used, then the product may be written as 1

z 1 z 2 = r 1 e j θ 1 r 2 e j θ 2 = ( r 1 cos θ1+ j r 1 sin θ 1 ) ( r 2 cos θ 2 + j r 2 sin θ 2 ) = ( r 1 c o s θ 1 r 2 c o s θ 2 - r 1 s i n θ 1 r 2 s i n θ 2 ) + j ( r 1 s i n θ 1 r 2 c o s θ 2 + r 1 c o s θ 1 r 2 s i n θ 2 ) = r 1 r 2 cos ( θ 1 + θ 2 ) + j r 1 r 2 sin ( θ 1 + θ 2 ) = r 1 r 2 e j ( θ 1 + θ 2 ) . z 1 z 2 = r 1 e j θ 1 r 2 e j θ 2 = ( r 1 cos θ1+ j r 1 sin θ 1 ) ( r 2 cos θ 2 + j r 2 sin θ 2 ) = ( r 1 c o s θ 1 r 2 c o s θ 2 - r 1 s i n θ 1 r 2 s i n θ 2 ) + j ( r 1 s i n θ 1 r 2 c o s θ 2 + r 1 c o s θ 1 r 2 s i n θ 2 ) = r 1 r 2 cos ( θ 1 + θ 2 ) + j r 1 r 2 sin ( θ 1 + θ 2 ) = r 1 r 2 e j ( θ 1 + θ 2 ) .
(3)

We say that the magnitudes multiply and the angles add. As illustrated in Figure 2, the product z1z2z1z2 lies at the angle (θ1+θ2)(θ1+θ2).

Figure 2: Multiplying Complex Numbers
This cartesian graph contains three line segments extending from the origrin at different positive slopes. The upper line extends at the most positive slop to a point labeled z_1z_2. About three fourths of the way up this line there is the label r_1r_2. The middle line extends from the origin to a point labeled z_2. The bottom line extends from the origin to a point labeled z_1. From the x-axis to the middle of the upper line there is a curved line intesecting all of the previously mentioned line segments. The area of the curved line between the bottom and middle line segment is labeled θ_1+θ_2.

Rotation. There is a special case of complex multiplication that will become very important in our study of phasors in the chapter on Phasors. When z 1 z 1 is the complex number z1=r1ejθ1z1=r1ejθ1 and z 2 z 2 is the complex number z2=ejθ2z2=ejθ2, then the product of z 1 z 1 and z 2 z 2 is

z1z2=z1ejθ2=r1ej(θ1+θ2).z1z2=z1ejθ2=r1ej(θ1+θ2).
(4)

As illustrated in Figure 3, z1z2z1z2 is just a rotation of z 1 z 1 through the angle θ 2 θ 2 .

Figure 3: Rotation of Complex Numbers
The Cartesian graph contains two line segments extending from the origin. The upper line follows a positive slope to point z_1e^{jθ_2}. The bottom line follows a positive slope to a point labeled z_1. There is a curved line in between these lines the labels the angle created by these line segments as θ_2.

Exercise 2

Begin with the complex number z1=x+jy=rejθz1=x+jy=rejθ. Compute the complex number z2=jz1z2=jz1 in its Cartesian and polar forms. The complex number z 2 z 2 is sometimes called perp(z1)(z1). Explain why by writing perp(z1)(z1) as z1ejθ2z1ejθ2. What is θ 2 θ 2 ? Repeat this problem for z3=-jz1z3=-jz1.

Powers. If the complex number z 1 z 1 multiplies itself NN times, then the result is

(z1)N=r1NejNθ1.(z1)N=r1NejNθ1.
(5)

This result may be proved with a simple induction argument. Assume z1k=r1kejkθ1z1k=r1kejkθ1. (The assumption is true for k=1.k=1.) Then use the recursion z1k+1=z1kz1=r1k+1ej(k+1)θ1z1k+1=z1kz1=r1k+1ej(k+1)θ1. Iterate this recursion (or induction) until k+1=Nk+1=N. Can you see that, as n ranges from n=1,...,Nn=1,...,N, the angle of z§ranges from θ1 to 2θ1,...2θ1,..., to Nθ1Nθ1 and the radius ranges from r1 to r12,...r12,..., to r1Nr1N ? This result is explored more fully in Problem 1.19.

Complex Conjugate. Corresponding to every complex number z=z= x+jy=rejθx+jy=rejθ is the complex conjugate

z*=x-jy=re-jθ.z*=x-jy=re-jθ.
(6)

The complex number zz and its complex conjugate are illustrated in Figure 4. The recipe for finding complex conjugates is to “change jto-jjto-j. This changes the sign of the imaginary part of the complex number.

Figure 4: A Complex Variable and Its Complex Conjugate
The Cartesian graph contains two line segments extending from the origin. The y axis is labeled the imaginary axis and the x-axis is labeled the real axis. The upper line follows a positive slope from the origin to a point labeled z. About half way up on this line is the label r. The bottom line follows a negative slope from the origin to a point labeled z^*. About half way up on this line is the label r. About halfway up on this line is a curve labeling the angle from the line to the x-axis -θ. Another curve extends from the x-axis to the upper line labeling the angle θ.

Magnitude Squared. The product of z and its complex conjugate is called the magnitude squared of z and is denoted by |z|2|z|2 :

|z|2=z*z=(x-jy)(x+jy)=x2+y2=re-jθrejθ=r2.|z|2=z*z=(x-jy)(x+jy)=x2+y2=re-jθrejθ=r2.
(7)

Note that |z|=r|z|=r is the radius, or magnitude, that we defined in "Geometry of Complex Numbers".

Exercise 3

Write z * z * as z*=zwz*=zw. Find ww in its Cartesian and polar forms.

Exercise 4

Prove that angle (z2z1*)=θ2-θ1(z2z1*)=θ2-θ1.

Exercise 5

Show that the real and imaginary parts of z=x+jyz=x+jy may be written as

Re [ z ] = 1 2 ( z + z * ) Re [ z ] = 1 2 ( z + z * )
(8)
Im [ z ] = 2 j ¯ ( z - z * ) . Im [ z ] = 2 j ¯ ( z - z * ) .
(9)

Commutativity, Associativity, and Distributivity. The complex numbers commute, associate, and distribute under addition and multiplication as follows:

z 1 + z 2 = z 2 + z 1 z 1 z 2 = z 2 z 1 z 1 + z 2 = z 2 + z 1 z 1 z 2 = z 2 z 1
(10)
( z 1 + z 2 ) + z 3 = z 1 + ( z 2 + z 3 ) z 1 ( z 2 z 3 ) = ( z 1 z 2 ) z 3 z 1 ( z 2 + z 3 ) = z 1 z 2 + z 1 z 3 . ( z 1 + z 2 ) + z 3 = z 1 + ( z 2 + z 3 ) z 1 ( z 2 z 3 ) = ( z 1 z 2 ) z 3 z 1 ( z 2 + z 3 ) = z 1 z 2 + z 1 z 3 .
(11)

Identities and Inverses. In the field of complex numbers, the complex number 0+j00+j0 (denoted by 0) plays the role of an additive identity, and the complex number 1+j01+j0 (denoted by 1) plays the role of a multiplicative identity:

z + 0 = z = 0 + z z 1 = z = 1 z . z + 0 = z = 0 + z z 1 = z = 1 z .
(12)

In this field, the complex number -z=-x+j(-y)-z=-x+j(-y) is the additive inverse of z, and the complex number z-1=xx2+y2+j(-yx2+y2)z-1=xx2+y2+j(-yx2+y2) is the multiplicative inverse:

z + ( - z ) = 0 z z - 1 = 1 . z + ( - z ) = 0 z z - 1 = 1 .
(13)

Exercise 6

Show that the additive inverse of z=rejθz=rejθ may be written as rej(θ+π).rej(θ+π).

Exercise 7

Show that the multiplicative inverse of z z may be written as

z - 1 = 1 z * z z * = 1 x 2 + y 2 ( x - jy ) . z - 1 = 1 z * z z * = 1 x 2 + y 2 ( x - jy ) .
(14)
Show that z*zz*z is real. Show that z-1z-1 may also be written as
z - 1 = r - 1 e - j θ . z - 1 = r - 1 e - j θ .
(15)
Plot zz and z-1z-1 for a representative zz.

Exercise 8

Prove (j)-1=-j(j)-1=-j.

Exercise 9

Find z-1z-1 when z=1+j1z=1+j1.

Exercise 10

Prove (z-1)*=(z*)-1=r-1ejθ=1z*zz(z-1)*=(z*)-1=r-1ejθ=1z*zz. Plot zz and (z-1)*(z-1)* for a representative zz.

Exercise 11

Find all of the complex numbers zz with the property that jz=-z*jz=-z*. Illustrate these complex numbers on the complex plane.

Demo 1.2 (MATLAB). Create and run the following script file (name it Complex Numbers)2

clear, clg
j=sqrt(-1)
z1=1+j*.5,z2=2+j*1.5
z3=z1+z2,z4=z1*z2
z5=conj(z1),z6=j*z2
avis([-4 4 -4 4]),axis('square'),plot(z1,'0')
hold on
plot(z2,'0'),plot(z3,'+'),plot(z4,'*'),
plot(z2,'0'),plot(z3,'+'),plot(z4,'*'),
plot(z5,'x'),plot(z6,'x')
Figure 5: Complex Numbers (Demo 1.2)
This Cartesian graph contains six line segments extending from the origin. Four line segments exist in quadrant I. The uppermost line in this quadrant extends from the origin to a point labeled prod. The line below this on is shorter and extends to a point labeled z2. The line below this one is the longest line and extends to a point labeled sum. The bottom line is the shortest and extends to a point labeled z1. In quadrant II there is only one line segment. The line segment follows a negative slope from the origin to perp(z2). There are no lines in quadrand III. Quandrants four also contain a single line segment. It follows a negative slope and extends from the origin to a point labeled conj(z1).

With the help of Appendix 1, you should be able to annotate each line of this program. View your graphics display to verify the rules for add, multiply, conjugate, and perp. See Figure 5.

Exercise 12

Prove that z 0 = 1 z 0 =1.

Exercise 13

(MATLAB) Choose z 1 = 1.05 e j 2 π / 16 z 1 =1.05 e j 2 π / 16 and z 2 = 0.95 e j 2 π / 16 z 2 =0.95 e j 2 π / 16 . Write a MATLAB program to compute and plot z 1 n z 1 n and z 2 n z 2 n for n = 1 , 2 , ... , 32 . n=1,2,...,32. You should observe a figure like Figure 6.

Figure 6: Powers of z
A graph of two concentric swirl designs.

Footnotes

  1. We have used the trigonometric identities cos(θ1+θ2)=cosθ1cos(θ1+θ2)=cosθ1 cos θ2-θ2- sin θ1 sin θ2 and sin(θ1+θ2)=sinθ1sin(θ1+θ2)=sinθ1 cos θ2+cosθ1θ2+cosθ1 sin θ2 to derive this result.
  2. If you are using PC-MATLAB, you will need to name your file cmplxnos.m.

Collection Navigation

Content actions

Download module as:

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit collection (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.

| Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.