I'm learning SymPy now, and I wonder if there's a way to differentiate a function over one of its variables in the general form.
Consider this example:
There a vector, lets write its components as x_1, x_2, x_3. The length r of such vector will be r = sqrt(x_1^2 + x_2^2 + x_3^2).
I want to differentiate this vector over x_i, where I don't specify i, which should give something like x_i/r^3.
Is it possible to do this in SymPy?
Sorry for lack of equation rendering..