Where is the function #h(x)=abs(x-1)+abs(x+2)# differentiable?
1 Answer
It is differentiable everywhere except the zeros of the expressions in absolute value. Everywhere except
Explanation:
The short answer statement is correct. Functions incolving terms that have absolute value tend to be non-differentiable at the zeros of the expression in absolute value. This is not true if the expression as always non-negative or always non-positive.
But let's analyze this function.
We cut the number line at
Combining, we have
Differentiating, we get
Because the derivatives do not agree at the joints (the left and right derivatives are distinct), the function is not differentiable at the joints.
Although we did not use it, here is the graph of
graph{abs(x-1)+abs(x+2) [-11.235, 11.265, -1.74, 9.51]}