Talk:Rotation matrix

From Wikipedia, the free encyclopedia

WikiProject Mathematics
This article is within the scope of WikiProject Mathematics, which collaborates on articles related to mathematics.
Mathematics rating: B Class Mid Priority  Field: Applied mathematics
One of the 500 most frequently viewed mathematics articles.
Please update this rating as the article progresses, or if the rating is inaccurate. Please also add comments to suggest improvements to the article.

Contents

[edit] Rotation tensor

30 March 2007 - Leonid

Hi everyone!

I just added the bit about the Rotation Tensor representation and Rotation Matrix invariance with respect to change of coordinate frame. I think this invariance note is important in "Rotation Matrix" talks. From the other side, dealing with invariant objects is much more convinient especially if you start doing some advanced stuff like Elasticity Theory and Mechanics of Beams and Shells.

Does rotation tensor thing deserve a page on it's own?

There is some similar bit on "Representation of Rotation" page, but the guy whom wrote that page is cleary in love with quaternions. I am in love with quaternions as well the moment some simulation of rigid body dynamics need to be done, but theory of rotation tensors is very old and deserve it's place (I think). The whole Classical Ellasticity Theory is built on it.

Regards, Dr.Leonid Paramonov PDRA, Imperial College London, UK


17:41, 24 August 2006 - Alanic

I did the changes I talked about and I'm ready to defend them if you don't agree. The big matrices in "three dimensions" section may need an update, too. This was my very first contribution to Wikipedia and I didn't read any help pages, so feel free to cancel my changes if I'm not abiding any rules.

13:25, 22 August 2006 - Alanic


  \begin{pmatrix} 
    \cos{\alpha} & \sin{\alpha} \\
    - \sin{\alpha} & \cos{\alpha} \\
  \end{pmatrix} .
  \begin{pmatrix} 
    1 \\
    0 \\
  \end{pmatrix} =
  \begin{pmatrix} 
    \cos{\alpha} \\
    - \sin{\alpha} \\
  \end{pmatrix}

  \begin{pmatrix} 
    \cos{\alpha} & \sin{\alpha} & 0 \\
    - \sin{\alpha} & \cos{\alpha} & 0 \\
    0 & 0 & 1 
  \end{pmatrix} .
  \begin{pmatrix} 
    1 \\
    0 \\
    0 \\
  \end{pmatrix} =
  \begin{pmatrix} 
    \cos{\alpha} \\
    - \sin{\alpha} \\
    0 \\
  \end{pmatrix}

The first equation shows that the matrix rotated the vector clockwise. This conflicts with the definition that rotation matrices rotate vectors counter-clockwise.

According to the right hand rule, the second equation shows that this matrix rotated this vector around the -z axis. This conflicts with the definitions on the page that a rotation matrix is a matrix that when multiplied with a vector it rotates the vector counter clockwise and that this matrix is a rotation around the z axis. I think all matrices in this page need to be transposed.

67.122.123.121 21:19, 21 August 2006 (UTC) - Geoff Dolan

  • Hopefully not stepping on any feet, but I added a minus sign on the 21 term of the three dimensional rotation matrix. Besides disagreeing with my text (Sidi, Spacecraft Dynamics and Control, 1997), it's easy to program the matrix into matlab and see that it isn't a rotation matrix without the minus sign.

I think the signs for the rotation about the z-axis on the 12 and the 21 entries are wrong. Can someone confirm this?

I haven't looked at the other matrices to see if they're wrong too. Thanks

  • I don't think they're wrong. They look exactly how I've learnt them on the University a few months ago :)

Torzsmokus 20:36, 3 January 2006 (UTC)

  • It depends on how you define your positive angle. Conventions differ.
  • I've added a yaw-pitch-roll system today and I've adapted the signs to the current status (out of respect to the authors). However I must say, that at my university the yaw-pitch-roll system was defined like this:


  \mathcal{R}(\gamma):=
  \begin{pmatrix}
    1 & 0 & 0 \\
    0 &  \cos{\gamma} & \sin{\gamma} \\
    0 &  - \sin{\gamma} & \cos{\gamma}
  \end{pmatrix} 
, 
  \mathcal{P}(\beta):=
  \begin{pmatrix}
    \cos{\beta} & 0 & - \sin{\beta} \\
    0 & 1 & 0 \\
    \sin{\beta} & 0 & \cos{\beta}
  \end{pmatrix} 
, 
  \mathcal{Y}(\alpha):=
  \begin{pmatrix} 
    \cos{\alpha} & \sin{\alpha} & 0 \\
    - \sin{\alpha} & \cos{\alpha} & 0 \\
    0 & 0 & 1 
  \end{pmatrix}
. For the 2-dimenional matrix I agree that it usually is defined like this: 
  \begin{pmatrix} 
    \cos{\theta} & -\sin{\theta} \\
    \sin{\theta} & \cos{\theta} 
  \end{pmatrix}
Wedesoft 21 Mar 2006 22:12 BST

  • All given matrices are correct. But it should read "with the equivalent counter-clockwise rotation in \mathbb{R}^2". I'll correct this immediately. (AK, 2006-04-05)

[edit] rewrite by TomViza

I just completed a major rewrite, this article is now much more generalised and also more easy to read. I moved some stuff in from Rotation (mathematics) which is very long.

I also added the formula to find the matrix in terms of the Euler angles.

TomViza 16:41, 21 May 2006 (UTC)


The following is the derivation of the second function in the 3D section. When I moved the equation from Rotation (mathematics), I thought that the derivation was not very encyclopdic, but have kept it here for thouroughness. TomViza 16:41, 21 May 2006 (UTC)

Derivation. This matrix is derived from the following vector algebraic equation (see dot product, cross product, and matrix multiplication):

 \mathbf{u'} = (\cos \theta) \mathbf{u} + (1 - \cos \theta) \mathbf{v} (\mathbf{v} \cdot \mathbf{u}) + \sin 
\theta (\mathbf{v} \times \mathbf{u}), \qquad \qquad  (1)

which in turn is derived from

 \mathbf{u'} = \mathbf{u_{\|}} + (\cos \theta) \mathbf{u_{\perp}} + \sin \theta (\mathbf{v} \times \mathbf{u_{\perp}}).

Here

 \mathbf{u_\|} = \mathbf{v} ( \mathbf{v} \cdot \mathbf{u}) ,
 \mathbf{u_\perp} = \mathbf{u} - \mathbf{u_\|} ,
 \mathbf{v} \times \mathbf{u_{\perp}} = \mathbf{v} \times \mathbf{u} ,

which shows that u is resolved (see Gram-Schmidt process) into a parallel and a perpendicular component (to v). The parallel component does not rotate, only the perpendicular component does rotate. This rotation is similar to a two dimensional rotation, except that instead of x and y axes, there are  
\mathbf{u_\perp} and  \mathbf{v} \times \mathbf{u_\perp} axes, both of which are perpendicular to v.

[edit] Quaternions

It would be nice with a link to quaternions

[edit] Rotation matrix vs orthogonal matrix

Hi, just came across this article and have a a couple of question.

First, it says in the definition part that a rotation matrix is equivalent to an orthogonal matrix. If this is so, why is there a separate article on rotation matrices when there already is one on orthogonal matrices. What additional information is provided here which does not fit in the article on orthogonal matrices.

Second, is the equivalence of rotation and orthogonal matrices established in the literature? Personally, I would suggest that a rotation matrix is a special case of an orthogonal matrix (for the n-dim case) which only has two eigenvalues not equal to one [my correction]. Such a matrix always appears as a generalization of a 2D rotation for the the n-dim case in the sense that it has one well-defined rotation space in which it rotates with one well-defined angle. Also, in the 2D and 3D cases such a matrix is equivalent to an orthogonal matrix, but in 4 and higher dimensions a general orthogonal matrix is the product of two or more such matrices. Don't know if this is an established way of defining rotation matrices. --KYN 18:48, 12 July 2006 (UTC)

No, a rotation matrix is an orthogonal matrix with the additional restriction that the determinant is +1. Thus
 \begin{bmatrix}0&1\\1&0\end{bmatrix}
is an orthogonal matrix, but since its determinant is −1 it is not a rotation matrix. The eigenvalues of a rotation matrix are guaranteed to include a single +1 in odd dimensions, but otherwise may have as many repetitions of −1 or complex conjugate pairs with magnitude +1 as the dimension allows. Thus
 \begin{bmatrix}0&-1&0&0\\1&0&0&0\\0&0&-1&0\\0&0&0&-1\end{bmatrix}
is a rotation matrix with four eigenvalues, none of which are +1. We can state the definition as
  • An n×n matrix M is a rotation matrix if MTM = I and if det(M) = +1.
Planar rotations are a very special case, and only 3D rotations have a rotation axis.
We can derive the algebraic conditions from the geometric statement that a rotation is a direct isometry leaving one point fixed. Take the fixed point to be the origin so we are working with a Euclidean inner product space.
  • Then isometry means preservation of distances (and by implication, angles), which is equivalent to preservation of the inner product. In vector form the inner product of a vector with itself is vTv. Therefore an isometry satisfies (Mv)T(Mv) = vTv, for all vectors v. Rewrite the left-hand side as vT(MTM)v, and rewrite the right-hand side as vTIv; then to obtain equality for all v we must have MTM = I, as stated.
  • For an isometry to be direct it must not reverse "handedness". The identity transformation is obviously direct, and the identity matrix is a (null) rotation, with determinant +1. Furthermore, in the Lie group of Euclidean isometries there must be a connected path from the identity to any direct isometry. Thus in the orthogonal group of n×n matrices there are two disjoint connected components: the special orthogonal group, which contains the identity and all of whose members have determinant +1; and the remaining component (which is only a coset, not a group), all of whose members have determinant −1.
Apparently the article could use some work. --KSmrqT 13:10, 21 August 2006 (UTC)

[edit] Use of homogenous Coords?

Hello,

This may be confusing for people who have to implement this with translation compounded, as there is no section on homogenous coords, should this be added? 129.78.208.4 02:51, 7 November 2006 (UTC)

[edit] Added generators, reformat

I have added a description of the generators of the group, and reorganized things so that the roll, pitch, and yaw matrices come first. That way, the other representations are more easily understood as compositions of these basic rotations. I also added expressions for the generators, except the Euler angle matrix, because I don't have an expression for that generator. Nothing has been deleted, but some things have been rephrased. PAR 20:52, 5 January 2007 (UTC)

[edit] How to find the generator A?

I'm reading the section about the properties of the rotation matrix...if I have M, but I want to find the generator A, what is the best way to do this? --HappyCamper 22:27, 26 April 2007 (UTC)

[edit] Transpose as inverse

Hmm...it doesn't seem as obvious to me that the transpose of a rotation matrix is its inverse as it perhaps was to the writer of this article. Might this section perhaps be altered? I'm not actually certain of the best clear way of showing this - perhaps showing that under the appropriate orthogonal basis, the leading diagonal is 1's except for 2 Cos(theta)s, and everywhere else in 0 except the sin thetas, then simply subbing in -theta for theta? Wrayal 15:17, 13 May 2007 (UTC)

[edit] Generator Question

The rotation matrices about the x, y, and z axis do not seem to be equate to the "generator" written to their right (the rotation matrices with the matrix exponentials). It seems that one is the transpose of the other. Can someone please explain?

Thanks- James

[edit] Major rewrite

Against my better judgment I have attempted to make this a solid article. Experience strongly suggests that before long an endless stream of editors who barely understand anything about the topic will attempt to "improve" it. I do hope that someone besides me who does understand and who cares will keep an eye out and revert the damage. Lacking the patience to babysit, I leave it to its fate. (But I am open to serious questions on my talk page.)

This, by the way, is a trimmed down version of an earlier draft. I have (modestly?) added a B rating; feel free to adjust up or down. Enjoy. --KSmrqT 08:35, 30 August 2007 (UTC)

What do you want, a medal? Jeez. —Preceding unsigned comment added by 71.111.251.229 (talk) 17:50, 16 February 2008 (UTC)

[edit] Deficiency in the article?

It seems to me that there's a major deficiency in this article, which is that it's not made clear what the connection is between a rotation matrix and the geometric operation of rotation -- this connection being that if you premultiply a rotation matrix by a column vector, then the result is another column vector that is just a rotation of the first.

Okay, it is stated eventually, but not until the geometry section, and there only in the abstract language of linear algebra, putting the main point of rotation matrices out of reach of anyone except those who should know it already.

I'm hesitating to jump in and revise it, as I'm kind of new to linear algebra, but will probably go ahead and take a crack at it eventually if no one with more expertise wants to step up.

168.156.89.237 (talk) 23:51, 27 November 2007 (UTC)

[edit] Knowledge Gap

As interesting as Lie algebras, spin groups, quaternions, or the intricacies and many properties of SO(3) group theory are, many editors are forgetting that the article is about Rotation Matrices and not about Algebra, Physics, Peculiar 19th century math, or theoretical mathematics. There clearly is a huge disconnect here between what should be here (and is missing) and that which is optional (which is abundant, even overshadowing).

Glimpsing over the article I'd swear it was about quaternions, until the caption told me it should have been about Rotation Matrices, the simple representation between 2 rotated coordinate systems in an orthonormal basis nowhere to be found, not even the very essential composition of rotation matrices about the three cartesian axes are mentioned!

With all due respect to the various authors, 90% of the material is better off in other articles where it doesn't bumb the signal to noise ratio off the scale. 82.72.87.196 (talk) 17:20, 18 February 2008 (UTC)

You may not be aware of this, but all Wikipedia content is contributed by unpaid volunteers, and anyone can edit the articles if they think they can improve them. So, be bold. If you add new content, the best is to follow a published accessible treatment from a good textbook, which can be cited as a source. I do not see how the article would be improved by removing more advanced content (which, unlike you, I think is highly relevant and important information).  --Lambiam 09:31, 20 February 2008 (UTC)