I am studying differentiable manifolds from Warner. In the book, the differential is defined as follows.
If $\psi:M\longrightarrow N$ is $C^\infty$, and if $m\in M$, then the differential of $\psi$ at $m$ is the linear map $d\psi:M_m\longrightarrow N_{\psi(m)}$, defined as under : If $v\in M_m$, then, we define $d\psi(v)(g) = v(g\circ\psi)$ where $g$ is a $C^\infty$ function on a neighbourhood of $\psi(m)$.
My question is this. They have mentioned this special case : If $f:M\longrightarrow\mathbb{R}$ is a $C^\infty$ function, then $df(v)=v(f)\frac{d}{dr}|_{f(m)}$. I don't know how to show this. By definition, $df(v)(g)=v(g\circ f)$, where $g$ is differentiable in a neighbourhood of $f(m)$. How is $v(g\circ f) = v(f)\frac{dg}{dr}|_{f(m)}$. [I understand the fact intuitively too, because $df(v)$ is a tangent vector on $\mathbb{R}$, and this is like the chain rule, but how does one show it?]