|
This companion entry is designed for self study after the PhysicsLibrary article Axis Angle Representation and Unit Quaternion. All exercises are given first so that a reader can work through the full set without encountering the solutions accidentally. Complete solutions follow in a separate section.
Unless otherwise stated, use Hamilton multiplication, scalar-first quaternion components, right-handed Cartesian axes, and the PhysicsLibrary active rotation convention
 |
(1) |
Angles are positive according to the right-hand rule about
.
about the axis. Construct the unit quaternion for a positive active rotation of about
. Give the answer both as
and as a scalar-first column.
about the axis. Construct the quaternion for a positive active rotation of about
Verify directly that the quaternion has unit norm.
- A nontrivial normalized axis. Construct the quaternion for a rotation of
about the axis
Write the exact scalar-first components.
- Recover an axis and angle. For
recover the principal axis and angle.
- A
quaternion. For the unit quaternion
find the axis and angle. Explain what happens if the quaternion is replaced by .
- The
versus ambiguity. Let
Determine the physical axis and angle represented by . Then express as an axis angle pair with an angle in the interval and show that it represents the same physical rotation.
- Zero,
, and . For a fixed unit axis
, evaluate the quaternion for physical rotation angles 0, , and . Which of these quaternions are equal? Which represent the same physical orientation?
- Active inverse and passive counterpart. Write the quaternion for a positive active rotation of
about
. Then find its inverse. Interpret the inverse as both (a) an active rotation and (b) the corresponding opposite-direction passive coordinate transformation.
- The nonunit axis trap. A programmer attempts to construct a
rotation about the axis using the vector directly in
Compute the resulting quaternion and its norm. Explain the mistake and give the correct unit quaternion.
- Small attitude correction. An attitude estimator produces the small rotation vector
 rad 
Use the first order small angle quaternion approximation to form the correction quaternion. Compute its norm to show the size of the first order normalization error. Then give the normalized approximation.
- Engineering command axis. A spacecraft is commanded to rotate by
about the body fixed unit axis
Construct the exact command quaternion and give numerical component values to at least six significant digits.
- Derive the half angle. Let
and be perpendicular unit pure quaternions and let
Starting from
, prove that the vector is rotated through physical angle . Hence explain why a desired physical angle is encoded with quaternion phase .
- Derive the quaternion exponential. Using only
and the power series definition of the exponential, prove
Then write the axis angle quaternion as an exponential.
- Principal representative from a negative scalar part. A normalized attitude quaternion is received as
First extract an axis angle pair using the quaternion exactly as given. Then choose the equivalent representative with nonnegative scalar part and extract the principal rotation with angle in
. Explain why both describe the same orientation.
Here
Therefore
 |
(2) |
In scalar-first column form,
 |
(3) |
The half angle is , so
Multiplying the sine by the axis gives
Thus
 |
(4) |
Its squared norm is
The axis is already unit because
The half angle is , with
Therefore
 |
(5) |
The scalar part is
and the vector part magnitude is
Hence
 |
(6) |
The axis is
Thus the rotation is
Here and the vector part already has unit magnitude. Therefore
 |
(7) |
The axis is
 |
(8) |
Replacing by reverses the displayed axis. At a rotation,
and
describe the same physical rotation, and the two quaternions differ only by the usual sign ambiguity.
The quaternion phase is , so the physical angle is
about
.
For the negative quaternion,
Using an angle in ,
Thus
 |
(9) |
Its physical axis angle pair can therefore be written as
A rotation about
is the same physical orientation as a rotation about
.
For a fixed axis,
Therefore
 |
(10) |
The quaternions at 0 and are equal. The quaternion at is their negative. All three represent the same physical orientation.
The positive active quaternion is
 |
(11) |
Because it is unit,
 |
(12) |
As an active rotation, is a rotation about
, equivalently a rotation about
. The same inverse relation appears when one reverses the direction of a passive frame transformation.
The programmer uses
This gives
 |
(13) |
Its squared norm is
so
 |
(14) |
The mistake is using an axis vector of length two instead of a unit axis. The correct axis is
, giving
 |
(15) |
The first order approximation is
Its squared norm is
so
 |
(16) |
Normalizing gives approximately
 |
(17) |
The norm error is second order, as expected from a first order small angle approximation.
The half angle is
Thus
 |
(18) |
Using
we obtain
 |
(19) |
Let
Because is unit,
For perpendicular unit pure quaternions,
Therefore
This is a planar rotation of by about
. Hence
 |
(21) |
From the power series,
Because
, the even powers give the cosine series and the odd powers give
times the sine series:
 |
(22) |
Setting
gives the axis angle quaternion
 |
(23) |
For the given quaternion,
Using the quaternion exactly as supplied,
 |
(24) |
The vector part points along
, so this is a rotation about
.
For a principal representation, first replace by :
Now
 |
(25) |
and the axis is
. Therefore the principal pair is
 |
(26) |
A rotation about
and a rotation about
have the same physical effect. The two unit quaternions differ only by sign.
The problems and solutions above are newly written for PhysicsLibrary. Their subject matter is cross checked against public domain quaternion texts by Hamilton, Hathaway, Joly, and Macfarlane. In particular, Joly describes the sandwich transformation as a rotation through twice the quaternion angle, and Hathaway develops axis and finite rotation geometry before introducing quaternions. No historical exercise has been transcribed verbatim.
- 1
- C. J. Joly, A Manual of Quaternions, Macmillan and Co., London, 1905. Public domain historical source.
- 2
- A. S. Hathaway, A Primer of Quaternions, 1896. Public domain text; Project Gutenberg edition and LATEX source available. Project Gutenberg edition
- 3
- A. Macfarlane, Vector Analysis and Quaternions, John Wiley & Sons, New York, 1906. Public domain historical source. Project Gutenberg edition
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution–ShareAlike 4.0 International license.
|