In this aerospace and robotics tutorial, we explain a very important concept for understanding the kinematics and dynamics of rigid bodies. Namely, we explain the concept of rotation matrices. In this tutorial, we derive the expression for the X-axis rotation matrix and provide a graphical interpretation. The YouTube tutorial accompanying this tutorial is given below.
Let us consider the rotation of one coordinate system with respect to another one which is shown in the figure below.
There are two coordinate systems A and B, with the coordinates
Next, we introduce the vector
Problem: Knowing the coordinates of the vector
To address this problem, we introduce the following notation:
(1)
denotes the vector
(2)
denotes the vector
It should be kept in mind that the vectors
(3)
The vector
(4)
Here one thing should always be kept in mind. The unit vectors of both coordinate systems
(5)
That is, we have
(6)
By substituting (3) and (4) in (6), we have
(7)
By scalarly multiplying the equation (7) with
(8)
By scalarly multiplying the equation (7) with
(9)
By scalarly multiplying the equation (7) with
(10)
Let us write the equations (8), (9), and (10) together
(11)
The last three equations can be written in the matrix form as follows
(12)
The last equation can be written compactly
(13)
where
(14)
The matrix
Since the vectors
(15)
By substituting (15) in (14), we have
(16)
The matrix defined in (16) is the rotation matrix defining the rotation of two coordinate systems around the
To summarize, the expression
(17)
implements a mapping. It transforms the projections of the vector
Another important property of the rotation matrices is that they are orthogonal, that is,
(18)
This is important since from (17), we can write
(19)
More about the properties of the rotation matrices can be found here.