Find the center of the group $\operatorname{GL}(n,\mathbb R)$ of invertible $n \times n$ matrices.
Please can someone please help me? I know that by definition the center $Z$ of a group $G$ is defined by $Z(G) = \{g \in G\ |\ ag = ga ,\, \forall a \in G\}$.
I know that the identity matrix commutes with any matrix. I also notice by computing several matrix products that if we have a matrix with a main diagonal and all other entries are zero, then the given matrix commutes. In addition, I know that the determinant cannot be zero since zero times another matrix will only be zero. Please I would really appreciate the help. Thank you.