Relation between quaternion and rotation

Consider
Then
Demonstration
  • \(\mathcal{R}_q(v)=(s,w)\;(v,0)\;(-s,w)= \; ... \; =((w ^ 2-s ^ 2)\, v + 2 (s \cdot v)\,s + 2 w\,(s\times v),0)\)
  • As \(\|q\|=1\), we can write \(q=(s,w)=(n\sin(\phi),\cos(\phi))\), where \(\|n\|=1\)
  • Then \(\displaystyle \mathcal{R}_q(v) = (\underbrace{(\cos ^ 2(\phi)-\sin ^ 2(\phi))}_{\cos(2\phi)}\,v + \underbrace{2 \sin ^ 2 (\phi)}_{1-\cos (2 \phi)} (n \cdot v)\,n + \underbrace{2\, \cos(\phi) \sin(\phi)}_{\sin(2\phi)}\;n\times v\,,\;0)\)
  • \(\Rightarrow\) Rodrigues formula for axis \(n\) and angle \(2 \phi\).
The unit quaternion \(q=(n\,\sin(\theta/2),\cos(\theta/2))\) represents the rotation of angle \(\theta\) around the axis \(n\).