Exercises — Quaternion kinematics — q̇ = ½ Ξ(q) ω
Recall the two objects we will use again and again, drawn as pictures below.

Reading figure s01. The black circle is a 2D slice of the unit 3-sphere — the set of all points at distance 1 from the origin, where every valid quaternion lives. The black arrow labelled points radially outward from the centre to the red dot: that dot is the current quaternion. The red arrow labelled leaves the dot and lies flat along the circle — it is the velocity of the quaternion. The little black square where the two arrows meet marks a right angle: and are perpendicular. That right angle is the whole point — a velocity tangent to the sphere slides the dot along the surface, never off it, so the length stays exactly 1 and remains a valid rotation.
Level 1 — Recognition
Exercise 1.1
The matrix has shape . State and , and explain in one sentence why those numbers, not some other shape.
Recall Solution
is . Why: it eats the 3-vector (3 columns) and produces the 4-vector (4 rows). A matrix that turns a 3-thing into a 4-thing must be . Count the entries in the formula above to confirm: 4 rows, 3 columns.
Exercise 1.2
In the equation , what kind of quaternion is ? (Its scalar part is zero.)
Recall Solution
It is a pure quaternion (also called the angular-velocity quaternion). A pure quaternion has zero scalar part; its three vector slots hold . It is not a unit quaternion and does not represent a rotation — it is only a convenient package so we can multiply into .
Exercise 1.3
Where does the famous factor come from? Choose: (a) from the cross product, (b) from the half-angle in the quaternion definition, (c) from renormalization.
Recall Solution
(b). A quaternion stores and — the half-angle. When you differentiate in time, the chain rule pulls out a : . That is the whole story — it is the price of the double-cover, where both and mean the same physical rotation.
Level 2 — Application
Exercise 2.1
Let (the identity) and rad/s. Compute .
Recall Solution
At : , so Then What it means: the slot turns on first — that is a pitch about the body -axis beginning. And : at identity the norm cannot yet change ().
Exercise 2.2
Let (a rotation about ) and body rate rad/s. Compute . Use .
Recall Solution
Here . Build : Only is nonzero, so we take the third column of and halve it: Sanity check: . Tangent to the sphere. ✔
Exercise 2.3
Verify numerically that for and (Exercise 2.1). Show both sides.
Recall Solution
Left side (, before the ): from 2.1 it is . Right side (): with , Both give . ✔ Same physics, two bookkeeping choices — one factors out , the other .
Level 3 — Analysis
Exercise 3.1
Prove that for any unit quaternion and any , the derivative is orthogonal to , i.e. . Explain the geometric meaning.
Recall Solution
Start from , so Using the block form (restated in the definition callout above) and , we split and multiply block-by-block: The last term uses (skew) and : . So and hence for every . Geometrically (see figure s01 above): the black arrow points radially out to the sphere; the red arrow meets it at the marked right angle, lying flat against the surface. That right angle is the algebra made visible — the motion slides along , never off it, so stays exactly 1.
Exercise 3.2
In Example 1 of the parent note, pure spin about body from identity gives the coupled equations . Solve them and state the frequency of the resulting oscillation. Why is the frequency and not ?
Recall Solution
Differentiate the first equation and substitute the second: This is simple harmonic motion with angular frequency . With : Why half: the physical body turns through angle , but the quaternion stores . So the quaternion components oscillate at half the body's rotation rate. A full body turn () only advances the quaternion by in half-angle — and indeed returns to after one full turn, the famous double cover.
Exercise 3.3
Show that the columns of are mutually orthogonal and each has length . Verify for a general unit that column 1 dotted with column 2 is zero, and that column 1 has length 1.
Recall Solution
Columns of : Orthogonal. ✔ And . So the three columns form an orthonormal set (when is unit). Meaning: is an isometry from -space into the tangent plane — it doesn't stretch , it just rotates it into the right 3D slice of the 4D tangent space. That is why exactly.
Level 4 — Synthesis
Exercise 4.1
Take , rad/s constant. Do one explicit Euler step (rule: ) of size s. Then renormalize. Report the renormalized quaternion and comment on why renormalization was needed. (See Numerical integration RK4.)
Recall Solution
From the parent note Example 2, . Euler step: . Norm: — slightly bigger than 1. Renormalize: divide by the norm: Why needed: the tangency proof (3.1) is exact only in continuous time. A finite Euler step moves straight along the tangent line, which leaves the curved sphere, so creeps above 1. Renormalizing snaps it back onto . Higher-order integrators like RK4 (four rate-samples per step) drift less but still require periodic renormalization.
Exercise 4.2
Body rate with rad/s, starting at . Using the exact solution from 3.2, find at s. Then find the physical rotation angle it represents.
Recall Solution
Exact: . With : Physical angle: about the -axis. Consistent: rate rad/s for 1 s turns the body by radians. ✔
Exercise 4.3
A tiny body-frame spin over time is packaged as a pure quaternion. Explain, using the non-commutativity of , why body-frame must post-multiply () while inertial-frame must pre-multiply (). One-paragraph argument, no heavy algebra.
Recall Solution
maps a vector expressed in the body frame to the inertial frame. A tiny extra spin measured by gyros on the body is naturally described in body coordinates, so it acts first, in the body frame — and "first" for a map is the rightmost factor: . Hence body rates post-multiply. If instead is given in the fixed inertial frame, the extra spin acts after has done its job, in inertial coordinates — the leftmost factor: . Hence inertial rates pre-multiply. Because is non-commutative, swapping these silently integrates the wrong attitude — a classic flight-software bug. This links to composition order in Rotation matrices and SO(3).
Level 5 — Mastery
Exercise 5.1
The EKF for attitude linearizes the kinematics. Show that treating as the input, the Jacobian equals , and treating as the state (fixed ), the Jacobian equals . Verify one entry of each explicitly for . (See Extended Kalman Filter for attitude estimation.)
Recall Solution
Input Jacobian . Write . This is linear in (each component of is a fixed linear combination of ), and the derivative of a linear map with respect to is just . Hence — a matrix. Explicit entry: row 3, column 2 of 's Jacobian is times entry of . At that entry is , so State Jacobian . Use the other form , which is linear in , so — a matrix. Explicit entry: row 3, column 1. Entry of is ; with that is , so Cross-check with Exercise 2.1: there has only , and . That entire value flows through the single Jacobian path . ✔ Both Jacobians agree with the direct computation, which is exactly why quaternion kinematics slot cleanly into an EKF's propagation and covariance-update steps.
Exercise 5.2
Build it. Derive the length relation from scratch, then interpret it: if a satellite spins at rad/s, how fast (in units per second) does its quaternion move along the 3-sphere?
Recall Solution
From Exercise 3.3, the columns of are orthonormal for unit , so preserves length: . Therefore Number: (quaternion-units per second). Interpretation: the point slides along at half the body's angular speed — the geometric echo of the half-angle. Arc-length on the unit sphere equals angle, so sweeps rad of great-circle arc per second, and after s (one full physical turn, ) it has traced of arc — landing at , the double cover again. (See figure s02.)
Exercise 5.3
Synthesis / open reasoning. A student replaces the exact half-angle propagation by the matrix exponential for constant . Argue why this is exact (no renormalization drift) and connect it to Rodrigues rotation formula.
Recall Solution
For constant , is a linear ODE with constant coefficients, whose exact solution is the matrix exponential . Because is skew-symmetric (), its exponential is orthogonal, so it preserves norm exactly: — no drift, no renormalization needed. The closed form is which is precisely a rotation quaternion of angle about — the quaternion analogue of the Rodrigues rotation formula . Both split "rotate by an angle about an axis" into a (stay) plus a (turn) part. The exponential map is the bridge between the rate description () and the finite rotation description (Rodrigues, ).
Recall One-line self-test wrap-up
The half comes from ::: the half-angle stored in the quaternion (chain rule). is orthogonal to because ::: , keeping motion tangent to . equals ::: (columns of are orthonormal).