QlarIITy

MathematicsJEE Main 2020 · 8 JanuaryInteger

The number of all 3×33 \times 3 matrices AA, with entries from the set {−1,0,1}\{-1, 0, 1\} such that the sum of the diagonal elements of AATAA^T is 3, is ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. The trace of a matrix times its transpose is the sum of the squares of all the entries.

Concept refresher. The diagonal entries of AATAA^T are the sums of the squares of the rows of AA, so its trace is the sum of the squares of all the entries:

tr⁡(AAT)=∑aij2\operatorname{tr}(AA^T) = \sum a_{ij}^2

Picture the situation. The diagonal entry of AATAA^T in position ii is the sum of the squares of row ii of AA. Adding the three diagonal entries gives the sum of the squares of all nine entries. Since each entry is −1-1, 0 or 1, each square is 0 or 1, and the total counts the non-zero entries.

Approach. Turn the trace condition into a count of non-zero entries, then choose positions and signs.

  1. Step 1: The condition

    The sum of the diagonal elements of AATAA^T is the sum of the squares of the nine entries, and each square is 0 or 1. So the sum is 3 exactly when 3 entries are non-zero.

  2. Step 2: The count

    The 3 non-zero positions can be chosen in 9C3=84{}^{9}C_3 = 84 ways, and each non-zero entry is 11 or −1-1, giving 23=82^3 = 8 sign patterns. The number of matrices is 84×8=67284 \times 8 = 672.

Answer. 672

Sanity check. The three non-zero entries need not lie on the diagonal: any three positions will do, since every entry contributes its square to the sum.

Common wrong answers

  • 84: Counting only the positions of the non-zero entries gives 84; each of them can also have either sign.
  • 8: Putting the three non-zero entries on the diagonal only gives 8; they may be in any positions.

Key takeaway

The trap. A square of one comes from two different entries, plus one and minus one.

How toppers think. They translate the trace condition into a count of non-zero entries at once.

Remember. tr⁡(AAT)=∑aij2\operatorname{tr}(AA^T) = \sum a_{ij}^2

More on Transpose & Properties