Problem: Suppose $0<r<n$. Suppose $A:\mathbb{R} \to \mathcal{M}_2(\mathbb{R})$ is $\mathcal{C}^1$. Suppose that he rank of $A(t)$ il less or equal $r$ for all $t \in \mathbb{R}$. What be said about the rank of $A'(0)$?
Attempt: I tried using the fact that $rank(A)=k$ if and only $k$ is the maximum size of an invertible minor $B$. I would like to say that $rank(A'(0)) \leq r$ but I am not sure if it is true. Of course $rank(A'(0))$ could be $r$ because we can define $A(t)$ as the diagonal matrix with the first $r$ elements equal to $t$ and anywhere else equal to $0$.
Since $\operatorname{rank}(A(t))\le r$ for every $t$, the rank of the differential quotient $\frac{A(t)-A(0)}{t}$ is at most $2r$. It follows that the rank of $A'(0)$ is also $\le2r$. The example in the other answer has already illustrated the case where $\operatorname{rank}(A'(0))=2r$.