Skip to main content
Back to Matrices & Determinants
JEE Main 2020
Matrices & Determinants
Matrices and Determinants
Easy

Question

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 ASA \in S such that the sum of all the diagonal elements of ATAA^{\mathrm{T}} A is 6 is ____________.

Answer: 1

Solution

1. Key Concept: Trace of ATAA^T A

The problem asks for the sum of all diagonal elements of the matrix product ATAA^T A. This sum is formally known as the trace of the matrix ATAA^T A, denoted as Tr(ATA)\mathrm{Tr}(A^T A).

A fundamental and highly useful property for any real matrix AA is that the trace of ATAA^T A is equal to the sum of the squares of all its individual elements. Let A=[aij]A = [a_{ij}] be an m×nm \times n matrix with real entries. Then: Tr(ATA)=i=1mj=1naij2\mathrm{Tr}(A^T A) = \sum_{i=1}^m \sum_{j=1}^n a_{ij}^2 Why this is important: This property significantly simplifies the problem. Instead of performing matrix multiplication ATAA^T A and then summing its diagonal elements, we can directly work with the individual entries of matrix AA. This avoids complex calculations and makes the problem tractable.

Proof of the Property (for clarity): Let AA be an m×nm \times n matrix. Let C=ATAC = A^T A. The element cikc_{ik} of CC is given by: cik=j=1n(AT)ijAjkc_{ik} = \sum_{j=1}^n (A^T)_{ij} A_{jk} Since (AT)ij=aji(A^T)_{ij} = a_{ji}, we have: cik=j=1najiajkc_{ik} = \sum_{j=1}^n a_{ji} a_{jk} The diagonal elements of CC are ciic_{ii}. So, cii=j=1najiaji=j=1n(aji)2c_{ii} = \sum_{j=1}^n a_{ji} a_{ji} = \sum_{j=1}^n (a_{ji})^2 The trace of CC is the sum of its diagonal elements: Tr(ATA)=i=1mcii=i=1mj=1n(aji)2\mathrm{Tr}(A^T A) = \sum_{i=1}^m c_{ii} = \sum_{i=1}^m \sum_{j=1}^n (a_{ji})^2 Since the sum is over all m×nm \times n elements, the order of indices ii and jj in ajia_{ji} doesn't change the sum. Thus, i=1mj=1n(aji)2=i=1mj=1naij2\sum_{i=1}^m \sum_{j=1}^n (a_{ji})^2 = \sum_{i=1}^m \sum_{j=1}^n a_{ij}^2.

2. Applying the Concept to the Problem

The problem states that AA is a 3×33 \times 3 matrix, meaning it has 3×3=93 \times 3 = 9 elements. Let these elements be aija_{ij}, where i,j{1,2,3}i, j \in \{1, 2, 3\}. The entries aija_{ij} are chosen from the set {1,0,1}\{-1, 0, 1\}. We are given that the sum of all diagonal elements of ATAA^T A is 6. Using the key property: i=13j=13aij2=6\sum_{i=1}^3 \sum_{j=1}^3 a_{ij}^2 = 6

3. Analyzing the Sum of Squares

Now, let's consider the possible values for aij2a_{ij}^2 given that aij{1,0,1}a_{ij} \in \{-1, 0, 1\}:

  • If aij=1a_{ij} = -1, then aij2=(1)2=1a_{ij}^2 = (-1)^2 = 1.
  • If aij=0a_{ij} = 0, then aij2=(0)2=0a_{ij}^2 = (0)^2 = 0.
  • If aij=1a_{ij} = 1, then aij2=(1)2=1a_{ij}^2 = (1)^2 = 1. So, each term aij2a_{ij}^2 in the sum can only be either 0 or 1.

We have a sum of 9 such terms, and their total sum must be 6: a112+a122++a332=6a_{11}^2 + a_{12}^2 + \dots + a_{33}^2 = 6 Since each aij2a_{ij}^2 is either 0 or 1, for their sum to be 6, exactly 6 of these terms must be 1, and the remaining 96=39-6=3 terms must be 0. Why this is important: This deduction translates the matrix problem into a combinatorial counting problem: we need to count how many ways we can choose the entries of AA such that 6 of them are non-zero (i.e., ±1\pm 1) and 3 are zero.

4. Counting the Possibilities

To construct a matrix AA that satisfies the condition, we need to make two decisions:

  1. Choose the positions for the non-zero elements: We need to select 6 positions out of the 9 available positions in the 3×33 \times 3 matrix where the entries will be non-zero (i.e., ±1\pm 1). The number of ways to do this is given by the binomial coefficient (96)\binom{9}{6}. (96)=(996)=(93)=9×8×73×2×1=3×4×7=84\binom{9}{6} = \binom{9}{9-6} = \binom{9}{3} = \frac{9 \times 8 \times 7}{3 \times 2 \times 1} = 3 \times 4 \times 7 = 84
  2. Assign values to the chosen positions:
    • For each of the 6 chosen positions, the entry aija_{ij} must be such that aij2=1a_{ij}^2 = 1. This means aija_{ij} can be either 1-1 or 11. There are 2 choices for each of these 6 positions. Since these choices are independent, the total number of ways to assign values to these 6 positions is 262^6. 26=642^6 = 64
    • For the remaining 3 positions (which were not chosen in step 1), the entry aija_{ij} must be such that aij2=0a_{ij}^2 = 0. This means aija_{ij} must be 00. There is only 1 choice for each of these 3 positions. The total number of ways to assign values to these 3 positions is 13=11^3 = 1.

Total Number of Matrices: The total number of matrices AA satisfying the condition is the product of the possibilities from these steps: Total number of matrices = (Ways to choose positions for non-zero elements) ×\times (Ways to assign values to non-zero elements) ×\times (Ways to assign values to zero elements) Total matrices=(96)×26×13=84×64×1\text{Total matrices} = \binom{9}{6} \times 2^6 \times 1^3 = 84 \times 64 \times 1

5. Calculation

84×64=537684 \times 64 = 5376

Therefore, there are 5376 matrices ASA \in S such that the sum of all the diagonal elements of ATAA^T A is 6.

Tips and Common Mistakes:

  • Don't forget the transpose: The property Tr(ATA)=aij2\mathrm{Tr}(A^T A) = \sum a_{ij}^2 is crucial. A common mistake is to misinterpret "diagonal elements of ATAA^T A" or to incorrectly calculate ATAA^T A.
  • Careful with entry values: Remember that aij2a_{ij}^2 is always non-negative. For entries from {1,0,1}\{-1,0,1\}, aij2a_{ij}^2 can only be 00 or 11. This simplifies the sum of squares constraint greatly.
  • Combinatorics: Problems involving counting matrices often combine matrix properties with combinatorial principles (like combinations and permutations). Ensure you correctly identify which elements are fixed, which have choices, and how many ways those choices can be made.
  • Consistency: Double-check that your interpretation of the problem statement (e.g., "sum of all diagonal elements" meaning trace) is consistent with standard definitions.

Summary and Key Takeaway: The key to solving this problem efficiently is recognizing the identity Tr(ATA)=i,jaij2\mathrm{Tr}(A^T A) = \sum_{i,j} a_{ij}^2. Once this property is applied, the problem transforms into a straightforward combinatorics question. For a 3×33 \times 3 matrix with entries from {1,0,1}\{-1,0,1\}, the condition Tr(ATA)=6\mathrm{Tr}(A^T A) = 6 implies that exactly 6 of the matrix elements must be ±1\pm 1 and the remaining 3 must be 00. The number of ways to choose these positions and assign the values leads to 5376 possible matrices.

Practice More Matrices & Determinants Questions

View All Questions