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

Quaternion exponential problem

I have problem with Euler´s form of quaternion. My quaternion $q=\frac{1}{\sqrt{2}}i+\frac{1}{\sqrt{2}}j,$ so $q^2=-1$, because…
Alg65
  • 31
2
votes
1 answer

About the derivation of a composite quaternion

This problem has been bothering me for several days, hence I decided to ask you for help. I am reading the book "Quaternions and Rotation Sequence" written by Jack B. Kuipers. In section 6.4, the author derives a formula of a composite rotation…
2
votes
1 answer

Getting cumulative Euler angle from a single Quaternion

I've got an app that uses quaternions, and I'd like to convert each quaternion to the corresponding Euler angles. The issue is, when I convert them, the roll and yaw are bounded within 360 degrees (i.e, when the previous Euler angle was at 179.9,…
Mark
  • 23
2
votes
1 answer

How to convert Quaternions into Polar form?

I would like to know how to write quaternions as polar form. Because I heard that if $A$ and $B$ are elements of $C$, this can be done with the form $A \cdot e^{B \cdot j}$. But how can I do that? Can I do it like this $ \begin{align*} a + b \cdot i…
2
votes
0 answers

Angle between two quaternions

I am struggling to get my head around what I believe should be a simple problem. I am getting a quaternion wxyz from an IMU (inertial measurement unit), I want to check the angle between the quaternion and a given unit vector. I am very new to…
Hugoagogo
  • 131
2
votes
1 answer

Find quaternion rotation

Given units quaternions $p$ and $q$, how do you find the quaternion $r$ such as: $$ rpr^{-1} = q $$ In other terms, how to find the rotation transforming $p$ to $q$?
2
votes
2 answers

Quaternions as rotations: Notation

I am reading through this notes on quaternions. I am trying to understand how they work as rotations as long as their norm is always 1. First, in page 4 above the figure, the quaternion rotation operator is defined as follows $$q = \cos(\theta) +…
ElPotac
  • 31
2
votes
3 answers

In a quaternion, are j and k not just equal to i?

I have been listening to many videos and reading but I am very confused. Firstly, I read that quaternions exist in $\mathbb{R}^4$ which would seem to exclude imaginary numbers completely (I would have guessed). But secondly, if a quaternion is sort…
releseabe
  • 213
2
votes
0 answers

Equation of motion for rigid body dynamics with quaternions

I'm trying to understand the equation of motion for rigid body dynamics in the presence of a quaternion joint for the root of a humanoid robot. But the dimensionality inconsistency issue is confusing me now. Let $\mathbf{q}\in \mathbb{R}^{m}$ be a…
2
votes
2 answers

Understanding quaternions

I'm trying to understand quaternions a bit better and get some more intuition, mostly in the context of using them as a way to think about rotations in 3D. My approach to how one might want to think about them in this context: We consider the…
John P
  • 1,206
2
votes
2 answers

why is multiplication of unit quaternion not commutative?

I have two unit quaternions q1(rotation theta1 around axis u1) and q2(rotation theta2 around axis u2) Now I should get the same result whether I multiply q1*q2 or q2*q1 as I am multiplying two exponentials. So why is multiplication of two unit…
user27665
  • 123
2
votes
1 answer

Does every order in a quaternion algebra have a nice integral basis?

Let $A$ be a quaternion algebra over a number field $k$ and let $O \subset A$ be an order. Does there exist always a basis $\{1,i,j,k\}$ of $O$ over the ring of integers $\mathcal{O}_k$ of $k$ such that $$ i^2 \in \mathcal{O}_k, \quad j^2 \in…
abenthy
  • 903
2
votes
1 answer

Norm of Quaternion

Given a quaternion of the form, $$q= a + bi + cj + dk$$ Which is the norm of $q$? (1) $\sqrt{a^2+b^2+c^2+d^2}$ (2) $a^2+b^2+c^2+d^2$ This page from MathWorks says (1) but another page says (2). Wikipedia says (1). My lecture slides…
takfuruya
  • 133
  • 1
  • 5
2
votes
1 answer

Quaternions - Prove that two quaternions map to the same R

I am given the following question: I need to prove that two quaternions map to the same Rotation Matrix in SO3 Space. It is demonstrated by this image: Let w be v here. I tried to work out the proof, but it isn't coming out…
2
votes
1 answer

What are some examples of quaternions in rectangular and exponential form?

I've been interested in quaternions for their ability to represent positions and motions in spacetime in application to game development; I have searched for articles regarding representations of quaternions online for a few days, and a bit of it…
Unknown
  • 21