Algorithm Search⌘K

Theoremcore

Rodrigues' rotation formula

Also called Rodrigues formula, Euler-Rodrigues formula.

The rotation by an angle theta about a unit axis w is exp([w] theta) = I + sin(theta) [w] + (1 - cos(theta)) [w]^2, the closed form of the exponential on so(3).

Rodrigues' rotation formula gives the matrix of the rotation by an angle θ\theta about a unit axis ω^\hat\omega as R=I+sin⁡θ [ω^]+(1−cos⁡θ)[ω^]2R = I + \sin\theta\,[\hat\omega] + (1 - \cos\theta)[\hat\omega]^2, where [ω^][\hat\omega] is the skew-symmetric matrix of ω^\hat\omega. The same matrix is the matrix exponential e[ω^]θe^{[\hat\omega]\theta}, so the formula sums the infinite exponential series in closed form with one sine and one cosine. Applied to a vector xx, it reads Rx=cos⁡θ x+sin⁡θ (ω^×x)+(1−cos⁡θ)(ω^⋅x) ω^Rx = \cos\theta\, x + \sin\theta\,(\hat\omega \times x) + (1 - \cos\theta)(\hat\omega \cdot x)\,\hat\omega. It is the basic tool to turn the axis-angle representation of a rotation into a matrix in the special orthogonal group SO(3).

Statement

Theorem. Let ω^∈R3\hat\omega \in \mathbb{R}^3 be a unit vector and θ∈R\theta \in \mathbb{R}. Then

e[ω^]θ=I+sin⁡θ [ω^]+(1−cos⁡θ)[ω^]2.e^{[\hat\omega]\theta} = I + \sin\theta\,[\hat\omega] + (1 - \cos\theta)[\hat\omega]^2 .

This matrix is in SO(3), it keeps ω^\hat\omega fixed, and it turns every vector orthogonal to ω^\hat\omega by the angle θ\theta, counterclockwise when seen from the tip of ω^\hat\omega.

For a vector ω≠0\omega \ne 0 that is not of unit length, put θ=∣ω∣\theta = |\omega| and ω^=ω/θ\hat\omega = \omega/\theta:

e[ω]=I+sin⁡θθ[ω]+1−cos⁡θθ2[ω]2.e^{[\omega]} = I + \frac{\sin\theta}{\theta}[\omega] + \frac{1 - \cos\theta}{\theta^2}[\omega]^2 .

In plain words

To turn a vector about an axis, split it into the part along the axis and the part across the axis. The part along the axis does not change. The part across the axis turns in its plane, like the hand of a clock. After the turn, the part across the axis is a mix of its old direction and the direction at a right angle to it in the same plane. The amounts of the mix are the cosine and the sine of the angle. The formula writes these three steps as one matrix. It also shows that adding up the infinite sum that defines the exponential of a turning speed gives exactly this matrix.

Proof

We use two facts about the unit vector ω^\hat\omega and K=[ω^]K = [\hat\omega]. First, for every xx, K2x=ω^×(ω^×x)=(ω^⋅x)ω^−xK^2 x = \hat\omega \times (\hat\omega \times x) = (\hat\omega \cdot x)\hat\omega - x, so K2=ω^ω^T−IK^2 = \hat\omega\hat\omega^{\mathsf T} - I. Second, K3=Kω^ω^T−K=−KK^3 = K\hat\omega\hat\omega^{\mathsf T} - K = -K, because Kω^=ω^×ω^=0K\hat\omega = \hat\omega \times \hat\omega = 0. By induction, K2j+1=(−1)jKK^{2j+1} = (-1)^j K and K2j+2=(−1)jK2K^{2j+2} = (-1)^j K^2 for every j≥0j \ge 0.

The exponential series converges absolutely, so we may split it into the term k=0k = 0, the odd terms and the even terms with k≥2k \ge 2:

eKθ=I+∑j≥0θ2j+1(2j+1)!K2j+1+∑j≥0θ2j+2(2j+2)!K2j+2=I+(∑j≥0(−1)jθ2j+1(2j+1)!)K+(∑j≥0(−1)jθ2j+2(2j+2)!)K2.e^{K\theta} = I + \sum_{j \ge 0} \frac{\theta^{2j+1}}{(2j+1)!} K^{2j+1} + \sum_{j \ge 0} \frac{\theta^{2j+2}}{(2j+2)!} K^{2j+2} = I + \Big(\sum_{j \ge 0} \frac{(-1)^j\theta^{2j+1}}{(2j+1)!}\Big) K + \Big(\sum_{j \ge 0} \frac{(-1)^j\theta^{2j+2}}{(2j+2)!}\Big) K^2 .

The first sum is the series of sin⁡θ\sin\theta, and the second sum is the series of 1−cos⁡θ1 - \cos\theta. This proves the formula.

The matrix is a rotation. Since KT=−KK^{\mathsf T} = -K, (eKθ)T=e−Kθ(e^{K\theta})^{\mathsf T} = e^{-K\theta}, and eKθe−Kθ=Ie^{K\theta}e^{-K\theta} = I because KθK\theta and −Kθ-K\theta commute. So R=eKθR = e^{K\theta} is orthogonal. Also det⁡eKθ=etr⁡Kθ=e0=1\det e^{K\theta} = e^{\operatorname{tr} K\theta} = e^0 = 1. So R∈SO(3)R \in SO(3).

The matrix is the rotation about ω^\hat\omega. Rω^=ω^R\hat\omega = \hat\omega, because Kω^=0K\hat\omega = 0. Let aa be a unit vector orthogonal to ω^\hat\omega and b=ω^×ab = \hat\omega \times a. Then Ka=bKa = b, K2a=−aK^2 a = -a, Kb=ω^×b=−aKb = \hat\omega \times b = -a and K2b=−bK^2 b = -b. So Ra=a+sin⁡θ b−(1−cos⁡θ) a=cos⁡θ a+sin⁡θ bRa = a + \sin\theta\, b - (1 - \cos\theta)\, a = \cos\theta\, a + \sin\theta\, b, and in the same way Rb=−sin⁡θ a+cos⁡θ bRb = -\sin\theta\, a + \cos\theta\, b. This is the rotation by θ\theta in the plane of aa and bb, in the direction from aa to b=ω^×ab = \hat\omega \times a, which is counterclockwise seen from the tip of ω^\hat\omega.

The vector form follows from Kx=ω^×xK x = \hat\omega \times x and K2x=(ω^⋅x)ω^−xK^2 x = (\hat\omega \cdot x)\hat\omega - x. The form for a vector ω\omega of any length follows from [ω]=θK[\omega] = \theta K. □\square

Consequences

  • The angle from the trace. tr⁡R=3+0+(1−cos⁡θ)tr⁡K2=1+2cos⁡θ\operatorname{tr} R = 3 + 0 + (1 - \cos\theta)\operatorname{tr}K^2 = 1 + 2\cos\theta, since tr⁡K2=−2\operatorname{tr}K^2 = -2.
  • The axis from the skew part. 12(R−RT)=sin⁡θ K\tfrac12(R - R^{\mathsf T}) = \sin\theta\, K. These two facts invert the formula; the logarithm map of SO(3) does this in a stable way.
  • The exponential is onto. With Euler's rotation theorem, every rotation is e[ω^]θe^{[\hat\omega]\theta} for some ω^\hat\omega and θ∈[0,π]\theta \in [0, \pi].
  • Rigid motions. The exponential map of SE(3) uses the formula for its rotation block and a second closed form for its translation.
  • Unit quaternions. The unit quaternion q=(cos⁡θ2,sin⁡θ2 ω^)q = (\cos\tfrac\theta2, \sin\tfrac\theta2\,\hat\omega) gives the same rotation. Inserting it into the quaternion rotation formula and using cos⁡θ=1−2sin⁡2θ2\cos\theta = 1 - 2\sin^2\tfrac\theta2 and sin⁡θ=2sin⁡θ2cos⁡θ2\sin\theta = 2\sin\tfrac\theta2\cos\tfrac\theta2 gives Rodrigues' formula again.
  • Small rotations. To first order in θ\theta, R≈I+θKR \approx I + \theta K, so a small rotation moves a point xx by θ ω^×x\theta\,\hat\omega \times x. This is the linear model behind the small displacement torsor, and the second-order term (1−cos⁡θ)K2(1 - \cos\theta)K^2 bounds its error by about θ2∣x∣/2\theta^2|x|/2.

Example. For ω^=(1,1,1)/3\hat\omega = (1, 1, 1)/\sqrt3 and θ=2π/3\theta = 2\pi/3, sin⁡θ=3/2\sin\theta = \sqrt3/2 and 1−cos⁡θ=3/21 - \cos\theta = 3/2. Then sin⁡θ K=12[(1,1,1)]\sin\theta\,K = \tfrac12[(1, 1, 1)] and (1−cos⁡θ)K2=12J−32I(1 - \cos\theta)K^2 = \tfrac12 J - \tfrac32 I, where JJ is the matrix of ones. The sum is R=(001100010)R = \begin{pmatrix} 0 & 0 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \end{pmatrix}, the rotation that maps x→y→z→xx \to y \to z \to x.

Tightness

  • The axis must be a unit vector. The first form uses K3=−KK^3 = -K, which holds only for ∣ω^∣=1|\hat\omega| = 1. For any other length, the angle is ∣ω∣|\omega| and the factors change as in the second form.
  • The angle is not unique. θ\theta and θ+2π\theta + 2\pi give the same RR, and so do (ω^,θ)(\hat\omega, \theta) and (−ω^,−θ)(-\hat\omega, -\theta). At θ=π\theta = \pi, ω^\hat\omega and −ω^-\hat\omega give the same RR with the same angle.
  • Dimension 3. In dimension 4 and above, a skew-symmetric matrix can turn two orthogonal planes at different speeds, and then A3=−c2AA^3 = -c^2A fails for every cc. The exponential is then a sum over the planes, one Rodrigues-type term per plane, not one formula with one angle.
  • Numerics. The second form divides by θ\theta and θ2\theta^2. For small θ\theta, (1−cos⁡θ)/θ2(1 - \cos\theta)/\theta^2 loses digits to cancellation, and code uses a Taylor series below a threshold.

History

Euler studied finite rotations about an axis in the 1770s, and Cheng and Gupta (1989) report that the formula in its essence goes back to him. Rodrigues (1840) studied the geometry of rigid displacements and the composition of two rotations, and the formula carries his name. The form as the closed form of the matrix exponential e[ω^]θe^{[\hat\omega]\theta} is the one used in the robotics textbooks of Murray, Li and Sastry (1994) and of Lynch and Park (2017).

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 3, Section 3.2.3 (exponential coordinate representation of rotation, the matrix exponential of a rotation and Rodrigues' formula)
  2. Richard M. Murray, Zexiang Li and S. Shankar Sastry, A Mathematical Introduction to Robotic Manipulation, CRC Press, 1994, Chapter 2, Section 2.2 (exponential coordinates for rotation and Rodrigues' formula)
  3. Olinde Rodrigues, Des lois géométriques qui régissent les déplacements d'un système solide dans l'espace, et de la variation des coordonnées provenant de ces déplacements considérés indépendamment des causes qui peuvent les produire, Journal de Mathématiques Pures et Appliquées, série 1, 5, 380 to 440, 1840, the whole paper (the geometry of rigid displacements and the composition of rotations)
  4. Hui Cheng and K. C. Gupta, An historical note on finite rotations, Journal of Applied Mechanics 56(1), 139 to 145, 1989, the whole note (the history of the formula and of the rotation parameters, with the earlier work of Euler)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/X9EWPH/text.yaml