Introduction
[Optional material.]
One can combine 3d vectors and 1d scalers into 4d quantities called quaternions, and written . Quaternions can be added and multiplied and divided.
Quaternions have real number coefficients for each of four basic units:
The coefficient is called the scalar part and the coefficients are together called the vector part of the quaternion.
Multiplication rules
Multiplication for , , follows the cross product rules (written formerly using etc. instead), with an additional rule for squares:
Using these rules, one can multiply any quaternion sums.
Multiplication charts


If two vector quaternions (with zero scalar part) are multiplied, then the resulting scalar part is the negative dot product, and the resulting vector part is the cross product, of the vector parts considered as vectors using their components.
Quaternions can also be divided:
