Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm reading 3D math primer for graphics and game development by Fletcher Dunn and Ian Parberry. On page 170, the logarithm of quaternion is defined as

\begin{align} \log \mathbf q &= \log \left( \begin{bmatrix} \cos \alpha & \mathbf n \sin \alpha \end{bmatrix} \right) \\\\ &\equiv \begin{bmatrix} 0 & \alpha \mathbf n \end{bmatrix} \end{align}

I don't see how $\log \left( \begin{bmatrix} \cos \alpha & \mathbf n \sin \alpha \end{bmatrix} \right)$ is equal to $\begin{bmatrix} 0 & \alpha \mathbf n \end{bmatrix}$. Can anyone help me out?


share|cite|improve this question

I can't see the page in Google books, but what you apparently have there is the logarithm of a unit quaternion q, which has scalar part $\cos(\theta)$ and vector part $\sin(\theta)\vec{n}$ where $\vec{n}$ is a unit vector.

Since the logarithm of an arbitrary quaternion $q=(s\;\;v)$ is defined as

$\ln q=(\ln\,|q|\;\;\frac{v}{\|v\|}\arccos\frac{s}{|q|})$

where $|q|$ is the norm of the quaternion and $\|v\|$ is the norm of the vector part, applying that formula to a unit quaternion yields a scalar part of 0 (the logarithm of the norm of a unit quaternion is zero), and you should now be able to derive the formula for the vector part.

share|cite|improve this answer

Just recall $\exp(\alpha i) = \cos \alpha + i \sin \alpha$ for complex numbers, the quaternion (remember a quaternion is just 3 complex numbers which all have the same real part) version is by direct analogue and take logarithm of both sides.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.