Skip to main content
Back to Matrices & Determinants
JEE Main 2019
Matrices & Determinants
Matrices and Determinants
Medium

Question

The number of all 3 × 3 matrices A, with enteries from the set {–1, 0, 1} such that the sum of the diagonal elements of AA T is 3, is

Answer: 11

Solution

Key Concept: Trace of a Matrix and the Sum of Squares

The problem involves the sum of diagonal elements of the matrix product AATAA^T. This sum is formally known as the trace of the matrix AATAA^T, denoted as Tr(AAT)\text{Tr}(AA^T). A crucial property for any n×nn \times n matrix AA with entries aija_{ij} is that: Tr(AAT)=i=1nj=1naij2\text{Tr}(AA^T) = \sum_{i=1}^n \sum_{j=1}^n a_{ij}^2 This formula states that the sum of the diagonal elements of AATAA^T is equal to the sum of the squares of all entries of the matrix AA. This property is fundamental to solving this problem.


Step-by-Step Derivation

1. Define the Matrix A and its Transpose ATA^T Let AA be a 3×33 \times 3 matrix with entries aija_{ij} from the set {1,0,1}\{-1, 0, 1\}. A=(a11a12a13a21a22a23a31a32a33)A = \begin{pmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{pmatrix} The transpose of AA, denoted ATA^T, is obtained by interchanging rows and columns: AT=(a11a21a31a12a22a32a13a23a33)A^T = \begin{pmatrix} a_{11} & a_{21} & a_{31} \\ a_{12} & a_{22} & a_{32} \\ a_{13} & a_{23} & a_{33} \end{pmatrix}

2. Calculate the Diagonal Elements of AATAA^T To find the diagonal elements of AATAA^T, we multiply the ii-th row of AA by the ii-th column of ATA^T. Let (AAT)ii(AA^T)_{ii} denote the ii-th diagonal element.

For the first diagonal element (AAT)11(AA^T)_{11}: It is the dot product of the first row of AA and the first column of ATA^T. (AAT)11=(a11,a12,a13)(a11,a12,a13)=a112+a122+a132(AA^T)_{11} = (a_{11}, a_{12}, a_{13}) \cdot (a_{11}, a_{12}, a_{13}) = a_{11}^2 + a_{12}^2 + a_{13}^2 For the second diagonal element (AAT)22(AA^T)_{22}: It is the dot product of the second row of AA and the second column of ATA^T. (AAT)22=(a21,a22,a23)(a21,a22,a23)=a212+a222+a232(AA^T)_{22} = (a_{21}, a_{22}, a_{23}) \cdot (a_{21}, a_{22}, a_{23}) = a_{21}^2 + a_{22}^2 + a_{23}^2 For the third diagonal element (AAT)33(AA^T)_{33}: It is the dot product of the third row of AA and the third column of ATA^T. (AAT)33=(a31,a32,a33)(a31,a32,a33)=a312+a322+a332(AA^T)_{33} = (a_{31}, a_{32}, a_{33}) \cdot (a_{31}, a_{32}, a_{33}) = a_{31}^2 + a_{32}^2 + a_{33}^2

3. Formulate the Given Condition The problem states that the sum of the diagonal elements of AATAA^T is 3. Using the calculations from Step 2, this sum is: (a112+a122+a132)+(a212+a222+a232)+(a312+a322+a332)=3(a_{11}^2 + a_{12}^2 + a_{13}^2) + (a_{21}^2 + a_{22}^2 + a_{23}^2) + (a_{31}^2 + a_{32}^2 + a_{33}^2) = 3 This can be written more compactly as the sum of squares of all 9 entries of matrix AA: i=13j=13aij2=3\sum_{i=1}^3 \sum_{j=1}^3 a_{ij}^2 = 3

4. Analyze the Properties of the Entries The entries aija_{ij} can only take values from the set {1,0,1}\{-1, 0, 1\}. Let's consider the possible values for aij2a_{ij}^2:

  • 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 aij2a_{ij}^2 can only be either 00 or 11.

Now, we have the sum of nine such terms (aij2a_{ij}^2) equal to 3: a112+a122++a332=3a_{11}^2 + a_{12}^2 + \dots + a_{33}^2 = 3 Since each aij2a_{ij}^2 is either 0 or 1, for their sum to be exactly 3, it must be the case that exactly three of these aij2a_{ij}^2 terms are equal to 1, and the remaining 93=69-3=6 terms are equal to 0.

  • If aij2=1a_{ij}^2 = 1, then aija_{ij} can be either 11 or 1-1. (2 choices)
  • If aij2=0a_{ij}^2 = 0, then aija_{ij} must be 00. (1 choice)

5. Count the Number of Possible Matrices We need to construct matrices AA that satisfy these conditions. This is a combinatorial problem involving two stages:

  • Stage 1: Choose the positions for the non-zero entries. There are 9 total entries in the 3×33 \times 3 matrix. We need to select 3 of these positions to have non-zero values (i.e., aij2=1a_{ij}^2 = 1). The number of ways to choose these 3 positions out of 9 is given by the combination formula (nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!(n-k)!}: (93)=9!3!(93)!=9!3!6!=9×8×73×2×1=3×4×7=84\binom{9}{3} = \frac{9!}{3!(9-3)!} = \frac{9!}{3!6!} = \frac{9 \times 8 \times 7}{3 \times 2 \times 1} = 3 \times 4 \times 7 = 84 So, there are 84 ways to choose which three entries in the matrix will be non-zero.

  • Stage 2: Assign values to the chosen non-zero entries. For each of the 3 chosen positions, the entry aija_{ij} can be either 1 or -1. Since there are 2 choices for each of these 3 positions, the total number of ways to assign values to these non-zero entries is 2×2×2=23=82 \times 2 \times 2 = 2^3 = 8.

  • Stage 3: Assign values to the remaining zero entries. The remaining 93=69-3=6 entries must have aij2=0a_{ij}^2 = 0, which means aija_{ij} must be 0. There is only 1 way to assign 0 to each of these positions. This step doesn't multiply the total count further as 16=11^6=1.

Total Number of Matrices: To find the total number of such matrices, we multiply the number of ways from Stage 1 and Stage 2: Number of matrices=(93)×23=84×8=672\text{Number of matrices} = \binom{9}{3} \times 2^3 = 84 \times 8 = 672


Tips and Common Mistakes:

  1. Understanding the Trace: Ensure you understand the property Tr(AAT)=aij2\text{Tr}(AA^T) = \sum a_{ij}^2. This property significantly simplifies the problem by converting a matrix multiplication problem into a sum of squares problem.
  2. Entry Value Analysis: Carefully analyze the possible values of aija_{ij} and aij2a_{ij}^2. For entries from {1,0,1}\{-1, 0, 1\}, aij2a_{ij}^2 can only be 0 or 1. This is the critical step to deduce how many entries must be non-zero.
  3. Combinatorics vs. Permutations: This problem involves choosing positions and then assigning values. Since the positions are distinct (e.g., a11a_{11} is different from a12a_{12}), we use combinations to choose the locations of the non-zero entries, and then for each chosen location, we have independent choices for its value.
  4. Don't forget the sign choices: A common mistake is to only count the ways to choose positions ((93)\binom{9}{3}) and forget that the non-zero entries can be either 1 or -1, leading to an answer of 84. The 232^3 factor is crucial.

Summary and Key Takeaway:

This problem effectively tests your understanding of matrix operations (specifically AATAA^T), the concept of a matrix trace, and basic combinatorics. The key insight is realizing that the condition on the sum of diagonal elements translates to the sum of squares of all entries of the matrix. Given the restricted set of allowed entries {1,0,1}\{-1, 0, 1\}, this sum of squares directly dictates how many entries must be non-zero and what values they can take. The solution then becomes a straightforward application of combinations to choose positions and powers to assign values.

The final answer is 672\boxed{672}.

Practice More Matrices & Determinants Questions

View All Questions