Definition
The existence of complex number 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 century 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 aggrupations
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 number 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