74. Rotation Matrix

A rotation matrix rotates vectors about the origin by an angle 𝜃 without changing their lengths.

74.1. 2D rotation

Rotation by angle 𝜃 counterclockwise about the origin:

𝑅(𝜃)=[cos𝜃sin𝜃sin𝜃cos𝜃]

Applied to 𝑥=[𝑥𝑦]:

𝑅(𝜃)𝑥=[𝑥cos𝜃𝑦sin𝜃𝑥sin𝜃+𝑦cos𝜃]
Example

Rotate [10] by 𝜃=90° (𝜋2):

𝑅(𝜋2)=[0110]𝑅(𝜋2)[10]=[01]

The unit 𝑥-vector becomes the unit 𝑦-vector. ✓

74.2. Properties

74.3. 3D rotations (about coordinate axes)

About the 𝑥-axis:

𝑅𝑥(𝜃)=[1000cos𝜃sin𝜃0sin𝜃cos𝜃]

About the 𝑦-axis:

𝑅𝑦(𝜃)=[cos𝜃0sin𝜃010sin𝜃0cos𝜃]

About the 𝑧-axis:

𝑅𝑧(𝜃)=[cos𝜃sin𝜃0sin𝜃cos𝜃0001]

74.4. General 3D rotation

Any 3D rotation is a composition of rotations about coordinate axes. Common parameterizations:

𝑅=𝐼+sin𝜃𝐾+(1cos𝜃)𝐾2

where 𝐾 is the skew-symmetric “cross-product matrix” of 𝑘̂

74.5. Eigenvalues

For a 2D rotation by 𝜃:

𝜆=𝑒±𝑖𝜃=cos𝜃±𝑖sin𝜃

Real eigenvalues only when 𝜃=0 (𝜆=1) or 𝜃=𝜋 (𝜆=1). Otherwise the eigenvalues are complex — rotations have no real eigenvectors (no fixed direction in the plane).

74.6. Connection to special orthogonal group

The set of all 𝑛×𝑛 rotation matrices forms the special orthogonal group 𝑆𝑂(𝑛):

𝑆𝑂(𝑛)={𝑄𝑛×𝑛:𝑄𝑇𝑄=𝐼,det(𝑄)=1}

Excluding the 1 determinant case removes reflections — see Reflection Matrix.

74.7. See also