Appendix/Mathematics/EulerAngles
Euler Angles
Here we will follow quite closely the online class notes prepared by Professor Mona Berciu, Department of Physics & Astronomy, University of British Columbia.
Basic Relations
In terms of the unit vectors of the Cartesian coordinate system shown in the left panel of Figure 1, we can uniquely specify the (red) vector, , by the expression,
where the coefficient triplet, , give the length (and direction) of each vector component. Alternatively, in terms of the unit vectors of the Cartesian coordinate system shown in the right panel of Figure 1, the same (red) vector is specified by the expression,
| Figure 1 | |
Now, it is clear from the nature of unit vectors and vector dot-products that the value of the coefficient, — which explicitly appears in the second of these two expressions — may be obtained from the dot product, . The same must be true if we insert, for , the first of the two expressions; that is to say,
|
|
|
Analogously, we can write,
|
|
|
|
|
|
|
This set of three relations therefore provides a generic way to express one set of projections in terms of the other. When written in matrix form, the set becomes,
|
|
|
|
Alternatively, we could "dot" the unit-vector triplet into the vector, , in which case it would be easy to demonstrate that mapping the other direction is accomplished via the relation,
|
|
|
|
where,
|
|
|
|
|
Adopting the shorthand notation used in Berciu's class notes, we will define,
To be clear, these are not different vectors. They are, rather, two different coordinate representations of the same vector as illustrated in Figure 1. Using this notation, mapping from one representation to the other is accomplished via the compact expressions,
|
Matrix Transpose: By definition, a matrix is the transpose of the matrix — that is, — if for all matrix-element indices, . We recognize, therefore, that
|
|
and, |
|
Specifically, this means that all three diagonal elements (for which, ) are the same in and ; but the locations of paired off-diagonal elements are swapped.
A Sequence of Rotations
It is quite generally true that we can transition/map/migrate from one set of orthogonal unit vectors — such as the inertial/laboratory frame illustrated by the black arrows in the left panel of Figure 1 — to any other set of orthogonal unit vectors — such as the body frame illustrated by the black arrows in the right panel of Figure 1 — by carrying out three rotations. The order in which rotations are carried out is relevant, but one fairly standard sequence of rotations is illustrated in Figure 2:
| Figure 2 | ||
|
Rotation #1 |
Rotation #2 |
Rotation #3 |
First Rotation
As depicted in the left-most panel of Figure 2, rotate the triplet of unit vectors about the (i.e., ) axis by an angle, . The result is the green coordinate system labeled, . Note: (a) The 3' axis remains aligned with the inertial-frame Z-axis; and (b) we will refer to the 1' axis as the line of nodes. Given that the 3' axis is aligned with the Z-axis — that is, — it is easy to recognize that the other two mappings are:
Hence, the corresponding rotation matrix is,
|
|
|
|
Note that the subscript, 3, has been attached to in order to indicate that rotation was about the "third" axis.
Second Rotation
As depicted in the center panel of Figure 2, rotate the triplet of unit vectors about the line of nodes by an angle, . The result is the light-blue coordinate system labeled, (1", 2", 3"). Note: (a) The 1" axis is aligned with the 1' axis (line of nodes); and (b) the values of the first pair of rotation angles, , have been chosen to ensure that the 3" axis aligns with the unit vector. In this case, and the other two mappings are,
and .
In this case, then, the corresponding rotation matrix is,
|
|
|
|
In this case the subscript, 1, has been attached to in order to indicate that rotation was about the "first" axis.
Third Rotation
As depicted in the right-most panel of Figure 2, rotate the triplet of unit vectors about the 3" axis by an. angle, . The result is the desired black coordinate system labeled, . Given that this rotation — like the first — calls for rotation about the "third" axis, we can immediately deduce that the relevant rotation matrix is,
|
|
|
|
Simple Numerical Example
Suppose we set , which are roughly consistent with the trio of rotation angles displayed in Figure 2. The corresponding trio of rotation matrices are:
|
|
|
|
, |
|
|
|
, |
|
|
|
Combined
We can now write the general rotation matrix that links the body frame, , to the inertial/laboratory frame, , as the product of the three rotations about the corresponding axes:
|
|
|
|
Carrying out the matrix multiplications, starting from the right, gives,
|
|
|
|
|
|
|
|
For the simple numerical example established above, these three derivation steps give, respectively,
|
|
|
|
|
|
|
|
|
|
|
|
Following the steps provided above, we recognize that the inverse — or transpose — of this rotation matrix is,
|
|
|
|
|
From the last row of the column labeled "Proper Euler angles" in Wikipedia's discussion of the rotation matrix, we find,
The equivalent expression can be found in Professor Berciu's online class notes; it reads,
These two rotation-matrix expressions are equivalent to one another, but they do not match our derived expression for . Instead, then match our expression for . It is not (yet) clear to us why this is the case. |
Now, given that,
the following three mapping relations must hold:
|
|
= |
|
|
|
= |
|
|
|
= |
|
Alternatively, given that,
the following additional three mapping relations must hold:
|
|
= |
|
|
|
= |
|
|
|
= |
|
Extra Illustrations
Part 1
We can now write the general rotation matrix that links the body frame, , to the inertial/laboratory frame, , as the product of the three rotations about the corresponding axes:
|
|
|
|
|
|
|
|
|
|
|
|
Part 2
Carrying out the matrix multiplications, starting from the right, gives,
|
|
|
|
|
|
|
|
Part 3
From the last row of the column labeled "Proper Euler angles" in Wikipedia's discussion of the rotation matrix, we find,
|
|
|
|
The equivalent expression can be found in Professor Berciu's online class notes; it reads,
|
|
|
|
Part 4
Try reversing the order of rotations:
|
|
|
|
|
|
|
|
|
|
|
|
See Also
- Wikipedia Chapter on Euler Angles
- Online class notes from Professor Mona Berciu, Department of Physics & Astronomy, University of British Columbia
|
Appendices: | VisTrailsEquations | VisTrailsVariables | References | Ramblings | VisTrailsImages | myphys.lsu | ADS | |