Unit Quaternion
Undergraduate
A unit quaternion is a quaternion $q = a + b \, \mathbf{i} + c \, \mathbf{j} + d \, \mathbf{k}$ such that
\[a^2 + b^2 + c^2 + d^2 = 1.\]Examples
Worked examples
-
The rotation of space by $90^\circ$ about the $y$-axis, counterclockwise when viewed from the positive $y$-axis UndergraduateValue:
$q = \pm \frac{\sqrt{2}}{2} (1 + \mathbf{j})$
The unit quaternions of the rotation by $90^\circ$ about the $y$-axis are $\pm(\cos 45^\circ + \mathbf{j} \sin 45^\circ) = \pm \frac{\sqrt{2}}{2}(1 + \mathbf{j})$, using half of the angle and the axis $\mathbf{j}$. -
The rotation of space by $90^\circ$ about the $z$-axis, counterclockwise when viewed from the positive $z$-axis UndergraduateValue:
$q = \pm \frac{\sqrt{2}}{2} (1 + \mathbf{k})$
The unit quaternions of the rotation by $90^\circ$ about the $z$-axis are $\pm(\cos 45^\circ + \mathbf{k} \sin 45^\circ) = \pm \frac{\sqrt{2}}{2}(1 + \mathbf{k})$, using half of the angle and the axis $\mathbf{k}$. -
Value:
$q = 1$ or $q = -1$
The unit quaternions of the identity rotation are $1$ and $-1$, which are the rotations by $0^\circ$ and by $360^\circ$, because $\cos 0^\circ = 1$ and $\cos 180^\circ = -1$ in $q = \cos(\theta / 2) + \sin(\theta / 2)(u_1 \mathbf{i} + u_2 \mathbf{j} + u_3 \mathbf{k})$.
Properties
- The rotation of $\reals^3$ by the angle $\theta$ about the axis in the direction of the unit vector $\vect{u} = (u_1, u_2, u_3)$ is represented by the unit quaternion \[q = \cos\frac{\theta}{2} + \sin\frac{\theta}{2} \, (u_1 \mathbf{i} + u_2 \mathbf{j} + u_3 \mathbf{k}).\] The rotation moves each vector $\vect{v}$, written as the quaternion $v_1 \mathbf{i} + v_2 \mathbf{j} + v_3 \mathbf{k}$, to $q \vect{v} q^{-1}$.
- The unit quaternions $q$ and $-q$ represent the same rotation, so each rotation is represented by exactly two unit quaternions.
- The product of two unit quaternions is a unit quaternion, and it represents doing one rotation after the other.
- A unit quaternion describes a rotation of $\reals^3$ with four numbers and one condition, with no gimbal lock. After rounding errors, a computed quaternion is corrected by dividing it by its norm.
Distinctions involving this term
- Representations of Orientation and Rotation: Euler angles, axis–angle representations, rotation matrices, and unit quaternions are four ways to write down a rotation or the orientation of a rigid body in three-dimensional space. Euler angles use three angles of turns about coordinate axes, which are easy to picture but fail to be unique at gimbal lock. An axis–angle representation uses a unit vector along the axis of the rotation and the angle turned about it, which is easy to picture but composes by no simple formula. A rotation matrix uses a $3 \times 3$ matrix with orthonormal columns, which composes by matrix multiplication but has nine entries for three degrees of freedom. A unit quaternion uses four numbers with one condition, which composes by quaternion multiplication and has no gimbal lock, but each rotation has two unit quaternions, $q$ and $-q$.
All definitions · All distinctions · All examples · Notation