The program differentiates a single-variable input function.