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 socalled 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.
(3)This was a great step forward in algebra, to have a formula for a root to a cubic. For once this root is found if there are two more real roots those can be found by division. In using this formula, when the quantity under the square root was negative mathematicians ignored the result. Which was fine until Rafael Bombelli pointed out something curious in his Algebra(1572). He noted that the suppressed cubic, $x^3=15x+4$, has three real solutions,
(4)but Cardano's formula says that a solution should be $x=\sqrt[3]{2+\sqrt{121}}\sqrt[3]{2+\sqrt{121}}$. Bombelli's insight was to see that the two cubics must be expressible as two complex conjugates and therefore when subtracted yield a real solution. It was at this point that it became obvious that mathematicians couldn't ignore these strange results.
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$,
So a complex number can be expressed in its socalled polar form as
(7)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.
(8)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.
(9)
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,
(11)Since this operation is based on real number multiplication, scalar multiplication is commutative. In other words,
(12)Exercise
Calculate $4(37i)$
If we look at this result in polar form,
(13)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.
(14)Exercise
Calculate $(4+2i)(4+6i)$
Multiplication
To multiply two complex numbers we use the distributive property.
(15)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
(16)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
(17)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
(18)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.
(19)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,
(20)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.
(21)This property along with quaternion multiplication can then be used to derive the following.
(22)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.
(25)or using the scalarvector notation,
(26)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.
(27)Addition
(28)Exercise
Add $\left [ 4, \left < 10,3,0 \right > \right ]$ and $\left [ 4, \left < 1,2,4 \right > \right ]$
Scalar Multiplication
(29)Exercise
Multiply $5 \left [ 2, \left <3,5,1 \right > \right ]$
Subtraction
(30)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.
(31)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,
(32)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
(33)Exercise
Give the conjugate of $q=\left [ 2, \left < 4,5,6 \right > \right ]$
Inverse
(34)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,
(35)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$ and $q_2$
f) Find $q_1^{1}$ and $q_2^{1}$
g) Find $\frac{q_1}{q_2}$