add a function to find the derivative of function step-by-step