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
0
votes
1 answer

What does it mean to divide a quaternion by its real part?

In one course a teacher said we were going to normalize a quaternion and did this: $$\require{cancel} q = w + xi + yj + zk $$ $$ q` = \cancelto{1}{\frac{w}{w}} + \frac{x i}{w} + \frac{y j}{w} + \frac{z k}{w} $$ But on investigating on my own I found…
0
votes
0 answers

I want to write the quaternion $q=2+i+j-5k$ in the form $r+lc$

I want to write the quaternion $q=2+i+j-5k$ in the form $r+lc$, where $r,~c (\neq 0)$ are real numbers and $l^2=-1$. We have the following relation $i^2=j^2=k^2=-1$ and $ij=k,\ jk=i,\ ki=j$. I can't apply these or otherwise. I think $l$ with…
MAS
  • 10,638
0
votes
1 answer

Number of solutions of the quaternion

I have the quaternions $q = x_0 + ix_i + jx_2 + kx_3$ where $x_i \in \mathbb{R}$ and $i,j,k$ satisfy the relations $$ i^2=j^2=k^2 = -1, \hspace{0.3cm} ij=-ji=k,\hspace{0.3cm} jk=-kj=i,\hspace{0.3cm} ki=-ik=j$$ I also have that $f(q) =q^2$ defines…
m120p
  • 185
0
votes
1 answer

How am I getting i = -i from the quaternion formula?

Having taken some high school algebra, I got interested in complex numbers. Later on, I learned about quaternions. From what I've read: $i^2=j^2=k^2=ijk=-1$ I took $i^2=ijk$ and divided $i$ from each side, which gives me this: $i=jk$ If I do this…
0
votes
3 answers

Proof of rotating unit quaternion around itself does not change vector

In the following author rotates with unit vector to find that rotation does not change it. But why does author take the vector to be rotated as unit vector, not any other vector, $ \vec{v}.$ Is it enough to use unit element itself while proving that…
0
votes
1 answer

quaternion to rotation vector - sin(theta/2)=sqrt(1-quaternion.w^2)?

I want to figure out why sin(theta/2)=sqrt(1-quaternion.w^2) here is part of my code to conver quaternion to rotation vector m = ( acos(w)*2.0 )/sqrt(1-q.w*q.w); data[0] = q.x*m; data[1] = q.y*m; data[2] = q.z*m; I wrote it 2 years ago and I do not…
0
votes
0 answers

How Could I calculate this quaternion cross product?

Now, I am trying make an idea how can calculate this equation that include quaternion. $q\otimes \frac{F}{m}\otimes {q}^{*}$ where, $\;q = [ w, x, y, z ]; \;\; {q}^{*} = [ w, -x, -y, -z ];$ $ \frac{F}{m} = [ 0, 0, F/m ];$ when I calculate this…
0
votes
0 answers

On the creation of a formula of Euler's Identity for quaternions

I was wondering if there was an extension of Euler's Identity to quaternions. Now, in two dimensions, there is only one direction of rotation. In three dimensions, there are two,"axes", of rotation. Therefore, the formula that I would like needs…
0
votes
1 answer

How do you convert a pure quaternion into a dual quaternion

If I have a pure-quaternion $V = 0 + v = v$ where the imaginary part $v = ai + bj + ck$ then why is $v$'s dual-quaternion $v_d$ given as $v_d = 1 + ϵv$? In notes and articles online, it usually is just stated as such but with no explanation as to…
0
votes
1 answer

Hamilton's Rules for Quaternions contradict themselves

I recently discovered quaternions and quickly stumbled across a to me contradictory statement. This contradiction already seems to lie in the definition (Hamilton's Rules): $$i^2=j^2=k^2=ijk=-1$$ My issue is with the statement $ijk=-1$ If I just…
J. Lengel
  • 165
0
votes
1 answer

quaternion algebra: possible error on proof

I am reading this proof and I don't understand whether the highlighted term in second and third step is a typo or I am missing something. I would expect it to be $$qpq^*$$ Thanks for the help!
dd95
  • 229
0
votes
1 answer

Quaternion axis and angles

I have three unit quaternions, $$q_1=(1,0,0,0)\\ q_2=(0.9623,0.2578,0.0226,0.0842)\\ q_3=(0.9353,0.2273,0.2708,0.0146)$$ Now, quaternion q, if represented by angle axis convention, will be $q=cos(\theta/2)+sin(\theta/2)\cdot\hat n$, So each…
0
votes
2 answers

Swap order of quaternion multiplication

I have three quaternions, A, B and C such that A = B * C. I would like to be able to swap the order of B and C so that A = C * B but of course quaternions aren't commutitive so just swapping the order results in a different value for A. Is there a…
0
votes
0 answers

How do you find the remainder between two Hurwitz quaternions?

How can I do this when the multiplication between two Hurwitz quaternions can give you a non Hurwitz quaternion (eg 1+2.25i+2.5j+3.75k)? I can do it for Lipschitz quaternions, but not when the values can be half.
Pablo
  • 23
0
votes
0 answers

Finding quaternion $q_x$ in the following equation: $q_x q_1 q_x' = q_2$

Given that $q_1$ and $q_2$ are known quaternions.