Last time | Next time |
You can get half of the points you missed by correcting your mistakes. So here's the deal:
Function isn't even defined along $y=-x$, so it's not defined in a neighborhood of (0,0), and hence won't be repaired by simply setting $g(0,0)=0$. Don't forget to make your direction vector unit, and that the result of a dot product is a scalar, not a vector.
Gradient points in direction of greatest ascent, not descent (think of the plane $z=x+y$, for example). The technique of "steepest descent" may confuse you....
Notation: $P(5,1)$ denotes a point $P$; it is not the altitude (thinking of this as terrain), but rather tells us where we are in the field.
Problems: