The matrices \[\begin{bmatrix} \cos\theta && -\sin\theta \\ \sin\theta && \cos\theta \end{bmatrix}\] and \[\begin{bmatrix} a && 0\\ 0&& b \end{bmatrix}\] commute under multiplication
A
if \(a=b \text{ or } \theta = n\pi\), n is an integer
Show the worked solutionWith \(c=\cos\theta,\ s=\sin\theta\):\[RD=\begin{bmatrix}ac&-bs\\as&bc\end{bmatrix},\qquad DR=\begin{bmatrix}ac&-as\\bs&bc\end{bmatrix}.\]They are equal iff \((a-b)\sin\theta=0\), i.e. \(a=b\) or \(\theta=n\pi\).Answer: A
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com