This is what was written in my differential geometry class notes.
Let $M$ be a $n$-dimensional manifold. If $f : M \to \mathbb{R}$ then the subspace of $T_pM$ consisting of all the tangent vectors $X_p \in T_pM$ such that $\langle df, X \rangle = 0$ consists of all vectors tangent to the curves lying on the surface $f = \operatorname{const}$.
The way I interpreted the above was in the following way:
Let $M$ be a $n$-dimensional manifold. If $f : M \to \mathbb{R}$ then $\ker(df_p) = T_p(f^{-1}(c))$ for some $c \in f[M] \subseteq \mathbb{R}$.
Is my interpretation correct? If so how can I prove this proposition. The proof given in class relies on the definition of a tangent vector as a velocity vector of a curve I think, is there a way to view this using the definition of a tangent vector as a derivation?