How can I rotate a figure around its center?

In summary: You talk about that I need to translate the center from to the (0,0) and then back again to the original center in order to make the transformation valid. Can this be incorparated into my surgested transformation if its vallid ??SincerelySincerely,Fred
  • #1
Mathman23
254
0
Rotating a figure around its center

Hi

I have this here this here linear transformation:

[tex](x,y) \rightarrow \left[ \begin{array}{cc} -cos( 2 \theta ) & sin(2 \theta) \\ sin(2 \theta) & cos(2 \theta) \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right][/tex]

Turns the figure recthangel A(3,1) B(5/2, 2) , (9/2, 3) , D(5,2)

90 degrees clockwise from the figures current position.

My questions is how do I change the transformation so it turns the figure around the figures center ?

Do I add the figures center like this


[tex](x,y) \rightarrow \left[ \begin{array}{cc} -cos( 2 \theta ) & sin(2 \theta) \\ sin(2 \theta) & cos(2 \theta) \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right] + \left[ \begin{array}{c} a \\ b \end{array} \right][/tex]

Fred
 
Last edited:
Physics news on Phys.org
  • #2
Yes, but first translate the rectangangle so its center is the origin, then rotate, then translate back. That is: determine what the coordinates of the center are, subtract those coordinates from each of the corners, multiply by the matrix then add the coordinates back.
 
  • #3
HallsofIvy said:
Yes, but first translate the rectangangle so its center is the origin, then rotate, then translate back. That is: determine what the coordinates of the center are, subtract those coordinates from each of the corners, multiply by the matrix then add the coordinates back.


Hi,

I get the center of the figure to be (15/4,2)

Then I subtract the coordinants from the center:

A(3,1): there is A'((3/4,1) is the new coordinant.

I then insert this coordinant into my transformation

[tex](x,y) \rightarrow \left[ \begin{array}{cc} -cos( 2 \theta ) & sin(2 \theta) \\ sin(2 \theta) & cos(2 \theta) \end{array} \right] \left[ \begin{array}{c} \frac{3}{4} \\ 1 \end{array} \right][/tex]

where theta = pi/2

I get the rotated A to be [(3/4,-1)]

I add the diffence between old A rotated A' to obtain the correct rotated A coordinant??

If I do that I get the center again. That can't be the rotated koordinant can it ?

Sincerely

Fred
 
Last edited:
  • #4
The center should return to its original position. That is why you shift it to the origin before rotating, and then shift it back. Perform the same steps on the corners of the rectangle and see what you get.
 
  • #5
Hi Dan and thanks for Your answer,

This is the coordinants translated:

A(3,1) -------> (3/4,-1)

B(5/2,2) -----> (5/4,0)

C(9/2,3) -----> ((-3/4,1)

D(5,2) -------> (-5/4,1)

Is this what You mean ?

How does this prove that my proposed transformation is correct ??

/Fred


OlderDan said:
The center should return to its original position. That is why you shift it to the origin before rotating, and then shift it back. Perform the same steps on the corners of the rectangle and see what you get.
 
  • #6
If you plot them you will see that these are not corect. I did not notice it earlier because I thought you were asking about the center point, but your translation A to A' was not correct. You failed to change the y coordinate (or maybe just got the sign wrong?) and the sign of the x coordinate is wrong. Be careful with the translation and try these again.
 
  • #7
Hi Dan,

As mentioned earlier my assignment is write a transformation which rotates the rectangel 90 degrees clockwise from its current position around the figures center.

My surgestion for the transformation is that wrong?

You talk about that I need to translate the center from to the (0,0) and then back again to the original center in order to make the transformation valid. Can this be incorparated into my surgested transformation if its vallid ??

I have two follow up questions if that's allright.

[tex]s(x) = \left[ \begin{array}{cc} a_{11} & a_{12} \\ a_{21} & a_{22} \end{array} \right][/tex]

I'm told that this transformation can be done by another transformation using homogeneous coordinants.

[tex]s(x) = \left[ \begin{array}{ccc} a_{11} & a_{12} & 0 \\ a_{21} & a_{22} & 0 \\ 0 & 0 & 1 \end{array} \right][/tex]

Any idears on how I can show this ??

Finally how can one explain using transformations that a circle in the plane can be mapped into a ellipse ??

I have tried for three weeks to answer these three questions, but my Linear Algebra isn't very good and I'm in a terrible jam because I have to be able to answer these three questions in tuesday. Therefore I will be forever greatful if You could help me answer these question :-)

Best Regards and Bless You

Fred

OlderDan said:
If you plot them you will see that these are not corect. I did not notice it earlier because I thought you were asking about the center point, but your translation A to A' was not correct. You failed to change the y coordinate (or maybe just got the sign wrong?) and the sign of the x coordinate is wrong. Be careful with the translation and try these again.
 

What is Linear Algebra?

Linear Algebra is a branch of mathematics that deals with linear equations and their representations in vector spaces. It involves the study of linear transformations, matrices, vectors, and systems of linear equations.

What are some real-life applications of Linear Algebra?

Linear Algebra has many practical applications in fields such as physics, engineering, computer science, and economics. It is used in image and signal processing, data compression, machine learning, and optimization problems.

What are the basic operations in Linear Algebra?

The basic operations in Linear Algebra include addition, subtraction, multiplication, and division of vectors and matrices. Other important operations include dot product, cross product, and matrix inversion.

What is the importance of studying Linear Algebra?

Studying Linear Algebra is crucial for understanding and solving complex mathematical problems in various fields. It also provides a strong foundation for advanced topics such as abstract algebra, differential equations, and calculus.

What are some common challenges in solving Linear Algebra problems?

Some common challenges in solving Linear Algebra problems include understanding the concepts and notation, choosing the appropriate methods to solve the problem, and avoiding computational errors. It is important to practice regularly and seek help when needed to overcome these challenges.

Similar threads

  • Introductory Physics Homework Help
Replies
13
Views
883
  • Introductory Physics Homework Help
Replies
10
Views
261
  • Introductory Physics Homework Help
Replies
9
Views
939
  • Introductory Physics Homework Help
Replies
2
Views
629
  • Introductory Physics Homework Help
Replies
6
Views
2K
Replies
8
Views
232
  • Introductory Physics Homework Help
Replies
1
Views
193
  • Introductory Physics Homework Help
Replies
6
Views
569
  • Introductory Physics Homework Help
Replies
8
Views
702
  • Introductory Physics Homework Help
Replies
8
Views
566
Back
Top