Consider how to extend the definition of the function, f, so that it applies to real values of x, and is differentiable. Then calculate f'(x), from first principles.