How to find out the direction of the gradient?

85 Views Asked by At

Given a function $f(x, y) = -x^2 - y^2$, does the gradient point to the origin everywhere in $\mathbb{R}^2 \setminus \mathbf{0}$?

I tried using a plotter und got the following result:

enter image description here

But I'm not sure how to interpret this. How can I mathematically identify the gradient's direction?

1

There are 1 best solutions below

0
On BEST ANSWER

The gradient is given in coordinates as the partial derivatives of your function. Here,

$$\nabla f_{(x,y)}=(-2x,-2y),$$

and indeed this vector is colinear to the one linking the origin and $(x,y)$, which is $(x,y)-(0,0)=(x,y)$.