Joseph Louis Lagrange was one of the greatest mathematicians of the eighteenth and early nineteenth centuries and he has left a remarkable legacy in both the fields of physics and mathematics. This volume begins by recounting the biographical highlights of his life and his contributions.

In the present chapter one of the cornerstones of the book in the form of the direction cosines and their relationship to the Euler angles is presented and elaborated upon. The direction cosines play an important role in the approach by Prof. Ranjan Vepa and are used extensively in Chap. 4.

1.1 Introductory Remarks

Joseph Louis Lagrange, originally Giuseppe Lodovico Lagrangia, was of French and Italian descent and was born in Turin in 1736 (see Rouse Ball [30, pp. 330–339]). Lagrange had originally intended to study law but while at college in Turin, he came across a tract by Halley which roused his enthusiasm for the analytical method. He thereupon applied himself to mathematics, and in his 17th year he became professor of mathematics in the royal military academy at Turin. Without assistance or guidance he entered upon a course of study which in 2 years placed him on a level with the greatest of his contemporaries. With the aid of his pupils he established a society which subsequently developed into the Turin Academy. Most of his earlier papers appear in the first five volumes of its transactions. At the age of 19 he communicated a general method of dealing with “isoperimetrical problems,” known now as the calculus of variations to Euler. This commanded Euler’s admiration, and the latter, for a time, courteously withheld some researches of his own on this subject from publication, so that the youthful Lagrange might complete his investigations and lay claim to being the first to posit the calculus of variations. Lagrange did quite as much as Euler towards the creation of the calculus of variations. The subject, as developed by Euler lacked an analytic foundation, and this Lagrange supplied. He separated the principles of this calculus from geometric considerations by which his predecessor had derived them. Euler had assumed as fixed, the limits of the integral, i.e. the extremities of the curve to be determined, but Lagrange removed this restriction and allowed all co-ordinates of the curve to vary at the same time. In 1766 Euler introduced the name “calculus of variations,” and did much to improve this science along the lines marked out by Lagrange.

In the year 1766, Euler left Berlin for St. Petersburg, and he pointed to Lagrange as being the only man capable of filling his place. D’Alembert recommended him at the same time. Frederick the Great thereupon sent a message to Turin, expressing the wish of “the greatest king of Europe” to have “the greatest mathematician” at his court. Lagrange went to Berlin, and remained there for 20 years. Frederick the Great held him in high esteem, and frequently conversed with him on the advantages of perfect regularity of life. This led Lagrange to cultivate regular habits. He worked no longer each day than experience taught him he could, without breaking down. His papers were carefully thought out before he began writing, and when he wrote he did so without a single correction. During the 20 years in Berlin he crowded the transactions of the Berlin Academy with memoirs, and also wrote the epoch-making work called the Mécanique Analytique. The approach used by Lagrange will be the subject matter of this volume and will be presented in the subsequent chapters.

Newton’s laws were formulated for a single particle and can be extended to systems of particles and rigid bodies. The equations of motion are expressed in terms of physical coordinates and forces, both quantities conveniently represented by vectors. For this reason, Newtonian mechanics is often referred to as vectorial mechanics. The main drawback of Newtonian mechanics is that it requires one free-body diagram for each of the masses in the system, thus necessitating the inclusion of reaction forces, the latter resulting from kinematical constraints ensuring that the individual bodies act together as a system. These reaction and constraint forces play the role of unknowns, which makes it necessary to work with a surplus of equations of motion, one additional equation for every unknown force. J.L. Lagrange reformulated Newton’s Laws in a way that eliminates the need to calculate forces on isolated parts of a mechanical system. A different approach to mechanics, referred to as analytical mechanics, or analytical dynamics, considers the system as a whole, rather than the individual components separately, a process that excludes the reaction and constraint forces automatically. This approach, due to Lagrange, permits the formulation of problems of dynamics in terms of two scalar functions, the kinetic energy and the potential energy, and an infinitesimal expression, the virtual work performed by the non-conservative forces. Analytical mechanics represents a broader and more abstract approach, as the equations of motion are formulated in terms of generalized coordinates and generalized forces, which are not necessarily physical coordinates and forces, although in certain cases they can be chosen as such. Any convenient set of variables obeying the constraints on a system can be used to describe the motion. In this manner, the mathematical formulation is rendered independent of any special system of coordinates. There are only as many equations to solve as there are physically significant variables (see Meirovitch [24, pp. 262–263]).

1.2 Direction Cosines and Euler Angles of Rotation

The relationship between direction cosines and Euler angles is presented as background material to be used in the subsequent portions of this text. This chapter has been adopted from Wells [51, pp. 139–141 and Appendix A, pp. 343–344]. The direction cosines l, m, n of line Ob, relative to axes X, Y, Z are just l = xr, m = yr, n = zr, where x, y, z are the X, Y, Z coordinates of the tip of r, where \(r=\sqrt {(x^2+y^2+z^2)}\) (see Fig. 1.1). It then follows that (x 2 + y 2 + z 2)∕r 2 = (x 2 + y 2 + z 2)∕(x 2 + y 2 + z 2) = 1.

Fig. 1.1
figure 1

Definition of direction cosines l, m, n

Assuming that coordinates X 1, Y 1, Z 1 form an inertial coordinate frame, while coordinates X, Y, Z are attached to a translating and rotating body, the angles between the X coordinate and coordinates X 1, Y 1, Z 1 are θ 11, θ 12, θ 13, respectively. Hence the direction cosines between coordinate X and coordinates X 1, Y 1, Z 1 are \(\alpha _{11}=\cos \theta _{11},\alpha _{12}=\cos \theta _{12},\alpha _{13}=\cos \theta _{13}\), respectively (see Fig. 1.2). The same relationships between the X coordinate and coordinates X 1, Y 1, Z 1 exist as for line Ob, that is:

$$\displaystyle \begin{aligned} \alpha_{11}^2+\alpha_{12}^2+\alpha_{13}^2=1 \end{aligned} $$
(1.1)

We can similarly show that the direction cosines between coordinate Y  and X 1, Y 1, Z 1, that is α 21, α 22, α 23 and between coordinate Z and X 1, Y 1, Z 1, that is α 31, α 32, α 33, respectively, obey the same relationship as in Eq. 1.1 or:

$$\displaystyle \begin{aligned} \alpha_{21}^2+\alpha_{22}^2+\alpha_{23}^2=1;\,\,\alpha_{31}^2+\alpha_{32}^2+\alpha_{33}^2=1 \end{aligned} $$
(1.2)

Consider that the body in Fig. 1.3 is fixed at O, but is free to rotate in an arbitrary and random fashion about this point. All quantities under consideration will be measured relative to the fixed inertial axis system X, Y, Z. At a given instant of time, the body is undergoing rotation about some line Oa with an angular velocity of ω. As a consequence of this rotation, the mass particle m′ possesses a linear velocity v normal to the Oa − m′ plane, of magnitude v = ωh, where h is the normal distance from m′ to the rotating Oa axis. The axis of rotation Oa has direction cosines with respect to the fixed coordinate system X, Y, Z of l, m, n, respectively. Similarly, the velocity vector v has direction cosines α 1, α 2, α 3 with respect to the X, Y, Z axes and its components along the X, Y, Z axes are, respectively, v x, v y, and v z. From the discussion related to Fig. 1.1 above, it follows that: α 1 = v xv, α 2 = v yv, α 3 = v zv. Similarly, ω is also composed of components along the X, Y, Z axes, that is: ω = [ω x, ω y, ω z]. The direction cosines may then be shown to be: l = ω xω, m = ω yω, n = ω zω. Recall that ω is directed along the line Oa. Now the velocity of the mass particle m′ may be written in the form: v = ω × r, where \(r=x\hat {i}+y\hat {j}+z\hat {k}\) and \(\omega =\omega _x\hat {i}+\omega _y\hat {j}+\omega _z\hat {k}\). Performing the above vector multiplication results in:

$$\displaystyle \begin{aligned} v_x=\omega_y z-\omega_z y;\,\,v_y=\omega_z x-\omega_x z;\,\,v_z=\omega_x y-\omega_y x \end{aligned} $$
(1.3)

However, α 1 = v xv = v xωh. This implies that:

$$\displaystyle \begin{aligned} \alpha_1=\frac{\omega_y z-\omega_z y}{\omega h}=\frac{\omega_y z}{\omega h}-\frac{\omega_z y}{\omega h} =\frac{m z - n y}{h} \end{aligned} $$
(1.4)

due to the fact that l = ω xω , m = ω yω, and n = ω zω. Hence the direction cosines α 1, α 2, and α 3 may be written as:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} \alpha_1&\displaystyle =&\displaystyle v_x/v=\frac{\omega_y z-\omega_z y}{\omega h}=\frac{\omega_y z}{\omega h}-\frac{\omega_z y}{\omega h} =\frac{m z - n y}{h} \\ \alpha_2&\displaystyle =&\displaystyle v_y/v=\frac{\omega_z x-\omega_x z}{\omega h}=\frac{\omega_z x}{\omega h}-\frac{\omega_x z}{\omega h} =\frac{n x - l z}{h} \\ \alpha_3&\displaystyle =&\displaystyle v_z/v=\frac{\omega_x y-\omega_y x}{\omega h}=\frac{\omega_x y}{\omega h}-\frac{\omega_y x}{\omega h} =\frac{l y - m x}{h} \end{array} \end{aligned} $$
(1.5)
Fig. 1.2
figure 2

Body translating and rotating, while X, Y, Z frame rotates about O relative to the body

Fig. 1.3
figure 3

Sketch of body, fixed at O, but free to rotate in any manner about this point

The body in Fig. 1.2 is assumed to be rotating and translating with respect to the inertial coordinate frame X 1, Y 1, Z 1. The X, Y, Z coordinate system, with its origin attached to the rigid body, at O, rotates in a random fashion relative to the body. The X′, Y, Z′ axes whose origin is also located at O remain parallel to the inertial axes X 1, Y 1, Z 1. The coordinates of m′ with respect to the X, Y, Z and X′, Y, Z′ axes, respectively, are: x, y, z and x′, y′, z′.

Letting ω represent the angular velocity of the body while u stands for the linear velocity of m′, each measured relative to X′, Y, Z′, the components of the vectors ω and u, along the X′, Y, Z′ axes are designated as \(\omega _x^{\prime },\omega _y^{\prime }, \omega _z^{\prime }\) and \(u_x^{\prime }, u_y^{\prime }, u_z^{\prime }\), respectively. Then akin to the fact established earlier that v x = ω y z − ω z y; v y = ω z x − ω x z; v z = ω x y − ω y x, we have: \(u_x^{\prime }=\omega _y^{\prime } z'-\omega _z^{\prime } y';\,\,u_y^{\prime }=\omega _z^{\prime } x'-\omega _x^{\prime } z';\,\,u_z^{\prime }=\omega _x^{\prime } y'-\omega _y^{\prime } x'\). Allowing u x, u y, u z to be the components of u along the momentary positions of the X, Y, Z axis frame, we can write:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} u_x = u_x^{\prime} \alpha_{11} + u_y^{\prime} \alpha_{12} + u_z^{\prime} \alpha_{13} \\ u_y = u_x^{\prime} \alpha_{21} + u_y^{\prime} \alpha_{22} + u_z^{\prime} \alpha_{23} \\ u_z = u_x^{\prime} \alpha_{31} + u_y^{\prime} \alpha_{32} + u_z^{\prime} \alpha_{33} \end{array} \end{aligned} $$
(1.6)

where α 11, α 12, α 13 are the direction cosines of X relative to X′, Y, Z′, α 21, α 22, α 23 are the direction cosines of Y  relative to X′, Y, Z′, and α 31, α 32, α 33 are the direction cosines of Z relative to X′, Y, Z′. Equation 1.6 may be understood by taking the partial derivative of u x with respect to \(u_x^{\prime }\), which results in: \(\frac {\partial u_x}{\partial u_x^{\prime }}=\alpha _{11}\). In other words, the cosine of the angle between u x and \(u_x^{\prime }\) is the same as the cosine of the angle between the X axis and the X′ axis. This statement also holds for the cosine of the angle between the X and the Y axes, etc. Another interpretation of the above equation is that u x is the sum of the geometric projections onto the X axis of the velocities \(u_x^{\prime },u_y^{\prime }\) and \(u_z^{\prime }\). A similar situation holds for u y and u z. Thus we have:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} u_x = (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{11}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{12}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{13} \\ u_y = (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{21}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{22}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{23} \\ u_z = (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{31}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{32}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{33} \end{array} \end{aligned} $$
(1.7)

The relationship between the X′ coordinate relative to X, Y, Z coordinates may similarly be shown to be of the form: x′ =  11 +  21 +  31 where α 11, α 21, α 31 are the direction cosines of X′ relative to X, Y, Z. We may show that for all three coordinates X′, Y, Z′ relative to the X, Y, Z coordinates, the relationship is the following:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} x'=x \alpha_{11}+y \alpha_{21}+z \alpha_{31} \\ y'=x \alpha_{12}+y \alpha_{22}+z \alpha_{32} \\ z'=x \alpha_{13}+y \alpha_{23}+z \alpha_{33} \end{array} \end{aligned} $$
(1.8)

where α 11, α 21, α 31 are the direction cosines of X′ relative to X, Y, Z, α 12, α 22, α 32 are the direction cosines of Y relative to X, Y, Z, and α 13, α 23, α 33 are the direction cosines of Z′ relative to X, Y, Z. Similarly, for angular rates \(\omega _x^{\prime },\omega _x^{\prime }\omega _x^{\prime }\), we have:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} \omega_x^{\prime}=\omega_x \alpha_{11}+\omega_y \alpha_{21}+\omega_z \alpha_{31} \\ \omega_y^{\prime}=\omega_x \alpha_{12}+\omega_y \alpha_{22}+\omega_z \alpha_{32} \\ \omega_z^{\prime}=\omega_x \alpha_{13}+\omega_y \alpha_{23}+\omega_z \alpha_{33} \end{array} \end{aligned} $$
(1.9)

Using the identities:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} u_x = (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{11}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{12}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{13} \\ u_y = (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{21}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{22}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{23} \\ u_z = (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{31}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{32}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{33} \end{array} \end{aligned} $$
(1.10)

and the values for x′, y′z′ and \(\omega _x^{\prime },\omega _y^{\prime },\omega _z^{\prime }\) in Eqs. 1.8 and 1.9, we have:

$$\displaystyle \begin{aligned} u_x &= (\omega_y^{\prime} z'-\omega_z^{\prime} y')\alpha_{11}+(\omega_z^{\prime} x'-\omega_x^{\prime} z')\alpha_{12}+(\omega_x^{\prime} y'-\omega_y^{\prime} x')\alpha_{13} \\ \Rightarrow u_x &= (\omega_y^{\prime}[x \alpha_{13}+y \alpha_{23}+z \alpha_{33}]-\omega_z^{\prime}[x \alpha_{12}+y \alpha_{22}+z \alpha_{32}])\alpha_{11}\\ & \quad +(\omega_z^{\prime} [x \alpha_{11}+y \alpha_{21}+z \alpha_{31}]-\omega_x^{\prime} [x \alpha_{13}+y \alpha_{23}+z \alpha_{33}])\alpha_{12}\\ & \quad +(\omega_x^{\prime} [x \alpha_{12}+y \alpha_{22}+z \alpha_{32}]-\omega_y^{\prime} [x \alpha_{11}+y \alpha_{21}+z \alpha_{31}])\alpha_{13}\\ \end{aligned} $$
(1.11)

It turns out that the coefficient which multiplies x is zero, or \(\frac {\partial u_x}{\partial x}=0\). This may be seen from the following expression:

$$\displaystyle \begin{aligned} \frac{\partial u_x}{\partial x}&= \alpha_{13} (\alpha_{12} [ \alpha_{11} \omega_x + \alpha_{21} \omega_y + \alpha_{31} \omega_z] - \alpha_{11} [\alpha_{12} \omega_x + \alpha_{22} \omega_y + \alpha_{32} \omega_z])\\ & \quad - \alpha_{12} (\alpha_{13} [\alpha_{11} \omega_x + \alpha_{21} \omega_y + \alpha_{31} \omega_z] - \alpha_{11} [\alpha_{13} \omega_x + \alpha_{23} \omega_y + \alpha_{33} \omega_z])\\ & \quad + \alpha_{11} (\alpha_{13} [\alpha_{12} \omega_x + \alpha_{22} \omega_y + \alpha_{32} \omega_z] - \alpha_{12} [\alpha_{13} \omega_x + \alpha_{23} \omega_y + \alpha_{33} \omega_z])\\ &= (\alpha_{13} \alpha_{12}- \alpha_{12} \alpha_{13})[ \alpha_{11} \omega_x + \alpha_{21} \omega_y + \alpha_{31} \omega_z]\\ & \quad + (\alpha_{11} \alpha_{13}-\alpha_{13} \alpha_{11})[\alpha_{12} \omega_x + \alpha_{22} \omega_y + \alpha_{32} \omega_z]\\ & \quad + (\alpha_{11} \alpha_{12}-\alpha_{12} \alpha_{11})[\alpha_{13} \omega_x + \alpha_{23} \omega_y + \alpha_{33} \omega_z]=0 \end{aligned} $$

thus implying that u x is of the form:

$$\displaystyle \begin{aligned} u_x&= \alpha_{11}\alpha_{23}\alpha_{32}\omega_z y - \alpha_{11}\alpha_{22}\alpha_{33}\omega_z y + \alpha_{12}\alpha_{21}\alpha_{33}\omega_z y - \alpha_{12}\alpha_{23}\alpha_{31}\omega_z y\\ & \quad - \alpha_{13}\alpha_{21}\alpha_{32}\omega_z y + \alpha_{13}\alpha_{22}\alpha_{31}\omega_z y + \alpha_{11}\alpha_{22}\alpha_{33}\omega_y z - \alpha_{11}\alpha_{23}\alpha_{32}\omega_y z\\ & \quad - \alpha_{12}\alpha_{21}\alpha_{33}\omega_y z + \alpha_{12}\alpha_{23}\alpha_{31}\omega_y z + \alpha_{13}\alpha_{21}\alpha_{32}\omega_y z - \alpha_{13}\alpha_{22}\alpha_{31}\omega_y z\\ &= (\omega_y z-\omega_z y)[\alpha_{11}\alpha_{22}\alpha_{33}- \alpha_{12}\alpha_{21}\alpha_{33}]\\ & \quad +(\omega_y z-\omega_z y)[\alpha_{13}\alpha_{21}\alpha_{32}- \alpha_{11}\alpha_{23}\alpha_{32}]\\ & \quad + (\omega_y z-\omega_z y)[\alpha_{12}\alpha_{23}\alpha_{31}- \alpha_{13}\alpha_{22}\alpha_{31}]\\ \end{aligned} $$

which may be simplified as follows:

$$\displaystyle \begin{aligned} u_x &= (\omega_y z-\omega_z y)\left(\underbrace{(\alpha_{11}\alpha_{22}-\alpha_{12}\alpha_{21})}_{=\alpha_{33}}\alpha_{33}+\underbrace{(\alpha_{13}\alpha_{21}-\alpha_{11}\alpha_{23})}_{=\alpha_{32}}\alpha_{32}\right. \\ &\quad \left.+\underbrace{(\alpha_{12}\alpha_{23}-\alpha_{13}\alpha_{22})}_{=\alpha_{31}}\alpha_{31})\right) =\underbrace{\left(\alpha_{31}^2+\alpha_{32}^2+\alpha_{33}^2\right)}_{=1}(\omega_y z-\omega_z y) \end{aligned} $$
(1.12)

since u x = ω y z − ω z y. Similarly u y and u z are:

$$\displaystyle \begin{aligned} u_y &= (\omega_z x-\omega_x z)\left(\underbrace{(\alpha_{12}\alpha_{31}-\alpha_{11}\alpha_{32})}_{=\alpha_{23}}\alpha_{23} +\underbrace{(\alpha_{11}\alpha_{33}-\alpha_{13}\alpha_{31})}_{=\alpha_{22}}\alpha_{22}\right.\\ & \quad \left. +\underbrace{(\alpha_{13}\alpha_{32}-\alpha_{12}\alpha_{33})}_{=\alpha_{21}}\alpha_{21})\right) =\underbrace{\left(\alpha_{23}^2+\alpha_{22}^2+\alpha_{21}^2\right)}_{=1}(\omega_z x-\omega_x z) \end{aligned} $$
$$\displaystyle \begin{aligned} u_z &= (\omega_y x-\omega_x y)\left(\underbrace{(\alpha_{22}\alpha_{31}-\alpha_{21}\alpha_{32})}_{=\alpha_{13}}\alpha_{13} +\underbrace{(\alpha_{21}\alpha_{33}-\alpha_{23}\alpha_{31})}_{=\alpha_{12}}\alpha_{12}\right.\\ & \quad \left. +\underbrace{(\alpha_{23}\alpha_{32}-\alpha_{33}\alpha_{22})}_{=\alpha_{11}}\alpha_{11})\right) =\underbrace{\left(\alpha_{13}^2+\alpha_{12}^2+\alpha_{11}^2\right)}_{=1}(\omega_y z-\omega_z y) \end{aligned} $$

The identities for α 31, α 32, and α 33 appear in Wells’ book [51, pp. 343] and will be developed in the sequel.

Let i 1, i 2, i 3 be the orthogonal unit vectors along the X 1, Y 1, Z 1 axes, respectively, and e 1, e 2, e 3 be the orthogonal unit vectors along the X, Y, Z axes. The direction cosines between the i 1 and e 1, e 2, and e 3 unit vectors are accordingly: α 11, α 21 and α 31. The i 1, i 2, and i 3 vectors may then be written in terms of the e 1, e 2, and e 3 vectors and the corresponding direction cosines between the two systems of unit vectors as follows:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} i_1=\alpha_{11}e_1+\alpha_{21}e_2+\alpha_{31}e_3 \\ i_2=\alpha_{12}e_1+\alpha_{22}e_2+\alpha_{32}e_3 \\ i_3=\alpha_{13}e_1+\alpha_{23}e_2+\alpha_{33}e_3 \end{array} \end{aligned} $$
(1.13)

Similarly, the e 1, e 2, and e 3 unit vectors may be expressed in terms of the i 1, i 2, i 3 unit vectors and the corresponding direction cosines between the two systems of unit orthogonal vectors as follows:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} e_1=\alpha_{11}i_1+\alpha_{12}i_2+\alpha_{13}i_3 \\ e_2=\alpha_{21}i_1+\alpha_{22}i_2+\alpha_{23}i_3 \\ e_3=\alpha_{31}i_1+\alpha_{32}i_2+\alpha_{33}i_3 \end{array} \end{aligned} $$
(1.14)

Since the unit vectors are orthogonal we have: e 1 ⋅ e 2 = 0; e 1 ⋅ e 3 = 0; e 2 ⋅ e 3 = 0; e 1 ⋅ e 1 = 1; e 2 ⋅ e 2 = 1; e 3 ⋅ e 3 = 1. Similarly for the i 1, i 2, i 3 orthogonal unit vectors we have: i 1 ⋅ i 2 = 0; i 1 ⋅ i 3 = 0; i 2 ⋅ i 3 = 0; i 1 ⋅ i 1 = 1; i 2 ⋅ i 2 = 1; i 3 ⋅ i 3 = 1. The dot products of the vectors i 1 ⋅ i 1, i 2 ⋅ i 2 and i 3 ⋅ i 3 will yield the following:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} i_1 \cdot i_1&\displaystyle =&\displaystyle (\alpha_{11}e_1+\alpha_{21}e_2+\alpha_{31}e_3 ) \cdot (\alpha_{11}e_1+\alpha_{21}e_2+\alpha_{31}e_3 ) \\ &\displaystyle \Rightarrow&\displaystyle 1=\alpha_{11}^2+\alpha_{21}^2+\alpha_{31}^2 \\ i_2 \cdot i_2&\displaystyle =&\displaystyle (\alpha_{12}e_1+\alpha_{22}e_2+\alpha_{32}e_3) \cdot (\alpha_{12}e_1+\alpha_{22}e_2+\alpha_{32}e_3) \\ &\displaystyle \Rightarrow&\displaystyle 1=\alpha_{12}^2+\alpha_{22}^2+\alpha_{32}^2 \\ i_3 \cdot i_3&\displaystyle =&\displaystyle (\alpha_{13}e_1+\alpha_{23}e_2+\alpha_{33}e_3) \cdot (\alpha_{13}e_1+\alpha_{23}e_2+\alpha_{33}e_3) \\ &\displaystyle \Rightarrow&\displaystyle 1=\alpha_{13}^2+\alpha_{23}^2+\alpha_{33}^2\vspace{3pt} \end{array} \end{aligned} $$
(1.15)

Similarly the dot products of the vectors i 1 ⋅ i 2, i 1 ⋅ i 2 and i 2 ⋅ i 3 result in:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} i_1 \cdot i_2&\displaystyle =&\displaystyle (\alpha_{11}e_1+\alpha_{21}e_2+\alpha_{31}e_3 ) \cdot (\alpha_{12}e_1+\alpha_{22}e_2+\alpha_{32}e_3) \\ &\displaystyle \Rightarrow&\displaystyle 0=\alpha_{11} \alpha_{12}+\alpha_{21} \alpha_{22}+\alpha_{31}\alpha_{31} \\ i_1 \cdot i_3&\displaystyle =&\displaystyle (\alpha_{11}e_1+\alpha_{21}e_2+\alpha_{31}e_3 ) \cdot (\alpha_{13}e_1+\alpha_{23}e_2+\alpha_{33}e_3) \\ &\displaystyle \Rightarrow&\displaystyle 0=\alpha_{11} \alpha_{13}+\alpha_{21} \alpha_{23}+\alpha_{31}\alpha_{33} \\ i_2 \cdot i_3&\displaystyle =&\displaystyle (\alpha_{12}e_1+\alpha_{22}e_2+\alpha_{32}e_3) \cdot (\alpha_{13}e_1+\alpha_{23}e_2+\alpha_{33}e_3) \\ &\displaystyle \Rightarrow&\displaystyle 0=\alpha_{12} \alpha_{13}+\alpha_{22} \alpha_{23}+\alpha_{32}\alpha_{33}\vspace{3pt} \end{array} \end{aligned} $$
(1.16)

The same procedure is employed on the e 1, e 2, and e 3 vectors, that is:

$$\displaystyle \begin{aligned} \begin{array}{rcl}{} e_1 \cdot e_1&\displaystyle =&\displaystyle (\alpha_{11}i_1+\alpha_{12}i_2+\alpha_{13}i_3) \cdot (\alpha_{11}i_1+\alpha_{12}i_2+\alpha_{13}i_3) \\ &\displaystyle \Rightarrow&\displaystyle 1=\alpha_{11}^2+\alpha_{12}^2+\alpha_{13}^2 \\ e_2 \cdot e_2&\displaystyle =&\displaystyle (\alpha_{21}i_1+\alpha_{22}i_2+\alpha_{23}i_3) \cdot (\alpha_{21}i_1+\alpha_{22}i_2+\alpha_{23}i_3) \\ &\displaystyle \Rightarrow&\displaystyle 1=\alpha_{21}^2+\alpha_{22}^2+\alpha_{23}^2 \\ e_3 \cdot e_3&\displaystyle =&\displaystyle (\alpha_{31}i_1+\alpha_{32}i_2+\alpha_{33}i_3) \cdot (\alpha_{31}i_1+\alpha_{32}i_2+\alpha_{33}i_3) \\ &\displaystyle \Rightarrow&\displaystyle 1= \alpha_{31}^2+\alpha_{32}^2+\alpha_{33}^2 \\ e_1 \cdot e_2&\displaystyle =&\displaystyle (\alpha_{11}i_1+\alpha_{12}i_2+\alpha_{13}i_3) \cdot (\alpha_{21}i_1+\alpha_{22}i_2+\alpha_{23}i_3) \\ &\displaystyle \Rightarrow&\displaystyle 0= \alpha_{11}\alpha_{21}+\alpha_{12}\alpha_{22}+\alpha_{13}\alpha_{23} \\ e_1 \cdot e_3&\displaystyle =&\displaystyle (\alpha_{11}i_1+\alpha_{12}i_2+\alpha_{13}i_3) \cdot (\alpha_{31}i_1+\alpha_{32}i_2+\alpha_{33}i_3) \\ &\displaystyle \Rightarrow&\displaystyle 0= \alpha_{11}\alpha_{31}+\alpha_{12}\alpha_{32}+\alpha_{13}\alpha_{33} \\ e_2 \cdot e_3&\displaystyle =&\displaystyle (\alpha_{21}i_1+\alpha_{22}i_2+\alpha_{23}i_3) \cdot (\alpha_{31}i_1+\alpha_{32}i_2+\alpha_{33}i_3) \\ &\displaystyle \Rightarrow&\displaystyle 0= \alpha_{21}\alpha_{31}+\alpha_{22}\alpha_{32}+\alpha_{23}\alpha_{33} \end{array} \end{aligned} $$
(1.17)

The following has been assumed:

  1. (a)

    X 1, Y 1, Z 1 is a fixed and stationary coordinate system.

  2. (b)

    X, Y, Z is a body fixed coordinate system where the body rotates around some fixed point O.

  3. (c)

    The direction cosines between the X coordinate and coordinates X 1, Y 1, Z 1 are α 11, α 12, α 13.

  4. (d)

    Similarly, for the direction cosines between the Y  coordinate and coordinates X 1, Y 1, Z 1, we have: α 21, α 22, α 23, etc.

Hence, the transformation of a vector from the stationary X 1, Y 1, Z 1 coordinate system to the rotating X, Y, Z coordinate system can be written in matrix form as follows:

$$\displaystyle \begin{aligned} \left[ \begin{array}{c} x_b \\ y_b \\ z_b\end{array} \right] = \left[\begin{array}{c c c} \alpha_{11} & \alpha_{12} & \alpha_{13}\\ \alpha_{21} & \alpha_{22} & \alpha_{23}\\ \alpha_{31} & \alpha_{32} & \alpha_{33}\end{array}\right] \left[ \begin{array}{c} x_{ea} \\ y_{ea} \\ z_{ea}\end{array} \right] \end{aligned} $$
(1.18)

where the vector \(\left [ \begin {array}{c} x_{ea} \\ y_{ea} \\ z_{ea}\end {array} \right ]\) is in the X 1, Y 1, Z 1 coordinate frame and the vector \(\left [ \begin {array}{c} x_b \\ y_b \\ z_b\end {array} \right ]\) is in the X, Y, Z coordinate frame. The rotation of the vector X 1, Y 1, Z 1 coordinates into the vector in X, Y, Z coordinates can be described by Euler angular transformations in matrix form as follows:

$$\displaystyle \begin{aligned} \left[ \begin{array}{c} x_b \\ y_b \\ z_b\end{array} \right] = \left[\begin{array}{c c c} \cos \theta \cos \psi & \cos \theta \sin \psi & -\sin \theta \\ \sin \phi \sin \theta \cos \psi -\cos \phi \sin \psi & \sin \phi \sin \theta \sin \psi +\cos \phi \cos \psi & \sin \phi \cos \theta \\ \cos \phi \sin \theta \cos \psi +\sin \phi \sin \psi & \cos \phi \sin \theta \sin \psi -\sin \phi \cos \psi & \cos \phi \cos \theta \end{array}\right] \left[ \begin{array}{c} x_{ea} \\ y_{ea} \\ z_{ea}\end{array} \right] \end{aligned} $$
(1.19)

Equating the two transformations we note that:

$$\displaystyle \begin{aligned} \alpha_{11}&= \cos \theta \cos \psi;\,\,\alpha_{12}=\cos \theta \sin \psi;\,\, \alpha_{13}=-\sin \theta \\ \alpha_{21}&= \sin \phi \sin \theta \cos \psi -\cos \phi \sin \psi;\,\,\alpha_{22}= \sin \phi \sin \theta \sin \psi +\cos \phi \cos \psi\\ \alpha_{23}&= \sin \phi \cos \theta;\,\, \alpha_{31}= \cos \phi \sin \theta \cos \psi +\sin \phi \sin \psi \\ \alpha_{32}&= \cos \phi \sin \theta \sin \psi -\sin \phi \cos \psi;\,\, \alpha_{33}= \cos \phi \cos \theta \\ \end{aligned} $$
(1.20)

Taking the product of α 22 ∗ α 33

$$\displaystyle \begin{aligned} \alpha_{22}*\alpha_{33}&=(\sin \phi \sin \theta \sin \psi +\cos \phi \cos \psi)*(\cos \phi \cos \theta ) \\ &= \cos \phi \cos \theta \sin \phi \sin \theta \sin \psi+\cos \theta \cos^2 \phi \cos \psi \\ \end{aligned} $$
(1.21)

Similarly the product of − α 23 ∗ α 32

$$\displaystyle \begin{aligned} -\alpha_{23}*\alpha_{32}&=-(\sin \phi \cos \theta)*(\cos \phi \sin \theta \sin \psi -\sin \phi \cos \psi) \\ &= -(\cos \phi \cos \theta \sin \phi \sin \theta \sin \psi)+\cos \theta \sin^2 \phi \cos \psi \\ \end{aligned} $$
(1.22)

Calculating α 22 ∗ α 33 − α 23 ∗ α 32, we have:

$$\displaystyle \begin{aligned} \alpha_{22}*\alpha_{33} -\alpha_{23}*\alpha_{32}&=(\cos \phi \cos \theta \sin \phi \sin \theta \sin \psi) \\ & \quad -(\cos \phi \cos \theta \sin \phi \sin \theta \sin \psi) \\ & \quad +\cos \theta \cos^2 \phi \cos \psi+\cos \theta \sin^2 \phi \cos \psi\ \\ &=\cos \theta \cos \psi = \alpha_{11} \end{aligned} $$
(1.23)

Similarly for α 12, we have: \(\alpha _{12}=\alpha _{23}*\alpha _{31} -\alpha _{33}*\alpha _{21}=\cos \theta \sin \psi \), which is expanded in the following equation:

$$\displaystyle \begin{aligned} \alpha_{23}*\alpha_{31}&=(\sin \phi \cos \theta)*(\cos \phi \sin \theta \cos \psi +\sin \phi \sin \psi) \\ &=\sin \phi \cos \theta \cos \phi \sin \theta \cos \psi+\sin^2 \phi \cos \theta \sin \psi \\ & \quad -\alpha_{33}*\alpha_{21}=-(\cos \phi \cos \theta)(\sin \phi \sin \theta \cos \psi -\cos \phi \sin \psi) \\ &=\cos^2 \phi \cos \theta \sin \psi- \cos \phi \cos \theta \sin \phi \sin \theta \cos \psi \\ &\Rightarrow \alpha_{23}*\alpha_{31} -\alpha_{33}*\alpha_{21}=\cos \theta \sin \psi \\ \end{aligned} $$
(1.24)

And finally for α 21 = α 32 ∗ α 13 − α 12 ∗ α 33, the result is:

$$\displaystyle \begin{aligned} \alpha_{32}*\alpha_{13} &=( \sin \phi \cos \psi-\cos \phi \sin \theta \sin \psi)(\sin \theta) \\ &=\sin \theta \sin \phi \cos \psi-\sin^2 \theta \cos \phi \sin \psi \\ & \quad -\alpha_{12}*\alpha_{33}=-(\cos \theta \sin \psi)(\cos \phi \cos \theta )=-\cos^2 \theta \sin \psi \cos \phi \\ & \quad \Rightarrow \alpha_{21}= \sin \theta \sin \phi \cos \psi-\sin^2 \theta \cos \phi \sin \psi -\cos^2 \theta \sin \psi \cos \phi \\ & = \sin \theta \sin \phi \cos \psi-\cos \phi \sin \psi \\ \end{aligned} $$
(1.25)

Following a similar procedure, all of the identities between the Euler angles and the direction cosines are as follows:

  1. 1.

    \(\alpha _{11}=\alpha _{22}*\alpha _{33} -\alpha _{23}*\alpha _{32}=\cos \theta \cos \psi \)

  2. 2.

    \(\alpha _{12}=\alpha _{23}*\alpha _{31} -\alpha _{33}*\alpha _{21}=\cos \theta \sin \psi \)

  3. 3.

    \(\alpha _{13}=\alpha _{21}*\alpha _{32} -\alpha _{31}*\alpha _{22}=-\sin \theta \)

  4. 4.

    \(\alpha _{21}=\alpha _{32}*\alpha _{13} -\alpha _{12}*\alpha _{33}=\sin \phi \sin \theta \cos \psi -\cos \phi \sin \psi \)

  5. 5.

    \(\alpha _{22}=\alpha _{33}*\alpha _{11}-\alpha _{13}*\alpha _{31}=\sin \phi \sin \theta \sin \psi +\cos \phi \cos \psi \)

  6. 6.

    \(\alpha _{23}=\alpha _{31}*\alpha _{12} -\alpha _{11}*\alpha _{32}=\sin \phi \cos \theta \)

  7. 7.

    \(\alpha _{31}=\alpha _{12}*\alpha _{23} -\alpha _{22}*\alpha _{13}= \cos \phi \sin \theta \cos \psi +\sin \phi \sin \psi \)

  8. 8.

    \(\alpha _{32}=\alpha _{13}*\alpha _{21} -\alpha _{11}*\alpha _{23}=\cos \phi \sin \theta \sin \psi -\sin \phi \cos \psi \)

  9. 9.

    \(\alpha _{33}=\alpha _{11}*\alpha _{22} -\alpha _{12}*\alpha _{21}=\cos \phi \cos \theta \)