Prove that every 2×2 orthogonal matrix A over R can be written in one of the forms

[cosθ−sinθ] [cosθ −sinθ]
[sinθ−cosθ​], [sinθ −cosθ​[.

depending on whether A has determinant 1 or -1 .