1

Given A is $m\times n$ and B is a $n \times m$ matrix, can we say trace(AB) = trace(BA)? It worked for a few examples with $m = 2$ and $n = 3$.

DDDAD
  • 147

1 Answers1

8

Yes, It is true. Trace(AB) = Trace(BA) for rectangular matrices. You can rewrite the expression used for calculating trace to prove this.

tr(AB) = $\sum_{i=1}^{m}(AB)_{ii} = \sum_{i=1}^{m}\sum_{j=1}^{n}A_{ij}B_{ji} = \sum_{j=1}^{n}\sum_{i=1}^{m}B_{ji}A_{ij} = \sum_{j=1}^{n}(BA)_{jj} $= tr(BA)

For more references, you can see the answers in this link : Read more here..