Let $f:\mathbf R^n\to\mathbf R^m$ be differentiable. The total derivative at a point $p$ is a linear map $D_pf:T_p\mathbf R^n\to T_{f(p)}\mathbf R^m$, where $T_p\mathbf R^n$ denotes the tangent space of $\mathbf R^n$ at $p$.
We can take the disjoint union of these tangent spaces over all points $p\in\mathbf R^n$ to form the tangent bundles $T\mathbf R^n$ and $T\mathbf R^m$. Then the derivative of $f$ (not just at a point) can be defined as one of the following two things:
a map $Df:\mathbf R^n\to\bigsqcup_{p\in\mathbf R^n}\text{Hom}(T_p\mathbf R^n, T_{f(p)}\mathbf R^m)$ that maps each $p$ to $D_pf$
a map $Df:T\mathbf R^n\to T\mathbf R^m$, that when restricted to $T_p\mathbf R^n$ recovers the original derivative $D_pf$
Is one of these wrong? Are they equivalent definitions? They seem like two very different objects to me.