The statements above can be expressed more mathematically. Let a rotation about the
origin O by an angle \theta be denoted as \operatorname{Rot}(\theta). Let a reflection about a line L through the origin which makes an angle \theta with the x-axis be denoted as \operatorname{Ref}(\theta). Let these rotations and reflections operate on all points on the plane, and let these points be represented by position
vectors. Then a rotation can be represented as a
matrix, \operatorname{Rot}(\theta) = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}, and likewise for a reflection, \operatorname{Ref}(\theta) = \begin{bmatrix} \cos 2 \theta & \sin 2 \theta \\ \sin 2 \theta & -\cos 2 \theta \end{bmatrix}. With these definitions of coordinate rotation and reflection, the following four
identities hold: \begin{align} \operatorname{Rot}(\theta) \, \operatorname{Rot}(\phi) &= \operatorname{Rot}(\theta + \phi), \\[4pt] \operatorname{Ref}(\theta) \, \operatorname{Ref}(\phi) &= \operatorname{Rot}(2\theta - 2\phi), \\[2pt] \operatorname{Rot}(\theta) \, \operatorname{Ref}(\phi) &= \operatorname{Ref}(\phi + \tfrac{1}{2}\theta), \\[2pt] \operatorname{Ref}(\phi) \, \operatorname{Rot}(\theta) &= \operatorname{Ref}(\phi - \tfrac{1}{2}\theta). \end{align} ==Proof==