Proof
We start by defining the absolute value function, , as a piecewise function:
To find the derivative, we differentiate each piece separately:
For :
For :
Combining these results, we get:
At , the function is continuous, but its derivative is not defined because the left-hand limit () and the right-hand limit () are not equal.
Another way to express the derivative of is using the function . This function is defined as:
Thus, the derivative of is:
Explanation
To understand the derivative of the absolute value function , let’s break it down step by step.
The absolute value function is defined differently for positive and negative values of . Specifically:
This means that for any non-negative value of (including zero), is just , and for any negative value of , is .
To find the derivative of , we need to consider these two cases separately:
When , the function is equal to . The derivative of with respect to is .
When , the function is equal to . The derivative of with respect to is .
Putting these two results together, we get:
At , the situation is different. The function is continuous at , but its derivative is not defined. This is because the left-hand limit of the derivative as approaches 0 from the negative side is , and the right-hand limit as approaches 0 from the positive side is . Since these two limits are not equal, the derivative at does not exist.
Another way to express this derivative more compactly is by using the function . This function gives us the sign of :
At , this expression is undefined because we cannot divide by zero. Therefore, the derivative of can be written as:
Thus, the derivative of the absolute value function is , which is for positive , for negative , and undefined at .
Q.E.D.