How to find derivative of a function in origin