# High School Mathematics Extensions/Supplementary/Complex Numbers

## Introduction

All supplementary chapters contain materials that are part of the standard high school mathematics curriculum, therefore the material is only provided for completeness and should mostly serve as revision.

Although the real numbers can, in some sense, represent any natural quantity, they are in another sense incomplete. We can write certain types of equations with real number coefficients which we desire to solve, but which have no real number solutions. The simplest example of this is the equation:

$\begin{matrix} x^2 + 1 &=& 0 \\ x^2 &=& -1 \\ x &=& \sqrt {-1} \end{matrix}$

Your high school math teacher may have told you that there is no solution to the above equation. He/she may have even emphasised that there is no real solution. But we can, in fact, extend our system of numbers to include the complex numbers by declaring the solution to that equation to exist, and giving it a name: the imaginary unit, $i$.

Let's imagine for this chapter that $i = \sqrt{-1}$ exists. Hence x = i is a solution to the above question, and $i^2 = -1$.

A valid question that one may ask is "Why?". Why is it important that we be able to solve these quadratics with this seemingly artificial construction? It is interesting delve a little further into the reason why this imaginary number was introduced in the first place - it turns out that there was a valid reason why mathematicians realized that such a construct was useful, and could provide deeper insight.

The answer to the question lies not in the solution of quadratics, but rather in the solution of the intersection of a cubic and a line. The mathematician Cardano managed to come up with an ingenious method of solving cubics - much like the quadratic formula, there is also a formula that gives us the roots of cubic equations, although it is far more complicated. Essentially, we can express the solution of a cubic $x^3 = 3px + 2q$ in the form

$x=\sqrt[3]{q + \sqrt{q^2 - p^3}} + \sqrt[3]{q - \sqrt{q^2-p^3}}$

An unsightly expression, indeed!

You should be able to convince yourself that the line $y = 3px + 2q$ must always hit the cubic $y=x^3$. But try solving some equation where $q^2 < p^3$, and you run into a problem - the problem is that we are forced to deal with the square root of a negative number. But, we know that in fact there is a solution for x; for example, $x^3 = 15x + 4$ has the solution x = 4.

It became apparent to the mathematician Bombelli that there was some piece of the puzzle that was missing - something that explained how this seemingly perverse operation of taking a square root of a negative number would somehow simplify to a simple answer like 4. This was in fact the motivation for considering imaginary numbers, and opened up a fascinating area of mathematics.

The topic of Complex numbers is very much concerned with this number i. Since this number doesn't exist in this real world, and only lives in our imagination, we call it the imaginary unit. (Note that $i$ is not typically chosen as a variable name for this reason.)

### The imaginary unit

As mentioned above

$\begin{matrix} i^2 & = & -1 \end{matrix}$.

Let's compute a few more powers of i:

$\begin{matrix} i^1 & = & i \\ i^2 & = & -1 \\ i^3 & = & -i\\ i^4 & = & 1\\ i^5 & = & i\\ i^6 & = & -1\\ &\mbox{...}& \end{matrix}$

As you may see, there is a pattern to be found in this.

### Exercises

1. Compute $i^{25}$
2. Compute $i^{100}$
3. Compute $i^{1000}$
Exercise Solutions

### Complex numbers as solutions to quadratic equations

Consider the quadratic equation:

$\begin{matrix} x^2 - 6x + 13 & =& 0 \\ x & = & \frac{6 \pm \sqrt{36 - 4 \times 13}}{2} \\ x & = & \frac{6 \pm \sqrt{-16}}{2} \\ x & = & \frac{6 \pm \sqrt{-1}\sqrt{16}}{2} \\ x & = & \frac{6 \pm 4i}{2} \\ x & = & 3 + 2i \ , \ 3 - 2i\\ \end{matrix}$

The x we get as a solution is what we call a complex number. (To be nitpicky, the solution set of this equation actually has two complex numbers in it; either is a valid value for x.) It consists of two parts: a real part of 3 and an imaginary part of $\pm 2$. Let's call the real part a and the imaginary part b; then the sum $a+bi = 3 \pm 2i$ is a complex number.

Notice that by merely defining the square root of negative one, we have already given ourselves the ability to assign a value to a much more complicated, and previously unsolvable, quadratic equation. It turns out that 'any' polynomial equation of degree $n$ has exactly $n$ zeroes if we allow complex numbers; this is called the Fundamental Theorem of Algebra.

We denote the real part by Re. E.g.:

$\mathrm{Re}(x) = 3$

and the imaginary part by Im. E.g.:

$\mathrm{Im}(x) = \pm 2$

Let's check to see whether $x = 3 + 2i$ really is solution to the equation:

$\begin{matrix} x & = &3 + 2i &\\ x^2 & = & (3)^2 + 2(3)(2i) + (2i)^2 \\ & = & 5 + 12i\\ x^2 - 6x + 13 &=& 5 + 12i - 6(3+2i) + 13\\ &=& 0\\ \end{matrix}$

### Exercises

1. Convince yourself that x = 3 - 2i is also a solution to the equation.
2. Plot the points A(3, 2) and B(3, -2) on a XY plane. Draw a line for each point joining them to the origin.
3. Compute the length of AO (the distance from point A to the Origin) and BO. Denote them by r1 and r2 respectively. What do you observe?
4. Compute the angle between each line and the x-axis and denote them by $\phi_1$ and $\phi_2$. What do you observe?
5. Consider the complex numbers:
$\begin{matrix} z & = & r_1 \cdot (\cos{\phi_1} + i\sin{\phi_1})\\ w & = & r_2 \cdot (\cos{\phi_2} + i\sin{\phi_2})\\ \end{matrix}$

Substitute z and w into the quadratic equation above using the values you have computed in Exercise 3 and 4. What do you observe? What conclusion can you draw from this?

1. Find the complex solutions to the equation $x^2-2x+2=0$. Perform the same steps as above. What can you conclude here?

## Arithmetic with complex numbers

### Addition and multiplication

Adding and multiplying two complex number together turns out to be quite straightforward. Let's illustrate with a few examples. Let x = 3 - 2i and y = 7 + 11i, and we do addition first

 $x + y \!$ $= \!$ $(3+7) + (-2+11)i \!$ $= \!$ $10 + 9i \!$

and now multiplication

 $x \times y \!$ $= \!$ $(3 - 2i) (7 + 11i) \!$ $= \!$ $3\cdot 7 + 3\cdot 11i - 2i\cdot 7 - 2\cdot 11 i^2\!$ $= \!$ $43 + 19i\!$

Let's summarise the results here.

• When adding complex numbers we add the real parts with real parts, and add the imaginary parts with imaginary parts.
• When multiplying two complex numbers together, we use normal expansion. Whenever we see i2 we put in its place -1. We then collect like terms.

But how do we calculate:

$\frac{3 + 2i} {7 - \sqrt{5}i}$

Note that the square root is only above the 5 and not the i. This is a little bit tricky, and we shall cover it in the next section.

### Exercises:

$\begin{matrix} x &=& 3 - 2i \\ y &=& 3 + 2i \end{matrix}$

Compute:

1. x + y
2. x - y
3. x2
4. y2
5. xy
6. (x + y)(x - y)

### Division

One way to calculate:

$\frac{1}{2\sqrt{3}+\sqrt{2}}$

is to rationalise the denominator:

$\frac{1}{2\sqrt{3}+\sqrt{2}}= \frac{2\sqrt{3}-\sqrt{2}}{(2\sqrt{3}+\sqrt{2})(2\sqrt{3}-\sqrt{2})}= \frac{2\sqrt{3}-\sqrt{2}}{10}$

Utilising a similar idea, to calculate

$\frac{3 + 2i} {7 - \sqrt{5}i}$

we realise the denominator.

$z \ = \ \frac{3 + 2i} {7 - \sqrt{5}i}$
$z \ = \ \frac{3 + 2i} {7 - \sqrt{5}i} \times \frac{7 + \sqrt{5}i} {7 +\sqrt{5}i}$

The denominator is the sum of two squares. We get:

$z \ = \ \frac{(3 + 2i) \times (7 + \sqrt{5}i)} {49 + 5}$
$z \ = \ \frac{21 - 2\sqrt{5}}{54} + \frac {14+3\sqrt{5}} {54}i$

If somehow we can always find a complex number whose product with the denominator is a real number, then it's easy to do divisions.

If

$z \ = \ a + ib$

and

$w \ = \ a - ib$

Then zw is a real number. This is true for any 'a' and 'b' (provided they are real numbers).

### Exercises

Convince yourself that the product of zw is always a real number.

### Complex Conjugate

The exercise above leads to the idea of a complex conjugate. The complex conjugate of a + ib is a - ib. For example, the conjugate of 2 + 3i is 2 - 3i. It is a simple fact that the product of a complex number and its conjugate is always a real number. If z is a complex number then its conjugate is denoted by $\bar{z}$. Symbolically if

z = a + ib

then,

$\bar{z} = a - ib$

The conjugate of 3 - 9i is 3 + 9i.

The conjugate of 100 is 100.

The conjugate of 9i - 20 is -20 - 9i.

Conjugate laws

Here are a few simple rules regarding the complex conjugate

$\overline{z + w}= \bar{z} + \bar{w}$

and

$\overline{zw}= \bar{z} \bar{w}$

The above laws simply says that the sum of conjugates equals the conjugate of the sum; and similarly, the conjugate of the product equals the product of the conjugates.

Consider this example:

$(3 + 2i) + (89 - 100i) = 92 - 98i$

and we can see that

$\overline{92 - 98i} = 92 + 98i$

which equals to

$\overline{3 + 2i} + \overline{89 - 100i} = 3 - 2i + 89 + 100i = 92 + 98i$

This confirms the addition conjugate law.

### Exercise

Convince yourself that the multiplication law is also true.

## The complex root

Now that you are equipped with all the basics of complex numbers, you can tackle the more advanced topic of root finding.

Consider the question:

$\begin{matrix} z & = & -3 + 4i \\ w & = & \sqrt{z} \end{matrix}$

Express w in the form of a + ib.

That is easy enough.

$\begin{matrix} w & = & \sqrt{z}\\ w^2 & = & z\\ w &=& a + ib\\ w^2 &=& a^2 - b^2 + 2abi\\ \\ -3 &=& a^2 - b^2 &\mbox{(1)}&\\ 4 &=& 2ab &\mbox{(2)}&\\ \end{matrix}$

Solve (1) and (2) simultaneously to work out a and b.

Observe that if, after solving for a and b, we replace them with -a and -b respectively, then they would still satisfy the two simultaneous equations above, we can see that (as expected) if w = a + ib satisfies the equation w2 = z, then so will w = -(a + ib). With real numbers, we always take the non-negative answer and call the solution $\sqrt{x}$. However, since there is no notion of "greater than" or "less than" with complex numbers, there is no such choice of $\sqrt{z}$. In fact, which square root to take as "the" value of $\sqrt{z}$ depends on the circumstances, and this choice is very important to some calculations.

### info -- Finding the square root

Finding the root of a real number is a very difficult problem to start with. Most people have no hope of finding a close estimate of $\sqrt{2}$ without the help of a calculator. The modern method of approximating roots involves an easy to understand and ingenius piece of mathematics called the Taylor series expansion. The topic is usually covered in first year university maths as it requires an elementary understanding of an important branch of mathematics called calculus.

The Newton-Raphson method of root finding is also used extensively for this purpose.

Now consider the problem

$\begin{matrix} z &=& -2 + 2i \\ w &=& z^{1/3} \end{matrix}$

Express w in the form of "a + ib".

Using the methodology developed above we proceed as follows,

$\begin{matrix} w &=& z^{1/3} \\ w^3 &=& z \\ \\ w &=& (a + ib)\\ w^3 &=& (a^2 - b^2 + 2abi) \times (a + ib)\\ z &=& (a^3 - 3ab^2) + i(3a^2b - b^3)\\ \\ -2 &=& a^3 - 3ab^2 \qquad (1)\\ 2 &=& 3a^2b - b^3 \qquad (2)\\ \end{matrix}$

It turns out that the simultaneous equations (1) & (2) are hard to solve. Actually, there is an easy way to calculate the roots of complex numbers called the De Moivre's theorem, it allows us to calculate the nth root of any complex number with ease. But to set the method, we need understand the geometric meaning of a complex number and learn a new way to represent a complex number.

### Exercises

1. Find (3 + 3i)1/2
2. Find (1 + 1i)1/2
3. Find i1/3

## The complex plane

### Complex numbers as ordered pairs

It is worth noting, at this point, that every complex number, a + bi, can be completely specified with exactly two real numbers: the real part a, and the imaginary part b. This is true of every complex number; for example, the number 5 has real part 5 and imaginary part 0, while the number 7i has real part 0 and imaginary part 7. We can take advantage of this to adopt an alternative scheme for writing complex numbers: we can write them as ordered pairs, in the form (a, b) instead of a+bi.

$\begin{matrix} \mbox{Instead of} & \mbox{We could write} \\ 5+4i&(5, 4) \\ 3i&(0, 3) \\ \frac{4+5i}{3}&(\frac{4}{3}, \frac{5}{3}) \\ 42&(42, 0) \\ \sqrt{2}+\sqrt{2}i&(\sqrt{2}, \sqrt{2}) \\ \end{matrix}$

These should look familiar: they are exactly like the ordered pairs we use to represent points in the plane. In fact, we can use them that way; the plane which results is called the complex plane. We refer to its x axis as the real axis, and to its y axis as the imaginary axis.

### The complex plane

We can see from the above that a single complex number is a point in the complex plane. We can also represent sets of complex numbers; these will form regions on the plane. For example, the set

$\{a+bi | -1 \le a \le 1, -1 \le b \le 1\}$

is a square of edge length 2 centered at the origin (See following diagram).

### Complex-valued functions

Just as we can make functions which take real values and output real values, so we can create functions from complex numbers to real numbers, or from complex numbers to complex numbers. These latter functions are often referred to as complex-valued functions, because they evaluate to (output) a complex number; it is implicit that their argument (input) is complex as well.

Since complex-valued functions map complex numbers to other complex numbers, and we have already seen that complex numbers correspond to points on the complex plane, we can see that a complex-valued function can turn regions on the complex plane into other regions. A simple example: the function

$f(z) = z + (0+1i)$

takes a point in the complex plane and shifts it up by 1. If we apply it to the set of points making up the square above, it will move the entire square up one, so that it "rests" on the x-axis.

{To make more complicated examples, I will first have to go back and introduce the polar representation of complex numbers. Makes for much more interesting functions, :-) You can use the diagrams below or modify them to make new diagrams. I will make links to these diagrams in other places in Wikibooks:math. In the 2nd diagram showing the point, r=4 and theta= 50 degrees. These types of diagrams can be used to introduce phasors, which are notations for complex numbers used in electrical engineering.}

## de Moivre's Theorem

If
${z = r e^{i\theta} = r(\cos(\theta)+i\sin(\theta))}$
then
${z^n = r^n(\cos(n\theta)+i\sin(n\theta))}$

## Complex root of unity

The complex roots of unity to the nth degree is the set of solutions to the equation $x^{n} = 1$. Clearly they all have magnitude 1. They form a cyclic group under multiplication. For any given $n$, there are exactly $n$ many of them, and they form a regular n-gon in the complex plane over the unit circle.

A closed form solution can be given for them, by use of Euler's formula:

$u^n = \cos(2\pi\cdot j/n)+i\sin(2\pi\cdot j/n) \quad 0 \leq j < n$

The sum of the $n$th roots of unity is equal to 0, except for $n=1$, where it is equal to 1.

The product of the $n$th roots of unity alternates between -1 and 1.

# Problem set

Simplify: (1-i)2i Ans: 2ie$\pi$/2