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
vote
1 answer

How do I prove that $ij = k?$

If I can prove that $ij = k$, given that $i^2 = j^2 = k^2 = -1$, then it will be easy to prove the other quaternion formulas. However, I'm having a lot of trouble getting past this step. I started by setting up the following equation, such that $(a,…
1
vote
1 answer

Applying quaternion rotation incorrectly

I seem to be making a mistake performing a quaternion rotation. Given two unit vectors $v$ and $w$, I want to compute the rotation between vector $v$, and $w$ and apply that same rotation vector $x$. Let $\vec{v}$, $\vec{w}$, $\vec{x}$ be unit…
1
vote
2 answers

Swapping quaternion x and z values

I have two coordinate frames of reference. The second one is different from the first one in that the $x$ and $z$ axes are interchanged. If I get a quaternion representing a rotation in the first frame and I want to find the equivalent in the second…
user1420
  • 165
  • 1
  • 1
  • 8
1
vote
1 answer

How to use quaternions express number

How to use quaternions express number like 49 as sums of four squares based on their factorizations? I just start to learn quaternion in my math class, I tired to find my class note : Quaternions look like a + b i + c j + d k . Hmmmm ... i guess…
kataham
  • 13
1
vote
1 answer

quaternion product distributivity

If you check the quaternion product derivation at wikipedia: http://en.wikipedia.org/wiki/Quaternion#Hamilton_product You can see that it is derived from a multiplication table between the quaternions 1,i,j,k. All books I have on the topic do the…
1
vote
1 answer

Quaternions in Tangible Form being Used

Okay, so I have been studying quaternions in a game development course, specifically studying how quaternions are used in rotating 3D objects. My issue here, is that the textbook only gives me the equations about how quaternions arithmetic is done,…
1
vote
1 answer

What does multiplying two quaternions result in?

My quaternion is in the form just to be clear. (c,sx,sy,sz) So my first quaternion is. Q=(0.966,0,0,0.966) and second is P=(0.966,0,0,0.966) Which is a angle of 30 rotated around the z axis. The above I got from formula (cos(a/2),sin(a/2)N) So my…
terry
  • 53
1
vote
0 answers

Find rotation in arbitrary axis of a quaternion?

In my situation, I have two completely different Quaternions and an arbitrary axis. What I need to find is the difference of rotation around that axis. For example, if both quaternions had the axis (0, 0, 1) and different rotations, and my axis is…
1
vote
2 answers

Is there such a thing as an equation with noncomplex quaternion solutions?

I'm familiar with equations with real solutions and equations with nonreal complex solutions. Examples: $x^2-3x+1=0$ has the real solutions $3\pm \sqrt{5} \over 2$ and this other equation: $3x^2-x+2=0$ has the nonreal complex solutions $1\pm…
set5
  • 1,067
1
vote
2 answers

Why does $i$ have infinitely many conjugates in $\mathbb{H}$?

Browsing this question: Why are the solutions of polynomial equations so unconstrained over the quaternions?, the pdf linked in the comments says that the infinitely many conjugates of $i$ in $\mathbb{H}$ are roots to $x^2+1$. I get that they're…
1
vote
1 answer

Conversion from euler angles to versors

I am attempting to create a script to convert between the output of one long program and the input of another, neither of which I can edit. The output of the first gives euler angles for rotation and the input of the other requires a 3 float versor.…
1
vote
1 answer

converting quaternion to vector3

I am considering taking a given rotation quaternion $Q$, about a given point $P1$, and obtaining a vector3 $V$. my thought pattern is thus: given a point $P1$, and a quaternion $Q$ obtain another point $P2$ in the direction of $Q$ an arbitrary…
gardian06
  • 221
1
vote
3 answers

Multiplication of quaternion vectors

Upon watching a lecture on quaternions (Youtube link), I came across the following math: $$(a,\vec{v})(a,- \vec{v})=(a^2+(\vec{v}\cdot \vec{v}),-a\vec{v}+a\vec{v}+(\vec{v}\times \vec{v}))$$ where $a$ is scalar and $\vec{v}$ is a quaternion…
djax
  • 199
  • 1
  • 2
  • 10
1
vote
1 answer

Multiplication of a quaternion and a scalar to produce a vector?

I am looking at someone else's code, and in it they have a quaternion multiplied with a scalar in order to produce a vector. He used the boost library, and can't find exactly where they defined the overloaded operator, so I need to make sense of…
0
votes
2 answers

Smooth transition between two quaternions?

I am describing the orientation of an object with quaternion $q$. Now I want to describe (animate) smooth transition between orientations of $q_1$ and $q_2$. I was thinking that quaternion $q = q_1 (1-t) + q_2 t$ will do this, where $t$ varies in…
Dims
  • 1,149