This series starts from 2D rotation matrices and takes us through the developments we have made to understand and describe rotations. It covers imaginary numbers, intrinsic and extrinsic rotations, Euler angles, quaternions, geometric algebra and Lie theory.
Rotation is linear and can be represented by a matrix.
First let's see that rotations are linear transformations.
then ends up .
and then ends up at the same point.
Now let's see linearity in action for scaling:
These two properties establish that rotations are linear transformations. Thus we can represent any rotation as a matrix. That is where is a matrix and is the vector to be rotated.
Also note that a rotation preserves the angles between two vectors. In other words, the dot product of two rotated vectors is the same as the dot product of the original vectors:
This implies that where is the identity matrix. Thus, the inverse of a rotation matrix is its transpose. It also reveals one more fact:
The columns of a rotation matrix are orthonormal.
It is important to understand how rotation transforms space. The visual aid below will help with it:
Note that all the above arguments are valid for rotations in any dimension and basis.