Solution
= Solution
By the <unitary matrix> identities,
$$
\begin{aligned}
U^\dagger U&=(A-iB)(A+iB)=A^2+B^2+i(AB-BA)=I,\\
UU^\dagger&=(A+iB)(A-iB)=A^2+B^2-i(AB-BA)=I.
\end{aligned}
$$
Subtracting the two equations yields $2i(AB-BA)=0$. Therefore
$$
\boxed{AB=BA.}
$$
The subtraction is important: entrywise real and imaginary parts cannot generally be used to separate these terms, since the <Hermitian matrices> need not have real entries.