Find necessary and sufficient conditions on $a,b\in\Bbb R$ such that the following matrices have the same rank:
$$\begin{pmatrix} a&b\\ b&a \end{pmatrix} ,\begin{pmatrix} 0&1\\ 1&2\\ 3&4 \end{pmatrix}$$
So the question is when will the matrix $$\begin{pmatrix} a&b\\ b&a \end{pmatrix}$$ have rank $2$.
Multiplying the first row by $(-\frac{b}{a}), a\neq 0, b\neq 0$ and adding it to the second one gives us: $$\begin{pmatrix} a&b\\ b&a \end{pmatrix}\sim\begin{pmatrix} a&b\\ 0&\frac{a^2-b^2}{a} \end{pmatrix}$$
Now it must be true $a^2-b^2\neq0\Rightarrow a\neq -b \land a\neq b$
So is $a\neq -b \land a\neq b$ the necessary and sufficient condition?