Matrices – Derivative of Vector and Vector Transpose Product

derivativesmatricespartial derivativevectors

I saw this answer here : Vector derivative w.r.t its transpose $\frac{d(Ax)}{d(x^T)}$.


enter image description here


I am finding difficult to understand the part in red. What rule is that ?

If I apply multiplication rule, shouldn't I get –

enter image description here

And how do one differentiate this anyways ?

enter image description here

Best Answer

You can do it componentwisely:

$$\frac{d(x^Ta)}{dx}=\left(\frac{d(x_1a_1+x_2a_2+\cdots+x_na_n)}{dx_1}, \frac{d(x_1a_1+x_2a_2+\cdots+x_na_n)}{dx_2}, \cdots, \frac{d(x_1a_1+x_2a_2+\cdots+x_na_n)}{dx_n}\right)\\ =(a_1,a_2,\cdots, a_n)=a^T$$

Related Question