Rotation Matrix
Undergraduate
A rotation matrix is a real $n \times n$ matrix $R$ such that
\[R\trans R = I \quad \text{and} \quad \det R = 1.\]Examples
Worked examples
-
The rotation of space by $90^\circ$ about the $y$-axis, counterclockwise when viewed from the positive $y$-axis UndergraduateValue:\[R = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ -1 & 0 & 0 \end{bmatrix}\]The rotation matrix of the rotation by $90^\circ$ about the $y$-axis has the images of the coordinate axes as its columns: the $x$-axis turns to the negative $z$-axis, the $y$-axis stays fixed, and the $z$-axis turns to the $x$-axis.
-
The rotation of space by $90^\circ$ about the $z$-axis, counterclockwise when viewed from the positive $z$-axis UndergraduateValue:\[R = \begin{bmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}\]The rotation matrix of the rotation by $90^\circ$ about the $z$-axis has the images of the coordinate axes as its columns: the $x$-axis turns to the $y$-axis, the $y$-axis turns to the negative $x$-axis, and the $z$-axis stays fixed.
-
Value:
$R = I$
The rotation matrix of the identity rotation is the identity matrix $I$, because $I \vect{v} = \vect{v}$ for every vector $\vect{v}$.
Properties
- The columns of a rotation matrix are orthonormal and form a right-handed basis. When $R$ describes the orientation of a rigid body, its columns are the axes of the body, written in the reference frame.
- The inverse of a rotation matrix $R$ is its transpose: $R^{-1} = R\trans$.
- The product of two rotation matrices is a rotation matrix, and it represents doing one rotation after the other. The rotation matrices form the group $\mathrm{SO}(n)$.
- A $3 \times 3$ rotation matrix has nine entries but describes only three degrees of freedom, because the condition $R\trans R = I$ imposes six equations. After rounding errors, such as in the numerical integration of a rotating body, a computed matrix drifts away from satisfying $R\trans R = I$ and must be corrected.
Distinctions involving this term
- Representations of Orientation and Rotation: Euler angles, axis–angle representations, rotation matrices, and unit quaternions are four ways to write down a rotation or the orientation of a rigid body in three-dimensional space. Euler angles use three angles of turns about coordinate axes, which are easy to picture but fail to be unique at gimbal lock. An axis–angle representation uses a unit vector along the axis of the rotation and the angle turned about it, which is easy to picture but composes by no simple formula. A rotation matrix uses a $3 \times 3$ matrix with orthonormal columns, which composes by matrix multiplication but has nine entries for three degrees of freedom. A unit quaternion uses four numbers with one condition, which composes by quaternion multiplication and has no gimbal lock, but each rotation has two unit quaternions, $q$ and $-q$.
All definitions · All distinctions · All examples · Notation