We first calculate the right-hand derivative at x = 2:

Since the right-hand and the left-hand derivatives are different, the function f is not differentiable at x = 2.