I am trying to prove that $O(2)$ has two connected components. This is what I have done:
Suppose $A \in O(2)$. Then $A^tA=I$, where $A^t$ is the transpose of $A$ and $I$ is the identity. Taking the determinant of both sides of this equation, we get $\det(A^t)\det(A) = (det(A))^2$
which implies $\det(A) = \pm 1$.
And since $\det$ is continuous (which means that the inverse image of an open set is open), we have $O(2)$ is the disjoint union of $O^+(2)$ and $O^-(2)$. Is this right? Would this be sufficient or would this only prove that there are at least two components?