Solution
= Solution
Expanding the <trace> of the product and exchanging the two finite summation indices gives
$$
\operatorname{Tr}(AB)=\sum_{i,j}a_{ij}b_{ji}=\sum_{j,i}b_{ji}a_{ij}=\operatorname{Tr}(BA).
$$
Scalar entries commute even though the <matrices> need not.