Compute the derivative of the given function.