How can I construct a basis and find the dimension of the following subspace?
$$U = \{ M \in \textsf{M}_{2\times 2} :\, (\forall J \in \textsf{M}_{2\times 2} )( MJ=JM^t ) \}$$
My original intuition was to let $ M = \left[ \matrix{a & b \\ c & d} \right]$ and $J = \left[ \matrix{e & f \\ g & h} \right]$. Then I would find $MJ$, $M^{T}$, and $JM^{T}$ and then equate the two together: $MJ = JM^{T}$. From there I'm not quite sure how to proceed and find a basis and dimension.