Definition · applies to matrices · also called special orthogonal matrix, direction cosine 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

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