Finding rotation matrix with given new and old frame

In summary: In any case I think you want something like this.In summary, the conversation discusses the relationship between an old and new matrix in terms of basis vectors and a rotation matrix. The method for finding the rotation matrix is described, using the components of the basis vectors and the formula R=BA^{-1}. The concept of intermediate frames and Euler angles is also mentioned as a possible approach to finding the rotation matrix.
  • #1
faribataghavi
7
0
Hi,

I have a rotated frame (new matrix, T(x,y, z)) and the original frame (old matrix T(X,Y,Z)). I want to use this formula to find the Rotation matrix:

T(x,y, z) = R-1 T(X,Y,Z) R

Is this equation right? how can I calculate R (rotation matrix) in ZYZ order in this equation?

Thank You
 
Physics news on Phys.org
  • #2
Let [itex]v[/itex] be the components of a vector [itex]\mathbf{v}[/itex] with respect to your old basis (frame). Let [itex]v'[/itex], "v prime", be the components of [itex]\mathbf{v}[/itex] with respect to your new basis. If the old and new components are related by

[tex]v'=Av,[/tex]

then, in particular, the components of the vectors of the old basis, written as columns of a matrix, [itex]B[/itex], are related to their own representations, with respect to the new basis, [itex]B'[/itex], by [itex]B'=AB,[/itex], so that [itex]A^{-1}B'=B[/itex]. But the components of any basis vectors, with respect to themselves, comprise the identity matrix! So [itex]A^{-1}B'=I[/itex], and so [itex]B'=A[/itex]. The components of your new basis, with respect to the old, are [itex]A^{-1}[/itex], since [itex]A^{-1}v'=Iv=v[/itex].

(Note also: It's a property of rotation matrices that [itex]R^{-1}=R^T[/itex], where [itex]R^T[/itex] means the transpose of [itex]R[/itex].)

I'm not sure if the following is what you meant: but if the columns of T(x,y,z) contain the components of your new basis vectors, with respect to themselves, and T(X,Y,Z) the components of your old basis, with respect to themselves, then, and your R is my A, then your equation is correct, and says

[tex]I=R^{-1}IR=R^{-1}R.[/tex]

I didn't understand you final question.
 
  • #3
Rasalhague said:
Let [itex]v[/itex] be the components of a vector [itex]\mathbf{v}[/itex] with respect to your old basis (frame). Let [itex]v'[/itex], "v prime", be the components of [itex]\mathbf{v}[/itex] with respect to your new basis. If the old and new components are related by

[tex]v'=Av,[/tex]

then, in particular, the components of the vectors of the old basis, written as columns of a matrix, [itex]B[/itex], are related to their own representations, with respect to the new basis, [itex]B'[/itex], by [itex]B'=AB,[/itex], so that [itex]A^{-1}B'=B[/itex]. But the components of any basis vectors, with respect to themselves, comprise the identity matrix! So [itex]A^{-1}B'=I[/itex], and so [itex]B'=A[/itex]. The components of your new basis, with respect to the old, are [itex]A^{-1}[/itex], since [itex]A^{-1}v'=Iv=v[/itex].

(Note also: It's a property of rotation matrices that [itex]R^{-1}=R^T[/itex], where [itex]R^T[/itex] means the transpose of [itex]R[/itex].)

I'm not sure if the following is what you meant: but if the columns of T(x,y,z) contain the components of your new basis vectors, with respect to themselves, and T(X,Y,Z) the components of your old basis, with respect to themselves, then, and your R is my A, then your equation is correct, and says

[tex]I=R^{-1}IR=R^{-1}R.[/tex]

I didn't understand you final question.
Thank you for your replying

T(x,y, z) and T(X,Y,Z) in the new and old axes frame respectively.

More generally, my second question is that if I have two matrixes (old and new), how can I calculate the rotation matrix between these two matrices?

I have to mention that this rotation matrix should be a representation of successive rotation around z, y and again z axes.

I know that this rotation matrix should have a form like what is here:

http://en.wikipedia.org/wiki/Euler_angles#Matrix_orientation (jump to: Relationship to other representations and look at ZYZ rotation matrix orientation)

but I do know how to find if from given old and new matrix.

Thanks again
 
  • #4
Sorry I haven't been much help to you. Your question is more complicated than I thought it was. Hopefully someone else can enlighten us.

Do you want the rotation matrix expressed as a composition of intrinsic rotations? I think this Wikipedia article uses a slightly different notation from you: (x,y,z) for the initial frame, and (X,Y,Z) for the moving frame. Regarding your formula, let [itex]A_{i1}[/itex] be the components of the 1st basis vector of the initial frame, and [itex]B_{i1}[/itex] the components of the first basis vector of the final frame, both with respect to some arbitrary frame.

[tex]\sum_{i=1}^{3}R_{ki}A_{i1}=B_{k1},[/tex]

and similarly for [itex]A_{i2}[/itex] and [itex]A_{i3}[/itex]. Let the [itex]j[/itex]th column of matrices [itex]A[/itex] and [itex]B[/itex] denote the components of the [itex]j[/itex]th basis vector of your initial and final frames respectively. Then [itex]RA=B[/itex], so [itex]R=BA^{-1}[/itex] doesn't it? Or am I missing something? I think you're saying that T(x,y,z) is such a matrix, whose columns are the basis vectors of your final frame, while T(X,Y,Z) is the corresponding matrix for your initial frame.

There's a subsection here called Intermediate frames which explicitly relates the basis vectors of initial and final frames via the intermediate frames. I think this refers to the ZYZ composition of intrinsic rotations convention. Could we get the Euler angles from here?

There's a lot a discussion of these sorts of questions on the internet, but it isn't always easy to know what conventions people are using.
 
Last edited:
  • #5
for your question. The equation you have provided is correct for finding the rotation matrix between two frames. To calculate R (rotation matrix) in ZYZ order, you can use the following steps:

1. First, calculate the Euler angles for the rotation between the two frames. These angles will represent the rotation around the z-axis, followed by rotation around the y-axis, and then rotation around the z-axis again.

2. Use these Euler angles to construct the individual rotation matrices for each of the three rotations. These matrices will be in the form of 3x3 matrices.

3. Multiply these three matrices in the order of Z-Y-Z to get the final rotation matrix, R.

4. You can then use this rotation matrix, R, in the equation you provided to find the rotated frame T(x,y,z).

I hope this helps. Let me know if you have any further questions.
 

1. How do you determine the rotation matrix between two frames?

The rotation matrix can be determined by finding the cross product of the unit vectors in the old frame and the unit vectors in the new frame. This will give you a 3x3 matrix that represents the rotation between the two frames.

2. What information do you need to find the rotation matrix?

To find the rotation matrix, you need the coordinates of at least three points in both the old and new frames. This will allow you to determine the unit vectors in each frame and calculate the cross product.

3. Can the rotation matrix be found with only 2 points in each frame?

No, at least 3 points are needed in each frame to determine the rotation matrix. This is because 3 points are needed to define a plane, and the rotation between two frames occurs in a 3-dimensional space.

4. Is the rotation matrix unique?

Yes, the rotation matrix is unique for a given set of points in the old and new frames. This means that no matter which set of points you choose, the resulting rotation matrix will be the same.

5. What is the practical application of finding the rotation matrix?

The rotation matrix is useful in a variety of fields, including computer graphics, robotics, and physics. It can be used to transform points and vectors between different coordinate systems, which is particularly important in 3D modeling and animation.

Similar threads

  • Linear and Abstract Algebra
Replies
6
Views
488
  • Linear and Abstract Algebra
Replies
10
Views
102
  • Linear and Abstract Algebra
Replies
7
Views
2K
  • Linear and Abstract Algebra
Replies
3
Views
2K
  • Linear and Abstract Algebra
Replies
1
Views
914
  • Linear and Abstract Algebra
Replies
2
Views
2K
  • Linear and Abstract Algebra
Replies
14
Views
1K
  • Mechanical Engineering
Replies
3
Views
433
  • Linear and Abstract Algebra
Replies
27
Views
3K
  • Linear and Abstract Algebra
Replies
4
Views
2K
Back
Top