Formulas for Rotation and Translation

Click For Summary

Homework Help Overview

The discussion revolves around the transformation of coordinates through rotation and translation in a two-dimensional space. The original poster presents a problem involving the coordinates of a point and seeks to determine the new coordinates after applying both transformations in different orders. The subject area includes concepts from geometry and linear algebra, particularly focusing on the properties of transformations.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • The original poster attempts to apply formulas for translation and rotation of coordinates, exploring two cases: translation followed by rotation and rotation followed by translation. They express confusion over differing results obtained from these approaches.
  • Some participants question the assumption that the order of transformations should yield the same result, suggesting that the reference frames for translation differ based on the order of operations.
  • Others suggest visualizing the transformations to better understand the discrepancies in results and raise questions about the correctness of the formulas used.
  • There is a discussion about the use of matrices for transformations, with participants expressing interest in understanding linear and affine transformations.

Discussion Status

The discussion is ongoing, with participants exploring different interpretations of the transformation process. Some guidance has been offered regarding the nature of linear and affine transformations, and there is a recognition of the need to clarify the concepts further. Participants are actively engaging with each other's questions and providing resources for deeper understanding.

Contextual Notes

Participants note the complexity of transformations and the potential for confusion when switching the order of operations. There is also mention of the need for additional resources to understand the mathematical concepts involved, particularly regarding linear algebra and transformation matrices.

JC2000
Messages
186
Reaction score
16
Moved from a technical forum, so homework template missing
Given the coordinates ##P = (3,4)## , find the coordinates of ##P"(x',y')## when the origin is shifted to (1, –2), and the axes are rotated by 90° in the clockwise direction.

I attempted to solve this problem using the following formulas :

##x = X + h## and ##y = Y + k## for translation of the coordinate system. And the table below for rotation of the axes where (x,y) are the coordinates before rotation :
\begin{array}{|c|c|c|c|}
\hline
& x & y\\ \hline
x'&cos \theta & sin \theta\\ \hline
y'&-sin \theta &cos \theta &\\ \hline
\\ \hline.
\end{array}

Since Rotation followed by Translation of the axes or vice versa should give the same result, I attempted to solve it in multiple ways but did not get the same result.

x,y are the coordinates before transformation while x',y' are coordinates after transformation. h,k represent the coordinates of the origin after translation.)

Case 1 : Translation followed by Rotation
Using the above formulas I got the following results :
$$x'= (x-h)cos \theta + (y-k)sin\theta$$ and $$y' = -(x-h)sin\theta + (y-k)cos\theta$$ ...(A)

OR

$$x-h = x'cos\theta - y'sin\theta$$ and $$y-k = x'sin\theta + y'cos\theta$$ ...(B)

Case 2 : Rotation followed by Translation :
$$x = (x'+h)cos\theta - (y'+k)sin\theta$$ and $$y = (x'+h)sin\theta + (y'+k)cos\theta$$...(C)

OR

$$x'+ h = xcos\theta + ysin\theta A$$ and $$y'+k = -xsin\theta + ycos\theta$$...(D)

Upon plugging in the values (A) and (B) gave matching answers with ##P"(-6,2) ##whereas using (C) and (D) gave ##P"(-5,5)##.

Thus I had the following questions:
1. Are the formulas (A),(B),(C),(D) correct?
2. If not, then why?
 
Physics news on Phys.org
JC2000 said:
Since Rotation followed by Translation of the axes or vice versa should give the same result
Really? Try to visualise what is happening. What if the original point is (0,0)?
 
  • Like
Likes   Reactions: JC2000 and PeroK
DrClaude said:
Really? Try to visualise what is happening. What if the original point is (0,0)?

After trying to visualize the process I believe that the two results would be different since...

Case 1 : Rotate then Translate - Here the translation occurs with reference to the new coordinate axes (axes which have been rotated slightly with respect to the original axes).

Case 2 : Translate then Rotate - Here the translation occurs with respect to the original axes and thus represents a different point.

a)And hence the difference in result?!

b)Is this why (A) matches (B) while (C) matches (D)?

c) If this is the case then (A),(B) hold only for Translation followed by Rotation while (C), (D) hold only for Rotation followed by Translation.

 
JC2000 said:
a)And hence the difference in result?!

b)Is this why (A) matches (B) while (C) matches (D)?

c) If this is the case then (A),(B) hold only for Translation followed by Rotation while (C), (D) hold only for Rotation followed by Translation.

Correct.
 
  • Like
Likes   Reactions: JC2000
DrClaude said:
Correct.

Thank you very much!
 
Notice you can also check by using matrices, EDIT rotations are linear operations. Translations are affine.
 
Last edited:
  • Like
Likes   Reactions: JC2000
WWGD said:
check by using matrices, since both rotation
I am unfamiliar with the use of matrices for transformations, I would be grateful if you would share a few links regarding the topic. Thanks!
 
Last edited:
JC2000 said:
I am unfamiliar with the use of matrices for transformations, I would be grateful if you would share a few links regarding the topic. Thanks!
Sure,
https://en.wikipedia.org/wiki/Rotation_matrix
Please note my edit: translations are NOT linear, they are what you call affine.
Please let me know if you want/need something else on this.
 
Maybe you should think the rotation again. I mean I think you have got the correct formula for a general rotation which will be useful in future.
But a rotation through 90° is really very simple – off the back of your head almost you could say what does the point (a, b) relative to the original x, y axes, become relative to the rotated axes?

This would serve you as a check, and in getting habit of looking for simple solutions even if you can also get them longhand.
 
  • Like
Likes   Reactions: neilparker62 and JC2000
  • #10
epenguin said:
Maybe you should think the rotation again. I mean I think you have got the correct formula for a general rotation which will be useful in future.
But a rotation through 90° is really very simple – off the back of your head almost you could say what does the point (a, b) relative to the original x, y axes, become relative to the rotated axes?

This would serve you as a check, and in getting habit of looking for simple solutions even if you can also get them longhand.

Yes, (a,b) would be (b.-a) when the axes are rotated counter-clockwise and (-b,a) when rotated clockwise?! I was actually struggling with the general case and hence I picked the first problem I came across to try and list all possible cases, nonetheless using a simple case does seem useful. Strangely when I tried to do the rotation by 90 degrees off the back of my head I struggled quite a bit. Thanks.
 
  • #11
WWGD said:
Sure,
https://en.wikipedia.org/wiki/Rotation_matrix
Please note my edit: translations are NOT linear, they are what you call affine.
Please let me know if you want/need something else on this.

Are there matrices for transformations? Also you used the terms 'linear operations' and 'affine transformation', I looked them up on wikipedia and there seemed to be a fair bit of content related to them. Is there an overarching 'topic' that they link to? If so, is there a resource that you would recommend that systematically deals with it. Thank you for your time.
 
  • #12
JC2000 said:
Are there matrices for transformations? Also you used the terms 'linear operations' and 'affine transformation', I looked them up on wikipedia and there seemed to be a fair bit of content related to them. Is there an overarching 'topic' that they link to? If so, is there a resource that you would recommend that systematically deals with it. Thank you for your time.
Sorry, JC2000, I will check something more specific/focused. I will be a bit loose with the terms to avoid being confusing. There is a correspondence (bijection, meaning a map that assigns to every linear map a unique matrix and viceversa) between linear transformations and matrices. A linear map is , essentially, one in which the output is directly proportional to the input , e.g., if we double the input, we double the output ( notice, e.g., ## f(x) = x^2 ## is _not_ linear , as ##f(6)=36 \neq 2f(3)=18 ##). I will look for something else.
 
  • Like
Likes   Reactions: JC2000
  • #13
WWGD said:
Sorry, JC2000, I will check something more specific/focused. I will be a bit loose with the terms to avoid being confusing. There is a correspondence (bijection, meaning a map that assigns to every linear map a unique matrix and viceversa) between linear transformations and matrices. A linear map is , essentially, one in which the output is directly proportional to the input , e.g., if we double the input, we double the output ( notice, e.g., ## f(x) = x^2 ## is _not_ linear , as ##f(6)=36 \neq 2f(3)=18 ##). I will look for something else.

1.So linear maps/transformations are essentially linear functions?
2.What would be a nonlinear transformation?
3. Is the statement regarding the mapping being bijective an axiom?

Do all these topics fall under Linear Algebra? Since, in that case I will encounter that area in due course of time.
 
  • #14
JC2000 said:
1.So linear maps/transformations are essentially linear functions?
2.What would be a nonlinear transformation?
3. Is the statement regarding the mapping being bijective an axiom?

Do all these topics fall under Linear Algebra? Since, in that case I will encounter that area in due course of time.

1) Yes. You may also have operators, which are functions defined on functions. Integration is an example ## \int (f+g)= \int f + \int g ##, differentiation too.
2) ##Cosx, Sinx, x^n ; n \neq 1 ##, Basically when multiplying the input by k does not increase the output by k. ## Cos(x+y) \neq Cosx + Cosy ; \sqrt {x+y} \neq \sqrt x + \sqrt y ##
3) It is a theorem: Once you set up an ordered basis, there is a well-defined bijection between matrices and linear transformations.
 
  • Like
Likes   Reactions: JC2000
  • #15
WWGD said:
1) Yes. You may also have operators, which are functions defined on functions. Integration is an example ## \int (f+g)= \int f + \int g ##, differentiation too.
2) ##Cosx, Sinx, x^n ; n \neq 1 ##, Basically when multiplying the input by k does not increase the output by k. ## Cos(x+y) \neq Cosx + Cosy ; \sqrt {x+y} \neq \sqrt x + \sqrt y ##
3) It is a theorem: Once you set up an ordered basis, there is a well-defined bijection between matrices and linear transformations.

1) So linear transformation = linear operator = linear mapping?
2) The examples you gave are non linear functions and are also nonlinear operators/transformations, since you said that operators are functions defined using other functions?
3) Also, why is there a unique term for functions defined on functions? Does this all become apparent once I start linear algebra?
 
  • #16
JC2000 said:
1) So linear transformation = linear operator = linear mapping?
2) The examples you gave are non linear functions and are also nonlinear operators/transformations, since you said that operators are functions defined using other functions?
1)Yes. But you see, there is no uniformity of notation/usage in Mathematics, so I don't want to give you a definitive answer. Integration, differentiation are linear operators. Inversion, i.e., ## f \rightarrow 1/f ## ( assuming ## f \neq 0 )##,is not a linear operator.
2) Considering the answer in 1), yes.
 
  • Like
Likes   Reactions: JC2000
  • #17
epenguin said:
Maybe you should think the rotation again. I mean I think you have got the correct formula for a general rotation which will be useful in future.
But a rotation through 90° is really very simple – off the back of your head almost you could say what does the point (a, b) relative to the original x, y axes, become relative to the rotated axes?

This would serve you as a check, and in getting habit of looking for simple solutions even if you can also get them longhand.

$$P(x,y) → P'(x-1 ; y+2) → P''( -(y+2); x-1) $$
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K