When is matrix multiplication commutative

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 7K views
jaejoon89
Messages
187
Reaction score
0
Can somebody please explain to me when matrices commute? I've read that it's when they are diagonal with the same dimensions (and also scalar multiples?), but I don't understand why this is.
 
Physics news on Phys.org
Well, for example, what is
[tex]\begin{bmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c\end{bmatrix}\begin{bmatrix}x & 0 & 0 \\ 0 & y & 0 \\ 0 & 0 & z\end{bmatrix}[/tex]
and what is
[tex]\begin{bmatrix}x & 0 & 0 \\ 0 & y & 0 \\ 0 & 0 & z\end{bmatrix}\begin{bmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c\end{bmatrix}[/tex]

If you can see why those are the same, you should be able to generalize to any dimension.