Calculate First Derivative Of The Function