What is the derivative of the sum of a vector with respect to the vector?

2.4k Views Asked by At

If X is a vector, what is the derivative of : $\frac{d}{dX} 1^TX$ ?

where $1^T$ is the summation operation e.g. $1^TX = \sum_n x_n $

2

There are 2 best solutions below

0
On BEST ANSWER

Just work it out with multivariable calculus by noting that the derivative of a linear term is constant.

$\frac{d}{dX}1^TX = 1^T\frac{d}{dX}X = 1^T I = 1$

Where $1$ is a vector of $1s$

0
On

We call $\frac{d}{dX}=\nabla$ the gradient operator in multivariable calculus. The gradient here is given by a row vector with entries $$\left[\frac{\partial (1^T X)}{\partial x_i}\right]_i = \left[ \frac{\partial (\sum_n x_n)}{\partial x_i} \right]_i = \left[1\;1 \cdots\right] = \frac{d (1^T X)}{dX}\,\text{.}$$