As far as I understand, the rank of a map $f:GL(n,\mathbb{R})\rightarrow\mathbb{R}$ at $A\in GL(n,\mathbb{R})$ is the rank of the linear map $D(f\circ\phi^{-1})(\phi(A)):\mathbb{R}^{n^{2}}\rightarrow\mathbb{R}$, where $\phi$ is a chart on $GL(n,\mathbb{R})$ at $A$.
However, in Show that $SL(n, \mathbb{R})$ is a $(n^2 -1)$ smooth submanifold of $M(n,\mathbb{R})$, user Ben West wrote a beautifully simple proof where he uses that
$$d(\det)_A(A)=\lim_{t\to 0}\frac{\det(A+tA)-\det(A)}{t}$$
and that if the rank of $d(\det)_A$ is the rank of $f$.
I'm not seeing the connection between the two "definitions". Probably because I don't really get what $d(\det)_A$ is: it is not the derivative $\det_*$ which is a map between the tangent spaces, but it is not the real-space-derivative $D(f\circ\phi^{-1})(\phi(A)):\mathbb{R}^{n^{2}}\rightarrow\mathbb{R}$.