Ma · Mathematics

What Is the Generator of a Rotation Matrix?

Published By the 9to5Science editorial team

At a glance

  1. 1. Choose the convention

    A rotation generator is usually a matrix whose exponential gives the rotation.

  2. 2. Write the generator

    In two dimensions use the standard skew-symmetric matrix; in three dimensions use the cross-product matrix of the rotation axis.

  3. 3. Exponentiate

    Compute the matrix exponential to obtain the rotation through the desired angle.

  4. 4. Check the result

    Confirm that the generator is skew-symmetric and that the exponential has the expected angle and axis.

Advertisement

A rotation matrix describes a finite rotation, while its generator describes how the rotation begins to change. The usual meaning is a matrix AA such that a continuously parameterized rotation is

R(t)=etA,R(t)=e^{tA},

where etAe^{tA} is the matrix exponential. For rotations, the generator is skew-symmetric: AT=−AA^T=-A. This property ensures that the exponential is orthogonal and has determinant 11.

Sometimes “generator” is used more loosely to mean an angle-and-axis description or a matrix used to construct rotations. The exponential definition makes the distinction precise and works in both two and three dimensions.

The generator of a planar rotation

The standard counterclockwise rotation through angle θ\theta is

R(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ).R(\theta)= \begin{pmatrix} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{pmatrix}.

Define the matrix

J=(0−110).J= \begin{pmatrix} 0 & -1\\ 1 & 0 \end{pmatrix}.

Since J2=−IJ^2=-I, its exponential has the same sine-and-cosine pattern as the rotation matrix:

R(θ)=eθJ.R(\theta)=e^{\theta J}.

So JJ is the generator when the parameter is the angle itself. If the angle changes at a constant rate ω\omega, so that θ(t)=ωt\theta(t)=\omega t, then the time-dependent rotation is

R(t)=etA,A=ωJ.R(t)=e^{tA}, \qquad A=\omega J.

The factor ω\omega matters: JJ generates rotation per unit angle, while ωJ\omega J generates rotation per unit time.

The generator in three dimensions

A rotation in three dimensions has an axis as well as an angle. Let ω=(ωx,ωy,ωz)T\boldsymbol{\omega}=(\omega_x,\omega_y,\omega_z)^T be an angular-velocity vector. Its cross-product matrix is

[ω]×=(0−ωzωyωz0−ωx−ωyωx0).[\boldsymbol{\omega}]_\times= \begin{pmatrix} 0 & -\omega_z & \omega_y\\ \omega_z & 0 & -\omega_x\\ -\omega_y & \omega_x & 0 \end{pmatrix}.

For any vector x\mathbf{x}, multiplying by this matrix performs the cross product:

[ω]×x=ω×x.[\boldsymbol{\omega}]_\times\mathbf{x}=\boldsymbol{\omega}\times\mathbf{x}.

The generator is A=[ω]×A=[\boldsymbol{\omega}]_\times, and the rotation after time tt is

R(t)=et[ω]×.R(t)=e^{t[\boldsymbol{\omega}]_\times}.

If a unit vector u\mathbf{u} is the axis and θ\theta is the rotation angle, use A=θ[u]×A=\theta[\mathbf{u}]_\times for the finite rotation R=eAR=e^A. Here [u]×[\mathbf{u}]_\times has the same form as above, with ωx,ωy,ωz\omega_x,\omega_y,\omega_z replaced by ux,uy,uzu_x,u_y,u_z.

Expanding the exponential gives Rodrigues’ rotation formula. With K=[u]×K=[\mathbf{u}]_\times and K2=uuT−IK^2=\mathbf{u}\mathbf{u}^T-I, it is

R=eθK=I+sin⁡θK+(1−cos⁡θ)K2.R=e^{\theta K}=I+\sin\theta K+(1-\cos\theta)K^2.

Worked example: a quarter-turn about the z-axis

For a rotation about the positive zz-axis, choose u=(0,0,1)T\mathbf{u}=(0,0,1)^T. Then

K=[u]×=(0−10100000).K=[\mathbf{u}]_\times= \begin{pmatrix} 0 & -1 & 0\\ 1 & 0 & 0\\ 0 & 0 & 0 \end{pmatrix}.

A quarter-turn has θ=π/2\theta=\pi/2, so its generator is A=(π/2)KA=(\pi/2)K. Using sin⁡(π/2)=1\sin(\pi/2)=1 and 1−cos⁡(π/2)=11-\cos(\pi/2)=1 in Rodrigues’ formula gives

R=I+K+K2=(0−10100001).R=I+K+K^2= \begin{pmatrix} 0 & -1 & 0\\ 1 & 0 & 0\\ 0 & 0 & 1 \end{pmatrix}.

This matrix maps the xx-axis to the yy-axis, leaves the zz-axis fixed, and rotates vectors counterclockwise by 9090 degrees when viewed from the positive zz direction.

Recovering a generator from a rotation

If you know a three-dimensional rotation matrix RR, first identify its axis and angle. The angle θ\theta can be obtained from

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

For an angle strictly between 00 and π\pi, the axis can be recovered from the antisymmetric part:

[u]×=R−RT2sin⁡θ.[\mathbf{u}]_\times=\frac{R-R^T}{2\sin\theta}.

Then a corresponding generator is A=θ[u]×A=\theta[\mathbf{u}]_\times. This extraction formula needs special care at θ=0\theta=0 and θ=π\theta=\pi, where its denominator vanishes. At zero rotation, A=0A=0 is a generator; at a half-turn, find the axis from the eigenvector with eigenvalue 11.

A rotation matrix does not always have just one generator. Rotating by θ+2πk\theta+2\pi k about the same axis, for any integer kk, gives the same rotation. The matrix logarithm is therefore not unique, even though the principal angle-axis description chooses an angle in [0,π][0,\pi].

Common mistakes

  • Mixing up the angle and the generator: The generator is a matrix; the angle is a scalar parameter multiplying it in the exponential.
  • Using a symmetric matrix: A rotation generator must be skew-symmetric, not symmetric.
  • Reversing the sign: Changing AA to −A-A reverses the rotation direction. Check the sign against the intended right-hand rule or planar convention.
  • Assuming every rotation has one unique generator: The exponential map is many-to-one because angles differing by full turns describe the same rotation.
  • Confusing angular speed with angle: For a time-dependent rotation, include the rate in AA; its units are angle per unit time.

References

  1. Brian C. Hall, Lie Groups, Lie Algebras, and Representations: An Elementary Introduction
  2. James R. Munkres, Analysis on Manifolds

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.