# Derivative with respect to vector

How in Lagrangian and Hamiltonian mechanics we take derivatives with respect to velocity and momentum respectively if they are vectors? Can we take derivative with respect to a vector?

• You can certainly take derivatives with respect to components of the vector. Often this is enough. Problems begin if you want to have some sort of coordinate-independent approach. Then @Darkseid answer applies – Cryo Jul 21 at 19:36