I'm examining a proof that: $Z\bigl(GL(2,\mathbb R)\bigr)= \left\{ \pmatrix{ a & 0 \\ 0 & a } \,\middle|\, a \in \mathbb R\setminus\{0\} \right\} $, where $Z$ denotes the center of the general linear group $GL(2,\mathbb R)$.
I have one question on part of this proof:
Suppose we have a matrix of the form $aI$ where $I$ is the $2 \times 2$ identity matrix, then for any $A \in GL(2,\mathbb R)$:
$(aI)A=aA=Aa=A(aI)$*
Therefore such a matrix lies in $Z(GL(2,\mathbb R))$.
Why at * can we assume $aA=Aa$? Is it because $a$ is the identity matrix and $A$ is invertible so these properties imply multiplicative commutativity?
Sorry if this is a trivial question but help would be great!