3.5.7 · D2Guidance, Navigation & Control (GNC)

Visual walkthrough — Quaternion product — Hamilton product

2,051 words9 min readBack to topic

Before we touch the formula, let us agree on what every symbol is, because we will not use one before you can picture it.


Step 0 — The four numbers and the three arrows

WHAT the picture shows: the three tags drawn as three arrows at right angles, exactly like the axes of a room. A quaternion's vector part is a single arrow built from these.

WHY we draw them this way: the entire multiplication rule comes from how these three arrows spin into each other. If you can see the room, you can read off every product.

The two facts we are allowed to use — nothing else:


Step 1 — The cyclic ring: why and

WHAT: the green arrows follow (clockwise) and each hop is a product equal to the next letter: , , . The red arrows go the other way and pick up a minus sign.

WHY this matters more than it looks: this is exactly the right-hand rule of the Cross Product & Right-Hand Rule. If were the unit vectors , then — the same clockwise ring. So the "twist" half of quaternion multiplication is a cross product. Hold that thought; we prove it in Step 5.

PICTURE takeaway: swapping the order of two neighbours reverses the arrow, which flips the sign. That single fact — — is the seed of non-commutativity, and non-commutativity is the seed of 3D rotation.


Step 2 — FOIL: turn one product into sixteen

WHAT the picture shows: a grid. Rows are the parts of (the tags ), columns are the parts of . Each cell is one of the 16 products, coloured by where it eventually lands:

  • yellow cells → land in the scalar part,
  • blue cells → land in the // vector part.

WHY a grid: the whole derivation is just sorting these 16 cells into two buckets — the scalar bucket and the vector bucket. No new idea is needed; we only apply the Step-1 rules to each cell and add up.

The diagonal cells are the dangerous ones: Each squares a tag to , so each falls out of the vector bucket and into the scalar bucket carrying a minus sign. That minus is the whole reason a dot product appears next.


Step 3 — Collect the scalar bucket → a dot product appears

WHAT: the picture shows two arrows and shades the quantity — the amount they point the same way.

WHY the dot product, and not some other combination? We did not choose it. The three diagonal 's forced the sum , and that sum is the definition of the dot product. The dot answers the question "how aligned are these two directions?" — a single number, biggest when parallel (), zero when perpendicular (), negative when opposed.


Step 4 — Collect the -component → a cross product appears

Now sort the blue cells that carry a leftover tag.

WHAT: the picture isolates the two ring hops and landing on the -axis with opposite signs, and highlights the surviving combination .

WHY this bracket matters: is exactly the -component of the cross product . It came from the asymmetric ring rule ( but ) — the one place where order flips the sign.

By the same sorting for the and tags (cyclic symmetry), all three coefficients assemble into:

  • — dial of stretches the arrow of .
  • — dial of stretches the arrow of .
  • — the sideways twist, the only term that flips when you swap.

Step 5 — Why the cross product is the sole troublemaker

WHAT: two side-by-side right-hand-rule pictures. Left: points up. Right: points down — same magnitude, opposite arrow.

WHY the cross product, and not another sideways rule? We again did not choose it — the ring's antisymmetry (, ) produced it. The cross product answers "how much do these two arrows twist across each other, and about which axis?" Its magnitude is (biggest when perpendicular, zero when parallel), and its direction is set by the right-hand rule — precisely the ring of Step 1.

Recall Why does

in one sentence? Because the cross-product term is the only piece of the Hamilton product that reverses sign when you swap the two quaternions ::: and reversing a physical rotation's order really does give a different orientation.


Step 6 — Degenerate & edge cases (never leave a gap)

We must show every corner, so no reader hits an unshown scenario.


The one-picture summary

WHAT: the whole derivation on one canvas — the grid feeds two buckets; the yellow bucket condenses to (a dial), the blue bucket to (an arrow). One symmetric dot, one antisymmetric cross.

Recall Feynman retelling — the walkthrough in plain words

We had two little machines, each made of one dial and one arrow. To glue them into one machine we multiplied everything by everything — sixteen tiny pieces. Then we sorted the pieces into two boxes. The number box ended up asking "how much do the two arrows agree?" — that's the dot, and it never cares about order. The arrow box ended up with two stretched copies of the arrows plus a sideways twist — that twist is the cross product, and it's the only thing that notices which machine you used first. Point the arrows the same way and the twist vanishes (spins about one axis always commute); point them across each other and the twist is strongest. That single sideways twist is why turning a cube "right then up" differs from "up then right" — and why quaternions can store real 3D rotation in just four numbers.


Connections

  • Parent: Hamilton product — the formula this page derives.
  • Cross Product & Right-Hand Rule — the ring of Step 1 is this rule.
  • Rotation Matrices — SO(3) — the same non-commutativity, written as matrices.
  • Axis-Angle & Euler Rodrigues — where the half-angle enters.
  • Quaternion Kinematics — $\dot q = \tfrac12 q\,\omega$ — every gyro tick is one Hamilton product.
  • Multiplicative EKF (MEKF) — chains these products for attitude estimation.
  • Gimbal Lock & Euler Angles — the failure mode quaternions dodge.

#flashcards/physics