Your example is taking the gradient of a scalar function |x2-x1| and
getting a vector function. See -
https://en.wikipedia.org/wiki/Gradient
My geometric algebra package -
https://github.com/brombo/galgebra
can take the gradient (vector derivative) of a multivector function of
which scalars an
Does SymPy have any builtin functionality for expressive derivatives w.r.t.
vectors and matrices as vector and matrix operations?
By "derivative w.r.t. a vector" I mean a vector of derivatives w.r.t. each
element. The reason for treating these derivatives differently that just a
vector of deriv