How to find gradient of the function

63 Views Asked by At

$x \in \mathbb{R}^n$ How to find gradient of $f(x) = -e^{-x^Tx}$

1

There are 1 best solutions below

4
On BEST ANSWER

$$-x^Tx = -(x_1^2+x_2^2+...+x_n^2)$$

$$-e^{-x^Tx} = -e^{-(x_1^2+x_2^2+...+x_n^2)}$$

$$\frac{\partial(-e^{-x^Tx})}{\partial x_i} = 2x_ie^{-(x_1^2+x_2^2+...+x_n^2)} = 2x_ie^{-x^Tx}$$