\frac{d}{dt}\frac{\partial}{\partial\dot{q}_j}V(q_i, \dot{q}_i,t)=\frac{\partial}{\partial\dot{q}_j}\frac{d}{dt}V(q_i, \dot{q}_i,t)