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
7
votes
3 answers

How can $i^2 = k^2 = j^2 = ijk = -1$ be true?

I have just started to learn the basics of quaternions, but I immediately run into a wall. Litteraly the first equation on Wikipedia is as follows $i^2 = k^2 = j^2 = ijk = -1$ This implies $i = \sqrt{-1}$ $j = \sqrt{-1}$ $k = \sqrt{-1}$ but now $ijk…
7
votes
2 answers

Alternative quaternion multiplication method

Given two quaternions, $a+bi+cj+dk$ and $e+fi+gj+hk$, their product (w.r.t. their given order) would normally be given by $Q_1+Q_2i+Q_3j+Q_4k=(ae-bf-cg-dh)+(af+be+ch-dg)i+(ag-bh+ce+df)j+(ah+bg-cf+de)k$. This takes a total of $16$ real…
6
votes
2 answers

Argand formula and more for quaternions?

Is it possible to define a similar form of Argand's formula but for quaternions? In the sense $$ \cos(nA)+i\cos(nB)+j\cos(nC)+k\cos(n) =(\cos(A)+i\cos(B)+j\cos(C)+k\cos(D))^{n}, $$ where $A, B, C, D$ are the angles of the quaternion with respect…
Jose Garcia
  • 8,506
6
votes
3 answers

Does quaternion multiplication relate to Minkowski space?

A quaternion notated as $a+bi+cj+dk$ can also be written in terms of a scalar and a vector $(a,v)$, where $v$ is the three-vector $(b,c,d)$. In this notation, the real part of the product $(p,q)(r,s)$ equals $pr-q\cdot s$, which looks exactly like…
user13618
5
votes
4 answers

Quaternion Division

If $q$ and $r$ are quaternions, and $p$ is a point, applying $q$ then $r$ to $p$ is: $$ (qr)p\dfrac{1}{qr} $$ What if I want to go the other way? Instead of concatenating rotations, I want to remove them. So, I have $q$ and $m$, and I know that $qx…
Nick Heiner
  • 1,231
5
votes
2 answers

Interpolating Rotation Quaternions

Suppose I've got two quaternions that each represent an angle. I need to interpolate between these two angles (from 0% to one side to 100% to another side). Since I work a lot with complex numbers, I'd thought about getting the "arg" of these…
kamziro
  • 247
5
votes
2 answers

Quaternionic analysis motivation

I have just heard of quaternionic analysis. It seems like the goal of this subject is to carry over concepts like homorphicity etc. from complex numbers to quaternions. However, these concepts seem to lose some of the nice properties that we have in…
5
votes
2 answers

Quaternion ^ Quaternion

I was looking at Quaternions at Wikipedia - I was trying to find the value of $i^j$ etc... Wikipedia lists $q^\alpha$ where $\alpha$ is real, but I can't find the value of $i^j$. Any clues? The answer given here doesn't give an explicit solution.
JMP
  • 21,771
4
votes
1 answer

Can different quaternions represent the same orientation?

For a current project I'm working on I have to use quaternions to represent the orientation of an object. The piece of code I'm working on now integrates rotation rates to the quaternion representing the orientation. To test it I made a simulink…
4
votes
2 answers

Use of the quaternion magnitude

I'm using quaternions to describe 3D rotations which necessitates that the quaternion is normalized. I'm getting more interested in quaternions and I tried to check what the quaternion magnitude represents, though I couldn't find any information.…
4
votes
3 answers

Solving an equation in quaternions

How to solve equation $x^4=1$ in quaternions? I know how to solve that equation in complex numbers but I have no idea how to do it in quaternions. I have also a question about general way to solve equations in quaternions. And is there similar…
kryj
  • 51
4
votes
1 answer

How to Perform Quaternion Multiplication

Everywhere that I've looked, it seems to be assumed that $i^{2} = j^{2} = k^{2} = - 1$, along with the other rules of quaternion multiplication. However - for my homework - I'm being asked to show these rules are valid. Can someone point me in the…
Luke8ball
  • 323
4
votes
4 answers

Quaternions, Rotations and Real numbers

I haven't really formally studied Algebra at anywhere near this level, but I was told about the existence of Quaternions a few years ago and I find them really cool. I also like how pure quaternions are analogous to cross products in $R^3$, and that…
Phase
  • 143
  • 5
4
votes
1 answer

Average of 3D rotations

I am trying to compute the average of a rotational error (the error I have in estimating a 3D rotation with respect to the real value). I have my estimated quaternion $\mathbf{\hat{q}}_i$ and its true value $\mathbf{q^\star}_i$. Consider now that I…
4
votes
4 answers

Quaternion Rotation formula

Can someone explain what exactly what the last part $P^{-1}$ in the formula $PQP^{-1}$ does. I heard it rotates halfway but I'm not understanding that. If it is the inverse, it goes back the exact same as it was?
terry
  • 53
1
2
3
12 13