Operations on Complex Numbers

To add or subtract complex numbers (which are entities of the form a+bia + bi) you do the appropriate thing to the real parts (the aa's) and the imaginary parts (the bb's) separately.

For example, we have

(4+3i)(7i)=(47)+(31)i=3+4i( 4 + 3i) - (7 - i) = (4 - 7) + (3 - -1)i = -3 + 4i

To multiply two complex numbers, you multiply out the terms in the two factors (using the linearity of multiplication (aka the distributive law) and use the fact that i2i^2 is 1-1.

For example, we get

(4+3i)(7i)=47+4(i)+3i7+3i(i)=284i+21i3i2=28+3+17i=31+17i \begin{aligned} (4 + 3i) * (7 - i) &= 4 * 7 + 4 * (- i) + 3i * 7 + 3i * (-i)\\ &= 28 - 4i + 21i - 3i^2\\ &= 28 + 3 + 17i\\ &= 31 + 17i \end{aligned}

Division is slightly trickier, because we want our answer to have the form a+bia + bi and not that of a ratio of such things (though aa and bb can be ratios).

To get this we use the wonderful fact that any complex number multiplied by its complex conjugate (what you get by reversing the sign of its bb) is a real number.

In symbols, this reads (a+bi)(abi)=(a2+b2)(a + bi) * (a - bi) = (a^2 + b^2).

How come?

Multiply it out using the distributive law and see.

What good is this?

We rewrite this equation as a+bi=a2+b2abia + bi = \frac{a^2 + b^2}{a - bi}, which tells us that multiplying by (a+bi)(a + bi) is the same as multiplying by the real number (a2+b2)(a^2 + b^2), and dividing by (abi)(a - bi).

This means dividing by (a+bi)(a + bi) is the reciprocal operation to that, which is multiplying by (abi)(a - bi) and also dividing by the real number (a2+b2)(a^2 + b^2).

So dividing by a complex number, say (3+2i)(3 + 2i) is the same as multiplying by (32i)(3 - 2i) and dividing the result by 32+223^2 + 2^2 which is 9+49 + 4 or 1313.

So, for example, 7i(3+2i)\frac{7-i}{(3+2i)} is (7i)(32i)13\frac{(7-i)(3-2i)}{13} which is (212)(14+3)i)13\frac{(21-2)-(14+3)i)}{13} or 1917i13\frac{19-17i}{13}.

We thus have rules for adding, subtracting, multiplying and dividing complex numbers.

By the way, the quantity a2+b2a^2 + b^2 is called the square of the magnitude of the complex number a+bia + bi.

Geometric Representations of Complex Numbers

A complex number, (a+iba + ib with aa and bb real numbers) can be represented by a point in a plane, with xx coordinate aa and yy coordinate bb.

This defines what is called the "complex plane". It differs from an ordinary plane only in the fact that we know how to multiply and divide complex numbers to get another complex number, something we do not generally know how to do for points in a plane.

This picture suggests that there is another way to describe a complex number. Instead of using its real and imaginary parts, which are its xx and yy coordinates to describe it. We can use the distance from its point in the complex plane to the origin (0,0)(0,0), and the angle formed by a line segment from the origin to that point, and the positive half of the xx axis. The distance to the origin is usually denoted as rr, that angle is usually called θθ (theta). θθ is called the "phase" and sometimes the "argument"" of the complex number. The distance to the origin is called its "magnitude" and also its "absolute value".

How are these parameters, rr and θ\theta, related to aa and bb?

We use the Euclidean definition of distance, for which the Pythagorean theorem holds. This tells us

r2=a2+b2and sor=a2+b2r^2 = a^2 + b^2 \enspace \text{and so} \enspace r = \sqrt{a^2 + b^2}

As for θ\theta, we use the standard trigonometric definitions of sines and cosines. The sine of an angle is defined to be the ratio of its y-coordinate bb to length rr, and the cosine is the ratio of its x-coordinate aa to rr. Thus θ\theta is an angle whose sine is yr\frac{y}{r}, and whose cosine is xr\frac{x}{r}.

This gives us the relations

a=rcosθandb=rsinθa = r\cos\theta \enspace \text{and} \enspace b = r\sin\theta

What good is this?

Lots of good as we shall eventually see. But right now we can notice the following curious fact:

In terms of aa and bb, called the real and imaginary parts of the complex number, addition and subtraction are easy to describe, (add or subtract each part separately as if the other didn’t exist: (a+bi)+(c+di)=(a+c)+(b+d)i(a+bi) + (c+di) = (a+c) + (b+d)i, but multiplication and division are a bit ugly.

In terms of rr and θθ, the magnitude and phase of a complex number, the opposite is true. That is, multiplication and division are easy to describe, while addition and subtraction are a bit ugly.

How so?

Well, you can multiply two complex numbers together by multiplying their magnitudes together, and adding their phases. You divide by dividing the magnitudes correspondingly, and subtracting the phase of the denominator from that of the numerator.

Explicitly, we have the product of the complex number with magnitude r1r_1 and phase θ1\theta_1 with the complex number with magnitude and phase r2r_2 and θ2\theta_2, is the complex number with magnitude r1r2r_1*r_2, and phase θ1+θ2\theta_1 + \theta_2.

(The rules for adding and subtracting in terms of magnitude and phase can be deduced from the rules in terms of real and imaginary parts, but are not particularly illuminating, because they are messy.)

You can see all this on the following mathlet. You can move the complex numbers, ww and zz around by clicking the left mouse button on the appropriate head and holding it down as you move. It allows you to examine the behavior of sums products differences and ratios of complex numbers as you change them. To see what you can do with this mathlet, click on "+ about" in its upper right hand corner.