I am taking a course in linear algebra, and one of the questions is as follows (not a quote from the questions):
The matrix $A = \begin{bmatrix} 1 & 3 \\ 4 & 2\end{bmatrix}$ has eigenvalues $5$ and $-2$, this need not be proven. Find the rank of the matrix $xI - A = \begin{bmatrix} x-1 & -3 \\ -4 & x-2\end{bmatrix}$ for each real number $x$.
I have read other questions such as this one which use the rank-nullity theorem. However, this concept has not been introduced yet, which I assume means that it should not be used to solve the problem. Instead, I have only learnt of eigenvalues, eigenvectors, diagonalisation, as well as matrix algebra. The textbook that is being used is Linear Algebra with Applications by W. Keith Nicholson and is open source, available online here. This question is asked after having completed chapter 3.3 of the textbook.
I have tried manipulating $A$ into reduced row-echelon form, but I can't seem to be able to do this for all numbers $x$, and I don't quite understand the relationship between ranks and eigenvalues yet.
Recall that $x_0$ is an eigenvaluo of $A$ if and only if $det(x_0I-A)=0$.
With this in mind, $xI-A$ would have maximal rank for any $x$ not being an eigenvalue. In your case, $rank(xI-A)=2$ for $x\ne 5,-2$.
For $x=5,-2$ you know that the rank cannot be 2. But since there is always some nonnull entry in $xI-A$, the rank must be 1.
The argument for rank 2 works for any order of the matrix $A$, but the rank-1 argument only works for 2x2 matrices with a nonnull entry putside the diagonal.