Transform user-defined function to the different function
calculating the derivative of the input function

