Table of Contents

Complex Numbers
From the birth of algebra to the early 1500's, mathematicians struggled to solve the cubic equation,
(1)As late as 1494, Luca Pacioli had declared this problem to be as difficult as the quadrature of the circle. Luckily, Pacioli was wrong and just ten years later, Scipione del Ferro struck the first blow in solving this problem. He was able to find the solution to the so called depressed cubic,
(2)Then in 1545, with his Ars Magna (The Great Art), Girolamo Cardano was able to show how to reduce any cubic down to the depressed cubic and thereby solve any cubic equation. A great achievement, no doubt, but arguably of equal importance was his use of the square root of a negative number. In the process of trying to answer the question of finding two numbers whose product is 40 and whose sum is 10, he arrived at the solutions,
(3)Notice:
(4)Although these two numbers form the answer to the proposed question, mathematicians at this time were not completely comfortable with their introduction because they did not represent a physical quantity. Let's get ourselves comfortable with these new numbers.
Definition
In order to start creating an algebra that accounts for square roots of negative numbers, we need to define how they interact with our already existing real numbers. We start by defining the imaginary unit, which we represent with $i$, as $i=\sqrt{1}$.
Let's look at how $i$ combines with itself through powers of $i$.
(5)As you can see the powers of I just run through a cycle of $i,1,i,1$. So any power of $i$ can be expressed in terms of real numbers or the first power of $i$
Exercise
Find $i^{83}$
If we combine this imaginary unit with the real numbers via the operations of arithmetic, we obtain what are called the complex numbers. Any complex number can be expressed in the form $a+bi$ where $a$ and $b$ are real numbers. The complex numbers are an extension of the real numbers. In other words, the real numbers are a subset of the complex numbers. This is due to the fact that every real number can be written in the form $a+bi$ where $b=0$.
Graphical Representation
Since every complex number has both a real and an imaginary part, we can represent them graphically as points in a 2D plane. We call this the complex plane. The complex plane has two axes, the real axis running horizontally and the imaginary axis running vertically.
Polar Form
As we saw previously, points in the plane can be represented by an angle and a radius. For complex numbers, this is no different. For any complex number, we can describe the angle made with the positive real axis and the distance from the origin. This distance is referred to as the modulus.
Therefore, for a complex number $c=a+bi$,
Exercise
Give the polar form of $c=2+4i$
Operations
Now we will look at some of the operations of algebra on these complex numbers.
Addition
To add two complex numbers, $c_1=a_1+b_1i$ and $c_2=a_2+b_2i$, we add the real parts of both numbers to obtain the real part of our sum and likewise, we add the imaginary part of both numbers to obtain the imaginary part of our sum.
(7)Graphically these two points in the complex plane add together in a manner similar to our 2D vector addition. As you can see below, we create our familiar parallelogram.
(8)
Notice that the coefficients of the real and imaginary parts are determined by a real number addition. Therefore, complex addition inherits commutativity from the real numbers. That is to say,
Graphically, this is equivalent to traveling on the other legs of the parallelogram.
Exercise
Calculate $(10+5i)+(620i)$
Scalar Multiplication
To multiply a complex number by a purely real number, or scalar, we simply distribute the scalar to both parts of our complex number. That is to say,
(10)Since this operation is based on real number multiplication, scalar multiplication is commutative. In other words,
(11)Exercise
Calculate $4(37i)$
If we look at this result in polar form,
(12)we see that scalar multiplication does not affect $\tan \theta$, but scales the modulus by the factor $k$. If $k<0$, the new angle is the initial angle plus $\pi$. That is to say, our point is reflected through the origin.
Subtraction
Now that we have scalar multiplication, we define subtraction to be the addition of the additive inverse.
(13)Exercise
Calculate $(4+2i)(4+6i)$
Multiplication
To multiply two complex numbers we use the distributive property.
(14)Exercise
Calculate $(8i)(2+2i)$
Exercise
Calculate $5i(34i)$
Multiplicative Identity
Since the set of complex numbers contain the real numbers as a subset, the complex numbers inherit the multiplicative identity, $1$, from the real numbers. That is to say
(15)Conjugation
The conjugate of a complex number, $c=a+bi$ is the complex number with the same real part, but opposite imaginary part, written $c^*=abi$. The most important property of conjugates is that the product of a complex number and its conjugate is a real number
(16)The conjugate will also play a role in our definition of complex division as we will see shortly.
Exercise
Give the conjugate of $c=5+9i$
Exercise
Give the conjugate of $c=14i$
Exercise
Give the conjugate of $c=2i$
Exercise
Give the conjugate of $c=8$
Exercise
Find the product of $c=4+3i$ and its conjugate
Multiplicative Inverse
Recall that the multiplicative inverse of an object in mathematics is the object in our set that when multiplied yields the multiplicative identity. In other words, given a complex number $c$, we want the complex number $c^{1}$ such that
(17)Recall from above that the complex conjugate multiplied by a complex number yields a real number, but the real number it yields is $c^2$. Although not $1$, this hints at what we need for an inverse. If we multiplied by the conjugate and divided by the modulus, we would have exactly what we are looking for.
(18)Therefore, by definition $c^{1}=\frac{c^*}{c^2}$
Exercise
Find the inverse of $c=6+4i$
Division
Recall that in mathematics division is defined to be multiplication by the multiplicative inverse. Therefore,
(19)Exercise
Simplify $\frac{2+5i}{34i}$
Quaternions
Definition
As we have just seen, complex numbers can be thought of as representations of points in 2D space. As such, we can compute the addition, subtraction, multiplication, and division of points in 2D space. Specifically, in the complex plane. In 1843, William Hamilton introduced quaternions as a way of extending this interpretation into 3D. He found this problem to be vexing because he could not find a way to make it work mathematically by just adding a second imaginary unit $j$. His breakthrough occurred when he realized that it would require adding two imaginary units, $j$ and $k$.
Hamilton had this eureka moment while walking along Brougham Bridge in Dublin and scratched his idea into the rock of the bridge. That spot is now memorialized with the following plaque.
Now we want to extend the idea of complex numbers to higher dimensions. A quaternion will consist of a real part and three imaginary parts. The imaginary unit i along with two new imaginary units j and k. So the general form of a quaternion is $a+bi+cj+dk$, where $a,b,c$ and $d$ are real numbers. These new imaginary units have the following property.
(20)This property along with quaternion multiplication can then be used to derive the following.
(21)Scalar/Vector Notation
Since the quaternion $a+bi+cj+dk$, consists of a scalar component $a$ along with three complex components $b,c,d$ it is often written in the form $[s,\vec{v}]$ where $s=a$ and $\vec{v}=<b,c,d>$
Exercise
Write the quaternion $q=3+6i9j+1k$ in scalarvector form
Modulus
The size of a quaternion, alternately called the modulus, magnitude, or norm, is computed similarly to what we have seen for vectors and complex numbers.
(24)or using the scalarvector notation,
(25)Graphical Representation
Previously, we saw that complex numbers could be thought of as points in the complex plane. Quaternions, unfortunately are 4D objects, so although we can think of them as points in 4D space, that space is beyond our capabilities of visualization. What we can do though is view the vector portion of the quaternion as representing a point in 3D space. Letr on when we apply quaternions to 3D rotation, this is exactly the representation we will use.
Operations
Say we have the two following quaternions.
(26)Addition
(27)Exercise
Add $\left [ 4, \left < 10,3,0 \right > \right ]$ and $\left [ 4, \left < 1,2,4 \right > \right ]$
Scalar Multiplication
(28)Exercise
Multiply $5 \left [ 2, \left <3,5,1 \right > \right ]$
Subtraction
(29)Exercise
Calculate $\left [ 12, \left < 4,1,2 \right > \right ]  \left [ 1, \left < 6,2,8 \right > \right ]$
Multiplication
In order to multiply two quaternions, we need to use the distributive property, much like we did for complex numbers.
(30)This can be written more compactly using the scalar/vector notation. Say $q_1=[s_1,\vec{v_1}]$ and $q_2=[s_2,\vec{v_2}]$. Then we have,
(31)We already know that the vector cross product is not commutative, so therefore neither is the quaternion product, that is to say, in general, $q_1q_2 \neq q_2q_1$
Exercise
Calculate the quaternion product: $\left [ 1, \left < 3,1,2 \right > \right ] \left [ 4, \left < 5,2,3 \right > \right ]$
Conjugation
If $q=[s,\vec{v}]$, then we define the conjegate of $q$ to be $q^*=[s,\vec{v}]$. An important property of conjugates is that
(32)Exercise
Give the conjugate of $q=\left [ 2, \left < 4,5,6 \right > \right ]$
Inverse
(33)Notice that in the special case where our quaternion is unit length the inverse is the conjugate, that is to say for a unit quaternion, $q^{1}=q^*$.
Exercise
Find the inverse of $q=\left [ 2, \left < 4,5,6 \right > \right ]$
Division
Now with an inverse defined, we can define our division as,
(34)Exercise
Compute $\frac{q_1}{q_2}$ where $q_1=\left [ 2, \left < 1,3,1 \right > \right ]$ and $q_2=\left [ 1, \left < 2,1,4 \right > \right ]$
Exercises
1) What is the definition of $i$?
2) Simplify $i^{203}$.
3) Plot the following numbers on one complex plane: $4$ , $2i$ , $5i$ , $1+3i$
4) Add/Subtract the following
a) $(3+4i)+6i$
b) $(1i)(6+i)$
c) $(2+4i)+(74i)$
5) Multiply the following
a) $2(35i)$
b) $4(6i)$
c) $(1+i)(2+4i)$
d) $(36i)(6+2i)$
e) $2i(3i)$
f) $(5+6i)(56i)$
6) Give the conjugate of the following
a) $(84i)$
b) $(6+i)$
c) $2$
d) $9i$
7) Divide the following
a) $\frac{2+i}{42i}$
b) $\frac{53i}{6i}$
8) Given the quaternions $q_1=\left [ 3 , \left < 4,3,8 \right > \right ]$ and $q_2=\left [ 1 , \left < 7,0,4 \right > \right ]$
a) Find $q_1+q_2$
b) Find $q_2+q_1$
c) Find $q_1q_2$
d) Find $q_2q_1$
e) Find $q_1^{1}$ and $q_2^{1}$
f) Find $q_1$ and $q_2$
g) Find $\frac{q_1}{q_2}$