I need to compute the directional derivative of the function:
$$f(x,y)=|x-y|$$
at (0,0) in the direction $[\frac{1}{2}, -\frac{\sqrt{3}}{2}]$.
Well, I've been thinking to check if the function is differentiable at $(0,0)$ first, as it seems to be some "critical" point:
$f(x,y)=x-y$ for $x - y \ge 0$
$f(x,y)=y-x$ for $x - y < 0$
I'd like to do this using the definition, so:
$\lim\limits_{x->0} \frac{f(x_{0} + x, y_{0}) - f(x_{0}, y_{0})}{x}$
$\lim\limits_{y->0} \frac{f(x_{0}, y_{0} + y) - f(x_{0}, y_{0})}{x}$
If they are the same then the function is differentiable at (0,0)...but what function should I use, $x-y$ or $y-x$...?
The same problem appears when I need to evaluate derivatives of this function to use them in the directional derivative formula...how can I handle that?