Why do these formulas rotate a point $(x,y)$ counterclockwise or clockwise by an angle of $\theta$? I have no idea how to start; I want a step-by-step explanation.
Counterclockwise: $x'=x\cos\theta-y\sin\theta$, $y'=x\sin\theta+y\cos\theta$
Clockwise: $x'=x\cos\theta+y\sin\theta$, $y'=-x\sin\theta+y\cos\theta$
