Quaternions: Hypercomplex Numbers for 3D Rotations
Discovered by Irish mathematician Sir William Rowan Hamilton on October 16, 1843, quaternions extend ordinary complex numbers into four-dimensional algebra $\mathbb{H}$:
Fundamental Multiplication Rules
Hamilton carved the famous governing equation into Dublin's Brougham Bridge:
From this axiom, the cyclic multiplication identities follow:
Because order matters, quaternion multiplication is strictly non-commutative: $q_1 \otimes q_2 \ne q_2 \otimes q_1$.
Why 3D Graphics and Aerospace Use Quaternions
In aerospace flight dynamics, robotics, and game engines (Unity, Unreal Engine):
- 1No Gimbal Lock: Unlike Euler angles (pitch, yaw, roll), unit quaternions represent 3D orientations without singular gimbal lock configurations.
- 2Smooth Interpolation: Slerp (Spherical Linear Interpolation) produces constant angular velocity animations between rotations.
- 3Computational Efficiency: Composing rotations via quaternion multiplication requires only 16 multiplications and 12 additions, faster and more numerically stable than 3×3 matrix products.
Properties Table
| Operation | Formula | Meaning | ||
|---|---|---|---|---|
| Conjugate $q^*$ | $w - x\mathbf{i} - y\mathbf{j} - z\mathbf{k}$ | Reverses spatial vector direction | ||
| Norm $ | q | $ | $\sqrt{w^2 + x^2 + y^2 + z^2}$ | 4D Euclidean length |
| Inverse $q^{-1}$ | $\frac{q^*}{ | q | ^2}$ | Multiplicative inverse |
| Unit Quaternion | $ | q | = 1$ | Represents a pure 3D rotation |