๐Ÿ—๏ธ ฮ˜ฯฯตฮทฮ ฮฑฯ„ฯ€๐Ÿšง (under construction)

The Quaternions
The collection of quaternions are: $$ \mathbb{ H } := \left\{ a + b \mathbf{ i } + c \mathbf{ j }+ d \mathbf{ k } \right\} $$ where a,b,c,dโˆˆR and i2=j2=k2=ijk=โˆ’1
Real Part of the Quaternion
Given a quaternion q=a+bi+cj+dk, we say that a is the scalar part of the quaternion (or real part), and is denoted by r(q)
Vector Part of the Quaternion
Given a quaternion q=a+bi+cj+dk, we say that bi+cj+dk is the vector part of the quaternion, and is denoted by v(q)

Note that we think of the vector part of a quaternion as an element of R3, 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 to_quat:โ„โ†’โ„ 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 to_quat:โ„3โ†’โ„ 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 to_quat:โ„4โ†’โ„ by $$ \operatorname{to\_quat}(a, b, c, d) := a + b\mathbf{i} + c\mathbf{j} + d\mathbf{k} $$
to_quat from โ„3 Produces a Pure Quaternion
For any ๐ฎโˆˆโ„3, to_quat(๐ฎ) is a pure quaternion, i.e. r(to_quat(๐ฎ))=0.
Vector Part of to_quat from โ„3 is the Identity
For any ๐ฎโˆˆโ„3, v(to_quat(๐ฎ))=๐ฎ.
to_quat from โ„ Has Zero Vector Part
For any aโˆˆโ„, v(to_quat(a))=0 and r(to_quat(a))=a.
Quaternion Decomposes as Sum of to_quats
For any qโˆˆโ„, $$ q = \operatorname{to\_quat}(r(q)) + \operatorname{to\_quat}(v(q)) $$
Equality by Vector and Real Equality
For any p,qโˆˆH we have $$ p = q \iff \left( r\left( p \right) = r\left( q \right) \land v\left( p \right) = v\left( q \right) \right) $$
Quaternion Addition
$$ (a_1+b_1\mathbf i + c_1\mathbf j + d_1\mathbf k) + (a_2 + b_2\mathbf i + c_2\mathbf j + d_2\mathbf k) = (a_1 + a_2) + (b_1 + b_2)\mathbf i + (c_1 + c_2)\mathbf j + (d_1 + d_2) \mathbf k $$
Scalar Quaternion Multiplication
$$ \lambda(a + b\,\mathbf i + c\,\mathbf j + d\,\mathbf k) = \lambda a + (\lambda b)\,\mathbf i + (\lambda c)\,\mathbf j + (\lambda d)\,\mathbf k. $$
Identity Quaternion
$$ e := 1 + 0\mathbf{i} + 0\mathbf{j} + 0\mathbf{k} $$
Conjugate Quaternion
Given the quaternion q=a+bi+cj+dk, its conjugate is given by $$ \overline{ q } := a - b \mathbf{ i }- c \mathbf{ j } - d \mathbf{ k } $$
Quaternion Norm
Given a quaternion q=a+bi+cj+dk, its norm is defined as $$ \| q \| := \sqrt{a^2 + b^2 + c^2 + d^2} $$
Unit Quaternion
A quaternion qโˆˆโ„ is said to be a unit quaternion if โ€–qโ€–=1.
Pure Quaternion
A quaternion pโˆˆH is said to be pure iff r(p)=0.
Pure Unit Quaternion
A quaternion qโˆˆโ„ is said to be a pure unit quaternion if it is both pure and unit, i.e. r(q)=0 and โ€–qโ€–=1.
Product of Two Quaternions
Suppose that p,qโˆˆH, 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 p,qโˆˆโ„, $$ r(pq) = r(p)\,r(q) - v(p) \cdot v(q) $$
Vector Part of Quaternion Product
For any p,qโˆˆโ„, $$ v(pq) = r(p)\,v(q) + r(q)\,v(p) + v(p) \times v(q) $$
Product of Two Pure Quaternions
For any two pure quaternions p,qโˆˆโ„ (i.e. r(p)=r(q)=0), we have $$ pq = \operatorname{to\_quat}\!\big({-v(p) \cdot v(q)}\big) + \operatorname{to\_quat}\!\big(v(p) \times v(q)\big) $$
Real Part of Product of Two Pure Quaternions
For any two pure quaternions p,qโˆˆโ„, $$ r(pq) = -v(p) \cdot v(q) $$
Vector Part of Product of Two Pure Quaternions
For any two pure quaternions p,qโˆˆโ„, $$ v(pq) = v(p) \times v(q) $$
Square of a Pure Unit Quaternion is Minus One
For any pure unit quaternion n^โˆˆโ„, we have $$ \hat{n}^2 = -e $$ where e is the identity quaternion.
Perpendicular Pure Quaternions Anticommute
For any two pure quaternions p,qโˆˆโ„ with v(p)ยทv(q)=0, we have $$ pq = -qp $$
Quaternion Multiplication is Associative
For any p,q,sโˆˆโ„, we have $$ (pq)s = p(qs) $$
Product with a Real Quaternion
For any qโˆˆโ„ and aโˆˆโ„, $$ \operatorname{to\_quat}(a) \cdot q = q \cdot \operatorname{to\_quat}(a) = a \, q $$ where aq denotes scalar multiplication.
Conjugation is Additive
Suppose that p,qโˆˆH then $$ \overline{ p + q } = \overline{ p } + \overline{ q } $$
Vector Part of the Conjugate is Minus 1 Times the Original
For any pโˆˆH we have $$ v \left( \overline{ p } \right) = -v \left( p \right) $$
Real Part of the Conjugate Doesn't Change
For any pโˆˆH we have $$ r \left( \overline{ p } \right) = r \left( p \right) $$
Conjugate Fixes Real Quaternions
For any pโˆˆH, such that v(p)=0, then $$ \overline{ p } = p $$
Conjugate Only Applies to Vector Part
For any pโˆˆH we have $$ \overline{ p } = \operatorname{to\_quat}(r(p)) + \operatorname{to\_quat}(-v(p)) $$
Conjugate of a Pure Quaternion is its Negation
For any pure quaternion pโˆˆโ„, $$ \overline{p} = -p $$
Product Commutes in the Real Part
For any p,qโˆˆH we have $$ r \left( pq \right) = r\left( qp \right) $$
Quaternion Times its Conjugate
For any qโˆˆโ„, $$ q \overline{q} = \overline{q} q = \operatorname{to\_quat}(\| q \|^2) $$
Unit Quaternion Inverse is its Conjugate
For any unit quaternion qโˆˆโ„, $$ q^{-1} = \overline{q} $$
Dot Product of Two Quaternions
Suppose that p,qโˆˆโ„, 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 p,qโˆˆH we have $$ r \left( \overline{ pq } \right) = r\left( \overline{ p } \; \overline{ q } \right) $$
Conjugation Swaps Order in the Vector Part
For any p,qโˆˆH we have $$ v \left( \overline{ pq } \right) = v\left( \overline{ q } \; \overline{ p } \right) $$
Conjugation Distributes by Swapping
For any p,qโˆˆH we have $$ \overline{ pq } = \overline{ q } \; \overline{ p } $$
Conjugation Preserves Norm
For any qโˆˆโ„, $$ \| \overline{q} \| = \| q \| $$
Quaternion Product is Norm-Multiplicative
For any p,qโˆˆโ„, $$ \| pq \| = \| p \| \cdot \| q \| $$
Conjugation of a Pure Quaternion by a Unit Quaternion is Pure
For any pure quaternion pโˆˆโ„ and unit quaternion qโˆˆโ„, the quaternion qpqโ€• is pure, i.e. $$ r(qp\overline{q}) = 0 $$
Conjugation by a Unit Quaternion Preserves the Norm of the Vector Part
For any pure quaternion pโˆˆโ„ and unit quaternion qโˆˆโ„, $$ \| qp\overline{q} \| = \| p \| $$
Parallel and Perpendicular Decomposition
Given a vector ๐ฐโˆˆโ„3 and a unit vector n^โˆˆโ„3, we define the parallel and perpendicular components of ๐ฐ with respect to n^ as: $$ \mathbf{w}_\parallel := (\hat{n} \cdot \mathbf{w})\,\hat{n}, \qquad \mathbf{w}_\perp := \mathbf{w} - \mathbf{w}_\parallel $$ so that ๐ฐ=๐ฐโˆฅ+๐ฐโŸ‚, where n^ยท๐ฐโŸ‚=0.
Pure Unit Quaternion Times a Parallel Pure Quaternion
Let n^ be a pure unit quaternion and let pโˆฅ be a pure quaternion such that v(pโˆฅ)=ฮปv(n^) for some ฮปโˆˆโ„. Then $$ \hat{n}\, p_\parallel = \operatorname{to\_quat}(-\lambda) $$ In particular, n^pโˆฅ is a real quaternion.
Pure Unit Quaternion Times a Perpendicular Pure Quaternion
Let n^ be a pure unit quaternion and let pโŸ‚ be a pure quaternion such that v(n^)ยทv(pโŸ‚)=0. Then $$ \hat{n}\, p_\perp = \operatorname{to\_quat}(v(\hat{n}) \times v(p_\perp)) $$ In particular, n^pโŸ‚ is a pure quaternion.
Pure Unit Quaternion Sandwich is a Reflection
Let n^โˆˆโ„ be a pure unit quaternion, and let pโˆˆโ„ be a pure quaternion. Then $$ \hat{n}\, p\, \hat{n} = \operatorname{to\_quat}\!\big(-v(p)_\parallel + v(p)_\perp\big) $$ where v(p)โˆฅ=(v(n^)ยทv(p))v(n^) and v(p)โŸ‚=v(p)โˆ’v(p)โˆฅ are the parallel and perpendicular components of v(p) with respect to v(n^). This is the reflection of v(p) through the plane perpendicular to v(n^).
Unit Quaternion Factors into Two Pure Unit Quaternions
Let q=cos(ฮธ2)+n^sin(ฮธ2) be a unit quaternion, where n^ is a pure unit quaternion. Then there exist pure unit quaternions a^,b^โˆˆโ„ with v(a^)ยทv(n^)=0 and v(b^)ยทv(n^)=0, such that: $$ q = \hat{b}\,\hat{a} $$ Moreover, the angle between v(a^) and v(b^) is ฮธ2, and the two reflection planes (perpendicular to v(a^) and v(b^) respectively) intersect along the axis v(n^).