Quaternion — Definition, Formula & Examples
A quaternion is a number of the form , where are real numbers and are distinct imaginary units that each square to . Quaternions extend the complex numbers into four dimensions but, unlike real or complex multiplication, their multiplication is not commutative.
The quaternions form a four-dimensional associative division algebra over with basis subject to the relations . From these relations it follows that , , , and their reverses carry a negative sign (e.g., ).
Key Formula
Where:
- = Real (scalar) part of the quaternion
- = Coefficients of the three imaginary units
- = Imaginary basis elements satisfying $i^2 = j^2 = k^2 = ijk = -1$
How It Works
You manipulate quaternions much like complex numbers, but you must track three imaginary parts instead of one. When multiplying, distribute and apply the rules , , , being careful about order since . The conjugate of is , and the norm is . Every nonzero quaternion has a multiplicative inverse , which is why is a division algebra.
Worked Example
Problem: Multiply the quaternions and .
Distribute: Apply the distributive property, expanding all 16 products of basis elements.
Compute each group: Use and the multiplication rules , , , , , .
Collect like terms: Group the scalar, , , and components separately.
Answer:
Why It Matters
Quaternions are the standard tool for representing 3D rotations in computer graphics, robotics, and aerospace engineering because they avoid gimbal lock and are more numerically stable than rotation matrices. In abstract algebra, serves as a key example of a noncommutative division ring, illustrating why commutativity cannot be taken for granted.
Common Mistakes
Mistake: Treating quaternion multiplication as commutative, e.g., assuming .
Correction: Order matters. Since but , reversing the order of two quaternions generally gives a different product.
