3.5.7 · D1Guidance, Navigation & Control (GNC)

Foundations — Quaternion product — Hamilton product

1,740 words8 min readBack to topic

This page assumes nothing. Before you can read "multiply two quaternions," you must own every symbol that appears: what a scalar is, what a vector is, what an axis and an angle are, what a dot product and a cross product measure, and what those strange letters actually do. We build them one at a time, each on top of the last.


0. Numbers you already trust — the scalar

WHY we need it: a quaternion has one scalar slot (called ) that stores "how much of the rotation is no turn at all." When two rotations point in similar directions, the scalar part grows. It is the anchor everything else hangs off.


1. An arrow with direction — the vector

Figure — Quaternion product — Hamilton product

WHAT the picture shows: three mutually perpendicular chalk axes ( right, up-into-page, up), and a blue arrow whose shadow onto each axis gives its three numbers. Those shadows are the components .

WHY the topic needs it: a quaternion has three vector slots that together store the axis the rotation twists around. The scalar plus the vector is the whole quaternion: .


2. Axis and angle — how we describe a turn

Figure — Quaternion product — Hamilton product

WHAT the picture shows: a yellow axis arrow and a pink curved arrow sweeping the turn angle around it. Point your right thumb along ; your curling fingers show the positive turn direction.

WHY the topic needs it: the parent's Example 2 builds a quaternion straight from an axis and angle via . You cannot read that line until axis and angle are solid. (Where the half-angle comes from is the job of Axis-Angle & Euler Rodrigues.)


3. The dot product — "how much do two arrows agree?"

Figure — Quaternion product — Hamilton product

WHY this tool and not another? The dot product answers exactly one question: "how aligned are these two arrows?" It is largest when they point the same way (), zero when they are perpendicular (), and negative when they oppose. That perpendicular-gives-zero fact is why, in the parent's Worked Example 1, for and .

WHY the topic needs it: the scalar part of every Hamilton product is . That minus-dot is a direct measurement of axis alignment.


4. The cross product — "twist that points sideways"

Figure — Quaternion product — Hamilton product

WHAT the picture shows: two chalk arrows (blue) and (pink) lying flat, and their cross product (yellow) standing straight up out of the board. Point right-hand fingers from toward ; the thumb is .

WHY this tool and not another? We need something that captures "twist across" — a turning tendency that has its own direction. Only the cross product does that in 3D. It is why the vector part of the Hamilton product carries a term.


5. The imaginary units


6. Norm, conjugate, inverse — keeping a quaternion "valid"

WHY the topic needs it: rotating a vector uses the "sandwich" — you cannot read that until you know what and mean. And the "always renormalize" mistake on the parent page only makes sense once you know .


Prerequisite map

Scalar - a plain number

Quaternion q = w + vector

Vector - an arrow x y z

Axis and Angle

Dot product - alignment

Cross product - sideways twist

Hamilton product

Units i j k

Norm conjugate inverse

Rotate a vector by sandwich

Read it top-down: plain numbers and arrows build the quaternion; dot and cross build the two halves of the product; the units carry the cross-product's right-hand rule into the algebra; and norm/conjugate/inverse let you use a quaternion to rotate.


Equipment checklist

Cover the right side and test yourself.

A scalar carries this and only this
size (magnitude), no direction
A vector is drawn as
an arrow with a length and a direction, written
A unit vector (hat, like ) has length
exactly
To describe a turn you need which two things
an axis and an angle
equals zero when the arrows are
perpendicular (at )
The dot product cares about order?
No — it is symmetric,
points
perpendicular to both, by the right-hand rule
The cross product cares about order?
Yes —
Which ingredient makes the Hamilton product non-commutative
the cross product term only
equals
equals
; and equals
A unit quaternion has norm
The conjugate of is
For a unit quaternion equals

Connections

  • Parent: Hamilton product — where all these symbols get multiplied together.
  • Cross Product & Right-Hand Rule — the geometric root of and of non-commutativity.
  • Axis-Angle & Euler Rodrigues — where axis, angle and the half-angle enter the quaternion.
  • Rotation Matrices — SO(3) — the same rotations written as matrices.
  • Quaternion Kinematics — $\dot q = \tfrac12 q\,\omega$ — uses norm and the product every gyro tick.
  • Multiplicative EKF (MEKF) — attitude filters that chain these products.
  • Gimbal Lock & Euler Angles — the problem quaternions were built to dodge.