I have a question regarding one proof of the the following statement:
If $A$ is a square matrix such that $AX=XA$ for any square matrix $X$, then $A=cI$ for some $c$. ($I$ is the identity matrix).
I managed to prove this for $n \times n$-matrices when using the hint that I should let $X=E_{ij}$. However, I don´t really understand why that special case helps me prove it for all $n \times n$-matrices $X$.
By letting $X=E_{ij}$, we see that for $AE_{ij}=E_{ij}A$ to be true, we need $a_{ii}=a_{jj}$ and all the other entries at row $i$ and column $j$ to be zero. Since we may choose $i$ and $j$ arbitrary, this proves that $A=cI$.
But how can we now be sure that this holds for any matrix $X$? I understand Why it is a convenient approach to let $X=E_{ij}$ but don´t how it covers all cases? It feels like I´m missing something trivial since associating with $E_{ij}$ surley wasn´t obvious to me, even though it made the problem became "easy" to solve. That is not fine by me though, I really want to understand this.