Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this function $$ f(x,y) = \left\{ \begin{array}{ll} \frac{x^3}{x^2 + y^2} & \mbox{if } (x,y) \neq (0,0) \\ 0 & \mbox{if } (x,y) = (0,0) \end{array} \right. $$ And I want to find the directional derivative in the $(1,1)$ direction at $(0,0)$, so using the limit definition this gives me $$ \begin{align*} D_vf(0,0) = \lim_{t\to 0}\frac{f((0,0) + t(1,1)) - f(0,0)}{t} = \lim_{t\to 0}\frac{t^3}{2t^2 t} = \frac{1}{2} \end{align*} $$ But wolfram alpha is giving me $0$ as a result Wolfram alpha result
Is there something wrong with my procedure?
Any help appreciated :)

share|cite|improve this question
up vote 9 down vote accepted

You are right and Wolfram is wrong. What happens is that the computer is using the gradient to calculate the directional derivative. But the formula to calculate the directional derivative using the gradient uses the chain rule, which assumes the function to be differentiable. Your function is not differentiable at $(0,0)$, so the gradient cannot be used to find the directional derivatives there.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.