Please could someone check my work on this exercise (from a book I am reading). Thanks!
Exercise:
Prove that $SO(n)$ and $ O(n)^- = \{ A \in O(n) \mid \det(A) = -1 \}$ are both clopen in $O(n)$.
My solution:
Since $\det: O(n) \to \{-1,1\}$ is continuous and $O(n)^- = \det^{-1} (\{-1\})$ and $SO(n) = \det^{-1}(\{1\})$ we see that they are closed. Since $SO(n) = (O^{-}(n))^c$ and $O^{-}(n) = SO^c (n)$ we see that they are open.
As a consequence, $O(n)$ is disconnected.