However, the function is not differentiable at $x=0$ and $x=2$ due to the absolute value and the denominator. So, we need to split the function into two parts based on the absolute value:
$$f(x) = \begin{cases}
\frac{x-2}{x^{2}}, & \text{if } x \geq 2
Show more…