Vector Rotation: How to Rotate a Vector by 90 Degrees using a Rotation Matrix

3 replies · 5K views · last reply
_Andreas
Messages
141
Reaction score
1

Homework Statement



Rotate a vector v=x_1e_1+x_2e_2 90 degrees by using the rotation matrix.

The Attempt at a Solution



As you can see in the attached image, I get a 90 degree clockwise rotation. I'm supposed to get a 90 degree counterclockwise rotation. Where do I go wrong?
 
Attachments
  • Handwritten sketch of a coordinate plane with a vector (x1, x2) drawn in the first quadrant, a rotated vector (y1 = -x2, y2 = x1) drawn in the fourth quadrant, the matrix equation [y1; y2] = [0 -1; 1 0][x1; x2], and the resulting equations y1 = -x2 and y2 = x1.
    Rotationsmatris.jpg
    5.7 KB · Views: 463
Hi _Andreas! :smile:
_Andreas said:
Rotate a vector v=x_1e_1+x_2e_2 90 degrees by using the rotation matrix.
…
As you can see in the attached image, I get a 90 degree clockwise rotation. I'm supposed to get a 90 degree counterclockwise rotation. Where do I go wrong?

erm … not enough sleep? :redface: …

Hint: try multiplying by -1 :smile:​
 
What you've drawn for your rotated vector is [itex]x_1 \hat{e_1} - x_2 \hat{e_2}[/itex]; which is not the same as what you calculated using the transformation matrix: [tex]\vec{y}=\begin{pmatrix} -x_2 \\ x_1 \end{pmatrix}=-x_2 \hat{e_1} + x_1 \hat{e_2}[/tex]
 
gabbagabbahey said:
What you've drawn for your rotated vector is [itex]x_1 \hat{e_1} - x_2 \hat{e_2}[/itex]; which is not the same as what you calculated using the transformation matrix: [tex]\vec{y}=\begin{pmatrix} -x_2 \\ x_1 \end{pmatrix}=-x_2 \hat{e_1} + x_1 \hat{e_2}[/tex]

Thanks! I did suspect that this was the case, but I wasn't sure.