Rotating a Vector in a Coordinate System: Explaining the Formula

Click For Summary

Discussion Overview

The discussion revolves around the rotation of a vector in a three-dimensional coordinate system, specifically focusing on the transformation of its components when the axes are rotated by an angle theta around the z-axis. Participants explore the mathematical derivation of the formulas for the new x and y components of the vector after rotation.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks clarification on the transformation equations for the x and y components of a vector after rotation, specifically asking for a derivation of the formulas: a_x' = a_x cos(theta) + a_y sin(theta) and a_y' = -a_x sin(theta) + a_y cos(theta).
  • Another participant suggests using trigonometry and drawing right triangles to visualize the problem, indicating they will provide a visual aid.
  • A different participant introduces a distance formula related to the new y-component, deriving it based on the geometry of the rotated axes and the original vector components.
  • One participant provides a vector-algebraic proof, detailing the steps to compute the new components using dot products with the rotated unit vectors.
  • Another participant describes a method of analyzing the original x and y components separately, explaining how each component contributes to the new vector's components after rotation.
  • A later reply acknowledges a correction regarding a subscript and presents a brief algebraic manipulation to derive the expressions for the new components, indicating a desire to explore other methods as well.

Areas of Agreement / Disagreement

Participants present multiple approaches and methods for deriving the transformation equations, indicating that there is no single agreed-upon method. The discussion remains open with various perspectives and calculations being shared.

Contextual Notes

Some participants express uncertainty about the correctness of their algebraic manipulations and the implications of complementary angles in their derivations. There are also indications of potential confusion regarding the notation used in the equations.

misogynisticfeminist
Messages
370
Reaction score
0
Say, i have a vector a, defined in a coordinate system, x-y-z and i rotate the axes by an angle theta around the z-axis, so i have my z-component invariant in this change of basis. Can someone show me why,

a_x' = a_x cos\theta + a_y sin\theta and

a_x' = -a_x sin\theta + a_y cos\theta

i can't seem to find any place where they show how this is done.
 
Physics news on Phys.org
Draw a vector and two sets of orthogonal axes.
For each set of axes, form a right triangles with the vector as the hypotenuse, and the legs parallel to the axes.
Do a little trigononometry.
I'll post a URL with a picture, if I can find one.

Ok here's one:
http://web.umr.edu/~oci/Topic12/T12-5/cml12-5a/frame.html
(although the vector is not drawn from the origin to the little box).

(Check the subscript on the LHS of your second equation.)
 
Last edited by a moderator:
The new x-axis is a line tilted at some angle, \theta[/tex], to the horizontal. Basically, if you want a'_y[/tex], you want the distance between a point and this line. The formula for this is <br /> |a'_y|= \frac {|ma_x+b-a_y|} {\sqrt{m^2+1}} <br /> where the equation of the line is y=mx+b[/tex]. Since the line passes through the origin, b=0. tan(\theta)=m[/tex], so: <br /> |a'_y|= \frac {|tan(\theta)a_x-a_y|} {\sqrt{tan(\theta)^2+1}} <br /> = \frac {|tan(\theta)a_x-a_y|} {|sec(\theta)|} <br /> <br /> = |tan(\theta)a_x-a_y|\times|cos(\theta)| <br /> <br /> =|sin(\theta)a_x-cos(\theta)a_y| <br /> <br /> Since, for \theta=0[/tex], we should have a'_y=a_y[/tex], this means the signs will only work out properly if:<br /> a'_y=-sin(\theta)a_x+cos(\theta)a_y <br /> The other equation is found similarly. Let me know if you want to see the derivation of this distance formula.
 
Last edited:
Here's a vector-algebraic proof.

For the first set of axes, we have unit vectors \hat x and \hat y.
For the second set, which is rotated counterclockwise by angle \theta, we have \hat x' and \hat y'.

Note that A_x= \vec A\cdot \hat x and so on.

Now, compute A_{x'}= \vec A\cdot \hat x' where one writes
\vec A=(\vec A \cdot \hat x) \hat x + (\vec A \cdot \hat y) \hat y=A_x\hat x + A_y\hat y.
So, let's plug it in:
\begin{align*}<br /> A_{x&#039;} <br /> &amp;= \vec A\cdot \hat x&#039; \\<br /> &amp;= \left( A_x\hat x + A_y\hat y \right) \cdot \hat x&#039; \\<br /> &amp;=(A_x) \hat x\cdot \hat x&#039; + (A_y) \hat y\cdot \hat x&#039; \\<br /> &amp;=(A_x) \cos\theta + (A_y) \cos(90^\circ - \theta) \\<br /> &amp;=(A_x) \cos\theta + (A_y) \sin\theta \\<br /> \end{align}<br />
Do the same for A_{y&#039;}, and note that \hat x\cdot \hat y&#039; =\cos(90^\circ+\theta)= -\sin\theta and \hat y\cdot \hat y&#039; =\cos\theta.
 
Last edited:
The original vector had an x-component and a y-component. I find it easiest to just follow those two components separately.

When the original vector gets rotated the original x-component, let’s call that X, will not be only in the direction of the x-axis anymore, the component of the rotated “original x-component“ that will still be in the direction of the x-axis is:
X\cos(\theta)
but it will now also have a component in the direction of the y-axis, which will be:
-X\sin(\theta)

The same happens with the original y component. The component of the rotated “original y component“ that will still be in the direction of the y-axis is:
Y\cos(\theta)
and the component in the direction of the x-axis will be:
Y\sin(\theta)

To get the x-component of the new vector add the parts in the direction of the x-axis:
X\cos(\theta) + Y\sin(\theta)
To get the y-component of the new vector add the parts in the direction of the y-axis:
-X\sin(\theta) + Y\cos(\theta)
 
hey thanks a lot for the help. Yup the subscript on the LHS should be y. Here's what i have done, a little algebra,

a_x&#039; cos \theta = a_x

a_x&#039; sin \theta= a_y

what i did was to multiply sin and cosine to both equations respectively and add them up, to get the expression for a_x&#039;

for a_y&#039; i did the same thing, except that this time, comlementary angles were involved and the vector a_x points in the opposite direction.

Is that right?

edit: i'll look at the rest of the methods too. : )
 
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
694
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K