Ok so I have two matrices:
The reflection about the line y=x.
$$A=\pmatrix{0 & 1 \\ 1 & 0}$$
And the reflection about the line $y=0$.
$$B= \pmatrix{ 1 & 0 \\ 0 & -1} $$
I need to show that both $AB$ and $BA$ represent rotations of $\mathbb{R}^2$. I know that they are rotations of 90 degrees in opposite directions, but how can I show this? I don't think giving a few examples is enough.
Also, if I need to compute $ABABABAB$ and $BABABABA$, can I just bunch them up as $(AB)(AB)AB)(AB)$ and $(BA)(BA)(BA)(BA)$?