finding the derivative of |x-1| using the chain rule finding the derivative of |x-1| using the chain rule