What is the derivative, with respect to w, of
$\lambda_1y_1X_1w + \lambda_2y_2X_2w + ... \lambda_ny_nX_nw$
Where $y_i$ and $\lambda_i$ are constants, $X_i$ is 1 by n, and w is n by 1?
My first thought was that it was the sum of the $\lambda_iy_iX_i$ (factoring out w), but this didn't make sense to me because w is not in the front of the expression, and this creates a "sum" of 1 by n matrices, which didn't make sense.
Hint. If $L$ is a linear continuous function, then it is differentiable at every $w$ and $L'(w)=L.$