Linear Algebra

Your answer
Answer & solution
Official answer: C
For A of size m×n and B of size n×m, trace(AB)=Σ_iΣ_j A_ij B_ji=Σ_jΣ_i B_ji A_ij=trace(BA). Both products are square even when their sizes differ. Hence both stated equalities hold, C.
Trace only sums diagonal entries, not all entries. (AB)ii=Σj AijBji. Finite sums may be exchanged, and scalar factors commute, giving the diagonal sum of BA. This cyclic identity does not assert AB=BA.