GATE 2022 CS – Question 20
Consider the following two statements with respect to the matrices $A_{m\times n}$, $B_{n\times m}$, $C_{n\times n}$ and $D_{n\times n}$.
Statement 1: tr(AB) = tr(BA)
Statement 2: tr(CD) = tr(DC)
where tr() represents the trace of a matrix. Which one of the following holds?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) Both Statement 1 and Statement 2 are correct.
Explanation
$tr(AB)=\sum_{i,j}a_{ij}b_{ji}=tr(BA)$ holds for any compatible rectangular matrices. Statement 2 is the special case with square matrices, so both are correct.