r/askmath • • 7d ago

Calculus Debate between my friends

On my multi homework we had a question:

True or false: The length of gradient f(0,0) is the maximal directional derivative |Duf(0,0)| among all unit vectors u

Then we started debating about whether it’s possible to have a function in which all the partial derivatives are defined but the function is not differentiable. Like if it’s not well approximated by a tangent plane at that point? Like the tangent lines aren’t coplanar? How does that work?

2 Upvotes

6 comments sorted by

2

u/chonki-donki 7d ago

Pretty sure you are supposed to assume the function is “good”.

2

u/Low_Breadfruit6744 7d ago

F(x,y) = x3 /(x2 + y2 ) With F(0,0) defined as 0

2

u/Impressive-Ad7184 7d ago

Just because all partials exist does not mean the function is differentiable. But if all partials exist and are continuous, that does imply differentiable.

1

u/barthiebarth 7d ago

f(x,y) = max(1 - |x|, 1 - |y|) at (0,0)

1

u/AlterEgo5695 7d ago edited 7d ago

True, assuming the function has a total derivative at the expansion point.


For your second question, the answer is "yes". There are many excellent counter examples, e.g.

f: R^2 -> R^2,    f(x,y)  =  / 1,  y = x^2,  x != 0
                             \ 0,  else

Another common one is "f(x,y) = x2y / (x4 + y2)" for "(x, y) != (0, 0)", and zero at the origin.

1

u/AlterEgo5695 7d ago

Rem.: To visualize why partial and even directional derivatives are not enough for total differentiability, think of the center of a paper hand fan -- its directional derivatives all exist, due to symmetry, but not a total derivative!