Questions tagged [quaternions]

For questions about the quaternions: a noncommutative four dimensional division algebra over the real numbers. Also for questions about quaternion algebras.

The ring of quaternions is a four dimensional division algebra over the real numbers. They are usually denoted as $\Bbb H$ in honor of the discoverer, William Rowan Hamilton.

The construction of the quaternions was given by Hamilton as follows: take three symbols $\mathrm{i},\mathrm{j},\mathrm{k}$ as imaginary units and define $\mathrm{i}^2=\mathrm{j}^2=\mathrm{k}^2=\mathrm{i}\mathrm{j}\mathrm{k}=-1$. As a result, $\mathrm{i}\mathrm{j}=\mathrm{k}$, and $\mathrm{j}\mathrm{k}=\mathrm{i}$ and $\mathrm{k}\mathrm{i}=\mathrm{j}$. Furthermore, $\mathrm{j}\mathrm{i}=-\mathrm{k}$ and $\mathrm{k}\mathrm{j}=-\mathrm{i}$ and $\mathrm{i}\mathrm{k}=-\mathrm{j}$, so $\mathrm{k}\mathrm{j}\mathrm{i}=1$.

Another construction of the quaternions was given by Carl Friedrich Gauß as follows: take three symbols $\mathrm{i},\mathrm{j},\mathrm{k}$ as imaginary units and define $\mathrm{i}\circ\mathrm{i}=\mathrm{j}\circ\mathrm{j}=\mathrm{k}\circ\mathrm{k}=\mathrm{k} \circ \mathrm{j} \circ \mathrm{i}=-1$. As a result, $\mathrm{i}\circ\mathrm{j}=-\mathrm{k}$, and $\mathrm{j}\circ\mathrm{k}=-\mathrm{i}$ and $\mathrm{k}\circ\mathrm{i}=-\mathrm{j}$. Furthermore, $\mathrm{j}\circ\mathrm{i}=\mathrm{k}$ and $\mathrm{k}\circ\mathrm{j}=\mathrm{i}$ and $\mathrm{i}\circ\mathrm{k}=\mathrm{j}$, so $\mathrm{i}\circ\mathrm{j}\circ\mathrm{k}=1$.

A quaternion is a linear combination and can represented as versor

$q=q_{0} + q_{1} \mathrm{i} + q_{2} \mathrm{j} + q_{3} \mathrm{k} ~ \widehat{=} ~ \left[\begin{matrix} q_{0} \\ q_{1}\\ q_{2}\\ q_{3} \end{matrix}\right]\in \mathbb{R}^{4} $ where $q_{0}, q_{1},q_{2},q_{3}\in \Bbb R$

Multiplication between quaternions is carried out by using the distributive rule and the rules for $\mathrm{i}$, $\mathrm{j}$ and $\mathrm{k}$.

The quaternions turn out to be a noncommutative division ring. In fact, $\Bbb R$ and $\Bbb C$ and $\Bbb H$ are the only associative finite dimensional division rings over $\Bbb R$. They are also the only normed division algebras over $\Bbb R$.

1656 questions
-1
votes
1 answer

how to combine 2 rotaion quaternions

if I have 2 quaternions that represent rotation in 2 different axis say one that rotate 30deg around the x and another that rotate 15deg around the y how can I combine them in one quaternion
MAR1
  • 1
-1
votes
2 answers

Why is a quaternion a + bi + cj + dk not equal to a + (b+c+d)i

i² = -1 j² = -1 k² = -1 But a + bi + cj + dk is not equal to a + (b+c+d)i why not ?
-1
votes
1 answer

Associativity of Quaternion after Multiplication

I need to rotate quaternion -90 degree around Y-axis. So, I am using https://stackoverflow.com/questions/4436764/rotating-a-quaternion-on-1-axis for it. Now I have below case, I am getting multiplication of two quaternion Q1 and Q2 instead of…
-1
votes
1 answer

Can I do that with Quaternions?

I'm not sure if it this is right: Imagen that I have this quaternion $a + bi + cj + dk$ where $a, b, c, d \in \mathbb{R}$. Then I take $cj + dk$ and make this $(cj + dk)^2=-c^2 +cdi-dci-d^2=-c^2-d^2$ so $(cj + dk)=\pm\sqrt{-c^2-d^2}=\pm…
Pedro
  • 379
-2
votes
1 answer

Atan2 to unit rotation quaternion

In 3D space, I have an angle theta representing the orientation of the object. This angle is the result of the atan2 function. Using theta, how can I derive the unit quaternion which represents the object's orientation? You can also assume it is…
-4
votes
1 answer

Is the quaternion division well defined?

Given that in quaternions generally $pq^{-1}\ne q^{-1}p$, how can quaternions form a division algebra? For instance, $( i+2 j)\cdot\frac{1}{5 j+1}=\frac{1}{26} (i+2 j-5 k+10)$ but $\frac{1}{5 j+1}\cdot( i+2 j)=\frac{1}{26} (i+2 j+5 k+10)$, which…
Anixx
  • 9,119
1 2 3
12
13