Write the unit quaternion for a 180∘ rotation about the y-axis. Recall q=(cos2θ,sin2θn^).
Recall Solution
θ=180∘⇒2θ=90∘.
cos90∘=0, sin90∘=1.
n^=(0,1,0).
q=(0,(0,1,0))=(0,0,1,0), i.e. the unit j.
Why the half-angle: rotating a vector uses the sandwich quq−1, which applies q effectively "twice", so each q must carry only half the angle. (See Axis-Angle & Euler Rodrigues.)
What it looks like (figure): the red arrow is applied first (about x), the mint arrow second (about y); reading right-to-left in qyqx matches that timeline.
Prove that for any two quaternions, the scalar part of pq equals the scalar part of qp, but the vector parts can differ. Identify the single term responsible.
Recall Solution
Scalar of pq:w1w2−v1⋅v2.
Scalar of qp:w2w1−v2⋅v1.
Since ordinary multiplication commutes (w1w2=w2w1) and dot is symmetric (v1⋅v2=v2⋅v1), the two scalars are identical. ✅
Vector of pq:w1v2+w2v1+v1×v2.
Vector of qp:w2v1+w1v2+v2×v1.
The first two terms match (addition commutes). The difference is
v1×v2−v2×v1=2(v1×v2),
using anti-symmetry v2×v1=−v1×v2.
So pq−qp=(0,2v1×v2) — a pure quaternion. The cross product is the sole culprit.
Show that if v1 and v2 are parallel (both along the same axis), then pq=qp.
Recall Solution
Parallel means v2=λv1 for some scalar λ. Then
v1×v2=v1×(λv1)=λ(v1×v1)=0.
By L3.1, pq−qp=(0,2⋅0)=(0,0), so pq=qp. ✅
Physical meaning: two rotations about the same axis commute (spin 30∘ then 50∘ about z = 80∘ either way). Only differently-axised rotations refuse to commute — the geometric heart of Cross Product & Right-Hand Rule.
A gyro integrator updates attitude as qk+1=qkδq where δq is a tiny unit quaternion. Prove that ∣qk+1∣=∣qk∣ exactly (in real arithmetic), so the orientation never grows or shrinks. Use the norm identity ∣pq∣=∣p∣∣q∣.
Recall Solution
Claim to lean on: for any quaternions, ∣pq∣=∣p∣∣q∣. (This follows because the norm-squared ∣q∣2=qqˉ is multiplicative: pq=qˉpˉ, so ∣pq∣2=pqpq=pqqˉpˉ=p∣q∣2pˉ=∣q∣2ppˉ=∣p∣2∣q∣2.)
Apply with p=qk, q=δq:
∣qk+1∣=∣qkδq∣=∣qk∣∣δq∣.
Since δq is a unit quaternion, ∣δq∣=1, hence
∣qk+1∣=∣qk∣⋅1=∣qk∣.
Starting from ∣q0∣=1, every ∣qk∣=1 forever — in exact math. See Quaternion Kinematics — $\dot q = \tfrac12 q\,\omega$ and Multiplicative EKF (MEKF) for how filters exploit this.
Numeric sanity check. Let qk=(21,(0,0,21)) and a small rotation δq=(cos1∘,(sin1∘,0,0)). Compute qk+1=qkδq and verify its norm is 1 to 6 decimals.
Recall Solution
Let c=cos1∘≈0.9998477, s=sin1∘≈0.0174524, r=21≈0.7071068.
p=qk=(r,(0,0,r)), q=δq=(c,(s,0,0)).
Insight: the exact c2+s2=1 collapse is why unit-ness survives — but in float, c2+s2 is 1 only to machine precision, so real filters renormalize periodically.