Calculate the derivative: