Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I found this comic:

XKCD comic showing a 90°-rotation matrix applied to a column vector equals that column vector drawn sideways

But I can't understand the humor because I can't understand how trig functions affect matrix multiplication. Can someone please explain?

share|improve this question
(+1) for making me laugh... apparently by accident! –  The Chaz 2.0 Jun 17 '11 at 3:23

4 Answers 4

The matrix $$\left[\begin{align} \cos(\theta) & \sin(\theta) \\ -\sin(\theta) & \cos(\theta) \end{align} \right]$$ when it acts on a vector it rotates the vector by $\theta$ in clockwise direction. Hence when $\theta = 90^{\circ}$, it rotates the vector $$\left[\begin{align} a_1 \\ a_2 \end{align} \right]$$ from vertical to horizontal clockwise.

share|improve this answer
$\theta=-90$... –  lhf Jun 3 '11 at 19:12
@lhf: Thats why I have written clockwise direction. –  user17762 Jun 3 '11 at 19:14
Oops, missed that clockwise. –  lhf Jun 3 '11 at 19:20

Well, the rotation matrix they write there is

$$ \left( \begin{array}{cc} 0 & 1 \\ -1 & 0 \\ \end{array} \right) $$

If you multiply a vector $\left( \begin{array}{c} a_{1} \\ a_{2} \\ \end{array} \right)$ by this matrix then you end up with $\left( \begin{array}{c} a_{2} \\ -a_{1} \\ \end{array} \right)$ If you draw a picture in the $xy$ plane connecting each of $(a_{1},a_{2})$ and $(a_{2},-a_{1})$ with the origin, it will be clear that the latter is a 90 degree rotation of the former.

share|improve this answer

That's a $-90$-degree rotation matrix.

share|improve this answer
Wow! A highly improbable case of two events occurring simultaneously! Your answer and mine show the same "answered 2 secs ago"! –  user17762 Jun 3 '11 at 19:11


enter image description here

Sorry couldn't resist when it was bumped.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.