I've been trying to understand this concept for hours without any success. I found similar questions on this forum (Derivative with respect to a vector is a gradient?) but I still don't understand.
Let's consider a multiple particle system with $n$ particles. I'm running multiple times into the notation $$\vec{F_k}=- \frac{\partial}{\partial \vec{x_k}} V(\vec{x_1},\vec{x_2},..., \vec{x_n})$$ where $F_k$ denotes the resulting force acting on the particle $k$.
I assume the right hand side is an $\mathbb{R}^3$ vector because the left hand side is.
I came up with one example: Let $f:\mathbb{R}^n \rightarrow \mathbb{R}, f(x_1, ... ,x_n)=3x_1+{x_2}^2x_4-5x_3+...+x_n$ Then (because the variables are real) I know: $$\frac{\partial}{\partial x_1}f(x_1,...x_n)=3 \quad \frac{\partial}{\partial x_2}f(x_1,...x_n)=2x_2x_4 \quad \frac{\partial}{\partial x_3}f(x_1,...x_n)=-5$$ Now I guess one could define $\vec{a}=(x_1,x_2,x_3)^T$, then $\frac{\partial}{\partial \vec{a}}f(x_1,...x_n)=(3,2x_2x_4,-5)^T$
Even if this is correct, I'm struggling to apply this idea to the potential $V$ above because the variables there aren't scalars. What if for example $V(\vec{x_1},\vec{x_2},..., \vec{x_n})=\vec{x_1}^3$ ? Raising a vector to the 3rd power doesn't make any sense to me. Should I think of V as a function $V(x_{11},x_{12},x_{13},...,x_{n1},x_{n2},x_{n3}): \mathbb{R}^{3n}\rightarrow \mathbb{R}$?
I'm sorry about the long question but I hope to have at least clarified my problems and possibly helped you to help me.