Rotations with Quaternions and their exponential.

In summary: This is a transformation. It is a change in the coordinates of the point that is the black dot. Rotations are a type of transformation. It is a type of transformation that preserves lengths and angles. It can be shown that any rotation can be represented by a single rotation about some axis, and that the amount of rotation about that axis is unique. In other words, a rotation is a transformation, but not just any transformation. Rotations are a special type of transformation.As far as left versus right quaternions: The natural way to transform a point by a rotation is to multiply the rotation quaternion by the point quaternion. The order here is important. This order is called a left multiplication
  • #1
tomelwood
34
0

Homework Statement


Hello,
I'm trying to get my head around the various properties of quaternions that all seem very similar, but I can't quite understand the underlying differences between them. I would like to know the differences between unit quaternions, purely imaginary quaternions, rotating a quaternion (does computing rotations using quaternions require them to be of unit magnitude?), and the exponential of a quaternion.


Homework Equations


One definition I have found is that "The exponential of a quaternion q = [a; v] is exp(q) =
exp(a)[cos(m);Lsin(m)], where m is a scalar and L a vector such that mL=v"
(taken from http://warwickmaths.org/files/Quaternions%20And%20Their%20Importance%2065.pdf , page 6)
But another one says that the exponential of a purely imaginary q is "cos |q| + (q/|q|)sin|q|" Is this the same definition, but for the less general case of q having no scalar part?
If so, how are the two connected?


With regard to rotations, I know that we can think of the unit quaternion q = [a; v] , where v = tA, A being a unit vector (as q being a unit quaternion doesn't mean that v is a unit vector, correct?), as being represented as q = cos(θ/2) + A sin(θ/2) , where θ is the angle of rotation and A is the axis of rotation.

How does this relate to the exponential formula, as they look very similar indeed. What is the relation between |q| and θ?

The Attempt at a Solution



If someone can help me understanding these nuances with quaternions, I would be very grateful. I have already proven that the above representation of a rotation is true, but I would like to know the connection between that and the exponential.

Although, is it the case that the modulus of the quaternion is simply the angle of rotation? I think that is the connection between the two exponential cases. But how does that come about?

Many thanks.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
tomelwood said:
I'm trying to get my head around the various properties of quaternions that all seem very similar, but I can't quite understand the underlying differences between them. I would like to know the differences between unit quaternions, purely imaginary quaternions, rotating a quaternion (does computing rotations using quaternions require them to be of unit magnitude?), and the exponential of a quaternion.
Let me offer my assistance in this endeavor!

One definition I have found is that "The exponential of a quaternion q = [a; v] is exp(q) =
exp(a)[cos(m);Lsin(m)], where m is a scalar and L a vector such that mL=v"
(taken from http://warwickmaths.org/files/Quaternions%20And%20Their%20Importance%2065.pdf , page 6)
Now that is a mighty ad hoc definition. A much better definition is

[tex]\exp(q) = \sum_{n=0}^{\infty} \frac {q^n}{n!}[/tex]

This is the same definition of the exponential function that is used for the reals, then extended to the complex numbers, and now to the quaternions. This series definition of the exponential function is arguably the most important function in all of mathematics; Rudin says exactly that. Why diverge from this extremely important definition?

There is one hidden problem here: Given that multiplication in the quaternions is not commutative, does writing qn make sense? It turns out that this does make sense precisely because qn×q = q×qn. Even though quaternions is not commutative in general, the product of a quaternion and that quaternion raised to some integer power is commutative. (You might want to try to prove this conjecture.) In fact, any non-zero quaternion raised to some real power and that same quaternion raised to some other real power commute multiplicatively.

As far as that author's definition of the quaternion exponential: It is wrong. There is too much leeway in his "where m is a scalar and L a vector such that mL=v". His definition is not unique (the definition I gave is unique). He should have said "where m=||v|| and L=v/m".


But another one says that the exponential of a purely imaginary q is "cos |q| + (q/|q|)sin|q|" Is this the same definition, but for the less general case of q having no scalar part?
If so, how are the two connected?
Let's go back to the definition I gave. I'll write this pure imaginary quaternion q as [0;v]=[0;vu], where v is a non-zero 3-vector, v is the magnitude of that vector, and u=v/v is a unit 3-vector. The series starts with q0, which is defined to be [1;0] in the context of this series. (The same goes for exp(x) and exp(z), for real x and complex z.) The next element is q1. A quaternion raised to the first power is of course the quaternion in question. So here q1=[0;vu]. Multiplying to obtain successive powers, q2 is [-v2;0], q3 is [0;-v3u], and so on.

In general, q2n=[(-1)nv2n;0] and q2n+1=[0;(-1)nv2n+1u], so

[tex]\exp(q) = \left[
\sum_{n=0}^{\infty}\frac{(-1)^nv^{2n}}{(2n)!}\;;\;
\sum_{n=0}^{\infty}\frac{(-1)^nv^{2n+1}}{(2n+1)!}
\right]
= \left[\sin v; \cos v\,\hat{\mathbf u}\right][/tex]
With regard to rotations, I know that we can think of the unit quaternion q = [a; v] , where v = tA, A being a unit vector (as q being a unit quaternion doesn't mean that v is a unit vector, correct?), as being represented as q = cos(θ/2) + A sin(θ/2) , where θ is the angle of rotation and A is the axis of rotation.

How does this relate to the exponential formula, as they look very similar indeed. What is the relation between |q| and θ?

Before talking about rotations in three space and how quaternions can be used to describe them, I'm going to be a bit pedantic and differentiate between rotation and transformation and then between left and right quaternions.

On rotation versus transformation: Imagine you have a white sheet of paper with one black dot somewhere on the paper. You need a coordinate system of some sort to describe the location of that dot. Imagine you have a couple of sheets of transparent plastic each with a grid marked on it. Putting one of those transparencies atop the white sheet of paper gives you such a coordinate system. If you put the second transparency atop the other so that the axes and grids line up, you will have another coordinate system that is identical to the first one. Now physically rotate the second transparency. Note that the dot has not rotated; the dot is where it was. It is the coordinate system that has been rotated. The dot's coordinates will of course change due to this rotation of the coordinate system. You can describe this physical rotation of the transparency in terms of a rotation matrix R. How about the transformation of the coordinates of the dot? The coordinates of some point as represented in two different coordinate systems are related by a transformation matrix T. Here, the rotation matrix R and transformation matrix T inverses of one another. Rotation is the conjugate of transformation.

On left version right quaternions: I'm going to skip ahead a bit and note that q[0;v]q-1 is a pure imaginary quaternion. So is q-1[0;v]q. The only difference between the two forms is whether original quaternion (rather than its inverse) is on the left or the right of the pure imaginary quaternion [0;v]. The form q[0;v]q-1 is a "left" form (the original quaternion is on the left) while q-1[0;v]q is a "right" form (the original quaternion is on the right).

The reason for these pedantic distinctions is that silly arguments arise over it. One person will be using right rotation quaternions and another left transformation quaternions. When they exchange data the will find that their data don't agree. If the two don't know that multiple representation schemes exist, a "You're doing it wrong!" "No, you're doing it wrong" argument will ensue. Who's wrong? Both are; they are wrong for arguing. (BTW, the author of the paper you cited is using left rotation quaternions.)

Finally, on rotation/transformation with unit quaternions: Let's look at the form q[0;v]q-1. Pre-multiplying by some non-zero real a and post-multiplying by 1/a doesn't change the result. This means that there's no reason to use quaternions in general. Unit quaternions will work just fine. The reason for using unit quaternions is that the multiplicative inverse of a unit quaternion is just the conjugate of that quaternion.

Without derivation,
  • The left rotation quaternion [itex]q=[\cos\frac{\theta}2;\sin\frac{\theta}2\hat u][/itex] rotates a vector v about the u-hat axis by an angle θ via [itex]q\;[0;\vec v]\;q^{\ast}[/itex].
  • The corresponding right rotation quaternion is [itex]q=[\cos\frac{\theta}2;-\sin\frac{\theta}2\hat u][/itex] with the rotation represented via [itex]q^{\ast}\;[0;\vec v]\;q[/itex].
  • The left transformation quaternion [itex]q=[\cos\frac{\theta}2;-\sin\frac{\theta}2\hat u][/itex] transforms the coordinates of a vector v as expressed in some frame to another frame whose axes are rotated about the u-hat axis by an angle of θ relative to the original frame via [itex]q\;[0;\vec v]\;q^{\ast}[/itex].
  • The corresponding right transformation quaternion is [itex]q=[\cos\frac{\theta}2;\sin\frac{\theta}2\hat u][/itex] with the transformation represented via [itex]q^{\ast}\;[0;\vec v]\;q[/itex].

Note that the quaternion exponential does not arise in any of the above. The quaternion exponential becomes very important when you need to compute the time derivative of a time-varying quaternion.
 
Last edited by a moderator:

Related to Rotations with Quaternions and their exponential.

1. What are quaternions?

Quaternions are a mathematical concept used to represent rotations in three-dimensional space. They consist of four components: a scalar (real) part and three imaginary parts, which are often denoted as i, j, and k.

2. How are quaternions used for rotations?

Quaternions are used to represent rotations by combining and modifying the imaginary parts in a specific way. This allows for efficient and accurate calculation of rotations in three-dimensional space.

3. What is the exponential of a quaternion?

The exponential of a quaternion is a mathematical operation that can be used to calculate the rotation that a given quaternion represents. It is defined as e raised to the power of the quaternion, where e is the base of the natural logarithm.

4. What are the benefits of using quaternions for rotations?

Compared to other methods of representing rotations, such as Euler angles or rotation matrices, quaternions have several advantages. They do not suffer from gimbal lock, they are more efficient for calculations, and they can easily be interpolated for smooth animations.

5. Can quaternions be used for other applications besides rotations?

Yes, quaternions have applications in many fields, including computer graphics, robotics, and physics. They can also be used for complex number operations and in quantum mechanics.

Similar threads

Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
4K
Replies
2
Views
2K
Replies
2
Views
1K
Replies
6
Views
1K
  • Linear and Abstract Algebra
Replies
15
Views
3K
  • Mechanical Engineering
Replies
2
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
2K
Back
Top