I am having trouble with a term that arises in a physics equation (deriving the Lagrange equation for one particle in one generalized coordinate, $q$, dimension from one Cartesian direction, $x$).
My struggle essentially boils down to manipulating the following expression in one of the terms, $$\frac{d}{dt}\left[\frac{dx(q)}{dq}\right],$$ where $x$ is a function of only $q$. I know the order of partial derivatives is interchangeable; is it also true here for total derivatives?