I have shown that for $A,B\in \mathbb{R}^{2\times 2}$ the $U=\{X\in \mathbb{R}^{2\times 2}\mid AX=XB\}$ is a vector subspace of $\mathbb{R}^{2\times 2}$.
Then when $A=\begin{pmatrix}a_1 & 0 \\ a_3 & a_4\end{pmatrix}$ and $B=\begin{pmatrix}b_1 & b_2 \\ 0 & b_4\end{pmatrix}$ I want to show that $$U=\{0\} \iff \{a_1, a_4\}\cap \{b_1, b_4\}=\emptyset$$
How can we show the direction $\Rightarrow$ ?
When we have the zero matrix, doesn't it hold for every $A$ and $B$ ?