This is a homework to find the connected components of $GL(n),O(n),U(n)$.
$GL(n),O(n)$
There is a hint about this. $GL(n),O(n)$ has two connected components $GL_{+}(n),GL_{-}(n)$ and $SO(n),O(n)-SO(n)$.
I think it just divide the $det$ of matrix into two parts: one is positive and the other is negative. So we can prove the positive one is not connected with the negative one because if we make it, there would be a continuous function $\sigma:I\rightarrow{GL(n)}$ and $det(\sigma(0))<0,det(\sigma(1))>0$. So I get stuck here. How to next?$U(n)$
How is it going on $U(n)$? It is not similar to the situation above.
I hope someone can help me. Thank you!