I have this rather mathematical question about the calculation of the partial derivative of a potential energy function given by:
$$U(x_i)=\frac{1}{2}\sum_{i,j}\frac{\partial^2U(0)}{\partial x_i\partial x_j} x_ix_j.$$ Or if we use $b_{ij}$ for the Hessian : $$U(x_i)=\frac{1}{2}\sum_{i,j}b_{ij}x_ix_j.$$
I want to calculate the force: $k_i=\frac{-\partial U}{\partial x_i}$. This should be $-\sum_{j} b_{ji}x_j$.
My questions:
Why is the summation over the index $i$ gone?
Why are the indices of the hessian $b$ switched?
I hope someone can give me an answer. I put this in the physics section because it's a physics problem, but my question is actually purely mathematical.