Let $A_1$ be an $m \times m$ matrix and $A_2$ be an $n \times n$ matrix. Let the respective characteristic polynomials $f_1(x)$ and $f_2(x)$ be relative prime, i.e., $(f_1, f_2) = 1$. Show that $$\begin{pmatrix}A_1&A_{12}\\0&A_2\end{pmatrix}$$ is similar to $$\begin{pmatrix}A_1&0\\0&A_2\end{pmatrix}$$
If $A_1,A_2$ is diagnoal in the complex field, then $A_1,B_1$ has no common root. It seems not so difficult. What about general filed?
For brevity I will write $A_1,A_{12}$ and $A_2$ as $A,B$ and $C$ respectively. Consider the equation $$ \pmatrix{A&B\\ 0&C}\pmatrix{I_m&X\\ 0&I_n}=\pmatrix{I_m&X\\ 0&I_n}\pmatrix{A&0\\ 0&C}. $$ This is equivalent to the Sylvester equation $AX-XC=-B$. Define $L:X\mapsto AX-XC$. If we can prove that $L$ is nonsingular, then $L(X)=-B$ is solvable and we are done.
To prove that $L$ is nonsingular, we want to show that $L(X)=0$ has only the trivial solution. Suppose $L(X)=0$. Then $AX=XC,\,A^2X=XC^2$, so on and so forth. In turn, $p(A)X=Xp(C)$ for every polynomial $p$. Take $p$ as the characteristic polynomial of $C$. Then $p(C)=0$ but $p(A)$ is nonsingular because $p$ is relatively prime to the characteristic polynomial of $A$. Therefore $X=0$.