The collection of quaternions are: $$ \mathbb{ H } := \left\{ a + b \mathbf{ i } + c \mathbf{ j }+ d \mathbf{ k } \right\} $$ where and
Real Part of the Quaternion
Given a quaternion , we say that is the scalar part of the quaternion (or real part), and is denoted by
Vector Part of the Quaternion
Given a quaternion , we say that is the vector part of the quaternion, and is denoted by
Note that we think of the vector part of a quaternion as an element of , and so it inherits all the operations from that space, such as equality, as noted in the next corollary.
Quaternion from a Real Number
We define the map by $$ \operatorname{to\_quat}(a) := a + 0\mathbf{i} + 0\mathbf{j} + 0\mathbf{k} $$
Pure Quaternion from a 3D Vector
We define the map by $$ \operatorname{to\_quat}(b, c, d) := 0 + b\mathbf{i} + c\mathbf{j} + d\mathbf{k} $$
Quaternion from a 4D Vector
We define the map by $$ \operatorname{to\_quat}(a, b, c, d) := a + b\mathbf{i} + c\mathbf{j} + d\mathbf{k} $$
to_quat from Produces a Pure Quaternion
For any , is a pure quaternion, i.e. .
Let . Then , so .
Vector Part of to_quat from is the Identity
For any , .
Let . Then .
to_quat from Has Zero Vector Part
For any , and .
, so and .
Quaternion Decomposes as Sum of to_quats
For any , $$ q = \operatorname{to\_quat}(r(q)) + \operatorname{to\_quat}(v(q)) $$
Let . Then .
Equality by Vector and Real Equality
For any we have $$ p = q \iff \left( r\left( p \right) = r\left( q \right) \land v\left( p \right) = v\left( q \right) \right) $$
Suppose that and then if and only if , , , which is true if and only if and , as needed.
Given the quaternion , its conjugate is given by $$ \overline{ q } := a - b \mathbf{ i }- c \mathbf{ j } - d \mathbf{ k } $$
Quaternion Norm
Given a quaternion , its norm is defined as $$ \| q \| := \sqrt{a^2 + b^2 + c^2 + d^2} $$
Unit Quaternion
A quaternion is said to be a unit quaternion if .
Pure Quaternion
A quaternion is said to be pure iff .
Pure Unit Quaternion
A quaternion is said to be a pure unit quaternion if it is both pure and unit, i.e. and .
Product of Two Quaternions
Suppose that , then we define $$ p q := r \left( p \right) r \left( q \right) - v\left( p \right) \cdot v\left( q \right) + r \left( p \right) v\left( q \right) + r\left( q \right) v\left( p \right) + v \left( p \right) \times v \left( q \right) $$ More precisely: $$ pq = \operatorname{to\_quat}\!\Big(r(p)r(q) - v(p) \cdot v(q)\Big) + \operatorname{to\_quat}\!\Big(r(p)\,v(q) + r(q)\,v(p) + v(p) \times v(q)\Big) $$
Real Part of Quaternion Product
For any , $$ r(pq) = r(p)\,r(q) - v(p) \cdot v(q) $$
For any two pure quaternions (i.e. ), we have $$ pq = \operatorname{to\_quat}\!\big({-v(p) \cdot v(q)}\big) + \operatorname{to\_quat}\!\big(v(p) \times v(q)\big) $$
Since and are pure, and . By the definition of the quaternion product:
$$
\begin{align}
pq &= \operatorname{to\_quat}\!\Big(r(p)r(q) - v(p) \cdot v(q)\Big) + \operatorname{to\_quat}\!\Big(r(p)\,v(q) + r(q)\,v(p) + v(p) \times v(q)\Big) \\
&= \operatorname{to\_quat}\!\Big(0 \cdot 0 - v(p) \cdot v(q)\Big) + \operatorname{to\_quat}\!\Big(0 \cdot v(q) + 0 \cdot v(p) + v(p) \times v(q)\Big) \\
&= \operatorname{to\_quat}\!\big({-v(p) \cdot v(q)}\big) + \operatorname{to\_quat}\!\big(v(p) \times v(q)\big)
\end{align}
$$
Real Part of Product of Two Pure Quaternions
For any two pure quaternions , $$ r(pq) = -v(p) \cdot v(q) $$
For any pure unit quaternion , we have $$ \hat{n}^2 = -e $$ where is the identity quaternion.
Since is pure and unit, and . By the product of two pure quaternions:
$$
\hat{n}^2 = \operatorname{to\_quat}(-v(\hat{n}) \cdot v(\hat{n})) + \operatorname{to\_quat}(v(\hat{n}) \times v(\hat{n}))
$$
Since and , we get:
$$
\hat{n}^2 = \operatorname{to\_quat}(-1) + \operatorname{to\_quat}(\mathbf{0}) = -1 + 0\mathbf{i} + 0\mathbf{j} + 0\mathbf{k} = -e
$$
Perpendicular Pure Quaternions Anticommute
For any two pure quaternions with , we have $$ pq = -qp $$
By the product of two pure quaternions:
$$
pq = \operatorname{to\_quat}(-v(p) \cdot v(q)) + \operatorname{to\_quat}(v(p) \times v(q))
$$
Since :
$$
pq = \operatorname{to\_quat}(0) + \operatorname{to\_quat}(v(p) \times v(q)) = \operatorname{to\_quat}(v(p) \times v(q))
$$
Similarly:
$$
qp = \operatorname{to\_quat}(0) + \operatorname{to\_quat}(v(q) \times v(p)) = \operatorname{to\_quat}(v(q) \times v(p))
$$
Since the cross product is anti-commutative, , so , i.e. .
Quaternion Multiplication is Associative
For any , we have $$ (pq)s = p(qs) $$
Write , , and .
Since quaternion multiplication is defined to be distributive over addition and is determined by the multiplication rules on the basis elements , it suffices to verify associativity on all triples of basis elements. There are such triples.
We verify the key non-trivial cases. Recall the basis multiplication rules derived from :
$$
\mathbf{ij} = \mathbf{k}, \quad \mathbf{jk} = \mathbf{i}, \quad \mathbf{ki} = \mathbf{j}
$$
$$
\mathbf{ji} = -\mathbf{k}, \quad \mathbf{kj} = -\mathbf{i}, \quad \mathbf{ik} = -\mathbf{j}
$$
Case : and . โ
Case : and . โ
Case : and . โ
Case : and . โ
All other non-trivial cases follow by similar computation. Any triple involving the identity is immediate since commutes with everything and acts as the identity. Since associativity holds on all basis triples and quaternion multiplication distributes over addition, associativity holds for all quaternions.
Product with a Real Quaternion
For any and , $$ \operatorname{to\_quat}(a) \cdot q = q \cdot \operatorname{to\_quat}(a) = a \, q $$ where denotes scalar multiplication.
Let , so and . By the quaternion product definition:
$$
\begin{align}
pq &= a \cdot r(q) - \mathbf{0} \cdot v(q) + a \, v(q) + r(q) \cdot \mathbf{0} + \mathbf{0} \times v(q) \\
&= a \, r(q) + a \, v(q) = a(r(q) + v(q)) = a \, q
\end{align}
$$
Similarly .
Conjugation is Additive
Suppose that then $$ \overline{ p + q } = \overline{ p } + \overline{ q } $$
Suppose that and then $$ \begin{align} \overline{ p + q } &= \overline{ \left( a + u \right) + \left( b + x \right) i + \left( c + y \right) j + \left( d + z \right) k } \\ &= \left( a + u \right) - \left( b + x \right) i - \left( c + y \right) j - \left( d + z \right) k \\ &= a - bi - cj - dk + u - xi - yj - zk \\ &= \overline{ p } + \overline{ q } \end{align} $$
Vector Part of the Conjugate is Minus 1 Times the Original
For any we have $$ v \left( \overline{ p } \right) = -v \left( p \right) $$
Suppose that . Then $$ v \left( \overline{ p } \right) = v(a - bi - cj - dk) = (-b, -c, -d) = -(b, c, d) = -v \left( p \right) $$ as needed.
Real Part of the Conjugate Doesn't Change
For any we have $$ r \left( \overline{ p } \right) = r \left( p \right) $$
Suppose that . Then $$ r \left( \overline{ p } \right) = r(a - bi - cj - dk) = a = r \left( p \right) $$ as needed.
Conjugate Fixes Real Quaternions
For any , such that , then $$ \overline{ p } = p $$
Since , we have . Then .
Conjugate Only Applies to Vector Part
For any we have $$ \overline{ p } = \operatorname{to\_quat}(r(p)) + \operatorname{to\_quat}(-v(p)) $$
$$
\begin{align}
\overline{p} &= r(p) - v(p) \\
&= \operatorname{to\_quat}(r(p)) + \operatorname{to\_quat}(-v(p))
\end{align}
$$
where the first equality follows from the definition of conjugation and the decomposition of a quaternion.
Conjugate of a Pure Quaternion is its Negation
For any pure quaternion , $$ \overline{p} = -p $$
Since is pure, . Then by the conjugate formula:
$$
\overline{p} = \operatorname{to\_quat}(0) + \operatorname{to\_quat}(-v(p)) = \operatorname{to\_quat}(-v(p)) = -p
$$
Product Commutes in the Real Part
For any we have $$ r \left( pq \right) = r\left( qp \right) $$
$$ r\left( pq \right) = r \left( p \right) r \left( q \right) - v\left( p \right) \cdot v\left( q \right) = r \left( q \right) r \left( p \right) - v\left( q \right) \cdot v\left( p \right) = r\left( qp \right) $$
where we used commutativity of real multiplication and commutativity of the dot product.
Quaternion Times its Conjugate
For any , $$ q \overline{q} = \overline{q} q = \operatorname{to\_quat}(\| q \|^2) $$
Let . Then , , , .
$$
\begin{align}
r(q\overline{q}) &= r(q)\,r(\overline{q}) - v(q) \cdot v(\overline{q}) \\
&= a \cdot a - (b, c, d) \cdot (-b, -c, -d) \\
&= a^2 - (-b^2 - c^2 - d^2) \\
&= a^2 + b^2 + c^2 + d^2 = \| q \|^2
\end{align}
$$
$$
\begin{align}
v(q\overline{q}) &= r(q)\,v(\overline{q}) + r(\overline{q})\,v(q) + v(q) \times v(\overline{q}) \\
&= a(-b, -c, -d) + a(b, c, d) + (b, c, d) \times (-b, -c, -d) \\
&= \mathbf{0} + \mathbf{0} = \mathbf{0}
\end{align}
$$
where since the cross product of any vector with itself is zero. Therefore . The proof that is analogous.
Unit Quaternion Inverse is its Conjugate
For any unit quaternion , $$ q^{-1} = \overline{q} $$
Since , by the previous proposition, and . Therefore is the multiplicative inverse of .
Dot Product of Two Quaternions
Suppose that , then we define $$ p \cdot q := r(p)\,r(q) + v(p) \cdot v(q) $$
Conjugation is a Homomorphism in the Real Part
For any we have $$ r \left( \overline{ pq } \right) = r\left( \overline{ p } \; \overline{ q } \right) $$
First of all, we know conjugation doesn't change the real part, so we have: $$ r \left( \overline{ pq } \right) = r\left( pq \right) = r \left( p \right) r \left( q \right) - v\left( p \right) \cdot v\left( q \right) $$ and then we know that $$ r \left( \overline{ p } \; \overline{ q } \right) = r \left( \overline{ p } \right) r \left( \overline{ q } \right) - v\left( \overline{ p } \right) \cdot v\left( \overline{ q } \right) $$ Since minus comes out of the vector part, and constants can get pulled out of the dot product we have that $$ r \left( \overline{ p } \right) r \left( \overline{ q } \right) - v\left( \overline{ p } \right) \cdot v\left( \overline{ q } \right) = r\left( p \right) r \left( q \right) - \left( -1 \right) \left( -1 \right) v\left( p \right) \cdot v\left( q \right) = r\left( p \right) r \left( q \right) - v\left( p \right) \cdot v\left( q \right) $$ therefore we have that .
Conjugation Swaps Order in the Vector Part
For any we have $$ v \left( \overline{ pq } \right) = v\left( \overline{ q } \; \overline{ p } \right) $$
We recall that, and so $$ v \left( \overline{ pq } \right) = -v\left( pq \right) $$ and then we compute:
$$
\begin{align}
v\left( \overline{ q } \; \overline{ p } \right) &= r \left( \overline{ q } \right) v\left( \overline{ p } \right) + r\left( \overline{ p } \right) v\left( \overline{ q } \right) + v \left( \overline{ q } \right) \times v \left( \overline{ p } \right) \\
&= r(q)(-v(p)) + r(p)(-v(q)) + (-v(q)) \times (-v(p)) \\
&= -r(q)\,v(p) - r(p)\,v(q) + v(q) \times v(p) \\
&= -r(p)\,v(q) - r(q)\,v(p) - v(p) \times v(q) \\
&= -\big(r(p)\,v(q) + r(q)\,v(p) + v(p) \times v(q)\big) \\
&= -v(pq)
\end{align}
$$
where we used that . Therefore .
Conjugation Distributes by Swapping
For any we have $$ \overline{ pq } = \overline{ q } \; \overline{ p } $$
Let . Then , so $$ \| \overline{q} \| = \sqrt{a^2 + (-b)^2 + (-c)^2 + (-d)^2} = \sqrt{a^2 + b^2 + c^2 + d^2} = \| q \| $$
Quaternion Product is Norm-Multiplicative
For any , $$ \| pq \| = \| p \| \cdot \| q \| $$
We compute:
$$
\begin{align}
\| pq \|^2 &= r(pq \cdot \overline{pq}) \\
&= r(pq \cdot \overline{q}\;\overline{p})
\end{align}
$$
by conjugation distributing by swapping. By associativity:
$$
pq \cdot \overline{q}\;\overline{p} = p(q\overline{q})\overline{p} = p \cdot \operatorname{to\_quat}(\| q \|^2) \cdot \overline{p} = \| q \|^2 (p\overline{p}) = \| q \|^2 \cdot \operatorname{to\_quat}(\| p \|^2)
$$
where we used that and that real quaternions commute with everything. Therefore , and taking square roots gives .
Conjugation of a Pure Quaternion by a Unit Quaternion is Pure
For any pure quaternion and unit quaternion , the quaternion is pure, i.e. $$ r(qp\overline{q}) = 0 $$
We use the fact that a quaternion is pure if and only if . We verify this for :
Conjugation by a Unit Quaternion Preserves the Norm of the Vector Part
For any pure quaternion and unit quaternion , $$ \| qp\overline{q} \| = \| p \| $$
By norm-multiplicativity:
$$
\| qp\overline{q} \| = \| q \| \cdot \| p \| \cdot \| \overline{q} \| = 1 \cdot \| p \| \cdot 1 = \| p \|
$$
where we used that and .
Parallel and Perpendicular Decomposition
Given a vector and a unit vector , we define the parallel and perpendicular components of with respect to as:
$$
\mathbf{w}_\parallel := (\hat{n} \cdot \mathbf{w})\,\hat{n}, \qquad \mathbf{w}_\perp := \mathbf{w} - \mathbf{w}_\parallel
$$
so that , where .
Pure Unit Quaternion Times a Parallel Pure Quaternion
Let be a pure unit quaternion and let be a pure quaternion such that for some . Then $$ \hat{n}\, p_\parallel = \operatorname{to\_quat}(-\lambda) $$ In particular, is a real quaternion.
Since both are pure, by the product of two pure quaternions:
$$
\begin{align}
\hat{n}\, p_\parallel &= \operatorname{to\_quat}(-v(\hat{n}) \cdot v(p_\parallel)) + \operatorname{to\_quat}(v(\hat{n}) \times v(p_\parallel)) \\
&= \operatorname{to\_quat}(-v(\hat{n}) \cdot \lambda\,v(\hat{n})) + \operatorname{to\_quat}(v(\hat{n}) \times \lambda\,v(\hat{n})) \\
&= \operatorname{to\_quat}(-\lambda\,\| v(\hat{n}) \|^2) + \operatorname{to\_quat}(\lambda\,(v(\hat{n}) \times v(\hat{n}))) \\
&= \operatorname{to\_quat}(-\lambda) + \operatorname{to\_quat}(\mathbf{0}) \\
&= \operatorname{to\_quat}(-\lambda)
\end{align}
$$
where we used and .
Pure Unit Quaternion Times a Perpendicular Pure Quaternion
Let be a pure unit quaternion and let be a pure quaternion such that . Then $$ \hat{n}\, p_\perp = \operatorname{to\_quat}(v(\hat{n}) \times v(p_\perp)) $$ In particular, is a pure quaternion.
Since both are pure, by the product of two pure quaternions:
$$
\begin{align}
\hat{n}\, p_\perp &= \operatorname{to\_quat}(-v(\hat{n}) \cdot v(p_\perp)) + \operatorname{to\_quat}(v(\hat{n}) \times v(p_\perp)) \\
&= \operatorname{to\_quat}(0) + \operatorname{to\_quat}(v(\hat{n}) \times v(p_\perp)) \\
&= \operatorname{to\_quat}(v(\hat{n}) \times v(p_\perp))
\end{align}
$$
Pure Unit Quaternion Sandwich is a Reflection
Let be a pure unit quaternion, and let be a pure quaternion. Then $$ \hat{n}\, p\, \hat{n} = \operatorname{to\_quat}\!\big(-v(p)_\parallel + v(p)_\perp\big) $$ where and are the parallel and perpendicular components of with respect to . This is the reflection of through the plane perpendicular to .
Decompose where and . Both are pure quaternions, and , while where .
Parallel part: We compute . By the parallel product lemma, . Since this is a real quaternion, by the real product property:
$$
\hat{n}\, p_\parallel\, \hat{n} = \operatorname{to\_quat}(-\lambda) \cdot \hat{n} = -\lambda\, \hat{n} = \operatorname{to\_quat}(-\lambda\, v(\hat{n})) = \operatorname{to\_quat}(-v(p)_\parallel)
$$
The parallel component is negated.
Perpendicular part: We compute . Since , the quaternions and anticommute: . Therefore:
$$
\hat{n}\, p_\perp\, \hat{n} = (-p_\perp\, \hat{n})\, \hat{n} = -p_\perp\, (\hat{n}\, \hat{n}) = -p_\perp\, \hat{n}^2
$$
By the square of a pure unit quaternion, , so:
$$
-p_\perp(-e) = p_\perp \cdot e = p_\perp = \operatorname{to\_quat}(v(p)_\perp)
$$
The perpendicular component is preserved.
Combining: By associativity and the distributive law:
$$
\hat{n}\, p\, \hat{n} = \hat{n}(p_\parallel + p_\perp)\hat{n} = \hat{n}\, p_\parallel\, \hat{n} + \hat{n}\, p_\perp\, \hat{n} = \operatorname{to\_quat}(-v(p)_\parallel) + \operatorname{to\_quat}(v(p)_\perp) = \operatorname{to\_quat}(-v(p)_\parallel + v(p)_\perp)
$$
This is exactly the reflection of through the plane perpendicular to .
Unit Quaternion Factors into Two Pure Unit Quaternions
Let be a unit quaternion, where is a pure unit quaternion. Then there exist pure unit quaternions with and , such that:
$$
q = \hat{b}\,\hat{a}
$$
Moreover, the angle between and is , and the two reflection planes (perpendicular to and respectively) intersect along the axis .