A new method for estimating derivatives based on a distribution approach