Consider the following Lagrangian (Exercise 3.6B from Abraham and Marsden's Foundations of Mechanics): $$ L(\upsilon)=\frac12g(\upsilon,\upsilon)+V(\tau_Q\upsilon)+g(\upsilon,Y(\tau_Q\upsilon)) $$ ($V \colon Q \rightarrow \mathbb{R}$ is a smooth function; $Y \colon Q \rightarrow TQ$ is a vector field; $\tau_Q\colon TQ\rightarrow Q$ is the tangent bundle). My aim is to calculate the corresponding Legendre transform $FL \colon TQ \rightarrow T^*Q$. It was easy to deal with the first term $L_1(\upsilon)=\frac12g(\upsilon,\upsilon)$: $$ \begin{aligned} \langle FL_1(\upsilon) |\, w\rangle &= \left.\frac{d}{ds}\left[\vphantom{\frac{d}{ds}}L_1(\upsilon+sw)\right]\right|_{s=0}=\left.\frac{d}{ds}\left[\vphantom{\frac{d}{ds}}\frac12g(\upsilon+sw,\upsilon+sw)\right]\right|_{s=0}\\ &=\frac12\left.\frac{d}{ds}\left[\vphantom{\frac{d}{ds}}g(\upsilon,\upsilon)+g(\upsilon,sw)+g(sw,\upsilon)+g(sw,sw)\right]\right|_{s=0}\\ &=\frac12\left.\frac{d}{ds}\left[\vphantom{\frac{d}{ds}}s(g(\upsilon,w)+g(w,\upsilon))+s^2g(w,w)\right]\right|_{s=0}\\ &=g(\upsilon,w), \end{aligned} $$ but I'm stuck with the other two terms for the reasons I myself do not fully understand. I must be able to calculate $FL$ using simple chain rule, but the differential $T\tau_Q$ of the bundle somewhy confuses me.
So, in case it's appropriate for Math.SE,
could someone provide an example of calculation for $L_2(\upsilon)=V(\tau_Q\upsilon)$?