I'm hung up on page 7 of Landau & Lifshitz Course on Mechanics. They claim,
$$L(v'^2) = L(v^2)+\frac{\partial L}{\partial v^2}2\textbf v\cdot \epsilon \tag{p.7}$$ The second term on the right of this equation is a total time derivative only if it is a linear function of the velocity $\textbf v$.
I can understand the Taylor expansion to get to this equation, but I do not understand why this must be a linear function of $\textbf v$.
If I understand correctly, we need to find a function$f(q, t)$ such that:
$$\frac{d}{dt}(f(q,t)) = \frac{\partial L}{\partial v^2}2\textbf v\cdot \epsilon$$
If $f(q,t) = q^2$, would the total time derivative not include a nonlinear function of $\textbf v$? Is there some restriction imposed upon $f$ such that it must also be a linear function of $q$?