I have trouble understanding this definition:
Let $Q$ be some manifold and $L: TQ \to \mathbb{R}$ a smooth function. Then for some local coordinates $(q, \dot{q})$ on $TQ$ the conjugated momentum is defined as $\frac{\partial L}{\partial \dot{q}}$, which is an element of the co-tangential bundle $T^{*}Q$.
How is the expression $\frac{\partial L}{\partial \dot{q}}$ to be interpreted? If one simply expresses $L$ in local coordinates by $$L \circ(q^{-1}, \dot{q}^{-1}): \mathbb{R}^{2n} \to \mathbb{R}$$ and differentiates it with respect to the second variable one gets a function $\mathbb{R}^n \to \mathbb{R}$ and not an element of the co-tangential bundle $T^{*}Q$. Is the correct expression $$\partial_2 ( L \circ(q^{-1}, \dot{q}^{-1}))\circ (q, \dot{q}) \in T^{*}Q\ ?$$