GateAI
Linear Algebra

GATE CSE 2022 · Q20

MCQ1 markEasy

Time

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?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) Both Statement 1 and Statement 2 are correct.

Linear Algebra

The trace of a matrix is the sum of its main diagonal elements.

  1. Statement 1: For any two rectangular matrices AA of size m×nm \times n and BB of size n×mn \times m, the product ABAB is of size m×mm \times m and BABA is of size n×nn \times n.

    The trace of ABAB is:

    tr⁡(AB)=∑i=1m(AB)ii=∑i=1m∑j=1nAijBji\operatorname{tr}(AB) = \sum_{i=1}^{m} (AB)_{ii} = \sum_{i=1}^{m} \sum_{j=1}^{n} A_{ij} B_{ji}

    The trace of BABA is:

    tr⁡(BA)=∑j=1n(BA)jj=∑j=1n∑i=1mBjiAij\operatorname{tr}(BA) = \sum_{j=1}^{n} (BA)_{jj} = \sum_{j=1}^{n} \sum_{i=1}^{m} B_{ji} A_{ij}

    Since multiplication of scalar entries is commutative, ∑i=1m∑j=1nAijBji=∑j=1n∑i=1mBjiAij\sum_{i=1}^{m} \sum_{j=1}^{n} A_{ij} B_{ji} = \sum_{j=1}^{n} \sum_{i=1}^{m} B_{ji} A_{ij}, which implies tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA). Hence, Statement 1 is correct.

  2. Statement 2: Since CC and DD are both square matrices of size n×nn \times n, this is a special case of the cyclic property of the trace (with m=nm = n), so tr⁡(CD)=tr⁡(DC)\operatorname{tr}(CD) = \operatorname{tr}(DC). Hence, Statement 2 is correct.

Therefore, Both Statement 1 and Statement 2 are correct, which corresponds to option (C).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Linear Algebra previous year question is Q20 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Linear Algebra in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Linear Algebra PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Linear Algebra in GATE CSE

Linear Algebra has 46 GATE CSE PYQs across 26 papers from 2011 to 2026. 13 of them are 1-mark MCQs like this one, and GATE CSE 2022 has 3.

How GATE tests Linear Algebra

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q20 · MCQ

Consider the following two statements with respect to the matrices Am × n, Bn × m, Cn × n and Dn × 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?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.