Skip to content
GATEiit

GATE CSE 2022 Q20: Trace of AB vs BA for rectangular and square matrices

Question

Consider the following two statements with respect to the matrices Am×nA_{m \times n}, Bn×mB_{n \times m}, Cn×nC_{n \times n} and Dn×nD_{n \times n}.

Statement 1: tr(AB)=tr(BA)tr(AB) = tr(BA) Statement 2: tr(CD)=tr(DC)tr(CD) = tr(DC)

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

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: C (official GATE 2022 final answer key)

Concept used: The cyclic property of trace holds whenever both products are defined, even if they have different sizes.

First step: Write tr(AB)=∑i∑jaijbjitr(AB) = \sum_i \sum_j a_{ij} b_{ji} and compare it with tr(BA)=∑j∑ibjiaijtr(BA) = \sum_j \sum_i b_{ji} a_{ij}.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key