QlarIITy

MathematicsJEE Main 2022 · 27 JulyInteger

Let SS be the set containing all 3×33 \times 3 matrices with entries from {−1,0,1}\{-1, 0, 1\}. The total number of matrices A∈SA \in S such that the sum of all the diagonal elements of ATAA^TA is 6 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 the transpose times the matrix is the sum of the squares of all the entries.

Concept refresher. The diagonal entries of ATAA^TA are the sums of the squares of the columns of AA, so its trace is the sum of the squares of all the entries:

tr⁡(ATA)=∑aij2\operatorname{tr}(A^TA) = \sum a_{ij}^2

Picture the situation. The diagonal entry of ATAA^TA in position jj is the sum of the squares of column jj 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 ATAA^TA is the sum of the squares of the nine entries, and each square is 0 or 1. So the sum is 6 exactly when 6 entries are non-zero.

  2. Step 2: The count

    The 6 non-zero positions can be chosen in 9C6=84{}^{9}C_6 = 84 ways, and each non-zero entry is 11 or −1-1, giving 26=642^6 = 64 sign patterns. The number of matrices is 84×64=537684 \times 64 = 5376.

Answer. 5376

Sanity check. Equivalently choose the 3 zero positions: 9C3=84{}^{9}C_3 = 84, the same number.

Common wrong answers

  • 84: Counting only the positions of the non-zero entries gives 84; each of them can also have either sign.

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⁡(ATA)=∑aij2\operatorname{tr}(A^TA) = \sum a_{ij}^2

More on Transpose & Properties