|
This entry is the self study companion to quaternion product in scalar vector Form.
The emphasis is the Hamilton product itself: how its scalar and vector pieces arise, why the cross product sign determines the multiplication convention, and how noncommutativity is encoded geometrically.
All exercises are stated first. Complete worked solutions follow afterward.
Write
where
and
are pure quaternions identified with three dimensional vectors.
PhysicsLibrary uses the Hamilton product
 |
(1) |
Equivalently,
 |
(2) |
For pure quaternions,
 |
(3) |
Reversing the factors gives
 |
(4) |
Therefore the commutator is
![$\displaystyle \relax[p,q] = pq-qp = 2\mathbf p\times\mathbf q.$ $\displaystyle \relax[p,q] = pq-qp = 2\mathbf p\times\mathbf q.$](https://images.physicslibrary.org/cache/objects/1115/l2h/img8.png) |
(5) |
The symmetric combination is
 |
(6) |
- Derive the pure quaternion product.
Let
and
Starting from Hamilton's basis products, derive
Identify the scalar and vector parts explicitly.
- Product from scalar and vector parts.
Let
and
Compute using the scalar vector formula rather than a sixteen term component expansion.
- Reverse the product efficiently.
For the quaternions in Exercise 2, compute without repeating the full calculation.
Use the symmetry of the dot product and antisymmetry of the cross product.
- Commutator.
Using the same and , compute
both from the two products and directly from
Verify agreement.
- Anticommutator.
Define
 |
(7) |
Derive the scalar vector formula for and evaluate it for the quaternions in Exercise 2.
Which geometric term disappears?
- Pure quaternion square.
Use the scalar vector product to prove
for every pure quaternion .
What follows when
?
- Perpendicular pure quaternions.
Suppose
Show that
and
Use
as a numerical example.
- Parallel pure quaternions.
Let
Show that
is purely real.
Then evaluate
- Geometric angle encoded in a pure product.
Let and be unit pure quaternions separated by an angle .
Show that
 |
(8) |
where
points in the direction of
.
Evaluate the result for
and
.
- When do two quaternions commute?
Starting from
prove that
if and only if the vector parts and are parallel, antiparallel, or one vector part is zero.
- A complex subalgebra.
Let be a fixed unit pure quaternion, and let
Show directly that
Then show that .
Explain why this set is algebraically equivalent to the complex numbers.
- Component formula recovery.
Starting from
derive the scalar first component formula
![$\displaystyle [pq]_{\mathrm{PL}} = \begin{bmatrix} p_wq_w-p_xq_x-p_yq_y-p_zq_z ... ... \ 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 [pq]_{\mathrm{PL}} = \begin{bmatrix} p_wq_w-p_xq_x-p_yq_y-p_zq_z ... ... \ 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/1115/l2h/img50.png) |
(9) |
- Left multiplication matrix.
For a fixed quaternion
show that left multiplication can be written
![$\displaystyle [pq]_{\mathrm{PL}} = L(p) [q]_{\mathrm{PL}},$ $\displaystyle [pq]_{\mathrm{PL}} = L(p) [q]_{\mathrm{PL}},$](https://images.physicslibrary.org/cache/objects/1115/l2h/img52.png) |
(10) |
where
 |
(11) |
- Right multiplication matrix.
For fixed , derive a matrix satisfying
![$\displaystyle [pq]_{\mathrm{PL}} = R(q) [p]_{\mathrm{PL}}.$ $\displaystyle [pq]_{\mathrm{PL}} = R(q) [p]_{\mathrm{PL}}.$](https://images.physicslibrary.org/cache/objects/1115/l2h/img56.png) |
(12) |
Compare the signs in with those in .
- Associativity as a matrix identity.
Use the left multiplication matrix to explain why associativity implies
 |
(13) |
Verify this identity numerically for
- Hamilton versus flipped multiplication diagnostic.
A source defines
 |
(14) |
Does agree with PhysicsLibrary Hamilton multiplication?
Show that
when the right hand side uses Hamilton multiplication.
- Passive attitude does not change Hamilton multiplication.
PhysicsLibrary later represents a positive passive frame rotation about by
A student argues that because the attitude convention is passive, PhysicsLibrary should replace the
term in the Hamilton product by a minus sign.
Explain why this reasoning is incorrect.
Use the basis check
to show what would break if the multiplication law were changed.
Expand without changing factor order:
Use
and the reversed negative products.
The scalar terms are
The coefficient is
The coefficient is
The coefficient is
These are exactly the components of
.
Therefore
 |
(15) |
The scalar part is
and the vector part is
.
Write
and
The dot product is
The cross product is
The scalar part is
The vector part is
Hence
 |
(16) |
The scalar part remains unchanged because
The scalar multiplication terms in the vector part are also unchanged:
Only the cross product changes sign:
Thus the vector part of is
Therefore
 |
(17) |
From Solutions 2 and 3,
Thus
![$\displaystyle \relax[p,q] = -8\mathbf i+2\mathbf j+12\mathbf k.$ $\displaystyle \relax[p,q] = -8\mathbf i+2\mathbf j+12\mathbf k.$](https://images.physicslibrary.org/cache/objects/1115/l2h/img96.png) |
(18) |
Directly,
which gives the same pure quaternion.
Add the general products:
and
The cross products cancel.
Therefore
 |
(19) |
For Exercise 2,
and
Thus
 |
(20) |
The oriented cross product term disappears from the symmetric combination.
Set
in
Then
Since
and
we obtain
 |
(21) |
If
, then
 |
(22) |
If
then
Reversing the order gives
For
the dot product is
The cross product is
Therefore
 |
(23) |
If
then
Thus
which is purely real.
For
and
we have
Therefore
 |
(24) |
For unit vectors,
Also,
If
is the unit vector in the direction of the cross product,
Therefore
 |
(25) |
For
we get
 |
(26) |
The commutator is
Therefore
if and only if
In three dimensional Euclidean space, a cross product is zero exactly when the vectors are linearly dependent or one is zero.
Thus the vector parts must be parallel, antiparallel, or one vector part must vanish.
Hence
 |
(27) |
Let
with
Multiply:
Therefore
 |
(28) |
Reversing the factors gives
Real coefficients commute, so
The map
preserves addition and multiplication because both imaginary units square to .
Thus this two dimensional quaternion subalgebra is isomorphic to the complex numbers.
The scalar part is
so the first component is
For the vector part,
the cross product is
Add the scalar multiple terms componentwise.
The component becomes
The component becomes
The component becomes
Therefore
![$\displaystyle [pq]_{\mathrm{PL}} = \begin{bmatrix} p_wq_w-p_xq_x-p_yq_y-p_zq_z ... ... \ 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 [pq]_{\mathrm{PL}} = \begin{bmatrix} p_wq_w-p_xq_x-p_yq_y-p_zq_z ... ... \ 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/1115/l2h/img155.png) |
(29) |
Start from the component formula for and collect coefficients multiplying
The scalar component is
The component is
The component is
The component is
Hence
![$\displaystyle [pq]_{\mathrm{PL}} = \begin{bmatrix} p_w&-p_x&-p_y&-p_z\ p_x&p_w&-p_z&p_y\ p_y&p_z&p_w&-p_x\ p_z&-p_y&p_x&p_w \end{bmatrix}[q]_{\mathrm{PL}}.$ $\displaystyle [pq]_{\mathrm{PL}} = \begin{bmatrix} p_w&-p_x&-p_y&-p_z\ p_x&p_w&-p_z&p_y\ p_y&p_z&p_w&-p_x\ p_z&-p_y&p_x&p_w \end{bmatrix}[q]_{\mathrm{PL}}.$](https://images.physicslibrary.org/cache/objects/1115/l2h/img165.png) |
(30) |
Thus
 |
(31) |
Now collect the component formula for by coefficients of the components of .
The result is
 |
(32) |
so that
![$\displaystyle [pq]_{\mathrm{PL}} = R(q) [p]_{\mathrm{PL}}.$ $\displaystyle [pq]_{\mathrm{PL}} = R(q) [p]_{\mathrm{PL}}.$](https://images.physicslibrary.org/cache/objects/1115/l2h/img170.png) |
(33) |
Compare with
The scalar row is identical, but the signs associated with the cross product structure differ. This is the matrix manifestation of left versus right Hamilton multiplication.
For any quaternion ,
Associativity gives
Therefore
Since this holds for every ,
 |
(34) |
For
the Hamilton product is
Thus
Also,
and
Direct matrix multiplication gives
 |
(35) |
PhysicsLibrary Hamilton multiplication uses
in the vector part.
The proposed operation uses
Therefore it does not agree with PhysicsLibrary Hamilton multiplication.
Under Hamilton multiplication,
Use
and
Then
Hence
 |
(36) |
The proposed operation is the reversed Hamilton product.
The passive attitude convention specifies how a quaternion is interpreted as a frame transformation.
Hamilton multiplication specifies the algebra used to multiply quaternion elements.
These are separate choices.
PhysicsLibrary retains
whether the quaternion is being used as a passive attitude map, an algebraic quantity, or a pure quaternion encoding a vector.
If the cross product sign were changed merely because an attitude convention was passive, then the pure product rule would become
That would contradict the declared Hamilton basis relation
Thus the later passive attitude quaternion
changes the interpretation of the quaternion's vector sign for a positive frame rotation. It does not change the multiplication law.
The multiplication companion can be summarized by four identities:
 |
(37) |
 |
(38) |
![$\displaystyle \relax[p,q] = 2\mathbf p\times\mathbf q,$ $\displaystyle \relax[p,q] = 2\mathbf p\times\mathbf q,$](https://images.physicslibrary.org/cache/objects/1115/l2h/img199.png) |
(39) |
and
 |
(40) |
The cross product sign is a direct multiplication convention diagnostic: PhysicsLibrary Hamilton multiplication uses the positive sign.
The exercises and solutions in this companion are newly written or expanded for PhysicsLibrary from the algebra developed in Quaternion Product in Scalar Vector Form.
Hamilton is the foundational source for the quaternion product. Joly and Kelland–Tait provide classical systematic treatments and examples. Sommer and coauthors provide a modern discussion of Hamilton versus reversed quaternion multiplication in engineering applications.
- 1
- W. R. Hamilton, Elements of Quaternions, 2nd ed., edited by C. J. Joly, Longmans, Green, and Co., 1899. Public domain historical source. Internet Archive scan https://archive.org/details/elementsofquater01hamiuoft
- 2
- C. J. Joly, A Manual of Quaternions, Macmillan and Co., London, 1905. Public domain historical source. Internet Archive search https://archive.org/search?query=A+Manual+of+Quaternions+Joly
- 3
- P. Kelland and P. G. Tait, Introduction to Quaternions, with Numerous Examples, 2nd ed., Macmillan and Co., London, 1882. Public domain historical source. Internet Archive search https://archive.org/search?query=Introduction+to+Quaternions+Kelland+Tait
- 4
- H. Sommer, I. Gilitschenski, M. Bloesch, S. Weiss, R. Siegwart, and J. Nieto, “Why and How to Avoid the Flipped Quaternion Multiplication,” Aerospace, vol. 5, no. 3, article 72, 2018. Published under CC BY 4.0. Publisher article https://www.mdpi.com/2226-4310/5/3/72
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution ShareAlike 4.0 International license.
|