\(\displaystyle x' = xcos(\theta) - ysin(\theta)\)

\(\displaystyle y' = xsin(\theta) + ycos(\theta)\)

I sketched a circle with two vectors inside but I can't get that. How can I derive this equation?

Thanks

- Thread starter Mondo
- Start date

\(\displaystyle x' = xcos(\theta) - ysin(\theta)\)

\(\displaystyle y' = xsin(\theta) + ycos(\theta)\)

I sketched a circle with two vectors inside but I can't get that. How can I derive this equation?

Thanks

Now we rotate by theta.

\(\displaystyle x’ = cos(\phi + \theta) = cos(\phi) cos(\theta) - sin(\phi) sin( \theta) = x cos( \theta) - y sin(\theta), \text { and}\)

\(\displaystyle y’ = sin(\phi + \theta) = sin(\phi) cos(\theta) + cos(\phi) sin( \theta) = ycos(\theta) + x sin(\theta). \)

It is just the sum of angles formulae.

- Joined
- Jan 29, 2005

- Messages
- 10,924

One cannot just jump in and derive that rotation. It requires background that is more than vectors.I came across the equations describing the rotation of a point around the origin - they claim that the new coordinates, after the rotation are as follows:

\(\displaystyle x' = xcos(\theta) - ysin(\theta)\)

\(\displaystyle y' = xsin(\theta) + ycos(\theta)\) How can I derive this equation?

Go to a reasonably good mathematics library, see if James Smart's book

If so look for chapter 2. It contains a detail discussion. Other wise, mot textbooks for analytical geometry will contain some thing about this concept.

Last edited:

- Joined
- Mar 16, 2016

- Messages
- 2,555

If you are familiar with matrices, you'll know that the matrix associated with a rotation of \(\displaystyle A\) is given by

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

The columns in this rotation matrix are simple the images of the vectors (respectively)** i** and** j** under the rotation of \(\displaystyle A\)*.*

PS. Can someone please tell me how I can get the sin A on the second row to line up???

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

The columns in this rotation matrix are simple the images of the vectors (respectively)

PS. Can someone please tell me how I can get the sin A on the second row to line up???

Last edited by a moderator:

- Joined
- Apr 29, 2014

- Messages
- 387

\(\displaystyle \begin{pmatrix}If you are familiar with matrices, you'll know that the matrix associated with a rotation of \(\displaystyle A\) is given by

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\

sin A & cos A

\end{pmatrix}

\)

The columns in this rotation matrix are simple the images of the vectors (respectively)andiunder the rotation of \(\displaystyle A\)j.

PS. Can someone please tell me how I can get the sin A on the second row to line up???

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

I believe that the matrix form expresses concisely and simply in the notation of linear algebra the same conclusion that I derived and expressed using elementary trigonometry. Whether the derivation is ”fundamentally the same,” I do not know. Pka seems to suggest that there are subtleties involved in the concept of rotation in a vector space that my simple explanation ignores.JeffM, thanks! Great explanation

Harry_the_cat, mentioned the matrices but I think they were constructed just from that cosine formula derivation, right?

The derivation which JeffM showed seems to be very fundamental. (Also available here https://en.wikipedia.org/wiki/Rotation_of_axes#Derivation)

- Joined
- Mar 16, 2016

- Messages
- 2,555

The images of the vectorsJeffM, thanks! Great explanation

Harry_the_cat, mentioned the matrices but I think they were constructed just from that cosine formula derivation, right?

- Joined
- Mar 16, 2016

- Messages
- 2,555

still does itBeer inspired conjecture follows.

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

- Joined
- Apr 29, 2014

- Messages
- 387

Apparently, the forum has a glitch.still does itBeer inspired conjecture follows.

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

When you quote my mild tweak, you don't get the sin A on the second row to line up

Without, they line up\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

Having glanced at the wiki article you cited, I saw one complexity that I had implicitly assumed away (as had whatever you were quoting). That implicit assumption is

\(\displaystyle x^2 + y^2 = 1\).

That is, I was thinking of a unit circle. That is not a general case (although the general case can be reduced to a unit circle by a change in scale).

I really should have said

\(\displaystyle sin(\phi) = \dfrac{y}{\sqrt{x^2 + y^2}} \text { and } cos(\phi) = \dfrac{x}{\sqrt{x^2 + y^2}}.\)

\(\displaystyle \text {Let } r = \sqrt{x^2 + y^2} \implies y = r sin(\phi) \text { and } x = r cos (\phi).\)

Now things progress as before except for the scale factor of r.

- Joined
- Dec 30, 2014

- Messages
- 10,405

Jeff,

Now we rotate by theta.

\(\displaystyle x’ = cos(\phi + \theta) = cos(\phi) cos(\theta) - sin(\phi) sin( \theta) = x cos( \theta) - y sin(\theta), \text { and}\)

\(\displaystyle y’ = sin(\phi + \theta) = sin(\phi) cos(\theta) + cos(\phi) sin( \theta) = ycos(\theta) + x sin(\theta). \)

It is just the sum of angles formulae.

Your work looked good until I realized that it does not give the correct matrix, else I am missing something.

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

I think I am ok. To make the linear algebra magic come out right, I think you just need to reverse the order of the terms in my second equation. I never formally learned linear algebra, just picked things up about it from abstract algebra.Jeff,

Your work looked good until I realized that it does not give the correct matrix, else I am missing something.

\(\displaystyle \begin{pmatrix}

cos A & -sin A\\\

sin A & cos A

\end{pmatrix}

\)

- Joined
- Dec 30, 2014

- Messages
- 10,405

What you are saying is basically that

3x + 4y =11

2x - 3y = 22

and

3x + 4y = 11

-3x + 2y = 22

are the same systems. I'm sure that you know that is not true.

\(\displaystyle x’ = x cos( \theta) - y sin(\theta) \text { and } y’ = ycos(\theta) + x sin(\theta). \)

I did not have x and y in the same order in my two equations. What I suspect is that if you order my two equations consistently, whatever you are doing will work.

\(\displaystyle x’ = x cos( \theta) - y sin(\theta) \text { and } y’ = x sin(\theta) + ycos(\theta).\)

No. What I am saying is that^{T}and see if you get the same answer with your matrix.

What you are saying is basically that

3x + 4y =11

2x - 3y = 22

and

3x + 4y = 11

-3x + 2y = 22

are the same systems. I'm sure that you know that is not true.

3x + 4y = 11

-3y + 2x = 22

is the same system as

3x + 4y = 11

2x - 3y = 22

And if linear algebra says that those are different, then linear algebra is nonsense.

I have this vague recollection that you need to order the variables consistently for purposes of linear algebra, but there is no point in relying on my half-baked recollections.

Jomo, does it make sense now?

As far as I can see, I answered your original question using basic trigonometry and the unit circle. No one has shown where that is in error. It seems to me that Jomo, who is so far the only one to claim my derived result is contradicted by linear algebra, really should show a derivation using linear algebra and exactly where it it differs from mine.

It does not seem reasonable to me that people say my result is wrong but cannot show where it is wrong.