Skip to content

GATE CS 2022 Q10 — Linear Algebra: Matrices, Determinants, System of Linear Equations

Explain with AI

Consider the following two statements with respect to the matrices Am×n,Bn×m,Cn×n\textit{A}_{m \times n}, \textit{B}_{n \times m}, \textit{C}_{n \times n} and Dn×n.\textit{D}_{n \times n}.

Statement 1:tr(AB)=tr(BA)1: tr \text{(AB)} = tr \text{(BA)}

Statement 2:tr(CD)=tr(DC)2: tr \text{(CD)} = tr \text{(DC)}

where tr()tr() represents the trace of a matrix. Which one of the following holds?

Choose one option
View worked solution

Answer: C

The trace of a square matrix is defined as the sum of its diagonal elements. A fundamental property of the trace is its commutativity under multiplication, known as the cyclic property: for any two matrices Xp×qX_{p \times q} and Yq×pY_{q \times p}, we have:

tr(XY)=tr(YX)\text{tr}(XY) = \text{tr}(YX)

Proof of the Property:

Let XX be a p×qp \times q matrix and YY be a q×pq \times p matrix.

  • The product XYXY is a square matrix of size p×pp \times p. Its trace is: tr(XY)=∑i=1p(XY)ii=∑i=1p∑j=1qXijYji\text{tr}(XY) = \sum_{i=1}^{p} (XY)_{ii} = \sum_{i=1}^{p} \sum_{j=1}^{q} X_{ij} Y_{ji}
  • The product YXYX is a square matrix of size q×qq \times q. Its trace is: tr(YX)=∑j=1q(YX)jj=∑j=1q∑i=1pYjiXij\text{tr}(YX) = \sum_{j=1}^{q} (YX)_{jj} = \sum_{j=1}^{q} \sum_{i=1}^{p} Y_{ji} X_{ij}

Since scalar multiplication is commutative (XijYji=YjiXijX_{ij} Y_{ji} = Y_{ji} X_{ij}) and finite summations can be reordered, we have:

∑i=1p∑j=1qXijYji=∑j=1q∑i=1pYjiXij\sum_{i=1}^{p} \sum_{j=1}^{q} X_{ij} Y_{ji} = \sum_{j=1}^{q} \sum_{i=1}^{p} Y_{ji} X_{ij}

Thus, tr(XY)=tr(YX)\text{tr}(XY) = \text{tr}(YX) always holds, even if the dimensions of XYXY (p×pp \times p) and YXYX (q×qq \times q) are different.

Evaluating the Statements:

  • Statement 1: For Am×nA_{m \times n} and Bn×mB_{n \times m}, both ABAB (size m×mm \times m) and BABA (size n×nn \times n) are square matrices. By the cyclic property, tr(AB)=tr(BA)\text{tr}(AB) = \text{tr}(BA). Hence, Statement 1 is correct.
  • Statement 2: For Cn×nC_{n \times n} and Dn×nD_{n \times n}, both CDCD and DCDC are square matrices of size n×nn \times n. By the cyclic property, tr(CD)=tr(DC)\text{tr}(CD) = \text{tr}(DC). Hence, Statement 2 is correct.

Therefore, both Statement 1 and Statement 2 are correct.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Linear Algebra: Matrices, Determinants, System of Linear Equations questions