Linear Algebra
![Question 2.6, GATE 1996: For R=[[cosθ,−sinθ],[sinθ,cosθ]] and D=diag(a,b), determine when RD=DR.](../../assets/questions/CS-1996-Q31-1.webp)
Your answer
Answer & solution
Answer: A: a=b or θ is an integer multiple of π (no official key was published)
The diagonal entries of both products are a cosθ and b cosθ. Their off-diagonal entries agree exactly when −b sinθ=−a sinθ and a sinθ=b sinθ. Both reduce to (a−b)sinθ=0. Therefore either the scale factors are equal, making D a scalar matrix, or sinθ=0, meaning θ=nπ. This proves necessity as well as sufficiency. General unequal anisotropic scaling does not commute with an arbitrary rotation.