Derivatives corrected. Same as numerical derivative.