The linearity definition requires that for any two inputs \(u\) and \(v\text{,}\) \(T(u+v)=T(u)+T(v)\text{.}\) To show this is not true, it is enough to show there is one choice of \(u\) and \(v\) where the equality fails. All we need is one! So, to show that this transformation \(R\) is not linear, it suffices to find two matrices \(A\) and \(B\) such that \(R(A+B)\neq R(A)+R(B)\text{.}\)
Observe that if we pick \(A\) and \(B\) so that each has rank \(3\) we would have \(R(A)+R(B)=\mbox{rank}(A)+\mbox{rank}(B)=6\) while \(R(A+B)=\mbox{rank}(A+B)\leq 3\text{.}\) Clearly \(R(A+B)\neq R(A)+R(B)\text{.}\)
This argument is sufficient, as it shows there must be a choice that works, but if we want a specific choice, we can find one.
Let
\begin{equation*}
A=\begin{bmatrix}1\amp 0\amp 0\\0\amp 1\amp 0\\0\amp 0\amp 1\end{bmatrix} \quad\text{and}\quad B=\begin{bmatrix}-1\amp 0\amp 0\\0\amp 1\amp 0\\0\amp 0\amp -1\end{bmatrix}.
\end{equation*}
Then
\begin{equation*}
T(A)=3\quad\text{and}\quad T(B)=3
\end{equation*}
and
\begin{equation*}
T(A+B)=T\left(\begin{bmatrix}0\amp 0\amp 0\\0\amp 2\amp 0\\0\amp 0\amp 0\end{bmatrix}\right)=1.
\end{equation*}
Thus, \(1=T(A+B)\neq T(A)+T(B)=6\text{.}\)