0
$\begingroup$

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?

$\endgroup$
2
  • $\begingroup$ Use partial derivatives to get $(-2x,-2y)$ $\endgroup$ Commented Feb 13, 2020 at 14:15
  • 1
    $\begingroup$ Your arrows point in opposite way as they should. $\endgroup$
    – coffeemath
    Commented Feb 16, 2020 at 20:56

1 Answer 1

1
$\begingroup$

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)$.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .