Compute gradient of a matrix

54 Views Asked by At

I have this problem where I have to compute the gradient and justify all the steps. I'm not sure how to start this task of, when calculating for a matrix. Here is the problem: $$\nabla(\mathbf x^T\mathbf x)$$ where $\mathbf x$ is an $n$-vector.

1

There are 1 best solutions below

0
On

Let's not work with a matrix directly if it's the bottleneck,

Hint: $$x^Tx = x_1^2 + \ldots +x_n^2$$