How to find the following partial derivative
\begin{align} \frac{\partial}{\partial x_i} ( {\bf x}-{\bf c})^T A ( {\bf x}-{\bf c}), \end{align}
where ${\bf x}$ is a vector of length $n$ and $A$ is a strictly positive definite matrix, and ${\bf c}$ is just a fixed vector.
My plan was to re-write it in terms of a double sum and take the derivative.