This was used in the answer here, in the derivation of the Lorentz force law from the Lagrangian. $u$ and $A$ are vectors, the velocity of the particle and the spacetime dependent Magnetic field
As part of the Euler Lagrange equation, we had to calculate $$\frac{\partial L}{\partial x}=\frac{\partial {(u\cdot A) }}{\partial x}$$
Since the Lagrangian treats $x$ and $u$, i.e. position and velocity, as independent variables, I think this partial derivative should treat $u$ as a constant to give:
$$\frac{\partial L}{\partial x}=\frac{\partial {(u\cdot A) }}{\partial x}$$
$$=\frac{\partial {(u_x A_x + u_yA_y +u_z A_z) }}{\partial x}$$
$$=u\cdot \frac{\partial A}{\partial x}$$
The vector form of this would be :
$$\frac{\partial L}{\partial r}=u\cdot \nabla A$$
I only got the first term. I don't understand where $u\times ({\nabla \times A})$ came from. Please help