Visual walkthrough — Quaternion kinematics — q̇ = ½ Ξ(q) ω
Before anything: three words, three pictures.
We link the prerequisite pictures as we need them: Angular velocity and the body frame, Rotation matrices and SO(3), Rodrigues rotation formula.
Step 1 — A rotation is an axis and an angle
WHAT. Any turn of a rigid body, no matter how complicated it looks, is one spin: pick a straight line (the axis , a unit arrow) and turn by some angle around it. That is the whole content of a rotation.
WHY. We need the simplest honest description of "orientation" before we can ask how it changes. Euler's rotation theorem promises this axis–angle pair always exists, so we start there instead of with nine messy matrix entries (see Rotation matrices and SO(3)).
PICTURE.
The red arrow is the axis (length 1). The orange sweep is the angle . Everything below is just a clever way to store these two things as four numbers.
Step 2 — Store the spin as four numbers (why half the angle)
WHAT. We pack the axis and angle into a quaternion , a stack of four numbers:
Read it term by term: is a lone number tracking how much we turned; is the axis, shrunk by , tracking which way.
WHY the and not ? This is the seed of the famous . Storing the half-angle is what makes quaternion multiplication compose rotations correctly (it is the "double cover": and name the same physical orientation). Remember this half — it comes back to bite us in Step 6.
PICTURE.
As the true angle (orange) sweeps, the four stored numbers ride cosine and sine curves of (teal, plum). Notice they move at half the speed of the real turn — that is the half-angle, drawn.
Step 3 — Two rotations combine by multiplying quaternions
WHAT. "Do rotation , then a further tiny rotation " is written as a single product . The symbol is the Hamilton product:
Term by term: the dot product (a single number measuring alignment) feeds the scalar; the cross product (a new arrow, perpendicular to both) is the fingerprint of non-commutativity.
WHY. Composing rotations does not commute — turning then rolling differs from rolling then turning. Only a product with that term can copy this behaviour. This is the entire reason quaternions exist.
PICTURE.
Left: rotate-then-flip. Right: flip-then-rotate. Same two moves, different final arrow — the gap between them is exactly the cross-product term.
Step 4 — The attitude lives on a 4D ball; velocity must stay tangent
WHAT. Because always, the point can never leave the surface where "sum of four squares ". That surface is the unit 3-sphere . We cannot draw four dimensions, so we draw the honest 2D analogy: a point on a circle.
WHY. If a rotation is always a legal orientation, then must slide along this surface for all time — it can never bulge outward or sink inward. That single geometric demand will nail down the and the matrix in Steps 6–7.
PICTURE.
The point sits on the circle. Its velocity (green) is drawn tangent — it points along the surface, at a right angle to itself. Any velocity with a radial (outward) piece would grow and is forbidden.
Step 5 — A tiny spin over a tiny time
WHAT. In a short slice of time , the body turns by a small angle about the current axis . From Step 2, that tiny extra rotation is its own quaternion:
Now shrink . For a tiny angle, and :
WHY the approximations? Near angle zero, cosine flattens to 1 and sine becomes a straight line through the origin — the "small-angle" facts you can read straight off Step 2's curves. This turns the exact-but-messy into "identity plus a small linear nudge", which we can differentiate.
WHY the again? It rode in on — the half-angle from Step 2. This is literally where the famous factor of one-half is born.
PICTURE.
Zoomed onto the circle near : the huge orange curve of is replaced by its straight teal tangent line. Over the tiny step, the true spin and its linear stand-in are indistinguishable — and the slope of that line carries the .
Step 6 — From "tiny step" to a genuine derivative
WHAT. Compose the current attitude with the tiny nudge (Step 3), subtract where we started, and divide by the time slice:
Let and the left side becomes the derivative — the instantaneous rate, the green tangent arrow of Step 4:
Term by term: is the half-angle survivor; says "spin measured in the body frame, so it multiplies on the right"; and is the angular-velocity quaternion — a quaternion with zero scalar part, because is a pure spin with no "amount-so-far" of its own.
WHY. The identity terms cancel exactly, leaving only the nudge. The definition of a derivative (limit of a difference quotient) turns "compose a small rotation each tick" into a smooth flow. That is the whole trick — see Numerical integration RK4 for how we later step this flow on a computer.
PICTURE.
The secant line from to (dotted) pivots down onto the tangent (solid green) as shrinks — the picture of taking the limit.
Step 7 — Package the product as a matrix
WHAT. The Hamilton product is linear in — doubling doubles the output, with no leftover terms. Anything linear can be written as a matrix times . Grinding through Step 3's formula with and :
so
Term by term: the top row came from the dot product (alignment of axis with spin). The bottom block is — the scalar scaling plus the skew matrix that performs .
WHY. GNC estimators like the Extended Kalman Filter for attitude estimation need a clean linear map they can drop into matrix code. is that map — the Hamilton product rewritten so a computer can multiply it.
PICTURE.
The grid of with its top row (dot-product) shaded plum and its lower block (scale + cross) shaded teal — showing exactly which entries came from which piece of Step 3.
Step 8 — Sanity check the picture: the norm cannot drift
WHAT. We claimed in Step 4 that must be tangent, i.e. , so stays 1. Check it:
and the key fact :
The two pieces cancel, and because any vector crossed with itself is zero.
WHY. This is the whole promise of Step 4, cashed out in algebra: whatever you feed in, the rate is perpendicular to . never changes. The equation cannot send the attitude off the ball.
PICTURE.
(blue radial) and (green tangent) meet at a perfect right angle; the little box at the corner is the we just proved.
Step 9 — The edge and degenerate cases (nothing left uncovered)
WHAT & WHY — walk every corner:
- Zero spin, . Then , so . The point sits still on the ball — a non-rotating body keeps its attitude. ✔
- At the identity, . The top row , so ; only the vector part turns on. First motion is purely into — exactly the tangent direction. ✔
- Spin along a stored axis (e.g. ): the cross term vanishes, so the body simply keeps turning about the same axis — no wobble, clean single-axis spin. ✔
- instead of (double cover): flip every sign in and flips sign too, giving — the same physical rotation traced by the mirror-labelled point. No contradiction; both name one orientation.
- Big over a finite step. The derivation is exact in continuous time, but a discrete integrator (e.g. Numerical integration RK4) drifts slightly off the ball — so real flight code renormalizes each tick. Contrast Euler angles and gimbal lock, where no amount of renormalizing saves you from the singularity.
PICTURE.
Four mini-circles: (a) frozen dot; (b) identity with tangent-only motion; (c) axis-aligned spin, no wobble; (d) discrete steps drifting outward, with a plum arrow snapping them back to the surface (renormalization).
The one-picture summary
One frame carries the whole derivation: the point on the sphere; the tiny orange nudge pulling it forward; the green tangent that results; and the right angle proving stays 1. Half-angle in, tangent out.
Recall Feynman retelling — say it in plain words
A spinning thing has a "where am I pointing" state, and we cleverly store it as four numbers whose squares add to one — so the state is stuck on the surface of a round ball. Turning a little more means multiplying by a small turn-quaternion, and because we stored the half-angle, that small turn is "do-nothing plus one-half of the spin". Subtract the do-nothing, divide by the time, and you get the rate: one-half, times the current state, times the spin. Rewrite the multiply as a tidy matrix so a computer can use it. Finally, the beautiful check: the rate always points sideways along the ball, never outward, so the state can never fall off — which is exactly what "still a valid rotation" means. The whole formula is just "slide along the ball at half-speed."
Recall Quick self-test
Where does the factor come from? ::: From storing the half-angle in the quaternion (Step 2); its slope at zero is (Step 5). Why must ? ::: Because forever, so the velocity can only slide along the sphere, never radially outward (Step 4 / Step 8). Why is a matrix and not a nonlinear map? ::: Because the Hamilton product is linear in (Step 7) — doubling doubles . What is when ? ::: Zero — a non-spinning body holds its attitude (Step 9, case 1).
🇮🇳 Prefer Hindi-English? Yeh note Hinglish mein padho →