The number of all matrices , with entries from the set such that the sum of the diagonal elements of is 3, is ______.
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 are the sums of the squares of the rows of , so its trace is the sum of the squares of all the entries:
Picture the situation. The diagonal entry of in position is the sum of the squares of row of . Adding the three diagonal entries gives the sum of the squares of all nine entries. Since each entry is , 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.
Step 1: The condition
The sum of the diagonal elements of 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.
Step 2: The count
The 3 non-zero positions can be chosen in ways, and each non-zero entry is or , giving sign patterns. The number of matrices is .
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.
More on Transpose & Properties
- Let A = 1/√(2) -2; 0 1 and P = cosθ -sinθ; sinθ cosθ, θ > 0. If B = PAP^T, C = P^TB¹⁰P and the sum of the…
- If A = √(2) 1; -1 √(2), B = 1 0; 1 1, C = ABA^T and X = A^TC²A, then det X is equal to:
- Let A = I₂ - 2MM^T, where M is real matrix of order 2 × 1 such that the relation M^TM = I₁ holds. If λ is a…
- All 17 on Transpose & Properties ›