Answer: A
Let the two matrices be defined as:
A=[cosθsinθ−sinθcosθ]andB=[a00b]
For the matrices to commute under multiplication, they must satisfy the condition AB=BA.
Let us compute the product AB:
AB=[cosθsinθ−sinθcosθ][a00b]=[acosθasinθ−bsinθbcosθ]
Now, let us compute the product BA:
BA=[a00b][cosθsinθ−sinθcosθ]=[acosθbsinθ−asinθbcosθ]
Equating the corresponding elements of AB and BA:
- The diagonal elements are already equal: acosθ=acosθ and bcosθ=bcosθ.
- For the off-diagonal elements, we require:
−bsinθ=−asinθ⟹(a−b)sinθ=0
and
asinθ=bsinθ⟹(a−b)sinθ=0
The equation (a−b)sinθ=0 is satisfied if and only if:
- a−b=0⟹a=b, or
- sinθ=0⟹θ=nπ (where n is an integer).
Thus, the matrices commute if a=b or θ=nπ, which corresponds to Option A.