Section1.3Orientation of a Rigid Body: Direction Cosines
Our next task is to parametrize the orientation of body \(\cB\) relative to referential \(\cE\text{,}\) or equivalently the orientation of basis \((\bhb_1 , \bhb_2 , \bhb_3 )\) of \(\cB\) relative to basis \((\be_1 , \be_2 , \be_3 )\) of \(\cE\text{.}\) In some fields, such as aeronautics or celestial mechanics, the orientation is often referred to as the attitude.
One possible way to achieve this task is to determine the direction cosines between the two bases.
Definition1.3.1.Direction cosines.
The direction cosines of basis \((\bhb_1 , \bhb_2 , \bhb_3 )\) on basis \((\be_1 , \be_2 , \be_3 )\) are the scalars \(c_{ij}\) defined as
The matrix \([\cC_{EB}] \equiv [c_{ij}]
= [\bhb_1 | \bhb_2 | \bhb_3]_{(\be_1 , \be_2 , \be_3 )}\) is called direction cosine matrix: its column vectors are obtained by writing each basis vector \(\bhb_j\) of \(\cB\) on the basis of \(\cE\text{.}\)
This implies that the direction cosine matrix \([C_{BE}] = [\be_1 | \be_2| \be_3 ]_{(\bhb_1 , \bhb_2 , \bhb_3 )} \) is given by \([c_{ji}]\text{,}\) and that the inverse of matrix \([\cC_{EB}]\) is equal to its transpose:
The condition \([\cC_{EB}] [\cC_{EB}]^{T} = [\cI]\) characterizes an orthogonal matrix and is in fact equivalent to equations (1.3.3)-(1.3.5) and (1.3.6)-(1.3.8). Furthermore, the determinant of the direction cosine matrix is necessarily equal to \(+1\) since both bases are right-handed. Matrix \([\cC_{BE}]\) allows for the determination of the components \((v_1 , v_2 , v_3)\) of any vector \({\bV}\) on basis \((\bhb_1 , \bhb_2 , \bhb_3 )\) from its components \((V_1 , V_2 , V_3)\) on basis \((\be_1 , \be_2 , \be_3 )\)
where we have used \([\cC_{EB}] =[\cC_{BE}]^{T}\text{.}\)
Direction cosine matrix \([\cC_{EB}]\) also allows us to relate the matrix representations of any linear operator \(\cL: \bV \mapsto \bW = \cL(\bV)\) in the bases of \(\cE\) and \(\cB\) as follows:
This yields the following relationship between matrices \([\cL ]_B\) and \([\cL ]_E\) on bases \((\bhb_1 , \bhb_2 , \bhb_3 )\) and \((\be_1 , \be_2 , \be_3 )\text{:}\)
A special class of linear operators are rotations.
Definition1.3.2.Rotation.
The rotation\(\cR_{EB}\) is the linear operator which maps basis \((\be_1 , \be_2 , \be_3 )\) of \(\cE\) to basis \((\bhb_1 , \bhb_2 , \bhb_3 )\) of \(\cB\text{:}\)
Determination of \(\cR_{EB}\) is tantamount to the determination of the orientation of \(\cB\) relative to \(\cE\text{.}\)
Remark1.3.4.
The inverse of operator \(\cR_{EB}\) is \(\cR_{EB}^{-1}= \cR_{BE}\text{.}\)
Remark1.3.5.
The set of rotations is a group denoted \(SO(3)\text{.}\)
Remark1.3.6.
Rotations are not commutative: given two rotations \(\cR_1\) and \(\cR_2\text{,}\) the rotation \(\cR_1 \circ \cR_2\) is not, in general, equal to rotation \(\cR_2 \circ \cR_1\text{.}\)
Rotations and direction cosines are related according to the following result:
Corollary1.3.7.Rotations and direction cosines.
The matrix representation of rotation \(\cR_{EB}\) on basis \((\be_1 , \be_2 , \be_3 )\) or basis \((\bhb_1 , \bhb_2 , \bhb_3 )\) is the direction cosine matrix \([\cC_{EB}]\text{:}\)
Matrix \([\cR_{EB}]_{_E}\) has \(ij\)th element \(\cR_{EB} (\be_j)\cdot \be_i = \bhb_j\cdot \be_i\) which is equal to \(c_{ij}\) by definition. The second equality is more surprising: the \(ij\)th element of the matrix \([\cR_{EB}]_{_B}\) is given by
It is of interest to consider composition of rotations: consider a third rigid body (or referential) \(\cA\) of basis \((\bha_1,\bha_2,\bha_3)\) and consider the rotations \(\cR_{EA}\) and \(\cR_{AB}\) which satisfy
in terms of direction cosine matrices, according to (\ref{rotation-cosine}). To prove this result, consider an arbitrary vector \(\bV\) and denote by \([V]_E\text{,}\)\([V]_A\) and \([V]_B\) the components of \(\bV\) on the basis of \(\cE\text{,}\)\(\cA\) and \(\cB\text{,}\) respectively: we know that \([V]_E = [\cC_{EA}] [V]_A\) and \([V]_A = [\cC_{AB}] [V]_B\) leading to
Given the configuration shown below, find the matrix of the rotation which maps basis \((\be_1 , \be_2 , \be_3 )\) to basis \((\bhb_1 , \bhb_2 , \bhb_3 )\text{.}\)
Conversely, find out if the following matrices correspond to rotations:
For the first given matrix, the set \((\bhb_1,\bhb_2, \bhb_3) = (-\be_1, \be_2, \be_3)\) forms a basis of orthonormal unit vectors. However, it is not right-handed since \(\bhb_1\times \bhb_2 = -\bhb_3\text{:}\) this is not a rotation matrix. For the second matrix, it is easy to verify that \(\bhb_i \cdot \bhb_j = \delta_{ij}\) and that \(\bhb_1 \times \bhb_2 = \bhb_3\text{:}\) this is a rotation matrix.
Example1.3.10.
Given \(\te\) (\(0\leq \te \lt 2\pi\)), consider the rotation, denoted \(\cR_{\te,\be_3}\text{,}\) of angle \(\te\) about unit vector \(\be_3\text{.}\)
Construct the matrix representation \(\begin{bmatrix}\cR_{\te, \be_3} \end{bmatrix}_{_E} \) of \(\cR_{\te, \be_3}\text{.}\)
Solution.
With \(\bhb_1 =\cos\te \be_1 + \sin\te\be_2\text{,}\)\(\bhb_2 = -\sin\te \be_1 + \cos\te\be_2\text{,}\) and \(\bhb_3 =\be_3\text{,}\) we find
In conclusion, direction cosines naturally define the orientation of a rigid body and are associated with rotation operators. In practice, they are not convenient due to their redundancy and their nonlinear (quadratic) relationships. In the following sections, we will introduce alternative methods which define orientation in terms of three independent parameters.