Show that $$ U_{A,B} = \{X \in \mathbb{K}^{n \times n}, f(X^T) = f(X)^T \} $$ is a subspace of $V = \mathbb{K}^{n \times n}$ with $f: V \to V, X \mapsto AXB$ and $A,B \in V$.
I'm not sure what to show. Showing $f((v+w)^T) = f(v+w)^T $, with $v,w \in V$ does not get me anywhere and it feels not right. But this could just be me lacking intuition.
Note that the kernel of any linear map is a subspace. With that said, it suffices to verify that $U_{A,B}$ is indeed the kernel of the linear map $g:V \to V$ defined by $g(X) = f(X^T) - f(X)^T$.