The rotation matrix
A 2 by 2 table of numbers whose entire job is to spin everything around the origin.
What the symbols mean
- angle to rotate by
- where the point (1,0) lands
Why it works — the picture
A matrix is fully decided by where it sends the two basic arrows. Rotating (1,0) by theta puts it at (cos, sin). Rotating (0,1) puts it at (-sin, cos). Those become the columns. Because turning by a then by b is the same as turning by a+b, multiplying the two rotation matrices must give a rotation matrix with a+b in it; reading the entries gives the sine and cosine addition formulas for free.
Try it yourself
- Rotate (1,0) by 90 degrees and check you land at (0,1).
- Multiply two 30 degree rotation matrices by hand and compare with the 60 degree one.
- What is the determinant of a rotation matrix? Why?
Where it’s used in real life
Every 3D game and animation rotates objects with this; so do robot arms and phone screens.