Given, exactly as printed, A=[cosθsinθsinθcosθ], B=[cosϕsinϕ−sinϕcosϕ].
Compute AB (using cosαcosβ±sinαsinβ=cos(α∓β) and sinαcosβ±cosαsinβ=sin(α±β)):
(AB)11=cosθcosϕ+sinθsinϕ=cos(θ−ϕ)
(AB)12=cosθ(−sinϕ)+sinθcosϕ=sin(θ−ϕ)
(AB)21=sinθcosϕ+cosθsinϕ=sin(θ+ϕ)
(AB)22=sinθ(−sinϕ)+cosθcosϕ=cos(θ+ϕ)
AB=[cos(θ−ϕ)sin(θ+ϕ)sin(θ−ϕ)cos(θ+ϕ)]
Compute BA:
(BA)11=cosϕcosθ+(−sinϕ)sinθ=cos(θ+ϕ)
(BA)12=cosϕsinθ+(−sinϕ)cosθ=sin(θ−ϕ)
(BA)21=sinϕcosθ+cosϕsinθ=sin(θ+ϕ)
(BA)22=sinϕsinθ+cosϕcosθ=cos(θ−ϕ)
BA=[cos(θ+ϕ)sin(θ+ϕ)sin(θ−ϕ)cos(θ−ϕ)]
The off-diagonal entries of AB and BA match, but the two diagonal entries are swapped: cos(θ−ϕ) and cos(θ+ϕ) trade places. So AB=BA holds only when cos(θ−ϕ)=cos(θ+ϕ), i.e. when sinθsinϕ=0 — not true in general. As literally printed, the exercise's claim 'Show that AB=BA' does not hold for arbitrary θ, φ.
This is because A as printed (with +sinθ in the (1,2) slot) is a symmetric matrix, not the standard 2×2 rotation matrix. The standard rotation matrix is R(θ)=[cosθsinθ−sinθcosθ] — B is already printed in exactly this form — and it is a standard fact that R(θ)R(ϕ)=R(ϕ)R(θ)=R(θ+ϕ) for ALL θ, φ. This is almost certainly the identity intended (A is very likely missing a minus sign due to a printing/OCR slip). Re-deriving with A read as R(θ): …