Gradient of quadratic vector function

145 Views Asked by At

I'm struggling with this very simple gradient question.

enter image description here

Where...

enter image description here

Now I've already been told the answer is Ax + b, but I can't work out how to get to the first term. Intuitively it looks like a quadratic equation, but when I go through the expansion of 1/2 xAx, for each element, then differentiate, I get left with:

enter image description here

Or in other words AIx + Ax

What am I missing?

1

There are 1 best solutions below

0
On

The top row of your derivative is incorrect. For example, the coefficient of the $x_2$ term for example will be $(A_{12} + A_{21})$ not just $A_{12}$. This is because the expression $x^TAx$ contains $A_{12}x_1x_2 + A_{21}x_2x_1$. You considered the first term but neglected the second.