I have seen that if $f$ is a smooth function on a smooth manifold $M$ then differential of $f$ at the point $p$ is defined by $(df)_p(X_p) = X_p(f)$ but i am not able to see that how it can be derived by the usual definition of differential map of a smooth map between manifolds which is as follows: If $\phi: M \to N$ is a smooth map between smooth manifolds then the differential of $\phi$ is $d\phi_p: T_pM \to T_{\phi(p)}N$ via $v \mapsto v_{\phi}$ such that $v_{\phi}(g) = v(g \circ \phi)$.
Can someone tell me the relation between the two?
Thanks!