Suppose I have a matrix $A $ in the space $ V $ of $n $ by $n $ matrices. Then it is quite clear that $S=\{B : AB=BA\} $ form a subspace. I want to find out its dimension. I think it depends on the rank of $A $.
I'm trying the simplest case : $A $ has full rank. If $X$ is commutative with any other elements of $V $, then $X $ belongs to $S$. It is only the multyple of the identity matrix. So $1\leq \text {dim} S $.
But It's hard for me to make any other proper upper bound.