Skip to content

Chapter 40. Rotation Operators

A rotation operator is a linear operator that turns vectors around the origin while preserving lengths, angles, and orientation. In Euclidean space, rotations are represented by orthogonal matrices with determinant 11. Orthogonal matrices preserve inner products, and rotations form the orientation-preserving part of the orthogonal transformations.

In the plane, rotation by angle θ\theta counterclockwise is represented by

Rθ=[cosθsinθsinθcosθ]. R_\theta= \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}.

For a vector

v=[xy], v= \begin{bmatrix} x\\ y \end{bmatrix},

the rotated vector is

Rθv=[xcosθysinθxsinθ+ycosθ]. R_\theta v= \begin{bmatrix} x\cos\theta-y\sin\theta\\ x\sin\theta+y\cos\theta \end{bmatrix}.

This is the standard rotation matrix for counterclockwise rotation of column vectors in the plane.

40.1 Rotation in the Plane

Let

v=[xy]R2. v= \begin{bmatrix} x\\ y \end{bmatrix} \in\mathbb{R}^2.

A rotation through angle θ\theta about the origin sends vv to

[xcosθysinθxsinθ+ycosθ]. \begin{bmatrix} x\cos\theta-y\sin\theta\\ x\sin\theta+y\cos\theta \end{bmatrix}.

Thus the rotation operator is

Rθ:R2R2, R_\theta:\mathbb{R}^2\to\mathbb{R}^2,

where

Rθ[xy]=[xcosθysinθxsinθ+ycosθ]. R_\theta \begin{bmatrix} x\\ y \end{bmatrix} = \begin{bmatrix} x\cos\theta-y\sin\theta\\ x\sin\theta+y\cos\theta \end{bmatrix}.

This map is linear because both output coordinates are linear expressions in xx and yy.

The matrix of RθR_\theta in the standard basis is

Rθ=[cosθsinθsinθcosθ]. R_\theta= \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}.

The first column is the image of e1e_1. The second column is the image of e2e_2:

Rθe1=[cosθsinθ],Rθe2=[sinθcosθ]. R_\theta e_1= \begin{bmatrix} \cos\theta\\ \sin\theta \end{bmatrix}, \qquad R_\theta e_2= \begin{bmatrix} -\sin\theta\\ \cos\theta \end{bmatrix}.

The standard basis is rotated by the same angle θ\theta.

40.2 Special Angles

Several rotations occur often.

For θ=0\theta=0,

R0=[1001]=I. R_0= \begin{bmatrix} 1 & 0\\ 0 & 1 \end{bmatrix} =I.

For θ=π2\theta=\frac{\pi}{2},

Rπ/2=[0110]. R_{\pi/2}= \begin{bmatrix} 0 & -1\\ 1 & 0 \end{bmatrix}.

This sends

[xy] \begin{bmatrix} x\\ y \end{bmatrix}

to

[yx]. \begin{bmatrix} -y\\ x \end{bmatrix}.

For θ=π\theta=\pi,

Rπ=[1001]=I. R_\pi= \begin{bmatrix} -1 & 0\\ 0 & -1 \end{bmatrix} =-I.

This sends every vector to its negative.

For θ=3π2\theta=\frac{3\pi}{2},

R3π/2=[0110]. R_{3\pi/2}= \begin{bmatrix} 0 & 1\\ -1 & 0 \end{bmatrix}.

This is clockwise rotation by 9090^\circ.

40.3 Rotation Preserves Length

A rotation does not change the Euclidean length of a vector.

Let

v=[xy]. v= \begin{bmatrix} x\\ y \end{bmatrix}.

Then

Rθv=[xcosθysinθxsinθ+ycosθ]. R_\theta v= \begin{bmatrix} x\cos\theta-y\sin\theta\\ x\sin\theta+y\cos\theta \end{bmatrix}.

Compute the squared length:

Rθv2=(xcosθysinθ)2+(xsinθ+ycosθ)2. \|R_\theta v\|^2 = (x\cos\theta-y\sin\theta)^2 + (x\sin\theta+y\cos\theta)^2.

Expand:

=x2cos2θ2xysinθcosθ+y2sin2θ+x2sin2θ+2xysinθcosθ+y2cos2θ. =x^2\cos^2\theta-2xy\sin\theta\cos\theta+y^2\sin^2\theta +x^2\sin^2\theta+2xy\sin\theta\cos\theta+y^2\cos^2\theta.

The mixed terms cancel. Therefore

Rθv2=x2(cos2θ+sin2θ)+y2(sin2θ+cos2θ). \|R_\theta v\|^2 = x^2(\cos^2\theta+\sin^2\theta) + y^2(\sin^2\theta+\cos^2\theta).

Since

cos2θ+sin2θ=1, \cos^2\theta+\sin^2\theta=1,

we get

Rθv2=x2+y2=v2. \|R_\theta v\|^2=x^2+y^2=\|v\|^2.

Hence

Rθv=v. \|R_\theta v\|=\|v\|.

40.4 Rotation Preserves Inner Products

Rotations also preserve inner products.

Let

u,vR2. u,v\in\mathbb{R}^2.

A rotation matrix satisfies

RθTRθ=I. R_\theta^TR_\theta=I.

Therefore

(Rθu)(Rθv)=(Rθu)T(Rθv)=uTRθTRθv=uTv=uv. (R_\theta u)\cdot(R_\theta v) = (R_\theta u)^T(R_\theta v) = u^TR_\theta^TR_\theta v = u^Tv = u\cdot v.

Since lengths and angles are determined by inner products, rotations preserve both lengths and angles. This is why rotations are rigid motions fixing the origin.

40.5 Orthogonality of Rotation Matrices

A real square matrix QQ is orthogonal if

QTQ=I. Q^TQ=I.

The plane rotation matrix is orthogonal. Indeed,

RθT=[cosθsinθsinθcosθ]. R_\theta^T= \begin{bmatrix} \cos\theta & \sin\theta\\ -\sin\theta & \cos\theta \end{bmatrix}.

Then

RθTRθ=[cosθsinθsinθcosθ][cosθsinθsinθcosθ]. R_\theta^TR_\theta = \begin{bmatrix} \cos\theta & \sin\theta\\ -\sin\theta & \cos\theta \end{bmatrix} \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}.

Multiplying gives

RθTRθ=[cos2θ+sin2θcosθsinθ+sinθcosθsinθcosθ+cosθsinθsin2θ+cos2θ]=I. R_\theta^TR_\theta = \begin{bmatrix} \cos^2\theta+\sin^2\theta & -\cos\theta\sin\theta+\sin\theta\cos\theta\\ -\sin\theta\cos\theta+\cos\theta\sin\theta & \sin^2\theta+\cos^2\theta \end{bmatrix} = I.

Thus

Rθ1=RθT. R_\theta^{-1}=R_\theta^T.

The inverse of a rotation through θ\theta is rotation through θ-\theta:

Rθ1=Rθ. R_\theta^{-1}=R_{-\theta}.

40.6 Determinant

The determinant of a plane rotation is

det(Rθ)=det[cosθsinθsinθcosθ]. \det(R_\theta) = \det \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}.

Compute:

det(Rθ)=cos2θ+sin2θ=1. \det(R_\theta) = \cos^2\theta+\sin^2\theta = 1.

Thus a rotation preserves oriented area.

Orthogonal transformations have determinant either 11 or 1-1. Those with determinant 11 preserve orientation. Those with determinant 1-1 reverse orientation. Rotations are the orientation-preserving orthogonal transformations.

40.7 Composition of Plane Rotations

Rotations in the plane compose by adding angles.

Let

Rα=[cosαsinαsinαcosα],Rβ=[cosβsinβsinβcosβ]. R_\alpha= \begin{bmatrix} \cos\alpha & -\sin\alpha\\ \sin\alpha & \cos\alpha \end{bmatrix}, \qquad R_\beta= \begin{bmatrix} \cos\beta & -\sin\beta\\ \sin\beta & \cos\beta \end{bmatrix}.

Then

RαRβ=[cos(α+β)sin(α+β)sin(α+β)cos(α+β)]. R_\alpha R_\beta = \begin{bmatrix} \cos(\alpha+\beta) & -\sin(\alpha+\beta)\\ \sin(\alpha+\beta) & \cos(\alpha+\beta) \end{bmatrix}.

Hence

RαRβ=Rα+β. R_\alpha R_\beta=R_{\alpha+\beta}.

This follows from the angle addition identities.

Because real number addition is commutative,

RαRβ=RβRα R_\alpha R_\beta=R_\beta R_\alpha

for plane rotations about the origin. This commutativity is special. General matrices do not commute, and rotations in three dimensions generally do not commute.

40.8 Powers of a Rotation

Since composition adds angles,

Rθk=Rkθ R_\theta^k=R_{k\theta}

for every integer k0k\geq 0.

Also,

Rθ1=Rθ, R_\theta^{-1}=R_{-\theta},

so the formula extends to negative integers:

Rθk=Rkθ R_\theta^k=R_{k\theta}

for all integers kk.

If θ\theta is a rational multiple of 2π2\pi, then some power of RθR_\theta is the identity. For example,

Rπ/24=R2π=I. R_{\pi/2}^4=R_{2\pi}=I.

If θ\theta is not a rational multiple of 2π2\pi, then the powers never return exactly to the identity, although the rotated directions may come arbitrarily close.

40.9 Eigenvalues in the Plane

A real plane rotation usually has no real eigenvectors.

Suppose

Rθv=λv R_\theta v=\lambda v

for some nonzero real vector vv. This means the rotation leaves the line spanned by vv invariant. For most angles, a rotation changes every line through the origin.

The characteristic polynomial of

Rθ=[cosθsinθsinθcosθ] R_\theta= \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}

is

p(λ)=λ22(cosθ)λ+1. p(\lambda)=\lambda^2-2(\cos\theta)\lambda+1.

The roots are

λ=cosθ±isinθ. \lambda=\cos\theta\pm i\sin\theta.

Using Euler notation, these are

λ=eiθ \lambda=e^{i\theta}

and

λ=eiθ. \lambda=e^{-i\theta}.

Thus over C\mathbb{C}, every plane rotation is diagonalizable unless the roots coincide. Over R\mathbb{R}, it has real eigenvectors only for special angles.

When θ=0\theta=0, both eigenvalues are 11. When θ=π\theta=\pi, both eigenvalues are 1-1. For other angles, the eigenvalues are nonreal complex conjugates.

40.10 Trace and Angle

For a plane rotation,

tr(Rθ)=2cosθ. \operatorname{tr}(R_\theta)=2\cos\theta.

Indeed,

tr[cosθsinθsinθcosθ]=cosθ+cosθ=2cosθ. \operatorname{tr} \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix} = \cos\theta+\cos\theta = 2\cos\theta.

Thus the angle is determined up to sign by the trace:

cosθ=tr(Rθ)2. \cos\theta=\frac{\operatorname{tr}(R_\theta)}{2}.

The trace cannot distinguish θ\theta from θ-\theta, because

cos(θ)=cosθ. \cos(-\theta)=\cos\theta.

The sign of the sine term determines the orientation of the rotation.

40.11 Rotations as Complex Multiplication

The plane R2\mathbb{R}^2 can be identified with the complex plane C\mathbb{C} by

[xy]z=x+iy. \begin{bmatrix} x\\ y \end{bmatrix} \leftrightarrow z=x+iy.

Multiplication by

eiθ=cosθ+isinθ e^{i\theta}=\cos\theta+i\sin\theta

gives

eiθz=(cosθ+isinθ)(x+iy). e^{i\theta}z = (\cos\theta+i\sin\theta)(x+iy).

Expanding,

eiθz=(xcosθysinθ)+i(xsinθ+ycosθ). e^{i\theta}z = (x\cos\theta-y\sin\theta) + i(x\sin\theta+y\cos\theta).

This is exactly the matrix formula for RθR_\theta.

Thus plane rotation is complex multiplication by a unit complex number.

This viewpoint explains why rotations in the plane commute:

eiαeiβ=ei(α+β)=eiβeiα. e^{i\alpha}e^{i\beta}=e^{i(\alpha+\beta)}=e^{i\beta}e^{i\alpha}.

40.12 The Rotation Group in the Plane

The set of all plane rotations about the origin is

SO(2)={RR2×2:RTR=I, det(R)=1}. SO(2)=\{R\in\mathbb{R}^{2\times 2}:R^TR=I,\ \det(R)=1\}.

This is the special orthogonal group in dimension 22.

It is a group under matrix multiplication.

The identity is

R0=I. R_0=I.

The inverse of RθR_\theta is

Rθ. R_{-\theta}.

The product of two rotations is another rotation:

RαRβ=Rα+β. R_\alpha R_\beta=R_{\alpha+\beta}.

Every element of SO(2)SO(2) has the form

[cosθsinθsinθcosθ] \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}

for some real θ\theta.

40.13 Rotations in Three Dimensions

A rotation in R3\mathbb{R}^3 is a linear transformation that preserves lengths, preserves angles, preserves orientation, and fixes the origin.

Its matrix RR satisfies

RTR=I R^TR=I

and

det(R)=1. \det(R)=1.

Thus

RSO(3). R\in SO(3).

Unlike plane rotations, rotations in R3\mathbb{R}^3 usually have an axis. Euler’s rotation theorem states that every rotation of three-dimensional space has a fixed axis, and the rotation acts as an ordinary plane rotation on the perpendicular plane.

40.14 Rotation About a Coordinate Axis

Rotation about the zz-axis by angle θ\theta has matrix

Rz(θ)=[cosθsinθ0sinθcosθ0001]. R_z(\theta)= \begin{bmatrix} \cos\theta & -\sin\theta & 0\\ \sin\theta & \cos\theta & 0\\ 0 & 0 & 1 \end{bmatrix}.

It rotates the xyxy-coordinates and leaves the zz-coordinate fixed.

Rotation about the xx-axis has matrix

Rx(θ)=[1000cosθsinθ0sinθcosθ]. R_x(\theta)= \begin{bmatrix} 1 & 0 & 0\\ 0 & \cos\theta & -\sin\theta\\ 0 & \sin\theta & \cos\theta \end{bmatrix}.

Rotation about the yy-axis has matrix

Ry(θ)=[cosθ0sinθ010sinθ0cosθ]. R_y(\theta)= \begin{bmatrix} \cos\theta & 0 & \sin\theta\\ 0 & 1 & 0\\ -\sin\theta & 0 & \cos\theta \end{bmatrix}.

Each matrix is orthogonal and has determinant 11.

40.15 Noncommutativity in Three Dimensions

Rotations in R3\mathbb{R}^3 generally do not commute.

Let Rx(α)R_x(\alpha) be rotation about the xx-axis and Ry(β)R_y(\beta) be rotation about the yy-axis. In general,

Rx(α)Ry(β)Ry(β)Rx(α). R_x(\alpha)R_y(\beta)\neq R_y(\beta)R_x(\alpha).

Geometrically, turning an object about one axis and then another usually gives a different final orientation from doing the turns in the opposite order.

This is a major difference between SO(2)SO(2) and SO(3)SO(3). The group SO(2)SO(2) is abelian. The group SO(3)SO(3) is nonabelian.

40.16 Axis and Angle in Three Dimensions

A nonidentity rotation in R3\mathbb{R}^3 has an axis. Vectors on the axis are fixed:

Rv=v. Rv=v.

Thus the axis is the eigenspace for eigenvalue 11:

ker(RI). \ker(R-I).

On the plane perpendicular to the axis, the operator acts as a two-dimensional rotation.

For a three-dimensional rotation matrix RR, the trace determines the rotation angle θ\theta by

tr(R)=1+2cosθ. \operatorname{tr}(R)=1+2\cos\theta.

Hence

cosθ=tr(R)12. \cos\theta=\frac{\operatorname{tr}(R)-1}{2}.

The axis is found by solving

(RI)v=0. (R-I)v=0.

This gives the fixed direction.

40.17 Rodrigues’ Rotation Formula

Let uR3u\in\mathbb{R}^3 be a unit vector. Rotation through angle θ\theta about the axis spanned by uu is given by Rodrigues’ formula:

R(v)=vcosθ+(u×v)sinθ+u(uv)(1cosθ). R(v)=v\cos\theta+(u\times v)\sin\theta+u(u\cdot v)(1-\cos\theta).

This formula decomposes vv into a component parallel to the axis and a component perpendicular to the axis.

The parallel part is unchanged. The perpendicular part is rotated in the plane normal to uu.

In matrix form, let

[u]×=[0u3u2u30u1u2u10]. [u]_\times= \begin{bmatrix} 0 & -u_3 & u_2\\ u_3 & 0 & -u_1\\ -u_2 & u_1 & 0 \end{bmatrix}.

Then

R=Icosθ+(1cosθ)uuT+sinθ[u]×. R=I\cos\theta+(1-\cos\theta)uu^T+\sin\theta [u]_\times.

This is the axis-angle representation of a three-dimensional rotation.

40.18 Skew-Symmetric Generators

Rotations are generated infinitesimally by skew-symmetric matrices.

A matrix AA is skew-symmetric if

AT=A. A^T=-A.

If AA is skew-symmetric, then

etA e^{tA}

is orthogonal for every real tt.

To see this, define

Q(t)=etA. Q(t)=e^{tA}.

Then

Q(t)TQ(t)=etATetA=etAetA=I. Q(t)^TQ(t)=e^{tA^T}e^{tA}=e^{-tA}e^{tA}=I.

Thus Q(t)Q(t) is orthogonal.

In the plane,

J=[0110] J= \begin{bmatrix} 0 & -1\\ 1 & 0 \end{bmatrix}

is skew-symmetric, and

eθJ=[cosθsinθsinθcosθ]=Rθ. e^{\theta J} = \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix} = R_\theta.

This connects rotations with matrix exponentials and Lie theory.

40.19 Rotations and Reflections

Rotations and reflections are both orthogonal transformations, but they differ by determinant.

A reflection has determinant 1-1 in the hyperplane case. A rotation has determinant 11.

In R2\mathbb{R}^2, every orthogonal matrix with determinant 11 is a rotation. Every orthogonal matrix with determinant 1-1 is a reflection across a line through the origin.

Thus

O(2) O(2)

splits into two parts:

SO(2) SO(2)

for rotations, and the determinant 1-1 part for reflections.

In higher dimensions, determinant 11 distinguishes orientation-preserving orthogonal transformations, though their geometry may involve rotations in several orthogonal planes.

40.20 Higher-Dimensional Rotations

In Rn\mathbb{R}^n, a rotation is usually defined as an element of

SO(n)={RRn×n:RTR=I, det(R)=1}. SO(n)=\{R\in\mathbb{R}^{n\times n}:R^TR=I,\ \det(R)=1\}.

Such a matrix preserves inner products and orientation.

In dimensions greater than 33, a rotation need not have a single axis in the familiar three-dimensional sense. Instead, an orthogonal transformation can be decomposed, after choosing a suitable orthonormal basis, into blocks:

[cosθjsinθjsinθjcosθj] \begin{bmatrix} \cos\theta_j & -\sin\theta_j\\ \sin\theta_j & \cos\theta_j \end{bmatrix}

on mutually orthogonal two-dimensional planes, together with possible 1×11\times 1 blocks equal to 11 or 1-1.

For proper rotations, the determinant of all blocks together is 11.

This block structure generalizes the plane rotation matrix.

40.21 Rotations in Computation

Rotation operators appear throughout computation.

In computer graphics, rotations orient cameras, objects, and coordinate frames. In robotics, they describe rigid-body orientation. In numerical linear algebra, orthogonal transformations help reduce matrices while preserving norms. In differential equations, rotations describe periodic and oscillatory behavior.

Because rotation matrices are orthogonal, they are numerically well-conditioned:

Rx=x. \|Rx\|=\|x\|.

Thus applying a rotation does not magnify Euclidean error. This is one reason orthogonal transformations are preferred in stable numerical algorithms.

40.22 Summary

A rotation operator is a linear transformation that preserves lengths, angles, and orientation.

In the plane, rotation by angle θ\theta has matrix

Rθ=[cosθsinθsinθcosθ]. R_\theta= \begin{bmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{bmatrix}.

It satisfies

RθTRθ=I,det(Rθ)=1,Rθ1=Rθ. R_\theta^TR_\theta=I, \qquad \det(R_\theta)=1, \qquad R_\theta^{-1}=R_{-\theta}.

Plane rotations compose by adding angles:

RαRβ=Rα+β. R_\alpha R_\beta=R_{\alpha+\beta}.

In three dimensions, a rotation matrix lies in

SO(3), SO(3),

has determinant 11, and, by Euler’s rotation theorem, has an axis of rotation. The axis is the eigenspace for eigenvalue 11.

In higher dimensions, rotations are elements of

SO(n). SO(n).

They preserve the inner product and orientation, and they can be studied through orthogonal block decompositions.

Rotation operators are central examples of linear maps because they combine geometry, algebra, groups, eigenvalues, matrix exponentials, and numerical stability.