First, consider the derivative of the function
\begin{equation*}
f'(x) = \begin{cases} 0, \amp -1 \lt x \lt 0, \\ 1, \amp 0 \lt x \lt 1/2, \\ -2x, \amp 1/2 \lt x \lt 1.
\end{cases}
\end{equation*}
where the equality parts of the derivative have been removed (and explained later).
\begin{align*}
\lim_{x \rightarrow 0^{-}} f'(x) \amp = 0 \amp \lim_{x \rightarrow 0^+} \amp = 1 \\
\lim_{x \rightarrow \frac{1}{2}^{-}} f'(x) \amp = 1 \amp \lim_{x \rightarrow \frac{1}{2}^+} \amp = -1
\end{align*}
then the left-handed derivative at 0 is 0, the right-handed derivative of
\(f\) at 1, the left-handed derivative at 1/2 is 1 and the right-handed derivative of
\(f\) at 1/2 is
\(-1.\)