2

Given a function $f_i (x_1,\dots, x_N)$ that is summed over, how do I find the correct partial derivative? \begin{equation} f_i = \sum _{j=1}^Nc_{ij}x_ix_j \end{equation} Then, \begin{equation} \frac{\partial}{\partial x_k}f_i = \frac{\partial}{\partial x_k}\sum _{j=1}^Nc_{ij}x_ix_j \end{equation} I assume the derivative is distributive. \begin{equation} \frac{\partial}{\partial x_k}f_i =\sum _{j=1}^N \frac{\partial}{\partial x_k} c_{ij}x_ix_j \end{equation} I then have, \begin{equation} \frac{\partial}{\partial x_k}f_i =\sum _{j=1}^N c_{ik}x_i \delta_{jk} \qquad \qquad \qquad * \end{equation} But I can also write, \begin{equation} \frac{\partial}{\partial x_k}f_i= 2c_{kk}x_k + \sum _{j\neq k}^N c_{ij}x_j\qquad \qquad \qquad $ \end{equation} So is * or $ the correct result?

RedPen
  • 581
  • is right if $k\not=i$, but you had better write it as $c_{ij}x_i$. Now there's the special case $k=i$ to do.. In the second one (don't use the dollar sign), by the way, you've changed an $i$ into a $k$ for reasons I can't follow.
  • – ancient mathematician Apr 01 '17 at 12:34