I am trying to calculate the partial derivative of $x_i$ from the following:
$$\frac{\partial}{\partial x} (\mathbb{x}^T\mathbb{A}\mathbb{x})$$
For some vector $\mathbb{x}$ and matrix $\mathbb{A}$.
I can show this a sum of sums such that:
$$\sum_{k=1}\sum_{j=1}x_k a_{kj} x_j$$
From this I can show the cases for which $k$ and $j$ respectively it not equal to $i$, and then add the remaining parts to the sum. This will yield:
$$\sum_{k\neq 1} (x_k a_{ki}) + \sum_{j\neq 1} (a_{ij} x_i) + 2a_{ii} x_i$$
However I cannot seem to break what I need to do to finish finding the partial derivative with respect to $x_i$. Any suggestions/help would be appreciated.