|
The component formula for quaternion multiplication is correct but easy to misremember because of its pattern of signs. For physics and engineering, a more revealing form separates each quaternion into a real scalar and an ordinary three-dimensional vector. Hamilton multiplication then becomes a single formula involving only the familiar dot and cross products.
Let
where
and
are identified with pure quaternions. The Hamilton product is
 |
(1) |
Equivalently, as an ordered scalar–vector pair,
 |
(2) |
Equation (2) is one of the most useful forms of the Hamilton product for mechanics, attitude dynamics, navigation, robotics, and software. It shows immediately which part of multiplication is symmetric, which part changes sign when the order is reversed, and why quaternion multiplication is naturally tied to three-dimensional geometry.
This entry uses the PhysicsLibrary convention established in the preceding quaternion entries:
 |
(3) |
with reversed products changing sign. The three-dimensional cross product is the ordinary right-handed cross product,
 |
(4) |
Therefore the vector cross-product term in equation (1) appears with a plus sign.
Some aerospace and software literature uses the opposite, or flipped, quaternion multiplication. With the same right-handed vector cross product, that multiplication produces a minus sign in front of
. This difference is sometimes described as right-handed versus left-handed quaternions. Those names are not reliable by themselves because authors have used “handedness” for the physical frame, screw sense, cross product, and quaternion algebra. The equation
 |
(5) |
is the safer diagnostic.
The entire scalar–vector formula follows from first understanding the product of two pure quaternions. Let
 |
(6) |
Expanding their quaternion product gives
Using
 |
(8) |
and the cyclic products in equation (3), the scalar terms are
 |
(9) |
while the vector terms are
Hence
 |
(11) |
This compact identity is the bridge between Hamilton's nineteenth-century quaternion multiplication and modern vector analysis. The scalar part contains minus the dot product; the vector part contains the cross product.
Historical quaternion texts commonly denoted these two pieces by
and
. In modern notation,
 |
(12) |
Write
 |
(13) |
By distributivity,
Real scalars commute with quaternions, so no ordering ambiguity occurs in the middle two terms. Apply equation (11) to the pure-vector product:
 |
(15) |
Substitution gives
Separating scalar and vector parts yields
 |
(17) |
and
 |
(18) |
Equations (17)–(18) are exactly equivalent to the four-component Hamilton product derived in the preceding PhysicsLibrary entry.
Let
 |
(19) |
Then
 |
(20) |
and
 |
(21) |
Therefore equation (2) becomes
![$\displaystyle \boxed{ [pq]_{\mathrm{PL}} = \begin{bmatrix} p_wq_w-p_xq_x-p_yq_y... ...\ p_wq_y-p_xq_z+p_yq_w+p_zq_x\ p_wq_z+p_xq_y-p_yq_x+p_zq_w \end{bmatrix}. }$ $\displaystyle \boxed{ [pq]_{\mathrm{PL}} = \begin{bmatrix} p_wq_w-p_xq_x-p_yq_y... ...\ p_wq_y-p_xq_z+p_yq_w+p_zq_x\ p_wq_z+p_xq_y-p_yq_x+p_zq_w \end{bmatrix}. }$](https://images.physicslibrary.org/cache/objects/1090/l2h/img28.png) |
(22) |
The apparently irregular signs in the component formula are therefore not arbitrary: the scalar signs come from the negative dot product and the antisymmetric signs come from the cross product.
Reverse the factors in equation (2):
 |
(23) |
The dot product is symmetric,
 |
(24) |
whereas the cross product is antisymmetric,
 |
(25) |
Thus
 |
(26) |
but generally
 |
(27) |
Subtracting the two products gives the quaternion commutator
 |
(28) |
where the right-hand side is interpreted as a pure quaternion.
An immediate consequence is that two quaternions commute precisely when their vector parts are parallel or one of the vector parts vanishes:
 |
(29) |
This statement includes ordinary real numbers as the special case of zero vector part.
For pure quaternions and , equation (11) and the reversed product give
 |
(30) |
 |
(31) |
Adding them isolates the dot product:
 |
(32) |
Subtracting them isolates the cross product:
 |
(33) |
Thus the familiar dot and cross products are respectively the symmetric-scalar and antisymmetric-vector pieces of the Hamilton product of pure quaternions.
Let be the angle from to . Since
 |
(34) |
and
 |
(35) |
where
is the right-hand-rule unit normal, equation (11) gives
 |
(36) |
This formula already hints at the trigonometric structure that will later appear in unit-quaternion rotations.
If
, then
so the product is purely scalar:
 |
(37) |
For a pure quaternion multiplied by itself,
 |
(38) |
In particular, every unit pure quaternion satisfies
.
If
, then
so
 |
(39) |
Reversing the factors gives
 |
(40) |
The basis relation
is simply the special case of equation (39) for mutually perpendicular unit vectors in a right-handed basis.
Let
![$\displaystyle p=(2,\,[1,-2,3]^T), \qquad q=(-1,\,[4,0,2]^T).$ $\displaystyle p=(2,\,[1,-2,3]^T), \qquad q=(-1,\,[4,0,2]^T).$](https://images.physicslibrary.org/cache/objects/1090/l2h/img59.png) |
(41) |
First compute the dot product:
 |
(42) |
The scalar part is therefore
 |
(43) |
Next compute
 |
(44) |
The vector part is
Hence
![$\displaystyle \boxed{ pq=(-12,\,[3,12,9]^T). }$ $\displaystyle \boxed{ pq=(-12,\,[3,12,9]^T). }$](https://images.physicslibrary.org/cache/objects/1090/l2h/img64.png) |
(46) |
Reversing the order leaves the scalar part unchanged but changes the cross term:
![$\displaystyle \boxed{ qp=(-12,\,[11,-8,-7]^T). }$ $\displaystyle \boxed{ qp=(-12,\,[11,-8,-7]^T). }$](https://images.physicslibrary.org/cache/objects/1090/l2h/img65.png) |
(47) |
Indeed,
![$\displaystyle pq-qp =(0,\,[-8,20,16]^T) =2(0,\,\mathbf p\times\mathbf q).$ $\displaystyle pq-qp =(0,\,[-8,20,16]^T) =2(0,\,\mathbf p\times\mathbf q).$](https://images.physicslibrary.org/cache/objects/1090/l2h/img66.png) |
(48) |
Take
Because the vectors are perpendicular,
Because the basis is right handed,
Therefore equation (11) gives
 |
(49) |
Reversing the order,
so
 |
(50) |
The noncommutative multiplication table is therefore encoded directly in the orientation of the ordinary cross product.
Let a position vector and force be
 |
(51) |
Embed both as pure quaternions. Their Hamilton product is
 |
(52) |
The dot product is
 |
(53) |
and the cross product is
 |
(54) |
Thus
 |
(55) |
The vector part is exactly the torque about the origin,
 |
(56) |
The scalar part is minus the ordinary dot product. The quaternion product does not imply that these two pieces are the same physical observable; rather, it packages the longitudinal and rotational geometric products of the same pair of vectors into one algebraic object. This is one reason quaternion methods were historically attractive in mathematical physics.
For software it is often convenient to represent left multiplication by a fixed quaternion as a real matrix. With scalar-first ordering,
![$\displaystyle [pq]_{\mathrm{PL}}=L(p)[q]_{\mathrm{PL}},$ $\displaystyle [pq]_{\mathrm{PL}}=L(p)[q]_{\mathrm{PL}},$](https://images.physicslibrary.org/cache/objects/1090/l2h/img80.png) |
(57) |
where
 |
(58) |
Similarly,
![$\displaystyle [pq]_{\mathrm{PL}}=R(q)[p]_{\mathrm{PL}},$ $\displaystyle [pq]_{\mathrm{PL}}=R(q)[p]_{\mathrm{PL}},$](https://images.physicslibrary.org/cache/objects/1090/l2h/img82.png) |
(59) |
with
 |
(60) |
The two matrices are generally different because left and right quaternion multiplication are different operations. Their distinction becomes important later in quaternion kinematics, where angular velocity may multiply the attitude quaternion on different sides depending on the frame and mapping convention.
- Using
in the scalar part. Under Hamilton's convention, pure-vector squares are negative, so the scalar term is
.
- Changing the cross-product sign because the components are stored scalar last. Storage order does not alter the algebra. Scalar-first and scalar-last Hamilton quaternions both use the
term when the same right-handed cross product is used.
- Calling
merely a different array convention. It is a different multiplication convention relative to Hamilton multiplication.
- Treating the vector part of a quaternion as though it commuted with another vector part. The noncommutativity is exactly the antisymmetry of the cross product.
- Confusing the quaternion product with a 4-D dot product. Quaternion multiplication is bilinear but returns another quaternion and includes the oriented three-dimensional cross product.
- Swapping
and in software. Left multiplication and right multiplication have different sign patterns.
- Using “right-handed quaternion” as a sufficient specification. State an equation such as
and identify the physical frame handedness separately.
- Let
Compute
using equation (2).
- For the same
and , compute without repeating the entire component expansion. Verify equation (28).
- Embed
as pure quaternions. Compute
and identify its scalar and vector parts.
- Prove directly from equation (11) that
for every pure quaternion
.
- Suppose
and are nonzero pure quaternions. Show that they commute if and only if the corresponding three-dimensional vectors are parallel.
- Prove equations (32) and (33) by adding and subtracting
and
.
- Let
and be perpendicular unit vectors and define
. Show that is a pure unit quaternion perpendicular to both and , and show that
.
- A source uses the same right-handed Cartesian cross product as PhysicsLibrary but defines a product
such that
Evaluate
. Is this Hamilton multiplication?
- Verify equation (58) by multiplying
and comparing all four components with equation (22).
- In a mechanics problem,
Compute the pure-quaternion product
. Interpret its vector part physically.
The dot product is
Hence the scalar part is
The cross product is
The vector part is
Therefore
The scalar part is again . Reversing the order changes only the cross term, so
Thus
Also
while
which verifies equation (28).
Compute
so the scalar part is . The cross product is
Therefore
The scalar part is
, and the vector part is
.
Set
in equation (11):
Since
and
,
From equation (28), specialized to pure quaternions,
Thus
if and only if
. For nonzero three-dimensional vectors, this occurs if and only if the vectors are parallel.
Using
and
addition gives
so
Subtraction gives
so
Because
,
and therefore
The cross product of perpendicular unit vectors is a unit vector perpendicular to both. Hence is a pure unit quaternion perpendicular to and . Reversing the order gives
For pure basis vectors,
Thus
It is not Hamilton multiplication. It is the opposite/flipped product relative to the PhysicsLibrary convention.
Multiplying equation (58) by
gives
which is exactly equation (22), with terms merely reordered within ordinary real scalar sums.
The dot product is
The cross product is
Therefore
Its vector part is the torque about the origin:
The scalar–vector product makes the next algebraic operations nearly automatic. The following PhysicsLibrary entry develops quaternion conjugation, norm, and inverse. In particular, the conjugate reverses the vector part,
and equation (2) will show directly that
That result leads to the multiplicative inverse and then to unit quaternions, which are the objects used to represent three-dimensional rotations.
Joly's A Manual of Quaternions develops a quaternion explicitly as the sum of a scalar and a vector and treats the product of two vectors through its scalar and vector parts. In Joly's historical notation, the vector part of the product corresponds to the oriented vector product while the scalar part carries the sign convention inherited from Hamilton multiplication.
Macfarlane's Vector Analysis and Quaternions is a useful historical bridge to modern engineering notation because it treats vector analysis and quaternions as complementary descriptions and organizes separate articles on products of vectors and composition of rotations. Hathaway's A Primer of Quaternions supplies elementary examples involving scalar and vector parts, conjugation, reversed products, and the fundamental Hamilton basis relations.
The derivations, worked examples, implementation matrices, exercises, and solutions in this PhysicsLibrary entry are newly written in modern notation.
- 1
- C. J. Joly, A Manual of Quaternions, Macmillan and Co., London, 1905. Public-domain historical source. Internet Archive search
- 2
- A. Macfarlane, Vector Analysis and Quaternions, John Wiley & Sons, New York, 1906. Public-domain historical source; Project Gutenberg TeX edition available. Project Gutenberg edition
- 3
- A. S. Hathaway, A Primer of Quaternions, 1896. Public-domain text; Project Gutenberg edition and LATEX source available. Project Gutenberg edition
- 4
- P. Kelland and P. G. Tait, Introduction to Quaternions, with Numerous Examples, 2nd ed., Macmillan and Co., London, 1882. Public-domain historical source. HathiTrust copy
- 5
- Wikibooks contributors, “Abstract Algebra/Quaternions.” Openly licensed instructional source; consult the current page history and license notice for attribution requirements. Wikibooks quaternion article
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution–ShareAlike 4.0 International license.
|