Editing
Appendix/Mathematics/EulerAngles
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Combined Transformations== Here, we combine the three rotations in the order defined by Figure 2 — and use the corresponding trio of ''Euler angles'' — to relate the three vector components of <math>\vec{A}_\mathrm{body}</math> to the three vector components of <math>\vec{A}_\mathrm{XYZ}</math>. We first review how this can be accomplished via a standard — but rather ''brute force'' — unit-vector substitution approach; then we show how the more elegant matrix rotation technique can be employed to achieve the same result. ===Brute Force=== Bringing forward the results of our [[#A_Sequence_of_Rotations|above discussion]], we recognize that the following unit-vector relationships result from each of the three specified rotations: <table border="0" align="center" cellpadding="5"> <tr> <td align="right">Rotation #1:</td> <td align="left"> <math>\vec{e}_{1'} = \vec{e}_X \cos\phi + \vec{e}_Y \sin\phi</math> and <math>\vec{e}_{2'} = \vec{e}_Y \cos\phi - \vec{e}_X \sin\phi</math> and <math>\vec{e}_{3'} = \vec{e}_Z \, ;</math> </td> </tr> <tr> <td align="right">Rotation #2:</td> <td align="left"> <math>\vec{e}_{2''} = \vec{e}_{2'} \cos\theta + \vec{e}_{3'} \sin\theta </math> and <math>\vec{e}_{3''} = \vec{e}_{3'} \cos\theta - \vec{e}_{2'} \sin\theta</math> and <math>\vec{e}_{1''} = \vec{e}_{1'} \, ;</math> </td> </tr> <tr> <td align="right">Rotation #3:</td> <td align="left"> <math>\vec{e}_{x_1} = \vec{e}_{1''} \cos\psi + \vec{e}_{2''} \sin\psi</math> and <math>\vec{e}_{x_2} = \vec{e}_{2''} \cos\psi - \vec{e}_{1''} \sin\psi</math> and <math>\vec{e}_{x_3} = \vec{e}_{3''} \, .</math> </td> </tr> </table> Hence, we have, <table border="0" align="center" cellpadding="0"> <tr> <td align="right"> <math>\vec{e}_{x_1}</math> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_{1''} \cos\psi + \vec{e}_{2''}\sin\psi </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \cos\psi [ \vec{e}_{1'} ] + \sin\psi [ \vec{e}_{2'} \cos\theta + \vec{e}_{3'} \sin\theta ] </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \cos\psi [ \vec{e}_X \cos\phi + \vec{e}_Y \sin\phi ] + \sin\psi \cos\theta[ \vec{e}_Y \cos\phi - \vec{e}_X \sin\phi] + \sin\psi\sin\theta [\vec{e}_Z ] </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_X[\cos\psi \cos\phi - \sin\phi \sin\psi \cos\theta] + \vec{e}_Y [ \cos\psi \sin\phi + \cos\phi \sin\psi \cos\theta ] + \vec{e}_Z [\sin\psi\sin\theta ] \, . </math> </td> </tr> <tr> <td align="right"> <math>\vec{e}_{x_2}</math> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_{2''} \cos\psi - \vec{e}_{1''}\sin\psi </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \cos\psi [\vec{e}_{2'} \cos\theta + \vec{e}_{3'} \sin\theta ] - \sin\psi [\vec{e}_{1'} ] </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> - \sin\psi [\vec{e}_X \cos\phi + \vec{e}_Y \sin\phi ] + \cos\psi \cos\theta [\vec{e}_Y \cos\phi - \vec{e}_X \sin\phi ] + \cos\psi \sin\theta [\vec{e}_{Z} ] </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_X [- \sin\psi \cos\phi - \sin\phi \cos\psi \cos\theta ] + \vec{e}_Y [- \sin\phi \sin\psi + \cos\phi \cos\psi \cos\theta ] + \vec{e}_{Z} [\cos\psi \sin\theta ] \, . </math> </td> </tr> <tr> <td align="right"> <math>\vec{e}_{x_3}</math> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_{3''} </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_{3'} \cos\theta - \vec{e}_{2'} \sin\theta </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_{Z} [ \cos\theta ] - \sin\theta [ \vec{e}_Y \cos\phi - \vec{e}_X \sin\phi ] </math> </td> </tr> <tr> <td align="right"> </td> <td align="center">=</td> <td align="left"> <math> \vec{e}_X[\sin\theta \sin\phi ] - \vec{e}_Y [ \sin\theta \cos\phi] + \vec{e}_{Z} [ \cos\theta ] \, . </math> </td> </tr> </table> We can therefore write, <table border="0" align="center" cellpadding="8"> <tr> <td align="right"> <math>\hat{R}</math> </td> <td align="center"> <math>\equiv</math> </td> <td align="left"> <math> \begin{bmatrix} \vec{e}_{x_1} \cdot\vec{e}_X & \vec{e}_{x_1} \cdot\vec{e}_Y & \vec{e}_{x_1} \cdot\vec{e}_Z \\ \vec{e}_{x_2} \cdot\vec{e}_X & \vec{e}_{x_2} \cdot\vec{e}_Y & \vec{e}_{x_2} \cdot\vec{e}_Z \\ \vec{e}_{x_3} \cdot\vec{e}_X & \vec{e}_{x_3} \cdot\vec{e}_Y & \vec{e}_{x_3} \cdot\vec{e}_Z \end{bmatrix} </math> </td> </tr> <tr> <td align="right"> </td> <td align="center"> <math>=</math> </td> <td align="left"> <math> \begin{bmatrix} (\cos\psi \cos\phi - \sin\phi \sin\psi \cos\theta) & ( \cos\psi \sin\phi + \cos\phi \sin\psi \cos\theta ) & (\sin\psi\sin\theta ) \\ (- \sin\psi \cos\phi - \sin\phi \cos\psi \cos\theta ) & (- \sin\phi \sin\psi + \cos\phi \cos\psi \cos\theta ) & (\cos\psi \sin\theta ) \\ (\sin\theta \sin\phi ) & ( -\sin\theta \cos\phi) & ( \cos\theta ) \end{bmatrix} \, . </math> </td> </tr> </table> ===Using Matrix Notation=== <table border="1" align="right" cellpadding="1"> <tr><td align="center">Astrophysics Example</td></tr> <tr><td align="center">[[File:EulerAnglesExample02.jpeg|250px|Euler Angles Example02]]</td></tr> </table> With more finesse, we can write the general rotation matrix that links the ''body frame'', <math>(x_1, x_2, x_3)</math>, to the ''inertial/laboratory'' frame, <math>(X, Y, Z)</math>, as the product of the three rotations about the corresponding axes: <table border="0" align="center" cellpadding="3"> <tr> <td align="right"> <math>\hat{R}(\phi, \theta, \psi) = \hat{R}_3(\psi) \cdot \hat{R}_1(\theta) \cdot \hat{R}_3(\phi)</math> </td> <td align="center"> <math>=</math> </td> <td align="left"> <math> {\begin{bmatrix} \cos\psi & \sin\psi & 0 \\ -\sin\psi & \cos\psi & 0 \\ 0 & 0 & 1 \end{bmatrix}} \cdot {\begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\theta & \sin\theta \\ 0 & -\sin\theta & \cos\theta \end{bmatrix}} \cdot {\begin{bmatrix} \cos\phi & \sin\phi & 0 \\ -\sin\phi & \cos\phi & 0 \\ 0 & 0 & 1 \end{bmatrix}} \, . </math> </td> </tr> <tr> <td align="center" colspan="3"> [https://phas.ubc.ca/~berciu/TEACHING/PHYS206/LECTURES/FILES/euler.pdf Berciu's online class notes], bottom of p. 3 </td> </tr> </table> <span id="RotationMatrix">Carrying out the matrix multiplications</span>, starting from the right, gives, <table border="0" align="center" cellpadding="3"> <tr> <td align="right"> <math>\hat{R}(\phi, \theta, \psi)</math> </td> <td align="center"> <math>=</math> </td> <td align="left"> <math> {\begin{bmatrix} \cos\psi & \sin\psi & 0 \\ -\sin\psi & \cos\psi & 0 \\ 0 & 0 & 1 \end{bmatrix}} \cdot {\begin{bmatrix} \cos\phi & \sin\phi & 0 \\ -\sin\phi \cos\theta & \cos\theta \cos\phi & \sin\theta \\ \sin\theta\sin\phi & -\sin\theta \cos\phi & \cos\theta \end{bmatrix}} </math> </td> </tr> <tr> <td align="right"> </td> <td align="center"> <math>=</math> </td> <td align="left"> <math> {\begin{bmatrix} (\cos\psi \cos\phi - \sin\psi \sin\phi \cos\theta) & (\sin\phi \cos\psi + \sin\psi \cos\theta \cos\phi) & (\sin\psi \sin\theta) \\ (-\sin\psi \cos\phi - \sin\phi \cos\theta \cos\psi) & ( - \sin\psi \sin\phi + \cos\psi \cos\theta\cos\phi ) & \sin\theta \cos\psi \\ \sin\theta\sin\phi & -\sin\theta \cos\phi & \cos\theta \end{bmatrix}} \, . </math> </td> </tr> </table> This precisely matches the Euler-angle expression for the rotation matrix, <math>\hat{R}</math>, that we derived above using a more brute force approach. ---- For the [[#Simple_Numerical_Example|'''simple numerical example''' established above]], these three derivation steps give, respectively, <table border="0" align="center" cellpadding="2"> <tr> <td align="right"> <math>\hat{R}(\phi, \theta, \psi)</math> </td> <td align="center"> <math>~=</math> </td> <td align="left"> <math> {\begin{bmatrix} 0.9659 & 0.2588 & 0 \\ -0.2588 & 0.9659 & 0 \\ 0 & 0 & 1 \end{bmatrix}} \cdot {\begin{bmatrix} 1 & 0 & 0 \\ 0 & 0.9063 & 0.4226 \\ 0 & -0.4226 & 0.9063 \end{bmatrix}} \cdot {\begin{bmatrix} 0.8660 & 0.5000 & 0 \\ -0.5000 & 0.8660 & 0 \\ 0 & 0 & 1 \end{bmatrix}} </math> </td> </tr> <tr> <td align="right"> </td> <td align="center"> <math>~=</math> </td> <td align="left"> <math> {\begin{bmatrix} 0.9659 & 0.2588 & 0 \\ -0.2588 & 0.9659 & 0 \\ 0 & 0 & 1 \end{bmatrix}} \cdot {\begin{bmatrix} 0.8660 & 0.500 & 0 \\ -0.4532 & 0.7849 & 0.4226 \\ 0.2113 & -0.3660 & 0.9063 \end{bmatrix}} </math> </td> </tr> <tr> <td align="right"> </td> <td align="center"> <math>~=</math> </td> <td align="left"> <math> {\begin{bmatrix} 0.7192 & 0.6861 & 0.1094 \\ -0.6619 & 0.6287 & 0.4082 \\ 0.2113 & -0.3660 & 0.9063 \end{bmatrix}} \, . </math> </td> </tr> </table> ---- <span id="Rinverse">Following</span> the [[#Transpose|steps provided above]], we recognize that the inverse — or transpose — of this rotation matrix is, <table border="0" align="center" cellpadding="3"> <tr> <td align="right"> <math>\hat{R}^{-1} = \hat{R}^T</math> </td> <td align="center"> <math>=</math> </td> <td align="left"> <math> {\begin{bmatrix} (\cos\psi \cos\phi - \sin\psi \sin\phi \cos\theta) &(-\sin\psi \cos\phi - \sin\phi \cos\theta \cos\psi) & (\sin\theta\sin\phi) \\ (\sin\phi \cos\psi + \sin\psi \cos\theta \cos\phi) & ( - \sin\psi \sin\phi + \cos\psi \cos\theta\cos\phi ) & (-\sin\theta \cos\phi) \\ (\sin\psi \sin\theta) & (\sin\theta \cos\psi) & (\cos\theta) \end{bmatrix}} \, . </math> </td> </tr> </table> <table border="1" align="center" width="80%" cellpadding="8"><tr><td align="left"> From the last row of the column labeled "Proper Euler angles" in [https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix Wikipedia's discussion of the ''rotation matrix''], we find, <table border="0" align="center" cellpadding="8"> <tr> <td align="right"> <math>~Z_1 X_2 Z_3</math> </td> <td align="center"> <math>~=</math> </td> <td align="left"> <math> \begin{bmatrix} (c_1c_3 - c_2s_1s_3) & (-c_1s_3 - c_2 c_3s_1) & (s_1s_2) \\ (c_3s_1 + c_1c_2s_3) & (c_1c_2c_3 - s_1s_3) & (-c_1s_2) \\ (s_2s_3) & (c_3s_2) & (c_2) \end{bmatrix} </math> </td> </tr> </table> The equivalent expression can be found at the top of p. 4 of [https://phas.ubc.ca/~berciu/TEACHING/PHYS206/LECTURES/FILES/euler.pdf Professor Berciu's online class notes]; it reads, <table border="0" align="center" cellpadding="8"> <tr> <td align="right"> <math>~\hat{R}(\phi, \theta, \psi)</math> </td> <td align="center"> <math>~=</math> </td> <td align="left"> <math> \begin{bmatrix} (\cos\phi \cos\psi - \cos\theta \sin\phi \sin\psi) & (-\cos\phi \sin\psi - \cos\theta \cos\psi \sin\phi) & (\sin\phi \sin\theta) \\ (\cos\psi \sin\phi + \cos\phi \cos\theta \sin\psi) & (\cos\phi \cos\theta \cos\psi - \sin\phi \sin\psi) & (-\cos\phi \sin\theta) \\ (\sin\theta \sin\psi) & (\cos\psi \sin\theta) & (\cos\theta) \end{bmatrix} </math> </td> </tr> </table> These two rotation-matrix expressions are equivalent to one another, but they do not match our derived expression for <math>\hat{R}</math>. Instead, then match our expression for <math>\hat{R}^{-1}</math>. <font color="red">It is not (yet) clear to us why this is the case.</font> ---- For the [[#Simple_Numerical_Example|'''simple numerical example''' established above]], the rotation matrix on the right-hand-side of both of these expressions gives, <table border="0" align="center" cellpadding="2"> <tr> <td align="left"> <math> {\begin{bmatrix} 0.7192 & -0.6619 & 0.2113 \\ 0.6861 & 0.6287 & -0.3660 \\ 0.1094 & 0.4082 & 0.9063 \end{bmatrix}} \, . </math> </td> </tr> </table> </td></tr></table>
Summary:
Please note that all contributions to JETohlineWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JETohlineWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Tiled Menu
Table of Contents
Old (VisTrails) Cover
Appendices
Variables & Parameters
Key Equations
Special Functions
Permissions
Formats
References
lsuPhys
Ramblings
Uploaded Images
Originals
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information