Definition
The existence of complex numbers presented a question for mathematicians: if a complex number exists in a 2D complex plane, could there be a 3D equivalent?
Sir William Rowan Hamilton, among many other mathematicians of the 18th and 19th centuries, had been searching for the answer. Hamilton conjectured that a 3D complex number could be represented by the triple
The quantities
On October 16th, 1843, while he was walking with his wife along the Royal Canal in Ireland, he saw the solution as a quadruple instead of a triple. Instead of using two imaginary terms, three imaginary terms provided the necessary quantities to resolve products like
Hamilton defined a quaternion
If a complex number
Notation
There are three ways of annotating a quaternion
Real Quaternion
A real quaternion has a zero vector term:
Pure Quaternion
A pure quaternion is a quaternion having a zero scalar term:
Quaternion Conjugate
Given:
The quaternion conjugate is defined as:
Quaternion Norm
The norm of a quaternion
Also note that:
Norm facts:
Unit Quaternion
A unit quaternion is a quaternion of norm one given by:
Note: dividing a non-zero quaternion by its norm produces a unit norm quaternion.
Operations
Quaternion Product
Given two quaternions:
The product
Replacing the imaginaries by the ordered pairs (which are themselves quaternion units):
And substituting them in
By doing some groupings:
Now letβs compute the product
Note that the scalar quantity of both products is the same; however, the vector quantity varies (the cross product sign is changed). Therefore:
This is an important fact to note since for complex numbers the product commutes; however, for quaternions, it doesnβt.
Product of a Scalar and a Quaternion
Let
Their product is:
Note that this product is commutative.
Product of a Quaternion with Itself (Square of a Quaternion)
Product of a Quaternion and Its Conjugate
Let
Note that this product commutes, i.e.,
Product of Unit Quaternions
Given:
Where
Where
Product of Pure Quaternions
Let:
The product
Note that the resulting quaternion is no longer a pure quaternion as some information has propagated into the real part via the dot product.
Product of a Pure Quaternion with Itself (Square of a Pure Quaternion)
If
Product of a Pure Quaternion with Its Conjugate
Inverse of a Quaternion
By definition, the inverse
To isolate
Quaternion Units
Given the vector
Combining this with the definition of a pure quaternion:
Itβs convenient to identify the unit quaternion as
Letβs check if the quaternion unit
Misc Operations
Taking the Scalar Part of a Quaternion
To isolate the scalar part of