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

Why does the real part of quaternion conjugation with a pure quaternion stay 0?

This answer stated a few facts which I don't understand completely: The "real part" (the $w$) of the product of two quaternions $pq$ is the same as the "real part of $qp.$ So, what happens when I take a unit quaternion $q$ and a "pure" …
lucidbrot
  • 262
2
votes
1 answer

how to extrapolate quaternions?

from http://answers.unity3d.com/questions/168779/extrapolating-quaternion-rotation.html var rot = q2 * Quaternion.Inverse(q1); // rot is the rotation from t1 to t2 var dt = (t3 - t1)/(t2 - t1); // dt = extrapolation factor var ang: float; var axis:…
epsilon8
  • 105
2
votes
1 answer

Is my interpretation of quaternions correct?

I think of quaternions as operators which are applied to co-ordinates of a point. Operator $i$ rotates the point, to which it is applied, by 90 degrees anti-clockwise about positive $z$ axis. Operator $j$ rotates the point by 90 degrees about…
Ryder Rude
  • 1,417
2
votes
0 answers

Why there are 48 distinct matrix representations available for quaternions?

According to Wikipedia, a Quaternion can be represent in 48 different $4\times4$ matrix forms. Finding this number can be proved by using permutation? $$\binom 4 2 \cdot4=\frac{4!}{(4-2)!}\cdot4=48$$ As in each column, there are $\begin{pmatrix} 4 …
David
  • 153
2
votes
2 answers

Why u*v = cross(u,v)-dot(u,v) at quaternions?

Why is it that for quaternions, $u*v = \mathrm{cross}(u,v)-\mathrm{dot}(u,v)$? I wonder for what reason they are equal to each others.
user7217
  • 271
2
votes
2 answers

Is the quaternion obtained from Hamilton product a rotated quaternion?

I'm currently working on a Quaternion Neural Network and I was wondering if a Quaternion rotation was only defined when a Quaternion $q$ is rotated using an unit quaternion $u$ ($uqu^{-1}$), or if the Hamilton product between two Quaternions was a…
2
votes
1 answer

Triple quaternion multiplication

I'm self learner and for some reason I can't wrap my head around quaternion multiplication. I just stumble upon one of equation in my text. Can anyone show step-by-step workout for below: $$ \begin{equation} \begin{split} w =& qvq^* \\ =&…
kypronite
  • 449
2
votes
2 answers

proof that quaternion group is a group

My textbook gives the following definition of a quaternion group: $Q = \{\pm 1, \pm i, \pm j, \pm k\}$, where multiplication is defined by: \begin{align*} 1*x &= x & (-1)*x &= -x & (-1)*(-x)&=x \end{align*} for $x = 1,i,j,k$ (NOTE: x does not…
user56834
  • 12,925
2
votes
4 answers

Eigenvectors and matrix decomposition of a Quaternion

Given the matrix representation of Quaternions (re. e.g. to this other post) $$ Q \ := \ \left(\begin{array}{rrrr}d&-c&b&a\\c&d&-a&b\\-b&a&d&c\\-a&-b&-c&d\end{array}\right) \ \ $$ what "meaning" or "role" can be given to the eigenvectors? and what…
G Cab
  • 35,272
2
votes
2 answers

Simultaneous action of two Quaternions

If we have a quaternion Q1 and Q2 that defines rotations (r1, r2) of an object about an axis (x1, y1, z1) and (x2,y2,z2). How to represent simultaneous action of the both quaternions?. Is there any way to define a "resultant quaternion" like a…
2
votes
1 answer

Estimate angular velocity and acceleration from a sequence of rotations

I have a set of rotations: $R(t) \in R^{3x3}, t = 1, 2, ... T$. I can extract the orientation of a body $\theta (t)$ from the rotation matrix $R(t)$. I am interested to estimate the angular velocity $\omega (t)$ and angular acceleration $\alpha…
crow
  • 147
2
votes
1 answer

how to calculate the result of Quaternion Rotation?

I just read this excellent material page:45 about Quaternion Rotation. I can not compute the result of rotation quaternion $p = [0,\boldsymbol{p}]$ where $\boldsymbol{p}$ is a vector, with $ q = [\omega, v], q^{-1}=[\omega,-v]$, both of q and…
wangdq
  • 115
2
votes
2 answers

Quaternion for beginner

QUATERNION ROTATIONI have 2 points in 3d space ,point A= <5,3,6> and B=<8,2,3> I want to rotate "point B" by 30 degree from point A. how do I solve this question using quaternion. Plz, explain the steps....
2
votes
1 answer

Finding the quaternion that performs a rotation

I managed to find this answer here where Christian Rau says "axis/angle rotation (a,x,y,z) is equal to quaternion (cos(a/2),xsin(a/2),ysin(a/2),z*sin(a/2))" Assuming I know what rotation I need to perform, how would I represent it? eg, finding the…
Quiet
  • 21
2
votes
1 answer

Slerp formula interpretation

I have a problem about spherical linear interpolation, or slerp for short. As linked, Wikipedia gives the following formula for an interpolation between quaternions q0 and q1 with a t parameter (between 0 and 1): My misunderstanding here is about…
Aracthor
  • 145