Define the function as

The function is continous at as an added bonus. Because if choose and so if it follows that . (Here we used the inequality ).

Next compute the directional derivatives by definition. Nowifthe partial derivatives were to exist they would be related to the directional derivatives by . But it does not. Therefore this function has directional derivatives but not partial.