f'(x)=
\left\{
\begin{array}{ll}
0, -2<x\leq 2,\\
\frac{1}{x}, x>2
\end{array}
\right.