Composition of Quaternions as rotations

Click For Summary
SUMMARY

The discussion focuses on the composition of rotations using quaternions, specifically demonstrating that the combination of two quaternion rotations results in another rotation. The user successfully rotates the vector (1,1,0) by 45 degrees about the z-axis using the quaternion q = cos(22.5) + k sin(22.5), yielding the vector (0,√2,0). A subsequent rotation of this vector by 45 degrees about the x-axis using quaternion p = cos(22.5) + i sin(22.5) results in (0,1,1). The user struggles to derive the single quaternion representing the combined rotation, which is ultimately identified as r = cos(45) + j sin(45), corresponding to a 90-degree rotation about the y-axis.

PREREQUISITES
  • Understanding of quaternion mathematics and representation of rotations.
  • Familiarity with trigonometric identities and their application in quaternion multiplication.
  • Knowledge of vector transformations in three-dimensional space.
  • Experience with quaternion operations, including composition and normalization.
NEXT STEPS
  • Study quaternion multiplication and its geometric interpretation in 3D rotations.
  • Learn about quaternion normalization and how to ensure unit vectors are used in rotations.
  • Explore the derivation of rotation angles and axes from quaternion representations.
  • Investigate the application of quaternions in computer graphics and robotics for rotation representation.
USEFUL FOR

This discussion is beneficial for students and professionals in fields such as computer graphics, robotics, and physics, particularly those working with 3D transformations and rotations using quaternions.

tomelwood
Messages
29
Reaction score
0

Homework Statement


Hi, I am having problems in showing that in practise the composition of two rotations represented by quaternions is still a rotation.
The example I have constructed is:
Rotate (1,1,0) by 45 degrees about the z axis.
The quaternion to use is thus q = cos(22.5)+ksin(22.5)
This gives the vector (0,√2,0), as one would expect.
Then, rotate this new vector by 45 degrees about the x acis.
The quaternion to use is thus p = cos(22.5)+isin(22.5)
This gives the vector (0,1,1), as expected.
However, trying to find the single quaternion rotation to get from (1,1,0) to (0,1,1) is proving problematic..

Homework Equations


I know that composition of rotations is done in reverse order, ie to find the single quaternion that I need to use, I need to do pq and then apply this to (1,1,0) to give me (0,1,1)

The Attempt at a Solution


Now, I know that the answer is a rotation of 90 degrees about the y-axis, ie about (0,1,0), which is, in quaternion form, r = cos45+jsin45

But when I multiply p with q, I do not get this.
In fact, pq= cos^2(22.5) + isin(22.5)cos(22.5) + ksin(22.5)cos(22.5) - jsin^2(22.5)
which I cannot get to equal what I want!

By adding and subtracting another sin^2 , I can get the cos45, but then I am left with
sin(22.5)(icos(22.5)+kcos(22.5)-jsin(22.5)) which is no closer!

Could somebody please explain where I have gone wrong/what identities I have missed, as this should work, and I don't understand why it isn't!

Many thanks.
 
Physics news on Phys.org
Having investigated further, I have found that multiplying (1,1,0) by that quaternion that I didn't like does actually give (0,1,1) , but I don't understand how I can interpret that geometrically - ie about what axis and by what angle is the rotation being performed?
Because the usual way of writing that is in the form
cos(θ/2)+Asin(θ/2) , where θ is the angle of rotation and A is the unit vector which is the axis of rotation...
Unless, I write it out numerically:
0.85355+0.35355i-0.14644j+0.35355k
Therefore the angle of rotation is 2arccos(0.85355) = 62.8 degrees
And the axis of rotation is the vector (0.35355, -0.14644, 0.35355) But this isn't a unit vector...

Am I any closer?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 49 ·
2
Replies
49
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K