Differentiability of Max Function?

7 replies · 3K views · last reply
varygoode
Messages
45
Reaction score
0

Homework Statement


Typeset problem: f(x) equals the sum from i=1 to n of |x_i|, and g(x) equals the max of |x_i| over 1 to n, for functions from R^n to R; asks where f and g are differentiable.



Homework Equations


Tinypie logo with the text 'THIS IMAGE OR VIDEO HAS BEEN MOVED OR DELETED' in a light blue box.

Printed definition of the jth partial derivative: for f from A in R^m to R, D_j f(a) is the directional derivative of f at a along e_j, given by the limit as t approaches 0 of (f(a + t e_j) - f(a))/t.


The Attempt at a Solution



I think to determine where it's differentiable it has something to do with partial derivatives. But I am just so completely clueless on how to even start this guy off that any tips or minor suggestions on where to even begin would be great. Thanks!
 
Start with the first one, f. f is just a sum of absolute values. Where is |x| differentiable for x a real variable??
 
Dick said:
Start with the first one, f. f is just a sum of absolute values. Where is |x| differentiable for x a real variable??

Everywhere except at x=0.
 
Ok, so if ALL of the x_i's are non-zero, then f is differentiable, right? Where is it not differentiable?
 
When they're ALL zero? Because if one x_i is non-zero, but the rest are, it's still differentiable?

I don't know why or how to prove it though, and that's what I need help with.
 
If any x_i is equal to zero then the derivative doesn't exist. The ith partial derivative doesn't exist. g is harder, I'm still trying to figure out a good way to describe the set. Try warming up with just two variables. g(x,y)=max(|x|,|y|).
 
Alright, I think I understand what's going on with f.

So then with g, couldn't I try a similar idea since it is also absolute value? Or no?
 
It's similar but not the same. Like I say, think about g(x,y)=max(|x|,|y|). That IS NOT differentiable at x=3, y=3. It IS differentiable at x=3, y=0. Once you've figured out why, try and figure out a way to describe all of the points where it is not differentiable.